fdopen-tests: port to Tru64
[gnulib.git] / ChangeLog
1 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
2
3         fdopen-tests: port to Tru64
4         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
5         descriptors that is not open, as POSIX doesn't specify the
6         resulting behavior and the test does not work on Tru64.
7         Problem reported by Steven M. Schweda in:
8         http://lists.gnu.org/archive/html/bug-gnulib/2014-01/msg00079.html
9
10         stdalign: port to HP-UX compilers
11         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
12         if __HP_cc or __HP_aCC are nonzero.
13
14 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15
16         strtoimax: port to platforms lacking 'long long'
17         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
18         check whether strtoll is declared, which causes the C file to
19         wrongly report an error.  Problem reported by Steven M. Schweda in:
20         http://lists.gnu.org/archive/html/bug-diffutils/2014-01/msg00003.html
21         * lib/strtoimax.c (strtoull):
22         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
23         (strtoll): Declare only if HAVE_LONG_LONG_INT.
24
25 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
26
27         relocatable-perl: fix texi syntax
28         * doc/relocatable-maint.texi: Escape braces.
29
30 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
31
32         relocatable-perl: like relocatable-script, but for Perl scripts
33         * build-aux/relocatable.pl.in: Add.
34         * doc/relocatable-maint.texi: Add documentation.
35         * modules/relocatable-perl: Add.
36
37 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
38
39         tests: fix export bug in previous patch
40         Problem reported by Jim Meyering.
41         * tests/init.sh (re_shell): New var, which is exported instead of
42         re_shell_.
43
44         tests: simplify porting to Solaris 10 /bin/sh
45         Some test cases in 'grep' need a shell that groks '$(';
46         export re_shell_ for their benefit.  Problem reported for 'grep'
47         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
48         * tests/init.sh (re_shell_): Export if it's used.
49
50 2014-01-06  Eric Blake  <eblake@redhat.com>
51
52         md5, sha1, sha256, sha512: support older autoconf
53         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
54         for autoconf < 2.63b.
55
56         include_next: port to autoconf 2.63
57         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
58
59 2014-01-04  Jim Meyering  <meyering@fb.com>
60
61         maint: add a gnulib-local rule to keep non-ascii out of .texi files
62         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
63         so that "make sc_maint" will ding anyone who puts non-ascii
64         in any of gnulib's .texi files.
65
66 2014-01-03  Jim Meyering  <meyering@fb.com>
67
68         freadable, fwritable, fwriting: declare with the "pure" attribute
69         * lib/freadable.h (freadable): Declare with the "pure" attribute.
70         * lib/fwritable.h (fwritable): Likewise.
71         * lib/fwriting.h (fwriting): Likewise.
72         Suggested by Bruno Haible.
73
74         maint.mk: adapt openat.h-include-without-use test
75         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
76         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
77         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
78         With this change, running "make sc_maint" in gnulib's top-level
79         directory now passes for me.
80
81 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82
83         doc: use ASCII in .texi files where UTF-8 isn't needed
84         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
85         * doc/posix-functions/setkey.texi, doc/regex.texi:
86         Use ASCII input, not UTF-8.
87
88 2014-01-02  Jim Meyering  <meyering@fb.com>
89
90         freading: declare with the "pure" attribute
91         * lib/freading.h (freading): Declare with the "pure" attribute.
92
93         manywarnings: remove -Wmudflap
94         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
95         it is no longer supported in gcc-4.9-to-be.
96
97 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
98
99         relocatable-script: remove unused code
100         Problem reported by Reuben Thomas in:
101         http://lists.gnu.org/archive/html/bug-gnulib/2013-12/msg00117.html
102         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
103
104 2014-01-01  Jim Meyering  <meyering@fb.com>
105
106         maint: fix public-submodule-commit to work with newer git
107         * top/maint.mk (public-submodule-commit): Remove excess quoting.
108         We were over-quoting the test arguments, and somewhere prior to
109         version 1.8.5.2.229, git stopped removing those excess quotes,
110         which made the test fail, since the unexpanded strings would
111         always differ; using GIT_TRACE=1 confirmed that the git merge-base
112         command wasn't even being run.
113
114 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
115
116         doc: update main copyright year
117         * doc/gnulib.texi: Update copyright date.
118
119 2014-01-01  Eric Blake  <eblake@redhat.com>
120
121         version-etc: new year
122         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
123         * all files: run 'make update-copyright'
124
125 2013-12-24  Eric Blake  <eblake@redhat.com>
126
127         passfd: give nicer error for recvfd at eof
128         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
129         * tests/test-passfd.c (main): Enhance test to cover this.
130
131 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
132
133         gettimeofday: port recent C++ fix to Emacs
134         Without this further patch, Emacs won't build due to
135         the portcheck failing.  Also, this simplifies the patch a bit.
136         * lib/time.in.h (localtime, gmtime): Don't replace unless
137         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
138         * lib/time.in.h (localtime, gmtime):
139         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
140         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
141         * modules/time (time.h):
142         Don't worry about about the possibility of localtime and gmtime
143         being absent; they're present in all C libraries we know about.
144         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
145         Don't assume sys_time is present and has been initialized.
146         Instead, use a hack that should work even if it hasn't been.
147         Don't use a portcheck for gmtime or localtime; this supports
148         the hack.
149         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
150
151 2013-12-17  John W. Eaton  <jwe@gnu.org>
152
153         gettimeofday: fix C++ crosscompilation
154
155         Never replace gmtime and localtime by macros when compiling with
156         C++, this prevents <ctime> from being included.
157
158         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
159         define gmtime and localtime as preprocessor macros.  Instead
160         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
161         REPLACE_LOCALTIME substitutions.
162         * lib/time.in.h: Declare gmtime and localtime when needed.
163         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
164         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
165         * modules/time: Depend on gettimeofday, and substitute the above
166         variables in time.h.
167
168 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
169
170         qacl: port to Windows better
171         See Eli Zaretskii in
172         <http://lists.gnu.org/archive/html/emacs-devel/2013-12/msg00593.html>.
173         * lib/file-has-acl.c (acl_access_nontrivial):
174         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
175         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
176
177 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
178
179         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
180         * lib/gl_openssl.h: Cast void pointers to a specific type.
181
182 2013-12-07  Pádraig Brady <P@draigBrady.com>
183
184         open-tests: fix build failure with -Werror=old-style-declaration
185         * tests/test-open.h: Reorder the inline to avoid the issue.
186
187 2013-12-07  Pádraig Brady <P@draigBrady.com>
188
189         md5, sha1, sha256, sha512: fix link error with partial libcrypto
190         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
191         init time, so that if early checks find crypto routines,
192         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
193         avoiding link failures.
194
195 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
196
197         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
198         This provides a new way to specify the default for
199         gl_CRYPTO_CHECK, one that is reflected in the --help message.
200         Emacs uses this, as well as the old way.
201         This attempts to implement a suggestion by Pádraig Brady in
202         <http://lists.gnu.org/archive/html/coreutils/2013-12/msg00080.html>.
203         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
204         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
205
206         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
207         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
208         Add support for a new option, --with-openssl=auto, which causes
209         the library to be used if available and silently ignored if not.
210         Add support to allow allow configure.ac to specify its own
211         default, by setting with_openssl_default before invoking gl_INIT.
212
213 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
214
215         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
216         Problem reported by Daiki Ueno in:
217         http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00052.html
218         * tests/test-open.h (__always_inline):
219         New macro, if not already defined.
220         (test_open): Use it.
221
222 2013-12-04  Eric Blake  <eblake@redhat.com>
223
224         include_next: minimize code duplication
225         * modules/include_next (Depends-on): Add absolute-header.
226         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
227         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
228
229 2013-12-04  Pádraig Brady <P@draigBrady.com>
230
231         getcwd: fix compile error in configure check
232         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
233
234 2013-12-04  Pádraig Brady <P@draigBrady.com>
235
236         regex: suppress core dumps from detection code
237         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
238         to suppress core dumps that may well occur on glibc systems.
239         These core dumps might not be cleaned up automatically, or could
240         trigger some system core dump handling logic.
241
242 2013-12-03  Pádraig Brady <P@draigBrady.com>
243
244         md5, sha1, sha256, sha512: support mandating use of openssl
245         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
246         description, to list the now 3 separate options.  also don't
247         mention the default=no, since this is implicit given the option
248         is described as --with-openssl rather than --without-openssl.
249         If projects change the default they're free to document that.
250         with --with-openssl[=yes] we now error out when the specified
251         hash algorithm is not available in libcrypto.
252
253 2013-12-03  Ivailo  <xakepa10@gmail.com>
254
255         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
256         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
257         -Wformat-nonliteral checks, as these edge cases are part of the test.
258
259 2013-12-03  Eric Blake  <eblake@redhat.com>
260
261         regex: avoid glibc deadlock during configure
262         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
263         glibc bug 15078 in turn triggers bug 16159.
264         Reported by Michal Privoznik.
265
266 2013-12-02  Pádraig Brady <P@draigBrady.com>
267
268         md5, sha1, sha256, sha512: use openssl routines if available.
269         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
270         routines will be used if available, requiring apps to link @LIB_CRYPTO@
271         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
272         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
273         in the standard system location.
274         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
275         * m4/sha256.m4: Likewise with SHA256.
276         * m4/sha512.m4: Likewise with SHA512.
277         * m4/md5.m4: Likewise with MD5.
278         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
279         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
280         * lib/sha256.h: Likewise with SHA256.
281         * lib/sha512.h: Likewise with SHA512.
282         * lib/md5.h: Likewise with MD5.
283         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
284         * lib/sha256.c: Likewise with SHA256.
285         * lib/sha512.c: Likewise with SHA512.
286         * lib/md5.c: Likewise with MD5.
287         * modules/crypto/sha1 (Link:): Add the new optional lib.
288         (Depends-on:): Add dependency on extern-inline.
289         * modules/crypto/sha256: Likewise.
290         * modules/crypto/sha512: Likewise.
291         * modules/crypto/md5: Likewise.
292         * modules/crypto/sha1-tests: Reference the lib here too.
293         * modules/crypto/md5-tests: Likewise.
294         * modules/crypto/gc-des-tests: Likewise.
295         * modules/crypto/gc-hmac-md5-tests: Likewise.
296         * modules/crypto/gc-hmac-sha1-tests: Likewise.
297         * modules/crypto/gc-hmac-sha256-tests: Likewise.
298         * modules/crypto/gc-hmac-sha512-tests: Likewise.
299         * modules/crypto/gc-md5-tests: Likewise.
300         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
301         * modules/crypto/gc-sha1-tests: Likewise.
302         * modules/crypto/gc-tests: Likewise.
303         * modules/crypto/hmac-md5-tests: Likewise.
304         * modules/crypto/hmac-sha1-tests: Likewise.
305         * modules/crypto/hmac-sha256-tests: Likewise.
306         * modules/crypto/hmac-sha512-tests: Likewise.
307
308 2013-11-29  RV1971  <rv1971@web.de>
309
310         base64: (trivial) fix compilation regression on some compilers
311         * lib/base64.c: Don't return the void function,
312         instead split to a separate return statement.
313
314 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
315
316         ignore-value: revert previous code change
317         * lib/ignore-value.h (ignore_value): Use __extension__ and
318         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
319         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00102.html>.
320         Change the comment to try to explain this better.
321
322 2013-11-27  Pádraig Brady <P@draigBrady.com>
323
324         selinux-h: improve stub types and add more stub functions
325
326         * lib/se-selinux.in.h: Change security_context_t to a typedef
327         rather than a define, as it's a pointer type and so is better
328         as a typedef to avoid issues declaring multiple variables
329         with the comma operator.  Also add stub for string_to_security_class().
330         * lib/se-context.in.h: Add stub functions for
331         context_{type,range,role,user}_get().
332
333 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
334
335         ignore-value: prefer GCC version back through 2.0
336         The code didn't match the comments, so I did a bit of software
337         archaeology.  GCC 2.0 seems to support __extension__ and
338         __typeof__, so fix both code and comments to use 2.0.
339         * lib/ignore-value.h (ignore_value): Use __extension__ and
340         __typeof__ for GCC 2.0 through 3.3, too.
341
342 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
343
344         pty: Activate the signature wrapper of forkpty.
345         The intended preprocessor macro HAVE_FORKPTY is
346         never defined, yet `lib/forkpty.c' depends on it.
347
348         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
349         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
350         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
351
352 2013-11-18  Jim Meyering  <meyering@fb.com>
353         and Paul Eggert  <eggert@cs.ucla.edu>
354
355         quotearg: don't attempt to store 1 << 31 into an "int"
356         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
357         gcc's new -fsanitize=undefined and running its tests triggered some
358         new test failures due to undefined behavior, all with this diagnostic:
359           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
360             cannot be represented in type int
361         Rather than shifting "1" left to form a mask, shift the bits right and
362         simply use "1" as the mask.
363
364 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
365
366         error: depend on stdio
367         Problem reported by Nikos Mavrogiannopoulos in
368         <http://lists.gnu.org/archive/html/bug-gnulib/2013-11/msg00084.html>
369         * modules/error (Depends-on): Add stdio.
370
371 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
372
373         * doc/relocatable-maint.texi (Supporting Relocation): Improve
374         wording.
375         Reported by Reuben Thomas <rrt@sc3d.org>.
376
377 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
378
379         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
380         New function and macro, to work around _DARWIN_C_SOURCE problem.
381         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
382
383 2013-11-11  Pádraig Brady <P@draigBrady.com>
384
385         base64: provide a fast path for encoding well sized buffers
386         Avoid conditionals in the base64 encoding loop,
387         which was seen to give 60% better throughput.
388         * lib/base64.c (base64_encode_fast): A new function to be called
389         when we don't want to NUL terminate, and we have enough space
390         in the output to encode the given input.
391         (base64_encode): Call the _fast() version when appropriate.
392         Also remove a redundant mask with 0x3F on the first encoded byte.
393
394 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
395
396         extern-inline: port better to OS X 10.9
397         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
398         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
399         OS X 10.9, except for g++ where the bug is still present.
400         See <http://trac.macports.org/ticket/41033>.
401
402 2013-11-08  Eric Blake  <eblake@redhat.com>
403
404         fpending: fix regression on DragonFly BSD
405         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
406         * lib/fpending.h (__fpending): Don't declare twice.
407         Reported by GW in
408         <https://lists.gnu.org/archive/html/bug-m4/2013-11/msg00000.html>
409
410 2013-11-05  Jim Meyering  <meyering@fb.com>
411
412         hash: relax license to LGPLv2+, for libguestfs
413         * modules/hash (License): Change from GPL to LGPLv2+.
414
415 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
416
417         intprops: port to Oracle Studio c99
418         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
419         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
420
421 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
422
423         obstack: pacify HP C
424         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
425         warning "conversion from pointer to smaller integer" from HP
426         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
427         C89 or later nowadays, so cast to void instead of int.  Privately
428         reported by H.Merijn Brand.  Also, change header to match glibc's,
429         to make checking against glibc easier.
430
431 2013-10-29  Jim Meyering  <meyering@fb.com>
432
433         maint.mk: prefer gpgv2 over gpgv
434         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
435         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
436         Reported by Gary Vaughan.
437
438 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
439
440         isnan: port to VAX
441         Reported by John Klos for NetBSD-5/VAX in
442         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00133.html>.
443         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
444         (FUNC): Use it.
445
446 2013-10-28  Jim Meyering  <meyering@fb.com>
447
448         gnulib-tool: protect against CDPATH
449         * gnulib-tool: Many "cd" built-in functions print a directory name
450         to stdout when CDPATH is set, e.g.,
451           $ bash -c 'CDPATH=/; cd tmp'
452           /tmp
453         Unset it, when possible.  Prompted by a comment from Bruce Korb.
454
455         maint.mk: restore functionality removed by recent change...
456         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
457         the context of a shallow-cloned gnulib repository: "git describe"
458         would fail in such a directory.  However, that change made it so
459         the reported gnulib revision no longer includes the version number
460         or a commit count, even when run from a full clone.
461         * top/maint.mk (gnulib-version): Use the full "git describe"
462         output when possible, e.g., the form above, rather than the
463         abbreviated, no-tag, no-commit-count string, and fall back to
464         using a 10-byte hash, rather than the default minimal-length
465         hash prefix, since while the minimal-length one may be fine today,
466         it is likely not to be unique for very long.
467
468 2013-10-26  Jim Meyering  <meyering@fb.com>
469
470         maint.mk: fix "release" target to build _version
471         This fixes a bug in README-release whereby following the outlined
472         steps, one would publish a tarball whose programs would report
473         --version output not consistent with the package version number.
474         This bug caused grep-2.15 to produce a grep program whose
475         --version option made it print 2.14.56-1e3d rather than 2.15.
476         * top/maint.mk (release): Making this target build "_version"
477         ensures that the new version number is reflected in configure.
478
479 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
480
481         install-reloc: Support multi-binary installation.
482         * build-aux/install-reloc: Support installing multiple programs in
483         one invocation, as done by Automake starting with commit
484         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
485         Haible <bruno@clisp.org>, archived at
486         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
487         Reported by Sylvain <beuc@gnu.org>.
488
489 2013-10-21  Michael Haubenwallner <michael.haubenwallner@salomon.at>
490
491         selinux-h: Really build without selinux when library is missing.
492         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
493         continue without selinux, as already told in the warning message.
494
495 2013-10-21  Jim Meyering  <meyering@fb.com>
496
497         regex: also remove dependency on HAVE_WCSCOLL
498         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
499
500 2013-10-21  Reuben Thomas <rrt@sc3d.org>
501
502         xfreopen: Fix typo. s/frepoen/freopen/
503         * lib/xfreopen.c: Fix description.
504         * modules/xfreopen: Likewise.
505
506 2013-10-21  Jim Meyering  <meyering@fb.com>
507
508         regex: don't depend on wcscoll
509         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
510         It is no longer used.
511
512 2013-10-20  Jim Meyering  <meyering@fb.com>
513
514         error: add the printf attribute to a static function
515         * lib/error.c (error_tail): Add the printf attribute, to placate
516         gcc's -Werror=suggest-attribute=format option.
517
518 2013-09-30  Jim Meyering  <meyering@fb.com>
519
520         fpending, obstack, strerror-override: use pure+const function attrs
521         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
522         * lib/obstack.c (_obstack_allocated_p): Likewise.
523         * lib/obstack.h (_obstack_memory_used): Likewise.
524         (_obstack_memory_used): Likewise.
525         * lib/strerror-override.h (strerror_override): Declare with
526         the "const" attribute.
527
528 2013-10-18  Eric Blake  <eblake@redhat.com>
529
530         extern-inline: make safe for -Wundef usage
531         Reported by Vladimir 'phcoder' Serbinenko in
532         https://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00078.html
533         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
534
535 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
536
537         mkfifo-tests, etc.: allow HP-UX 11.11 bug
538         Problem reported by Daniel Richard G. in
539         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00068.html>.
540         * doc/posix-functions/mkfifo.texi (mkfifo):
541         * doc/posix-functions/mkfifoat.texi (mkfifoat):
542         * doc/posix-functions/mknod.texi (mknod):
543         * doc/posix-functions/mknodat.texi (mknodat):
544         Document the HP-UX 11.11 bug.
545         * tests/test-mkfifo.h (test_mkfifo):
546         Allow the HP-UX 11.11 bug.
547
548 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
549
550         acl: allow cross-compilation to Gentoo
551         Problem reported by Gabriel Marcano in
552         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00058.html>.
553         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
554         test only whether it links.
555
556 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
557
558         mgetgroups: remove dependency on realloc-gnu
559         The dependency violates the comment in realloc-gnu, which
560         says that tests can't depend on realloc-gnu; some tests depend
561         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
562         Problem reported by Daniel Richard G. in
563         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00056.html>.
564         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
565         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
566         not realloc-gnu.
567
568 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
569
570         regex-tests: port to HP-UX 11.11
571         Problem reported by Daniel Richard G. in
572         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00052.html>.
573         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
574
575 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
576
577         verify: document some 'assume' pitfalls
578         * doc/verify.texi (Compile-time Assertions):
579         Mention that 'assume (E)' can sometimes slow things down.
580         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
581
582 2013-10-10  Eric Blake  <eblake@redhat.com>
583
584         strtoumax: fix typo in previous commit.
585         * modules/strtoumax (Depends-on): Fix typo.
586         * modules/strtoimax (Depends-on): Likewise.
587
588 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
589
590         strtoumax: port to Solaris 8
591         This problem was introduced in the recent HP-UX patch.
592         Reported by Tom G. Christensen in
593         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00037.html>.
594         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
595         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
596
597 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
598
599         strtoimax, strtoumax: port to HP-UX 11.11
600         Problem reported by Daniel Richard G. in
601         <http://lists.gnu.org/archive/html/bug-gnulib/2013-10/msg00023.html>.
602         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
603         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
604         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
605         REPLACE_STRTOUMAX.
606         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
607         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
608         Replace the function if defined as a macro but not as a function.
609         * modules/inttypes-incomplete (inttypes.h): Substitute
610         REPLACE_STRTOUMAX.
611         * modules/strtoumax (configure.ac): Replace strtoumax if
612         REPLACE_STRTOUMAX.
613
614 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
615
616         strtoimax: port to HP-UX 11.11
617         Problem reported by Daniel Richard G.
618         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
619         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
620         they might clash with inttypes.h.
621
622 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
623
624         New module 'count-trailing-zeros'.
625         * MODULES.html.sh: Mention it.
626         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
627         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
628         * modules/count-trailing-zeros-tests:
629         * tests/test-count-trailing-zeros.c:
630         New files.
631
632         count-leading-zeros: port to MSC; support types wider than 64 bits
633         The ideas behind the MSC port are stolen from Emacs.
634         * lib/count-leading-zeros.h:
635         Don't include verify.h: it's no longer needed, as types wider than
636         64 bits are now supported.
637         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
638         performance with MSC.  All uses changed.  Do not assume that TYPE
639         has at most 64 bits.
640         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
641         All uses changed.  Fold the subtraction from 31 into the table.
642
643         count-one-bits: port to MSC; support types wider than 64 bits
644         The ideas behind the MSC port are stolen from Emacs.
645         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
646         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
647         Don't include verify.h: it's no longer needed, as types wider than
648         64 bits are now supported.
649         (COUNT_ONE_BITS_GENERIC): New macro.
650         (popcount_supported) [_MSC_VER]: New inline function.
651         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
652         performance with MSC.  All uses changed.  Do not assume that TYPE
653         has at most 64 bits.
654         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
655
656 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
657
658         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
659         * lib/mountlist.c (read_file_system_list): fix leak of directory
660         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
661
662 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
663
664         tests: improve diagnostic when an assertion fails
665         * tests/macros.h (ASSERT): Report the assertion that failed.
666
667 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
668
669         verify: new macro 'assume'
670         This is taken from Emacs, and should be generally useful.
671         * doc/verify.texi (assume): Document it.
672         * lib/verify.h (assume): New macro.
673         (__has_builtin): Expand to 0 if not defined.
674
675 2013-09-26  Eric Blake  <eblake@redhat.com>
676
677         dup2, dup3: work around another cygwin crasher
678         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
679         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
680         * tests/test-dup2.c (main): Likewise.
681         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
682         * lib/dup3.c (dup3): Likewise.
683         * doc/posix-functions/dup2.texi (dup2): Document it.
684         * doc/glibc-functions/dup3.texi (dup3): Likewise.
685
686         getdtablesize: work around cygwin issue
687         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
688         * modules/getdtablesize (configure.ac): Build replacement.
689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
690         * modules/unistd (Makefile.am): Expose the witness.
691         * lib/unistd.in.h (getdtablesize): Declare replacement.
692         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
693         * tests/test-getdtablesize.c (main): Test it.
694         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
695
696 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
697
698         pmccabe2html: escaping of special characters
699         Escape all '<', '>', and '&' in HTML output.
700         * build-aux/pmccabe2html (html_fnc): Call gsub()
701         instead of sub() to capture all '<', '>', and '&'.
702         Neither of '<' and '>' is special in a regexp,
703         so first arguments to gsub() are corrected. Also,
704         in replacement strings, ampersand must be escaped.
705         Finally, '&' must be handled first, then '<' and '>'.
706
707 2013-09-24  Eric Blake  <eblake@redhat.com>
708
709         manywarnings: enable nicer gcc warning messages
710         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
711         some -f options for optimal warnings.
712
713 2013-09-21  Jim Meyering  <meyering@fb.com>
714
715         timespec: use the new TIMESPEC_RESOLUTION in a few more places
716         * lib/timespec-add.c (timespec_add): Also replace 999999999
717         with TIMESPEC_RESOLUTION - 1.
718         * lib/timespec-sub.c (timespec_sub): Likewise.
719
720 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
721
722         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
723         Problem reported by Dagobert Michelsen via Eric Blake in
724         <http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00052.html>.
725         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
726         not AC_COMPILE_IFELSE.
727
728 2013-09-23  Eric Blake  <eblake@redhat.com>
729
730         configmake: support new --runstatedir option
731         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
732         even if autoconf was too old to provide the command line option.
733         * modules/configmake (Makefile.am): Propagate it to .h file.
734
735 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
736
737         ctype, string: depend on extern-inline
738         This is needed to complete the recent OS X fixes.
739         Also, fix related documentation as suggested by Eric Blake.
740         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
741         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
742         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
743         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
744         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
745         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
746         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
747         * doc/posix-functions/toupper.texi:
748         List the 'ctype' gnulib module.
749         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
750         * doc/posix-functions/strncpy.texi:
751         List the 'string' gnulib module.
752         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
753         Add string.
754         * modules/ctype, modules/string (Depends-on): Add extern-inline.
755
756 2013-09-19  Pádraig Brady  <P@draigBrady.com>
757
758         userspec: support optional parameters to parse_user_spec()
759         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
760         then avoid group processing and treat the full spec as a user.
761         (parse_with_separator): Allow the USERNAME and GROUPNAME to
762         be optional params (NULL), in which case they're ignored.
763
764 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
765
766         timespec: new function make_timespec, and new constants
767         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
768         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
769         (make_timespec): New function.
770         * lib/dtotimespec.c (dtotimespec):
771         * lib/timespec-add.c (timespec_add):
772         * lib/timespec-sub.c (timespec_sub):
773         * lib/utimens.c (validate_timespec):
774         * lib/utimensat.c (rpl_utimensat):
775         Use these new constants and functions.
776
777         stdio: OS X port of putc_unlocked + extern inline
778         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
779         * doc/posix-functions/putc_unlocked.texi:
780         * doc/posix-functions/putchar_unlocked.texi:
781         Document this portability problem.
782
783         signal: OS X port of sigaddset etc. + extern inline
784         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
785         (sigismember): #undef on problematic Apple platforms.
786         * doc/posix-functions/sigaddset.texi:
787         * doc/posix-functions/sigdelset.texi:
788         * doc/posix-functions/sigemptyset.texi:
789         * doc/posix-functions/sigfillset.texi:
790         * doc/posix-functions/sigismember.texi:
791         Document this portability problem.
792
793         extern-inline: do not always suppress extern inline on OS X
794         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
795         extern inline on Apple only if the particular compile-time
796         configuration is known to have the problem.
797         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
798         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
799         other Gnulib modules.
800
801         extern-inline: document fixes for ctype and wctype macros
802         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
803         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
804         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
805         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
806         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
807         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
808         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
809         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
810         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
811         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
812         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
813         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
814         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
815         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
816         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
817         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
818         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
819         * doc/posix-functions/strncpy.texi:
820         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
821         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
822         Document that Gnulib fixes portability problems with these
823         functions on OS X 10.8 and earlier when called from plain inline
824         or extern inline functions.
825
826 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
827
828         fflush, freadahead, fseeko: Fix for Android
829         Suggested by Bruno Haible in:
830         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00306.html>
831         * lib/stdio-impl.h: Use local __sfileext definition.
832
833 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
834
835         pmccabe2html: Portability to other awk versions.
836         The functions systime() and strftime() are available
837         in Gawk only.  Properly close two HTML-tags 'style'
838         and 'span'.
839         * build-aux/pmccabe2html (BEGIN): Store timing
840         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
841         systime() in HTML_COMMENT.
842         (html_header): Correctly close tag 'style'.
843         (END): Replace strftime() by CHRONOS_TIME.  Close
844         tag 'span' correctly, not as 'div'.
845
846 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
847
848         getgroups: statement without effect
849         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
850         Change equality conditional to expected assignment.
851
852 2013-09-09  Eric Blake  <eblake@redhat.com>
853
854         glob: fix compilation
855         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
856
857 2013-09-07  Eric Blake  <eblake@redhat.com>
858
859         glob: fix build for platforms without __THROW
860         * lib/glob.in.h (__THROW): Add definition again.
861
862 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
863
864         regex-quote: fix buffer access out of bounds
865         http://lists.gnu.org/archive/html/bug-gnulib/2013-09/msg00001.html
866         * lib/regex-quote.c (regex_quote_spec_pcre):
867         Fix typo that resulted in an out-of-bounds read.
868
869 2013-09-04  Eric Blake  <eblake@redhat.com>
870
871         glob: avoid -Wattribute warnings on glibc
872         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
873         __THROWNL, not __THROW, on static functions.
874         * lib/glob.in.h (__THROW): Adjust...
875         (__THROWNL): ...accordingly.
876
877 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
878
879         headers: check that _GL_INLINE_HEADER_BEGIN is defined
880         Suggested by Bruce Korb in:
881         http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
882         * doc/extern-inline.texi (extern inline):
883         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
884         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
885         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
886         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
887         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
888         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
889         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
890         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
891         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
892         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
893         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
894         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
895         * lib/xtime.h:
896         Check that _GL_INLINE_HEADER_BEGIN is defined.
897
898 2013-08-29  Pádraig Brady  <P@draigBrady.com>
899
900         bootstrap: remove the --version requirement from ancillary tools
901         * build-aux/bootstrap (check_exists): A new refactored function to
902         determine if a command exists.
903         (find_tool): Use the new function which does not require the
904         --version option to be supported.
905         (check_versions): Use the new function.
906
907 2013-08-26  Simon Josefsson  <simon@josefsson.org>
908
909         gc: support HMAC-SHA256 and HMAC-SHA512.
910         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
911         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
912         functions.
913         (gc_hmac_md5): Use symbolic constant.
914         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
915         (gc_hmac_sha256, gc_hmac_sha512): New functions.
916         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
917         * m4/sha256.m4: Protect against empty expansion.
918         * m4/sha512.m4: Likewise.
919         * lib/hmac-sha256.c: New file.
920         * lib/hmac-sha512.c: Likewise.
921         * m4/gc-hmac-sha256.m4: Likewise.
922         * m4/gc-hmac-sha512.m4: Likewise.
923         * m4/gc-sha256.m4: Likewise.
924         * m4/gc-sha512.m4: Likewise.
925         * modules/crypto/gc-hmac-sha256: Likewise.
926         * modules/crypto/gc-hmac-sha256-tests: Likewise.
927         * modules/crypto/gc-hmac-sha512: Likewise.
928         * modules/crypto/gc-hmac-sha512-tests: Likewise.
929         * modules/crypto/hmac-sha256: Likewise.
930         * modules/crypto/hmac-sha256-tests: Likewise.
931         * modules/crypto/hmac-sha512: Likewise.
932         * modules/crypto/hmac-sha512-tests: Likewise.
933         * tests/test-gc-hmac-sha256.c: Likewise.
934         * tests/test-gc-hmac-sha512.c: Likewise
935         * tests/test-hmac-sha256.c: Likewise.
936         * tests/test-hmac-sha512.c: Likewise
937
938 2013-08-24  Daiki Ueno  <ueno@gnu.org>
939
940         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
941         of AC_CHECK_DECLS.
942
943 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
944
945         selinux-at: omit unnecessary include
946         * lib/selinux-at.c: Don't include dosname.h; not needed, since
947         this source file doesn't use its macros, and subsidiary files that
948         use the macros already include it.
949
950 2013-08-21  Eric Blake  <eblake@redhat.com>
951
952         d-ino: avoid false negative on symlink
953         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
954         Reported by Stephane Chazelas.
955
956 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
957
958         bootstrap: port to OpenBSD sed
959         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
960         does not interpret `-' as a file argument to mean stdin.
961
962 2013-08-15  Eric Blake  <eblake@redhat.com>
963
964         warnings: minor optimization
965         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
966
967         warnings: check -Wfoo rather than -Wno-foo
968         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
969         -Wno-, test if the compiler recognizes the positive form instead.
970
971 2013-08-15  Karl Berry  <karl@gnu.org>
972
973         * config/srclist-update: add option "doclicense" to placate
974         pulling *.texi files from Emacs.  Write terse usage
975         documentation at the top.
976
977 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
978
979         xvasprintf-tests: port to GCC with hardening flags
980         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
981         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
982         http://lists.gnu.org/archive/html/bug-diffutils/2013-08/msg00002.html
983
984 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
985
986         fpending: port to recent Cygwin change to stdio_ext.h
987         Reported by LRN in
988         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00028.html>.
989         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
990         just declare __fpending unless it's a macro.
991         A duplicate decl shouldn't hurt.
992         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
993         call compiles and links, instead of separately checking for
994         decl and lib function.
995         * modules/fpending (configure-ac):
996         Adjust to fpending.m4's renaming of shell variable.
997
998 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         sys_time: port to OpenBSD
1001         * lib/sys_time.in.h: Simply delegate to the system's header
1002         in the BSDish cases as well.  Problem reported by Mike Miller in
1003         <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>.
1004         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
1005         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
1006         wider than time_t.
1007
1008 2013-08-09  Pádraig Brady <P@draigBrady.com>
1009
1010         bootstrap: support checksum utils having -c but not --status
1011         * build-aux/bootstrap: Only look for sha1sum if updating po files.
1012         Add sha1 to the list of supported checksum utils since it's now
1013         supported through adjustments below.
1014         (update_po_files): Remove the use of --status
1015         in a way that will suppress all error messages, but since this is
1016         only used to minimize updates, it shouldn't cause an issue.
1017         Exit early if there is a problem updating the po file checksums.
1018         (find_tool): Remove the check for --version support as this
1019         is optional as per commit 86186b17.  Don't even check for the
1020         presence of the command as if that is needed, it's supported
1021         through configuring prerequisites in bootstrap.conf.
1022         Prompt that when a tool isn't found, one can define an environment
1023         variable to add to the hardcoded search list.
1024
1025 2013-08-05  Jim Meyering  <meyering@fb.com>
1026
1027         regex: port to non-glibc/lock-using systems
1028         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
1029         system with GNULIB_LOCK would fail due to absence of the
1030         included "glthread/lock.h".  This would affect any package
1031         for which the "lock" module is used only by the regex module,
1032         and not explicitly used.
1033         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
1034         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
1035         Add a dependency on the "lock" module.
1036
1037 2013-07-20  Daiki Ueno  <ueno@gnu.org>
1038
1039         localecharset: make locale_charset thread-safe on Mac OS X
1040         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
1041         instead of MB_CUR_MAX.
1042
1043 2013-07-20  Daiki Ueno  <ueno@gnu.org>
1044
1045         gettext: update to version 0.18.3
1046         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
1047         require AC_PROG_SED to allow user to specify custom sed command when
1048         generating en@quot PO file.
1049
1050 2013-07-18  Werner Lemberg <wl@gnu.org>  (tiny change)
1051
1052         bootstrap: use correct source when copying build-aux files
1053         * build-aux/bootstrap (gnulib_extra_files): This variable is
1054         relative to upstream gnulib layout, not downstream.
1055
1056 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
1057
1058         tmpdir: fix bug in VMS port
1059         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
1060         See Steven M. Schweda in
1061         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00026.html>.
1062
1063 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1064
1065         tmpdir: port to VMS, to // != /, and to long dirs
1066         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
1067         __secure_getenv, so that we're more like the glibc version.
1068         All uses changed.
1069         (path_search): Don't put slash after directory if __VMS.
1070         Problem reported by Steven M. Schweda in
1071         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00019.html>.
1072         Simplify code to add slash; no need for a loop.
1073         Do not remove trailing slash from "//".
1074         Do not assume dlen <= INT_MAX.
1075
1076 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1077
1078         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
1079         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
1080         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
1081         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00015.html>.
1082
1083         accept4, dup3, pipe2: port to Cygwin
1084         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
1085         * lib/accept4.c (accept4) [O_BINARY]:
1086         * lib/dup3.c (dup3) [O_BINARY]:
1087         * lib/pipe2.c (pipe2) [O_BINARY]:
1088         Use set_binary_mode, not setmode.
1089         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
1090         * modules/binary-io (Depends-on): Remove module indicator.
1091         These last two bits undo the previous change to pipe2 and binary-io.
1092
1093 2013-07-09  Pádraig Brady  <P@draigBrady.com>
1094
1095         mountlist: add support for deallocating returned list entries
1096         * lib/mountlist.c (free_mount_entry): A new exported function
1097         to deallocate a mount list entry.
1098         (read_file_system_list): Refactor to use the new deallocation function.
1099         Suggested by Anton Ovchinnikov.
1100
1101 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
1102
1103         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
1104         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
1105         * lib/stdalign.in.h (_Alignas, _Alignof):
1106         Port to FreeBSD 9.1, and to C11 and C++11.
1107         (_Alignas): Also support ICC.
1108         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
1109         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
1110
1111 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1112
1113         fnmatch: don't goto over declaration
1114         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
1115         undefined behavior for goto over a declaration.
1116         Problem reported by Charlie Brown in
1117         <http://lists.gnu.org/archive/html/bug-gnulib/2013-07/msg00009.html>.
1118
1119         pipe2: decouple from binary-io a bit
1120         This is for Emacs, which needs pipe2 but not binary-io.
1121         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
1122         * modules/binary-io (Depends-on): Add module indicator.
1123
1124 2013-07-03  Eric Blake  <eblake@redhat.com>
1125
1126         mgetgroups: relax license to LGPLv2+
1127         * modules/getugroups (License): Change from GPLv3+.
1128         * modules/mgetgroups (License): Likewise.
1129         * modules/getgroups (License): Change from LGPLv3+.
1130
1131         xalloc-oversized: relax license to LGPLv2+
1132         * modules/xalloc-oversized (License): Change from GPLv3+.
1133
1134         nproc: relax license to LGPLv2+
1135         * modules/nproc (License): Change from LGPLv3+.
1136
1137         bootstrap: honor --no-git
1138         * build-aux/bootstrap: Don't even try to use git when user is
1139         pointing to a static checkout.
1140
1141 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1142
1143         ignore-value: port to gcc -pedantic
1144         * lib/ignore-value.h (ignore_value):
1145         Port to gcc -pedantic, by using __extension__.
1146         Reindent as per usual gnulib style nowadays.
1147         Simplify GCC version check.
1148
1149 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1150
1151         extern-inline: port to gcc -std=c89
1152         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1153         Do not use __gnu_inline__ if pedantic and pre-C99.
1154
1155 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         doc: document extern-inline
1158         * doc/extern-inline.texi: New file.
1159         * doc/gnulib.texi (alloca-opt): Include it.
1160         * m4/extern-inline.m4: Move some comments to documentation,
1161         and others closer to what they describe.
1162
1163         doc: chatter less
1164         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
1165         (updated-stamp): Use it.  This causes 'make' to output just
1166         one file name rather than zillions.
1167
1168         fflush, fseeko: port to musl cross-compiles
1169         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
1170         on some implementation that (1) is not known to be buggy,
1171         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
1172         cross-compiled to so we can't easily check for lack of
1173         conformance.  This is for cross-compiling to musl.
1174         Reported by Rich Felker in
1175         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00043.html>.
1176         * m4/fclose.m4 (gl_FUNC_FCLOSE):
1177         * m4/fflush.m4 (gl_FUNC_FFLUSH):
1178         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
1179         Adjust to above change.
1180         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
1181         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
1182         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
1183         known not to work, or unknown.
1184
1185 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
1186
1187         msvc-inval: port to mingw-w64
1188         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
1189         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
1190         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00039.html>.
1191
1192 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
1193
1194         getcwd-lgpl: port to Tru64
1195         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
1196         Problem reported by Steven M. Schweda in
1197         <http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00010.html>.
1198
1199         tests: port large-fd POSIX spawn tests to OS X
1200         Problem reported by Daiki Ueno in
1201         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00031.html>.
1202         * tests/test-posix_spawn_file_actions_addclose.c:
1203         * tests/test-posix_spawn_file_actions_adddup2.c:
1204         * tests/test-posix_spawn_file_actions_addopen.c:
1205         Include <limits.h>, for OPEN_MAX, if available.
1206         (big_fd): New static function.
1207         (main): Use it.
1208
1209 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
1210
1211         tests/nap.h: use an adaptive delay to avoid ctime update issues
1212         The recent change in nap.h (5191133e) decreased the probability of lost
1213         races to about a third, however such problems could still be observed
1214         in virtual machines and openSUSE's OBS.
1215         Before, nap() detected the needed time once empirically and then used
1216         that delay (together with a small correction multiplier) in further
1217         calls.  This problem has been reported and discussed several times,
1218         including guesses about possible kernel issues:
1219         https://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html
1220         http://lists.gnu.org/archive/html/coreutils/2012-03/msg00088.html
1221         https://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00226.html
1222         http://bugs.gnu.org/12820
1223         https://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html
1224         https://lists.gnu.org/archive/html/bug-gnulib/2009-11/msg00007.html
1225         Now, nap() avoids the race alltogether by verifying on a reference
1226         file whether a timestamp difference has happened.
1227         * tests/nap.h (nap_fd): Define file descriptor variable for the
1228         witness file.
1229         (nap_works): Change return value to bool.  Change passing
1230         the old file's status by value instead of by reference as this function
1231         does no longer update that timestamp; rename the function argument from
1232         st to old_st.  Remove the local variables cdiff and mdiff because that
1233         function now returns true/false instead of the precise delay.
1234         (guess_delay): Remove function.
1235         (clear_tmp_file): Add new function to close and unlink the witness file.
1236         (nap): Instead of re-using the delay which has been calculated during
1237         the first call, avoid the race by actually verifying that a timestamp
1238         difference can be observed on the current file system.  Use an adaptive
1239         approach for the delay to minimize execution time.  Assert that the
1240         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
1241         = 2^31 - 1 = 2.1s.
1242         Use atexit to call clear_tmp_file when the process terminates.
1243
1244 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
1245
1246         sig2str: port to C++
1247         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
1248         Reported by Daniel J Sebald in
1249         <http://lists.gnu.org/archive/html/bug-gnulib/2013-06/msg00000.html>.
1250
1251 2013-05-30  Eric Blake  <eblake@redhat.com>
1252
1253         docs: mention cygwin shortcoming in <sys/un.h>
1254         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
1255
1256         vasnprintf: silence mingw compiler warning
1257         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
1258
1259 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1260
1261         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
1262         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
1263         This fixes a porting bug I recently reintroduced in regex, and
1264         some other instances that I discovered while testing the fix.
1265         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
1266         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
1267         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
1268         with an empty argument if this is a pedantic pre-C99 GCC.
1269         * lib/verify.h: Do not use _Static_assert if this is a pedantic
1270         pre-C11 GCC.
1271
1272         regex: adapt to locking regime instead of depending on pthread
1273         Instead of depending on pthread, adapt to whatever thread
1274         modules are in use.  Problem reported by Ludovic Courtès in
1275         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html>
1276         and by Mats Erik Andersson in
1277         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>.
1278         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1279         Support either the 'lock' module, or the 'pthread' module, or
1280         no module.
1281         (lock_lock, lock_unlock): New macros.
1282         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
1283         * modules/lock, modules/pthread (configure.ac): Add module indicator.
1284         * modules/regex (Depends-on): Remove pthread.
1285
1286 2013-05-22  Eric Blake  <eblake@redhat.com>
1287
1288         getgroups: document portability issues
1289         * doc/glibc-functions/initgroups.texi (initgroups): Mention
1290         multithread safety.
1291         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
1292         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
1293         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
1294         getugroups.
1295         * doc/posix-functions/getgroups.texi (getgroups): Mention
1296         multithread safety and mgetgroups.
1297
1298 2013-05-22  Bernhard Voelker <mail@bernhard-voelker.de>
1299
1300         test-lchown, test-chown: also skip test if chown fails with EPERM
1301         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
1302         skip this test, to handle FAT file systems.
1303         * tests/test-chown.h (test_chown): Likewise.
1304
1305 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1306
1307         regex: fix dfa race in multithreaded uses
1308         Problem reported by Ludovic Courtès in
1309         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00058.html>.
1310         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
1311         New macros.  All uses of __libc_lock_define, __libc_lock_init
1312         changed to use the first two of these.
1313         (__libc_lock_lock, __libc_lock_unlock): New macros, for
1314         non-glibc platforms.
1315         (struct re_dfa_t): Define the lock unconditionally.
1316         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
1317         '#ifdef _LIBC"s.
1318         * modules/regex (Depends-on): Add pthread, if we use the
1319         included regex.
1320
1321         * lib/regcomp.c: Do actions that are not needed for glibc,
1322         but may be needed elsewhere.
1323         (regfree, re_compile_internal): Destroy the lock.
1324         (re_compile_internal): Check for lock-initialization failure.
1325
1326         malloca: port to compilers that reject size-zero arrays
1327         This fixes a bug introduced in my previous patch.
1328         * lib/malloca.c (struct preliminary_header): Use an int
1329         rather than a character array of size int; that's simpler.
1330         (struct header): Remove, replacing with ...
1331         (union header): New type.  This avoids the need for declaring a
1332         character array of size zero, which is not allowed on some platforms.
1333         All uses changed.
1334
1335 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1336
1337         parse-datetime, tests: don't use "string" + int
1338         Recent versions of 'clang' complain about C source code that
1339         uses expressions of the form '"string literal" + integer',
1340         I guess on the theory that it's confusing for readers who are
1341         used to C++.  On those grounds I suppose it's OK to make this
1342         minor style change.
1343         * lib/parse-datetime.y (parse_datetime):
1344         * tests/test-fchdir.c (main):
1345         * tests/test-snprintf-posix.h (test_function):
1346         * tests/test-snprintf.c (main):
1347         * tests/test-vasnprintf-posix.c (test_function):
1348         * tests/test-vasnprintf.c (test_function):
1349         * tests/test-vsnprintf.c (main):
1350         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
1351         Rewrite '"str" + E' to '&"str"[E]'.
1352
1353 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
1354
1355         argmatch: port to C++
1356         * lib/argmatch.h [__cplusplus]: Add extern "C".
1357
1358         argp: typo fix
1359         * lib/argp-help.c: Typo in comment.
1360
1361 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
1362
1363         manywarnings: update for GCC 4.8.0
1364         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
1365         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
1366         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
1367         -Wmissing-noreturn, as they are duplicates of other warnings.
1368         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
1369         was documented to be flaky in earlier versions of GCC.
1370
1371         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
1372         * tests/test-spawn.c (main):
1373         * tests/test-sys_socket.c (main):
1374         * tests/test-sys_wait.c (main):
1375         Don't have a switch value that isn't covered by a case.
1376
1377         getaddrinfo-tests: port --enable-gcc-warnings to clang
1378         * tests/test-getaddrinfo.c (simple):
1379         Avoid casts from looser to stricter-aligned pointers.
1380
1381         thread: port --enable-gcc-warnings to clang
1382         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
1383         Include <signal.h>, to pacify a warning about pthread_sigmask.
1384
1385         stdio: use __REDIRECT for fwrite, fwrite_unlocked
1386         * lib/stdio.in.h (fwrite):
1387         When working around bug 11959, use __REDIRECT rather than '#define
1388         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
1389         fix the -Wunused-value issue with clang, and it works with GCC too.
1390         Problem with targeting reported by Eric Blake in
1391         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00067.html>.
1392         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
1393         debugging the fwrite issue.
1394
1395         stdio: port --enable-gcc-warnings to clang
1396         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
1397         since the GCC workaround for fwrite does not pacify clang.
1398
1399         sig2str: port --enable-gcc-warnings to clang
1400         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
1401
1402         obstack: port --enable-gcc-warnings to clang
1403         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
1404         Avoid casts from looser to stricter-aligned pointers.
1405
1406         memchr2: port --enable-gcc-warnings to clang
1407         * lib/memchr2.c (memchr2):
1408         Avoid casts from looser to stricter-aligned pointers.
1409
1410         mbsstr: port --enable-gcc-warnings to clang
1411         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
1412         Avoid casts from looser to stricter-aligned pointers.
1413
1414         malloca: port --enable-gcc-warnings to clang
1415         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
1416         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
1417
1418         inttostr: port --enable-gcc-warnings to clang
1419         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
1420
1421         warnings: port to clang
1422         Problem reported by Daniel P. Berrange via Eric Blake in
1423         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00055.html>.
1424         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
1425         (gl_WARN_ADD): Use it.
1426
1427 2013-05-11  Jim Meyering  <meyering@fb.com>
1428
1429         quotearg: do not read beyond end of buffer
1430         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
1431         end of an ARG for which no length was specified.  With an N-byte
1432         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
1433         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
1434         via coreutils' misc/sort-debug-keys.sh test and detected by running
1435         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
1436         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
1437         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
1438         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
1439         characters correctly."
1440
1441 2013-05-11  Daiki Ueno  <ueno@gnu.org>
1442
1443         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
1444         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
1445         compilation target is Mac OS X 10.6.
1446         Problem reported by parafin and Andoni Morales in
1447         <http://savannah.gnu.org/bugs/?37844> and
1448         <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00007.html>.
1449
1450 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1451
1452         mkdir-p: remove assumptions about umask and mode
1453         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
1454         umask is 0, or that MODE is a subset of MODE_BITS.
1455
1456 2013-05-10  Eric Blake  <eblake@redhat.com>
1457
1458         maint.mk: catch more abuse of HAVE_DECL in syntax-check
1459         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
1460
1461 2012-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
1462
1463         deps: require Automake >= 1.9.6 in generated Makefile fragments
1464
1465         That is the same minimal version required in the DEPENDENCIES file.
1466         Moreover, the old code generated a requirement of Automake >= 1.5,
1467         and that is an insanely outdated version.
1468
1469         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
1470         * tests/havelib/rpathlx/Makefile.am: Likewise.
1471         * tests/havelib/rpathly/Makefile.am: Likewise.
1472         * tests/havelib/rpathlyx/Makefile.am: Likewise.
1473         * tests/havelib/rpathlz/Makefile.am: Likewise.
1474         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
1475         * tests/havelib/rpathx/Makefile.am: Likewise.
1476         * tests/havelib/rpathy/Makefile.am: Likewise.
1477         * tests/havelib/rpathz/Makefile.am: Likewise.
1478
1479 2013-05-08  Eric Blake  <eblake@redhat.com>
1480
1481         bootstrap: AC_INIT may have more than four parameters
1482         * build-aux/bootstrap (extract_package_name): Correctly extract
1483         non-empty tarname field.  Avoid range in regex.
1484         Based on a report by Sami Kerola <kerolasa@iki.fi>.
1485
1486 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1487
1488         qacl: port to MS-Windows port of GNU Emacs
1489         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
1490         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
1491         port of GNU Emacs.  Problem reported by Eli Zaretskii in
1492         <http://bugs.gnu.org/14295#14>.
1493
1494 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
1495
1496         acl: include quote.h
1497         * lib/copy-acl.c: Include quote.h.
1498         * lib/set-acl.c: Likewise.
1499
1500 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
1501
1502         fchownat, renameat, unlinkat: update statat dependencies
1503         These modules use statat and lstatat, not fstatat; so depend on
1504         the statat module, which was split out recently from fstatat.
1505         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
1506         * modules/renameat: Likewise.  Also delete fstat.
1507         URL: http://bugs.gentoo.org/468790
1508
1509 2012-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
1510
1511         Assume gnulib is checked out from Git, not CVS
1512
1513         In fact, access to the gnulib repository through CVS has been
1514         disabled, or more precisely, got broken and was never restored; see:
1515         <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00008.html>
1516
1517         Note that support for CVS is not removed completely and unthinkingly
1518         by this change: only support for CVS checkouts of gnulib itself is
1519         removed.  For example, the 'bootstrap' script still cater to .cvsingore
1520         files and CVS directories, for the benefit of those poor gnulib clients
1521         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
1522
1523         * gnulib-tool: Simplify accordingly.
1524         * posix-modules: Likewise.
1525         * MODULES.html.sh: Likewise.
1526         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
1527         repository.
1528         * doc/gnulib-intro.texi: Likewise.
1529         * doc/gnulib-readme.texi: Likewise.
1530         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
1531         sample '.gitignore' file rather than a sample '.cvsignore'.
1532         * NEWS: Update.
1533         * m4/extensions.m4: While at it, remove a comment mistakenly referring
1534         to "CVS Autoconf" rather than "git Autoconf".
1535
1536 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
1537
1538         utimensat-tests, etc.: try to fix some races
1539         Problem reported by Bernhard Voelker in
1540         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00071.html>.
1541         I don't know whether this patch fixes that race condition, but it
1542         fixes *some* race conditions, so it should be a win.
1543         * modules/chown-tests (Depends-on):
1544         * modules/fchownat-tests (Depends-on):
1545         * modules/fdutimensat-tests (Depends-on):
1546         * modules/futimens-tests (Depends-on):
1547         * modules/lchown-tests (Depends-on):
1548         * modules/stat-time-tests (Depends-on):
1549         * modules/utimens-tests (Depends-on):
1550         * modules/utimensat-tests (Depends-on):
1551         Depend on nanosleep, not usleep.
1552         * modules/chown-tests (test_chown_LDADD):
1553         * modules/lchown-tests (test_lchown_LDADD):
1554         * modules/stat-time-tests (test_stat_time_LDADD):
1555         New macro.
1556         * modules/fchownat-tests (test_fchownat_LDADD):
1557         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
1558         * modules/futimens-tests (test_futimens_LDADD):
1559         * modules/utimens-tests (test_utimens_LDADD):
1560         * modules/utimensat-tests (test_utimensat_LDADD):
1561         Add $(LIB_NANOSLEEP).
1562         * modules/stat-time-tests (Files): Add tests/nap.h.
1563         * tests/nap.h: Include <limits.h>, for INT_MAX.
1564         (lt_mtime): Remove.
1565         (diff_timespec): New function.
1566         (get_stat): Rename from get_mtime.  All callers changed.
1567         (nap_works): Determine the needed delay by inspecting the
1568         file system's timestamp jumps; this should be more reliable.
1569         Look at both mtime and ctime, and take the maximum of the two jumps.
1570         (nap_works, guess_delay):
1571         Return a nanosecond cound, not a microsecond count.
1572         All callers changed.
1573         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
1574         failure.
1575         (nap): Multiply the guess by 1.125, to accommodate the case where
1576         the file system's clock is a bit slower than nanosleep's clock.
1577         * tests/test-stat-time.c (BASE): New macro.
1578         Include nap.h.
1579         (nap): Remove; nap.h now defines this.  This removes a duplicate
1580         implementation of 'nap'.
1581
1582         utimens, utimensat: work around Solaris UTIME_OMIT bug
1583         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
1584         Linux kernel 2.6.32 does.  Work around it in the same way.
1585         * doc/posix-functions/futimens.texi (futimens):
1586         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
1587         * lib/utimens.c (fdutimens, lutimens):
1588         * lib/utimensat.c (rpl_utimensat): Work around the bug.
1589
1590         gettext: now it's your responsibility to add -I$(top_builddir)/intl
1591         Formerly, it was your responsibility to do this for all Makefile.ams
1592         other than Gnulib's.  Now it's your responsibility to do it for
1593         Gnulib's Makefile.am, too.
1594         * NEWS: Document this.
1595         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
1596
1597         acl: include errno.h to get errno
1598         Reported by Daiki Ueno in
1599         <http://lists.gnu.org/archive/html/bug-gnulib/2013-04/msg00073.html>.
1600         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
1601
1602 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1603
1604         tests: don't assume getdtablesize () <= 10000000
1605         * modules/cloexec-tests:
1606         * modules/dup2-tests:
1607         * modules/dup3-tests:
1608         * modules/nonblocking-tests:
1609         * modules/posix_spawn_file_actions_addclose-tests:
1610         * modules/posix_spawn_file_actions_adddup2-tests:
1611         * modules/posix_spawn_file_actions_addopen-tests:
1612         * modules/unistd-safer-tests:
1613         Depend on the getdtablesize module.
1614         * tests/test-cloexec.c:
1615         * tests/test-dup-safer.c:
1616         * tests/test-dup2.c:
1617         * tests/test-dup3.c:
1618         * tests/test-fcntl.c:
1619         * tests/test-nonblocking.c:
1620         * tests/test-posix_spawn_file_actions_addclose.c:
1621         * tests/test-posix_spawn_file_actions_adddup2.c:
1622         * tests/test-posix_spawn_file_actions_addopen.c:
1623         Don't assume getdtablesize () <= 10000000.
1624
1625 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
1626
1627         extern-inline: work around bug in Sun c99
1628         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1629         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
1630
1631 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
1632
1633         qacl: new module, broken out from the acl module
1634         This is for GNU Emacs, which wants the acl functions but does
1635         not want 'error' invoked when they fail.
1636         * lib/acl-internal.h: Do not include error.h, quote.h.
1637         (ENOSYS, ENOTSUP): Remove; no longer needed.
1638         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
1639         * lib/acl.h: Include <stdbool.h>.
1640         (acl_errno_valid): New function.
1641         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
1642         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
1643         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
1644         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
1645         (ACL_INTERNAL_INLINE): Remove; no longer needed.
1646         * lib/file-has-acl.c (file_has_acl):
1647         * lib/qcopy-acl.c (qcopy_acl):
1648         * lib/qset-acl.c (qset_acl):
1649         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
1650         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
1651         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
1652         lib/file-has-acl.c, m4/acl.m4 to qacl module.
1653         Add lib/set-acl.c.
1654         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
1655         Add qacl.
1656         (configure.ac): Move gl_FUNC_ACL to qacl module.
1657         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
1658         Rename set-mode-acl.c to set-acl.c.
1659         * lib/acl-errno-valid.c: New file.
1660         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
1661         copy_acl function remains in copy-acl.c.
1662         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
1663         (_): Remove; not needed.
1664         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
1665         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
1666         * modules/qacl: New file, moved from the old modules/acl.
1667         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
1668         Remove set-mode-acl.c, copy-acl.c.
1669         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
1670
1671         alignof, intprops, malloca: port better to IBM's C compiler
1672         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
1673         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
1674         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
1675
1676 2013-04-25  Daiki Ueno  <ueno@gnu.org>
1677
1678         wctype-h: fix gettext link error on mingw
1679         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
1680         <https://lists.gnu.org/archive/html/bug-gettext/2013-03/msg00086.html>.
1681         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
1682         rpl_towupper and rpl_towupper.
1683
1684 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
1685
1686         regex-tests, regex: allow glibc re_search behavior
1687         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
1688         re_search input data to make the multi-character collating element
1689         in it clearly visible, and treat re_search return code 0 as valid.
1690         * m4/regex.m4 (gl_REGEX): Likewise.
1691
1692 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1693
1694         stdalign: doc fix
1695         * doc/posix-headers/stdalign.texi (stdalign.h):
1696         Gnulib doesn't support '_Alignof expr'.
1697
1698 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1699
1700         stdalign: port to stricter ISO C11
1701         ISO C11 says that _Alignof's operand must be a parenthesized type.
1702         Problem reported by Eli Zaretskii in
1703         <http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00960.html>.
1704         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1705         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
1706
1707 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
1708
1709         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
1710         Problem reported by Marco Atzeri in
1711         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
1712         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
1713         Simply delegate to the system <sys/select.h> in this case too.
1714         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
1715         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
1716         be needed on Solaris either.
1717         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
1718         Simply delegate to the system <sys/time.h> in this case.
1719
1720 2013-03-19  Karl Berry  <karl@gnu.org>
1721
1722         * build-aux/gnupload: check for erroneous (with gnupload) use of
1723         ftp-upload.gnu.org, tweak help.
1724
1725 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1726
1727         copy-file, rpmatch: fix problems found by cppcheck
1728         Reported by Arno Onken in
1729         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
1730         * lib/rpmatch.c (try): Fix memory leak.
1731         * lib/copy-file.c: Include "ignore-value.h".
1732         (qcopy_file_preserving): Ignore chown value.
1733         * modules/copy-file (Depends-on): Add ignore-value.
1734
1735 2013-01-27  Jim Meyering  <jim@meyering.net>
1736
1737         prefix-gnulib-mk: give better diagnostics
1738         * build-aux/prefix-gnulib-mk: Don't just "die".
1739         Give better diagnostics upon failure.
1740
1741 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
1742
1743         putenv: port to Solaris 10
1744         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
1745         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
1746         is not what is wanted here.
1747         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
1748         declaration, not for its existence.
1749
1750 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
1751
1752         mktime: fix configure typo
1753         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
1754
1755 2013-03-12  Eric Blake  <eblake@redhat.com>
1756
1757         regex-tests: skip UTF-8 test on mingw
1758         * modules/regex-tests (Depends-on): Add localcharset.
1759         * tests/test-regex.c (main): Use it to skip test on mingw.
1760
1761 2013-03-11  Eric Blake  <eblake@redhat.com>
1762
1763         tests: make it easier to bypass alarm time in debugger
1764         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
1765         * tests/test-memmem.c (main): Likewise.
1766         * tests/test-passfd.c (main): Likewise.
1767         * tests/test-ptsname.c (main): Likewise.
1768         * tests/test-ptsname_r.c (main): Likewise.
1769         * tests/test-strcasestr.c (main): Likewise.
1770         * tests/test-strstr.c (main): Likewise.
1771
1772         regex: port to mingw's recent addition of undeclared alarm
1773         * doc/posix-functions/alarm.texi (alarm): Document that alarm
1774         exists but still doesn't work in newer mingw.
1775         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
1776         not existence.  Ensure SIGALRM is not trapped.
1777         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
1778         * m4/regex.m4 (gl_REGEX): Likewise.
1779         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
1780         * tests/test-regex.c (main): Use correct probe for alarm.
1781
1782         putenv: avoid compilation warning on mingw
1783         * lib/putenv.c (_unsetenv): Protect variable declaration.
1784         (putenv): Fix indentation.
1785
1786 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
1787
1788         unistd: don't prevent Tru64 Unix from using gnulib strtod.
1789         * lib/unistd.in.h: be careful not to include un-needed system
1790         stdlib.h from here, because that prevents gnulib stdlib.h from
1791         defining rpl_strtod correctly.
1792
1793 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
1794
1795         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
1796         changesets, but for the 'precision 0' test.
1797         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1798         round-to-even, since POSIX says rounding is implementation-defined
1799         and OS X 10.8.2 rounds 1.51 to 1 here.
1800
1801         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
1802         changeset.
1803         * tests/test-vasprintf-posix.c (test_function): Don't insist on
1804         round-to-even, since POSIX says rounding is implementation-defined
1805         and OS X 10.8.2 rounds 1.5 to 1 here.
1806
1807 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1808
1809         vasnprintf-posix-tests: allow rounding 1.5 to 1
1810         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
1811         round-to-even, since POSIX says rounding is implementation-defined
1812         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
1813         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
1814
1815         bootstrap: port to FreeBSD
1816         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
1817         that treat '--' differently.  Reported by Mats Erik Andersson in
1818         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
1819
1820 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
1821
1822         regex: rename remaining __attribute calls to __attribute__.
1823         2012-02-25 changed definition of __attribute, but left some uses
1824         unchanged, preventing compilation of regex module on most non-gcc
1825         environments.
1826         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
1827         (lookup_collation_sequence_value, build_range_exp)
1828         (build_collating_symbol): Set attributes with newly renamed
1829         __attribute__ decorator.
1830         * lib/regex_internal.c (re_string_peek_byte_case)
1831         (re_node_set_compare, re_node_set_contains): Likewise.
1832         * lib/regexec.c (acquire_init_state_context): Likewise.
1833
1834 2013-03-06  Bruno Haible  <bruno@clisp.org>
1835
1836         execute: Revert last change, but use a different condition.
1837         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
1838         on Windows.
1839
1840 2013-03-05  Eric Blake  <eblake@redhat.com>
1841
1842         execute: drop dead code
1843         * lib/execute.c (nonintr_close, nonintr_open): Delete.
1844
1845 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
1846
1847         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
1848         * m4/non-recursive-gnulib-prefix-hack.m4
1849         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
1850         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
1851         <http://bugs.gnu.org/10305#237>.
1852
1853 2013-03-04  Eric Blake  <eblake@redhat.com>
1854
1855         test-getsockopt: avoid compiler warning
1856         * tests/test-getsockopt.c (includes): Ensure close is declared.
1857
1858 2013-03-02  Bruno Haible  <bruno@clisp.org>
1859
1860         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
1861         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
1862
1863 2013-03-02  Bruno Haible  <bruno@clisp.org>
1864
1865         gettext: Update to version 0.18.2.
1866         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
1867         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
1868                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
1869
1870 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
1871
1872         regex: merge patches from libc
1873
1874         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
1875         * lib/regex_internal.h (__attribute__): Rename from __attribute.
1876         All uses changed.
1877         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
1878         (re_string_wchar_at, re_string_elem_size_at):
1879         Mark function as possibly unused.
1880
1881         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
1882         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
1883         elements compare against the byte sequence of it, not its name.
1884
1885 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
1886
1887         putenv: port better to native Windows
1888         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1889         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
1890         (_unsetenv): Use _putenv if available.
1891         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
1892         a bit less likely to cause damage.
1893         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
1894         Fix the wrong value with SetEnvironmentVariable.
1895         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
1896         code better.
1897
1898 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
1899
1900         regex: ignore old-style-definition warnings
1901         * lib/regex.c: Add pragma to ignore these warnings.
1902         Problem reported for GNU tar by Pavel Raiskup.
1903
1904 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
1905
1906         getcwd: support coreutils better
1907         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
1908         but this might not be correct in coreutils, which disables
1909         the raw decl checks.  Problem reported by Nagendra in
1910         <http://bugs.gnu.org/10305#192>.
1911         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
1912         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
1913         Test the getcwd function, not any macro, since getcwd.c wants the
1914         function.
1915         * m4/getcwd.m4 (gl_FUNC_GETCWD):
1916         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
1917         compile, as might happen if there's a macro but no function.
1918
1919         strtod: support coreutils better
1920         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
1921         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
1922         disables the raw decl checks.  This assumes there is an underlying
1923         strtod, but that's a safe assumption these days.
1924         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
1925
1926         mountlist: port to HP NonStop
1927         Reported by Joachim Schmitz in
1928         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
1929         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
1930         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
1931
1932 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
1933
1934         extern-inline: avoid compilation error with HP-UX cc
1935         Reported by Richard Lloyd in
1936         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
1937         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
1938         Suppress extern inline with HP-UX cc.  This should be safe,
1939         though it may hurt performance.  Perhaps someone with some HP-UX
1940         experience can come up with a higher-performance fix.
1941
1942 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
1943
1944         putenv: fix heap corruption with mixed putenv/_putenv
1945         Problem reported by Michael Goffioul in
1946         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
1947         * lib/putenv.c (putenv) [HAVE__PUTENV]:
1948         Rely on _putenv to allocate the new environment.
1949         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
1950         * modules/putenv (configure.ac): Use it.
1951
1952 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
1953
1954         unsetenv etc.: port to Solaris 11 + GNU Emacs
1955         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
1956         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
1957         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
1958         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
1959         idea but is too painful to fix right now), and without this gnulib
1960         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
1961         compiling unsetenv.c on Solaris 11.  Fix the problem for
1962         unsetenv.c, and fix other similar occurrences.
1963
1964 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
1965
1966         secure_getenv: fix C++ declaration typo
1967         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
1968         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
1969         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
1970
1971 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
1972
1973         careadlinkat: stop exporting careadlinkatcwd
1974         Only Emacs used it directly, and Emacs no longer needs it.
1975         * NEWS: Document this simplification.
1976         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
1977         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
1978         for readlink.
1979         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
1980         Don't include stdlib.h; no longer needed.
1981         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
1982         * lib/relocwrapper.c: Adjust comment to match new dependencies.
1983         * modules/areadlink (Depends-on): Add readlink.
1984         (Maintainer): Add self.
1985         * modules/careadlinkat (Depends-on): Remove readlink.
1986
1987         extensions: port better to HP-UX
1988         This is merged from git Autoconf.
1989         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1990         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
1991         so that it's compatible with the value used when compiling.
1992
1993         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
1994         Problem reported by Mats Erik Andersson in
1995         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
1996         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
1997         openpty function exists, not merely when we intend to replace it.
1998         This corrects the 2013-01-31 patch, which mistakenly defined
1999         HAVE_OPENPTY even on hosts that lacked it.
2000
2001 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2002
2003         secure_getenv: fix include typo
2004         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
2005
2006         secure_getenv: port better to FreeBSD and Solaris
2007         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
2008         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
2009         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
2010         This works better on BSDish platforms.
2011         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
2012         Test for issetugid if __secure_getenv is missing.
2013
2014 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
2015
2016         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
2017         Some of these changes are merged in from git Autoconf.
2018         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
2019         When deciding whether to define _XOPEN_SOURCE, inspect the
2020         preprocessor macro __hpux instead of the more-heavyweight
2021         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
2022         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
2023         as the key for __EXTENSIONS__.
2024
2025         unistd: avoid namespace pollution on non-glibc systems
2026         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
2027         This avoids namespace pollution on non-glibc systems, by causing
2028         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
2029         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
2030         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
2031
2032 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
2033
2034         tmpdir: use secure_getenv
2035         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
2036         Define to secure_getenv, not getenv.
2037         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
2038         as that's now secure_getenv's job.
2039         * modules/tmpdir (Depends-on): Add secure_getenv.
2040
2041         tempname: use secure_getenv
2042         * lib/tempname.c (__secure_getenv) [!_LIBC]:
2043         Define to secure_getenv, not getenv.
2044         * modules/tempname (Depends-on):
2045         Add secure_getenv.
2046
2047         secure_getenv: new module
2048         * MODULES.html.sh (Extra functions based on ANSI C 89):
2049         Add secure_getenv.
2050         * doc/glibc-functions/secure_getenv.texi: New file.
2051         * doc/gnulib.texi: Include it.
2052         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
2053         New files.
2054         * lib/stdlib.in.h (secure_getenv): New decl.
2055         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
2056         * modules/stdlib (stdlib.h):
2057         Add secure_getenv checks.
2058
2059 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
2060
2061         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
2062         Reported for OS X 10.8.2 by Assaf Gordon in
2063         <http://bugs.gnu.org/13516>.
2064         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
2065         !HAVE_OPENAT && !HAVE_FDOPENDIR.
2066         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
2067         so that they can be kept in sync more easily.  Avoid PATH_MAX
2068         test on the Hurd.  Sync from test-getcwd.c for errno tests after
2069         mkdir or chdir failure.
2070         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
2071         lib/getcwd.c.
2072         (test_abort_bug): Do not test for the deep directory bug unless we
2073         have openat support.  Avoid PATH_MAX test on the Hurd.
2074
2075         regex-tests, regex: fix bug: memset undeclared
2076         * tests/test-regex.c: Don't include regex.h twice.  Include
2077         string.h, to declare memset.  Christensen's report also mentioned
2078         this issue.
2079         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
2080         test-regex.c, to avoid future problems like this.  Remove
2081         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
2082         twice.
2083
2084         regex-tests: fix link errors on older Solaris
2085         These need to link with @LIBINTL@ to get libintl_gettext.
2086         Problem reported by Tom G. Christensen in
2087         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
2088         * modules/regex-tests (test_regex_LDADD): New macro.
2089
2090 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
2091
2092         regex-tests: new module
2093         * modules/regex-tests, tests/test-regex.c: New files.
2094
2095         regex: fix off-by-one error in configure test
2096         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
2097
2098 2013-01-31  Eric Blake  <eblake@redhat.com>
2099
2100         regex: avoid infinite configure test
2101         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
2102
2103 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
2104
2105         openpty: fix bug where HAVE_OPENPTY wasn't defined
2106         See the thread starting at:
2107         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
2108         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
2109         openpty function exists, not merely when we intend to replace it.
2110
2111 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
2112
2113         sys_time: port to Solaris 2.6
2114         There is a circularity problem on Solaris 2.6, where <time.h> includes
2115         <sys/time.h> for struct timespec.  The include nesting is gnulib
2116         <time.h>, system <time.h>, gnulib <sys/time.h>, system
2117         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
2118         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
2119         <sys/siginfo.h>; the last, innermost file needs struct
2120         timestruc_t, which is defined in <sys/time.h>, which has not been
2121         fully parsed.  Problem reported by Tom G. Christensen in
2122         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
2123         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
2124         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
2125         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
2126         uses split double-inclusion guards.
2127
2128 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
2129
2130         regex: test for buffer overrun
2131         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
2132         for the just-fixed regex bug.
2133
2134 2013-01-29  Andreas Schwab  <schwab@suse.de>
2135
2136         regex: fix buffer overrun in regexp matcher [BZ #15078]
2137         * lib/regexec.c (extend_buffers): Add parameter min_len.
2138         (check_matching): Pass minimum needed length.
2139         (clean_state_log_if_needed): Likewise.
2140         (get_subexp): Likewise.
2141
2142 2013-01-28  Pádraig Brady  <P@draigBrady.com>
2143
2144         mountlist: don't consider "devtmpfs" as dummy
2145         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
2146         as there is storage associcated with it.
2147
2148 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2149
2150         futimens-tests, utimens-tests: Depend on gettext.
2151         This works around a problem introduced in my 2013-01-12 patch,
2152         which added @LIBINTL@ to these modules.
2153         * modules/futimens-tests (Depends-on):
2154         * modules/utimens-tests (Depends-on): Add gettext.
2155
2156 2013-01-26  Eric Blake  <eblake@redhat.com>
2157
2158         test-getpeername: fix typo
2159         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
2160
2161 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2162
2163         bootstrap: remove the need for a sorted .gitignore file
2164         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
2165         rename to insert_if_absent(), so that we don't need or generate
2166         a sorted .gitignore file.  We do require a .gitignore with no
2167         existing duplicate entries and enforce that.
2168         (sort_patterns): Remove this function as we now use the simpler
2169         technigue of inserting blacklist entries at the top of the file,
2170         assuming gnulib won't be inserting !whitelist entries.
2171
2172 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2173
2174         readlinkat: don't depend on gl_FUNC_OPENAT
2175         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
2176         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
2177         renameat.m4, symlinkat.m4; but one thing at a time.
2178
2179         statat: new module, split out from fstatat
2180         GNU Emacs needs the POSIX-specified fstatat, but not the
2181         gnulib-specified statat and lstat.  Split the latter two into a
2182         new module 'statat'.
2183         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
2184         * lib/openat.h, lib/statat.c (STATAT_INLINE):
2185         Rename from FSTATAT_INLINE. All uses changed.
2186         * modules/fstatat (Files): Remove lib/statat.c.
2187         (gl_MODULE_INDICATOR([fstatat])): Remove.
2188         (lib_SOURCES): Remove.
2189         (Maintainer): Add self.
2190         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
2191         * tests/test-fstatat.c (BASE): Don't define if already defined.
2192         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
2193
2194 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
2195
2196         tests: don't assume fd 99 is closed
2197         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
2198         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
2199         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
2200         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
2201         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
2202         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
2203         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
2204         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
2205         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
2206         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
2207         * tests/test-fwrite.c, tests/test-getpeername.c:
2208         * tests/test-getsockname.c, tests/test-getsockopt.c:
2209         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
2210         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
2211         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
2212         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
2213         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
2214         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
2215         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
2216         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
2217         * tests/test-unlinkat.c, tests/test-unlockpt.c:
2218         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
2219         Close file descriptor 99, instead of assuming it's already closed.
2220
2221 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
2222
2223         stpncpy: port to OS X 10.8
2224         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
2225         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
2226
2227 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
2228
2229         unistd: port to recent mingw
2230         * lib/unistd.in.h: Remove special invocation convention for mingw,
2231         which breaks for the latest mingw version.  See John W. Eaton in
2232         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
2233
2234         largefile: port better to Mac OS X 10.5
2235         This patch is backported from Autoconf git.
2236         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
2237         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
2238         with ino_t size being different for configuration time versus
2239         build/run time.  Problem reported by PHO in
2240         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
2241
2242 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
2243
2244         doc: clarify -Werror
2245         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
2246         clarify that it's intended for developers, not for ordinary builds,
2247         and mention --enable-gcc-warnings as one possible use.
2248
2249 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
2250
2251         stdint: fix build with Android's Bionic fox x86
2252         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
2253         was already included as _SSIZE_T_DEFINED_ might also be defined
2254         in include/machine/_types.h, which is included by stdio.h
2255
2256 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
2257
2258         net_if-tests: port to Solaris 7 + GCC 3.4.6
2259         Problem reported by Tom G. Christensen in
2260         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
2261         * tests/test-net_if.c (ni): Move to next the code that uses it,
2262         so that it's declared only if needed.
2263
2264 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
2265
2266         net_if-tests: port to older Solaris
2267         Problem reported by Tom G. Christensen in
2268         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2269         * modules/net_if-tests (NET_IF_LIB): New substitution.
2270         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
2271         (HAVE_IF_NAMEINDEX): New C macro.
2272         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
2273
2274         system-quote-tests: port to older Solaris
2275         Problem reported by Tom G. Christensen in
2276         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2277         * tests/test-system-quote-child.c (fopen, fread): Undef.
2278
2279         c-xvasprintf etc.: fix link errors on older Solaris
2280         These need to link with @LIBINTL@ to get libintl_gettext.
2281         Problem reported by Tom G. Christensen in
2282         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
2283         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
2284         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
2285         * modules/futimens-tests (test_futimens_LDADD):
2286         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
2287
2288 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
2289
2290         locale: port to Solaris 2.6 and 7 + GNU gettext
2291         * lib/locale.in.h: Just include_next <locale.h> when
2292         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
2293         when combining the localename module with GNU gettext 0.18.2.
2294         Problem reported by Tom G. Christensen in
2295         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
2296
2297 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
2298
2299         stdlib: port to Solaris 2.6
2300         Also, the code worked on Solaris 7 through 9 only by accident.
2301         Problem reported by Tom G. Christensen in
2302         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
2303         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
2304         simply include the system stdlib.h.
2305         * lib/getopt.in.h (__need_system_stdlib_h):
2306         * lib/pthread.in.h (__need_system_stdlib_h):
2307         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
2308         Define when including <stdlib.h>, to avoid problems at least for
2309         the pthread case on Solaris 2.6 and 7.  These .h files can get by
2310         with the system stdlib.h.
2311
2312 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
2313
2314         doc: update main copyright year
2315         * doc/gnulib.texi: Update copyright date.
2316
2317         doc: improve ISO 8601 discussion
2318         * doc/parse-datetime.texi (Combined date and time of day items):
2319         Specify more carefully what formats are supported and what is
2320         done with excess precision.
2321
2322 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
2323
2324         doc: avoid small caps
2325         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
2326         they're more trouble than they're worth.  Suggested by Karl Berry
2327         in <http://bugs.gnu.org/13360>.
2328
2329         regex: conform to strict C
2330         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
2331         From Aharon Robbins.
2332
2333         gnulib-tool: fix incompatibility with autopoint 0.18.2
2334         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
2335         Problem reported by Tom G. Christensen in
2336         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
2337
2338 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
2339
2340         fprintftime: bring back and reword fwrite comment
2341         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
2342
2343         stdio: remove now-unnecessary stdio.c
2344         Since stdio.in.h no longer uses inline functions, we no longer
2345         need to compile the extern versions.
2346         * lib/stdio.c: Remove.
2347         * modules/stdio (Files): Remove lib/stdio.c.
2348         (lib_SOURCES): Remove.
2349
2350         unicodeio: depend on stdio, not ignore-value
2351         * lib/unicodeio.c: Do not include ignore-value.h.
2352         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
2353         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
2354
2355         fprintftime: depend on stdio, not ignore-value
2356         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
2357         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
2358         since the stdio module arranges to silence that warning now.
2359         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
2360
2361 2012-10-04  Simon Josefsson  <simon@josefsson.org>
2362
2363         stdint-tests: Fix expanded-before-required-warning.
2364         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
2365
2366 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
2367
2368         fwrite: silence __wur only for older glibc versions
2369         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
2370         This will help us remove this workaround some time in the far future.
2371
2372 2013-01-03  Eric Blake  <eblake@redhat.com>
2373
2374         fwrite: silence __wur without using inline
2375         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
2376         just gcc, and in a way that avoids inline issues.
2377         * modules/stdio (Depends-on): Drop extern-inline.
2378
2379 2013-01-03  Jim Meyering  <jim@meyering.net>
2380
2381         update-copyright: avoid copyright notice date corruption
2382         Given a sequence of copyright year numbers in which the final
2383         one was a two-digit number that happened to be a substring of
2384         a preceding four-digit year number, we would mistakenly update
2385         the substring (from two- to four-digit) rather than the two-digit
2386         number at the end, which, combined with the addition of the current
2387         4-digit year number would yield two 5-digit year numbers, e.g.,
2388         here, it would convert the first "99" to "1999, 2013" rather than
2389         the final one:
2390           1991, 99
2391           11999, 20131, 1999
2392         * build-aux/update-copyright: Tighten a regexp.
2393         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
2394         Reported by Joseph Myers in
2395         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
2396
2397 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
2398
2399         regex: omit needless signed-pointer casts
2400         * lib/regcomp.c (build_charclass, build_charclass_op):
2401         Use char *, not unsigned char *, for class name and extra.
2402         The char values are always nonnegative so there's no need to
2403         insist on unsigned char * here, and using char * removes the need
2404         for casts.  Reported by Aharon Robbins in
2405         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2406
2407         regex: support Gawk, which never uses alloca
2408         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
2409         Do not include in this case.  Gawk doesn't supply a substitute
2410         alloca.h and doesn't need one.
2411
2412         regex: port __libc_lock_define usage to C89
2413         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
2414         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
2415         does not conform to C89, as it has an empty macro argument.
2416         Reported by Aharon Robbins in
2417         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2418
2419 2013-01-01  Eric Blake  <eblake@redhat.com>
2420
2421         maint: update all copyright year number ranges
2422         Run "make update-copyright".
2423
2424         version-etc: bump copyright year reported in --version
2425         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
2426
2427 2012-12-31  Eric Blake  <eblake@redhat.com>
2428
2429         sigprocmask-tests: skip test if pid is unexpectedly large
2430         * tests/test-sigprocmask.c (main): Add range check.
2431
2432         git-version-gen: avoid test -z portability glitch
2433         * build-aux/git-version-gen: Prefer portable test spelling, since
2434         git-version-gen is run on more than just developer machines.
2435
2436 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
2437
2438         git-version-gen: add --fallback option to use if git is not present
2439         * build-aux/git-version-gen: Add support for the new option --fallback,
2440         which comes into play when there is no $tarball_version_file and
2441         git is not working.
2442         (scriptversion): Update.
2443
2444         maint.mk: handle missing git with more grace
2445         * top/maint.mk (no-submodule-changes, public-submodule-commit):
2446         Quietly proceed if git is not present.
2447
2448 2012-12-31  Eric Blake  <eblake@redhat.com>
2449
2450         dup2: work around cygwin bug
2451         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
2452         * lib/dup2.c (rpl_dup2): Work around it.
2453         * doc/posix-functions/dup2.texi (dup2): Document it.
2454
2455 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
2456
2457         regex: remove unnecessary dependency on localcharset.h
2458         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
2459         hasn't been needed for years.
2460         * modules/regex (Depends-on): Remove localcharset.
2461
2462         regex: revert single-byte change
2463         * lib/regexec.c (check_node_accept_bytes): Revert previous change
2464         to this function.  This was alredy fixed in a different way, at
2465         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
2466         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
2467         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
2468
2469         regex: simplify based on Gawk version
2470         * lib/regex_internal.c (re_dfa_add_node): Simplify.
2471         Reported by Aharon Robbins in
2472         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2473
2474 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
2475
2476         regex: check that pattern char is single-byte
2477         Reported by Aharon Robbins in
2478         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2479         * lib/regexec.c (check_node_accept_bytes):
2480         Return 0 if the pattern string has a multibyte character here.
2481
2482         regex: implement rational ranges
2483         Reported by Aharon Robbins in
2484         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2485         * lib/regcomp.c (build_range_exp) [!_LIBC]:
2486         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
2487         Implement rational ranges.
2488
2489         regex: avoid redefining __wctype
2490         Reported by Aharon Robbins in
2491         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2492         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
2493         #undef before defining.
2494
2495         regex: port to hosts where malloc (0) == NULL
2496         Reported by Aharon Robbins in
2497         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2498         * lib/regex_internal.c (re_node_set_alloc):
2499         Don't assume that malloc (0) yields nonnull.
2500         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
2501         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
2502         * modules/regex (Files): Add m4/eealloc.m4.
2503
2504         regex: port to C89
2505         Reported by Aharon Robbins in
2506         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
2507         * lib/regcomp.c (init_word_char): Declaration before statement.
2508
2509         regex: merge glibc changes
2510         Also, copy the license wording from glibc.  This simplifies
2511         merging changes.  gnulib-tool will change the wording to GPL as
2512         appropriate, when importing it to other packages.  The only
2513         glibc change made since the last merge, which needs merging, is:
2514         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
2515         * lib/regex_internal.h (gettext): Remove use of INTUSE.
2516
2517         * users.txt: Add Emacs.
2518
2519         doc: omit mention of version when not needed
2520         * doc/gnulib-intro.texi (Portability and Application Code):
2521         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
2522         Don't mention particular dates or versions when not necessary, so
2523         that the documentation won't go out of date so quickly.
2524
2525         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
2526
2527 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
2528
2529         bootstrap: pass --force to autoreconf.
2530         * build-aux/bootstrap (AUTORECONFFLAGS): New.
2531         Add "--force" so that Automake's ylwrap and other such tools
2532         be updated at each bootstrap invocation.
2533         Use it.
2534
2535 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
2536
2537         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
2538         The earlier patch forgot to update one of the #if conditions, causing
2539         a problem on Debian testing i386 reported by Mats Erik Andersson
2540         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
2541         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
2542         (__argp_fmtstream_puts, argp_fmtstream_puts)
2543         (__argp_fmtstream_write, argp_fmtstream_write)
2544         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
2545
2546         * doc/gnulib-readme.texi: Minor fixups.
2547         (Portability guidelines): Modernize URLs.  Remove some repetition.
2548         (Indent with spaces not TABs): Reword to avoid too-long lines.
2549         Remove some '@ifset standalone' stuff that isn't used.
2550
2551         * doc/gnulib-readme.texi (Portability guidelines):
2552         ctype.h, not ctime.h.
2553
2554         Correct name of POSIX.1-2001.
2555         * doc/posix-functions/fgetc.texi (fgetc):
2556         * doc/posix-functions/fgets.texi (fgets):
2557         * doc/posix-functions/fread.texi (fread):
2558         * doc/posix-functions/fscanf.texi (fscanf):
2559         * doc/posix-functions/getc.texi (getc):
2560         * doc/posix-functions/getchar.texi (getchar):
2561         * doc/posix-functions/scanf.texi (scanf):
2562         POSIX.1-2001, not POSIX-2001.
2563
2564         doc: move README into manual
2565         * README: Move contents to new file doc/gnulib-readme.texi.
2566         Replace with a one-line summary.
2567         * doc/gnulib.texi (Brief Overview): New section,
2568         with old intro preface.  Include gnulib-readme.texi for contents.
2569         (Philosophy): Rename from "Introduction", since this
2570         section no longer introduces the rest.  Write a new preface.
2571         * doc/gnulib-readme.texi: New file, with the old contents of
2572         README texinfo-ized.  This way, the README info appears
2573         in the online and printed manual.
2574
2575 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
2576
2577         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
2578         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
2579         c_vasprintf() prototype.
2580
2581 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2582
2583         c-vasprintf: Fix "empty declaration" warning reported by GCC.
2584         * lib/c-vasprintf.h: Remove stray semicolon.
2585
2586 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
2587
2588         gettext: avoid obsolete macro AM_PROG_MKDIR_P
2589         It is obsolete and is planned to be removed from Automake 1.14; see
2590         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
2591         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
2592         (installdirs-data, installdirs-data-yes):
2593         Use $(MKDIR_P), not $(mkdir_p).
2594         * m4/intl.m4 (AM_INTL_SUBDIR):
2595         * m4/po.m4 (AM_PO_SUBDIRS):
2596         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
2597
2598 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
2599
2600         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
2601         On this platform, we are not optimizing but we are using
2602         the substitute for extern inlines, so compile as if
2603         C99-style extern inline, or a substitute, is available.
2604         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
2605         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
2606         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
2607         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
2608         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
2609         Declare as ARGP_FS_EI, not as extern.
2610         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
2611         (__option_is_short, _option_is_end, __option_is_end)
2612         [!_LIBC && __USE_EXTERN_INLINES]:
2613         Declare as ARGP_EI, not as extern.
2614
2615 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
2616
2617         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
2618         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
2619         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
2620         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
2621         ...), as the latter is fatal with older Autoconfs.
2622         Problem reported and fix suggested by Eric Blake in thread starting at
2623         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
2624
2625 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
2626
2627         AC_PROG_MKDIR_P: don't workaround if not buggy
2628         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
2629         Define only for Autoconf versions before 2.62.
2630         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
2631         undocumented m4_PACKAGE_VERSION, for consistency with the
2632         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
2633         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
2634         was introduced in 2.62.
2635
2636 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
2637
2638         New 'c-*printf' modules for formatted output in C locale.
2639
2640         New module 'c-vasnprintf'.
2641         * modules/c-vasnprintf: New file.
2642         * lib/c-vasnprintf.c: New file.
2643         * lib/c-vasnprintf.h: New file.
2644
2645         New module 'c-snprintf'.
2646         * modules/c-snprintf: New file.
2647         * modules/c-snprintf-tests: New file.
2648         * lib/c-snprintf.c: New file.
2649         * lib/c-snprintf.h: New file.
2650         * tests/test-c-snprintf.c: New file.
2651         * tests/test-c-snprintf.sh: New file.
2652
2653         New module 'c-vsnprintf'.
2654         * modules/c-vsnprintf: New file.
2655         * modules/c-vsnprintf-tests: New file.
2656         * lib/c-vsnprintf.c: New file.
2657         * lib/c-vsnprintf.h: New file.
2658         * tests/test-c-vsnprintf.c: New file.
2659         * tests/test-c-vsnprintf.sh: New file.
2660
2661         New module 'c-vasprintf'.
2662         * modules/c-vasprintf: New file.
2663         * modules/c-vasprintf-tests: New file.
2664         * lib/c-asprintf.c: New file.
2665         * lib/c-vasprintf.c: New file.
2666         * lib/c-vasprintf.h: New file.
2667         * tests/test-c-vasprintf.c  +: New file.
2668         * tests/test-c-vasprintf.sh: New file.
2669
2670         New module 'c-xvasprintf'.
2671         * modules/c-xvasprintf: New file.
2672         * modules/c-xvasprintf-tests: New file.
2673         * lib/c-xasprintf.c: New file.
2674         * lib/c-xvasprintf.c: New file.
2675         * lib/c-xvasprintf.h: New file.
2676         * tests/test-c-xvasprintf.c: New file.
2677         * tests/test-c-xvasprintf.sh: New file.
2678
2679 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
2680
2681         argp: better 'inline'
2682         Use extern-inline module to declare extern inline functions.
2683         This avoids some bogus warning diagnostics.  Problem discovered
2684         when modifying GNU tar to use the manywarnings module.
2685         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
2686         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
2687         Define based on extern-inline.
2688         * modules/argp (Depends-on): Add extern-inline.
2689
2690 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
2691
2692         filemode, sys_stat: Handle MPX files a la AIX.
2693         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
2694         * lib/sys_stat.in.h (S_ISMPX): New macro.
2695         * tests/test-sys_stat.c: Add tests for MPX files.
2696
2697 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
2698
2699         x-to-1: honor $PERL
2700         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
2701         a chance to use his preferred version of Perl.  This is typically
2702         required by Darwin users whose default /usr/bin/perl does not have all
2703         the libraries required by help2man, and who need to use their MacPorts
2704         installation of Perl instead.
2705
2706 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2707
2708         gnu-web-doc-update: add all the new files, even in new directories
2709         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
2710         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
2711         Use it.
2712         (main): Don't use cvsutils to get the list of unknown files,
2713         just add all the existing files and directories.
2714
2715 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
2716
2717         gnu-web-doc-update: improve --help
2718         * build-aux/gnu-web-doc-update: Move comments into --help.
2719
2720 2012-12-07  Eric Wong  <normalperson@yhbt.net>
2721
2722         mountlist: recognize more "dummy" file systems
2723         * lib/mountlist.c (ME_DUMMY_0):
2724         Add these dummy FS names to the list:
2725         - "debugfs" virtual filesystem for kernel debugging
2726         - "devpts" PTY slave filesystem
2727         - "devtmpfs" device filesystem on top of tmpfs/ramfs
2728         - "fusectl" control filesystem for FUSE
2729         - "mqueue" enumerates POSIX message queues
2730         - "rpc_pipefs" kernel <-> userspace bridge for NFS
2731         - "sysfs" is for exporting kernel objects
2732         - "devfs" device filesystem for Linux 2.4 and FreeBSD
2733
2734 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
2735
2736         extern-inline: avoid incompatibility with Darwin Libc
2737         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
2738         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
2739         Problem reported by Akim Demaille in
2740         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
2741
2742 2012-12-11  Simon Josefsson  <simon@josefsson.org>
2743
2744         gnupload: Work with GnuPG using gpg-agent (for smartcards).
2745         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
2746         let it handle password prompting.
2747
2748 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
2749
2750         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
2751         * lib/canonicalize.c (canonicalize_filename_mode):
2752         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
2753         fetching the current directory.  Don't overrun the beginning of
2754         rpath if there's no slashes after the MS-Windows drive letter.
2755
2756 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
2757
2758         maint.mk: avoid extra forks
2759         * top/maint.mk (_cfg_mk): The GNU make manual documents that
2760         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
2761         So use that instead of "$(shell test -f FILE && echo FILE)".
2762
2763 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
2764
2765         vasnprintf: fix ASCII_ONLY typo
2766         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2767         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2768         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
2769         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
2770         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
2771
2772 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
2773
2774         list, oset, xlist, xoset: fix extern inline issue with C99
2775         This was introduced by my recent changes for 'inline'.
2776         Problem reported for gettext by Daiki Ueno in
2777         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
2778         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
2779         (gl_list_nx_create, gl_list_size, gl_list_node_value)
2780         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
2781         (gl_list_previous_node, gl_list_get_at)
2782         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
2783         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
2784         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
2785         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
2786         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
2787         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
2788         (gl_list_iterator_free, gl_sortedlist_search)
2789         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
2790         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
2791         (gl_sortedlist_remove):
2792         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
2793         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
2794         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
2795         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
2796         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
2797         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
2798         (gl_list_add_at, gl_sortedlist_add):
2799         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
2800         Wrap these extern decls inside "#if 0", because they are implemented
2801         as inline functions, and extern inline is not what's wanted here.
2802         It would simplify these .h files to remove the extern decls entirely,
2803         although a downside would be less-clear separation between
2804         specification and implementation.
2805
2806 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2807
2808         sys_stat: no 'static inline'
2809         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
2810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
2811
2812         extern-inline: no 'static inline'
2813         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
2814         Do not require AC_C_INLINE.
2815         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
2816         'static inline', for older compilers.
2817
2818         snippet/warn-on-use: no 'static inline'
2819         * build-aux/snippet/warn-on-use.h:
2820         Remove unnecessary 'inline' in comment.
2821
2822         rbtree-list, rbtreehash-list: no 'static inline'
2823         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
2824         * lib/gl_anytree_list2.h (node_at):
2825         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
2826         (gl_oset_first, add_nodes_to_buckets):
2827         Now static, not static inline.
2828
2829         regex: no 'static inline'
2830         * lib/regex_internal.c (calc_state_hash):
2831         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
2832         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
2833         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
2834         Now static, not static inline.
2835         (inline) [__GNUC__ < 3 && _LIBC]:
2836         Remove macro; no longer needed.
2837
2838         xvasprintf: no 'static inline'
2839         * lib/xvasprintf.c (xstrcat):
2840         Now static, not static inline.
2841         * m4/xvasprintf.m4 (gl_XVASPRINTF):
2842         Do not require AC_C_INLINE.
2843
2844         parse-datetime, parse-duration: no 'static inline'
2845         * lib/parse-datetime.y (to_uchar):
2846         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
2847         (scale_n_add):
2848         Now static, not static inline.
2849         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
2850         * modules/parse-duration (configure.ac):
2851         Do not require AC_C_INLINE.
2852
2853         getaddrinfo: no 'static inline'
2854         * lib/getaddrinfo.c (validate_family):
2855         Now static, not static inline.
2856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
2857         Do not require AC_C_INLINE.
2858
2859         ftruncate, fts, lstat, openat, raise: no 'static inline'
2860         * lib/ftruncate.c (chsize_nothrow):
2861         * lib/fts.c (opendirat, diropen):
2862         * lib/lstat.c (orig_lstat):
2863         * lib/openat.c (orig_openat):
2864         * lib/raise.c (raise_nothrow):
2865         Now static, not static inline.
2866         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
2867         * m4/fts.m4 (gl_FUNC_FTS_CORE):
2868         * m4/lstat.m4 (gl_PREREQ_LSTAT):
2869         * m4/openat.m4 (gl_PREREQ_OPENAT):
2870         * m4/raise.m4 (gl_PREREQ_RAISE):
2871         Do not require AC_C_INLINE.
2872
2873         fflush, stat: no 'static inline'
2874         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2875         (clear_ungetc_buffer, disable_seek_optimization)
2876         (restore_seek_optimization, update_fpos_cache):
2877         * lib/stat.c (orig_stat):
2878         Now static, not static inline.
2879         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
2880         (update_fpos_cache):
2881         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
2882         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
2883         * m4/stat.m4 (gl_PREREQ_STAT):
2884         Do not require AC_C_INLINE.
2885
2886         error, filevercmp: no 'static inline'
2887         * lib/error.c (is_open, flush_stdout):
2888         * lib/filevercmp.c (order):
2889         Now static, not static inline.
2890         * m4/error.m4 (gl_PREREQ_ERROR):
2891         * modules/filevercmp (configure.ac):
2892         Do not require AC_C_INLINE.
2893
2894         dup, execute, fatal-signal, etc.: no 'static inline'
2895         * lib/dup.c (dup_nothrow):
2896         * lib/execute.c (nonintr_close, nonintr_open):
2897         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
2898         * lib/fopen.c (orig_fopen):
2899         * lib/freadseek.c (freadptrinc):
2900         * lib/freopen.c (orig_freopen):
2901         * lib/fstat.c (orig_fstat, fstat_nothrow):
2902         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
2903         (get_rusage_as_via_iterator):
2904         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
2905         * lib/getdtablesize.c (_setmaxstdio_nothrow):
2906         * lib/isatty.c (_isatty_nothrow):
2907         * lib/open.c (orig_open):
2908         * lib/read.c (read_nothrow):
2909         * lib/sigprocmask.c (signal_nothrow):
2910         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
2911         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
2912         * lib/wait-process.c (unregister_slave_subprocess):
2913         * lib/write.c (write_nothrow):
2914         Now static, not static inline.
2915         * lib/spawn-pipe.c (nonintr_open): Define only if
2916         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
2917         * m4/dup.m4 (gl_PREREQ_DUP):
2918         * m4/execute.m4 (gl_EXECUTE):
2919         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
2920         * m4/fopen.m4 (gl_PREREQ_FOPEN):
2921         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
2922         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
2923         * m4/fstat.m4 (gl_PREREQ_FSTAT):
2924         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
2925         * m4/isatty.m4 (gl_PREREQ_ISATTY):
2926         * m4/open.m4 (gl_PREREQ_OPEN):
2927         * m4/read.m4 (gl_PREREQ_READ):
2928         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
2929         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
2930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
2931         * m4/wait-process.m4 (gl_WAIT_PROCESS):
2932         * m4/write.m4 (gl_PREREQ_WRITE):
2933         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
2934         Do not require AC_C_INLINE.
2935
2936         c-strtod, memcoll, readutmp: no 'static inline'
2937         * lib/c-strtod.c (c_locale):
2938         * lib/memcoll.c (strcoll_loop):
2939         * lib/readutmp.c (desirable_utmp_entry):
2940         Now static, not static inline.
2941         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
2942         * m4/memcoll.m4 (gl_MEMCOLL):
2943         * m4/readutmp.m4 (gl_READUTMP):
2944         Do not require AC_C_INLINE.
2945
2946         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2947         * lib/arctwo.c (to_uchar):
2948         * lib/md4.c (set_uint32):
2949         * lib/md5.c (set_uint32):
2950         * lib/sha1.c (set_uint32):
2951         * lib/sha256.c (set_uint32):
2952         * lib/sha512.c (set_uint64):
2953         Now static, not static inline.  This is a bit simpler, and doesn't
2954         affect performance with GCC and default optimization.
2955         * m4/arctwo.m4 (gl_ARCTWO):
2956         * m4/md4.m4 (gl_MD4):
2957         * m4/md5.m4 (gl_MD5):
2958         * m4/sha1.m4 (gl_SHA1):
2959         * m4/sha256.m4 (gl_SHA256):
2960         * m4/sha512.m4 (gl_SHA512):
2961         Do not require AC_C_INLINE.
2962
2963         cond, lock, thread: better 'inline'
2964         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
2965         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
2966         New macros.  Use them instead of static inline, for header functions.
2967         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
2968         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2969         * lib/glthread/lock.c (gl_waitqueue_init)
2970         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
2971         * lib/glthread/thread.c (get_current_thread_handle):
2972         Change 'static inline' to 'inline'.
2973         * lib/glthread/cond.h, lib/glthread/thread.h:
2974         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2975         * m4/cond.m4 (gl_COND):
2976         * m4/lock.m4 (gl_PREREQ_LOCK):
2977         * m4/thread.m4 (gl_THREAD):
2978         Do not require AC_C_INLINE.
2979         * modules/cond, modules/thread (Depends-on): Add extern-inline.
2980
2981         chdir-long, cycle-check, savewd: better 'inline'
2982         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
2983         (find_non_slash):
2984         * lib/cycle-check.c (is_zero_or_power_of_two):
2985         * lib/savewd.c (savewd_delegating):
2986         Change 'static inline' to 'inline'.
2987         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
2988         Replace all remaining uses of 'static inline' with it.
2989         * lib/savewd.h:
2990         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2991         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
2992         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
2993         * m4/savewd.m4 (gl_SAVEWD):
2994         Do not require AC_C_INLINE.
2995         * modules/savewd (Depends-on): Add extern-inline.
2996
2997         base32, base64: no need for 'inline'
2998         * lib/base32.c (to_uchar, get_8, decode_8):
2999         * lib/base64.c (to_uchar, get_4, decode_4):
3000         Change 'static inline' to 'inline'.
3001         * m4/base32.m4 (gl_PREREQ_BASE32):
3002         * m4/base64.m4 (gl_PREREQ_BASE64):
3003         Do not require AC_C_INLINE.
3004
3005         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
3006         * lib/gl_array_oset.c (gl_array_nx_add_at):
3007         (gl_array_remove_at):
3008         * lib/gl_linkedhash_list.c (hash_resize_after_add)
3009         (add_to_bucket, remove_from_bucket):
3010         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
3011         Change 'static inline' to 'static', as it's simpler to omit
3012         'inline' unless there's a significant performance advantage.
3013
3014         list, oset, xlist, xoset, xsublist: simplify via extern inline
3015         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
3016         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
3017         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
3018         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
3019         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
3020         New macro.  Replace all uses of 'static inline' with it.
3021         [HAVE_INLINE]: Implement functions as *_INLINE functions,
3022         instead of as macros FOO that are defined to static inline
3023         functions FOO_inline.
3024         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
3025         * lib/gl_xsublist.c:
3026         Reimplement from scratch, by defining the corresponding *_INLINE
3027         macro and including the corresponding .h file.  This is simpler.
3028         * modules/list, modules/oset, modules/xlist, modules/xoset:
3029         (Files): Remove m4/gl_list.m4.
3030         (configure.ac): Remove gl_LIST.
3031         * m4/gl_list.m4: Remove.
3032         * modules/list, modules/oset, modules/xlist, modules/xoset:
3033         * modules/xsublist:
3034         (Depends-on): Depend on extern-inline, not inline.
3035
3036         xalloc: better 'inline'
3037         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
3038         New macro.  Replace all uses of 'static inline' with it.
3039         (static_inline): Remove.
3040         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
3041         Let 'extern inline' do the work automatically, instead of doing
3042         it by hand.
3043         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
3044         Remove.  All uses removed.
3045         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
3046
3047         gethrxtime: better 'inline'
3048         * lib/xtime.c: New file.
3049         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
3050         * lib/xtime.h (XTIME_INCLUDE):
3051         New macros.  Replace all uses of 'static inline' with them.
3052         * lib/gethrxtime.c (gethrxtime): Define only if
3053         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
3054         this source file is now always compiled, because of the extern inline.
3055         * lib/gethrxtime.h, lib/xtime.h:
3056         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3057         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
3058         if gethrtime works, as they're not needed in that case.
3059         (gl_XTIME): Do not require AC_C_INLINE.
3060         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
3061         compiled now.  Move the check into gl_GETHRXTIME.
3062         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
3063         (Depends-on): Add extern-inline.
3064         (configure.ac): gethrxtime is always compiled now.
3065         (lib_SOURCES): Add gethrxtime.c.
3066
3067         wctype-h: better 'inline'
3068         * lib/wctype-h.c: New file.
3069         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
3070         New macro.  Replace all uses of 'static inline' with it.
3071         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3072         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
3073         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
3074         (Depends-on): Add extern-inline.
3075
3076         unistd: better 'inline'
3077         * lib/unistd.c: New file.
3078         * lib/unistd.in.h (_GL_UNISTD_INLINE):
3079         New macro.  Replace all uses of 'static inline' with it.
3080         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3081         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
3082         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
3083         (Depends-on): Add extern-inline.
3084
3085         sys_socket: better 'inline'
3086         * lib/sys_socket.c: New file.
3087         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
3088         New macro.  Replace all uses of 'static inline' with it.
3089         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3090         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
3091         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
3092         (Depends-on): Add extern-inline.
3093
3094         stdio: better 'inline'
3095         * lib/stdio.c: New file.
3096         * lib/stdio.in.h (_GL_STDIO_INLINE):
3097         New macro.  Replace all uses of 'static inline' with it.
3098         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3099         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
3100         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
3101         (Depends-on): Add extern-inline.
3102
3103         sigaction: better 'inline'
3104         * lib/sig-handler.c: New file.
3105         * lib/sig-handler.h (SIG_HANDLER_INLINE):
3106         New macro.  Replace all uses of 'static inline' with it.
3107         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3108         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
3109         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
3110         (Depends-on): Add extern-inline.
3111
3112         selinux-h: better 'inline'
3113         * lib/se-context.c, lib/se-selinux.c: New files.
3114         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
3115         * lib/se-context.in.h (SE_CONTEXT_INLINE):
3116         New macro.  Replace all uses of 'static inline' with it.
3117         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3118         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
3119         New macro.  Replace all uses of 'static inline' with it.
3120         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3121         * modules/selinux-h (Files, lib_SOURCES):
3122         Add lib/se-context.c, lib/se-selinux.c.
3123         (Depends-on): Add extern-inline.
3124         (configure.ac): Do not require AC_C_INLINE.
3125
3126         pthread: better 'inline'
3127         * lib/pthread.c: New file.
3128         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
3129         New macro.  Replace all uses of 'static inline' with it.
3130         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3131         * m4/pthread.m4 (gl_PTHREAD_CHECK):
3132         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
3133         * modules/pthread (Files): Add lib/pthread.c.
3134         (Depends-on): Add extern-inline.
3135
3136         math: better 'inline'
3137         * lib/math.c: New file.
3138         * lib/math.in.h (_GL_MATH_INLINE):
3139         New macro.  Replace all uses of 'static inline' with it.
3140         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3141         * m4/math_h.m4 (gl_MATH_H):
3142         Do not require AC_C_INLINE.
3143         * modules/math (Files, lib_SOURCES):
3144         Add lib/math.c.
3145         (Depends-on): Add extern-inline.
3146
3147         count-one-bits: better 'inline'
3148         * lib/count-one-bits.c: New file.
3149         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
3150         New macro.  Replace all uses of 'static inline' with it.
3151         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3152         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
3153         Do not require AC_C_INLINE.
3154         * modules/count-one-bits (Files, lib_SOURCES):
3155         Add lib/count-one-bits.c.
3156         (Depends-on): Add extern-inline.
3157
3158         count-leading-zeros: better 'inline'
3159         * lib/count-leading-zeros.c: New file.
3160         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
3161         New macro.  Replace all uses of 'static inline' with it.
3162         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3163         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
3164         Do not require AC_C_INLINE.
3165         * modules/count-leading-zeros (Files, lib_SOURCES):
3166         Add lib/count-leading-zeros.c.
3167         (Depends-on): Add extern-inline.
3168
3169         bitrotate: better 'inline'
3170         * lib/bitrotate.c: New file.
3171         * lib/bitrotate.h (BITROTATE_INLINE):
3172         New macros.
3173         Replace all uses of 'static inline' with them.
3174         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3175         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
3176         (Depends-on): Add extern-inline.
3177         (configure.ac): Do not require AC_C_INLINE.
3178
3179 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
3180
3181         maint.mk: avoid gratuitous failure
3182         Reported by Stefano Lattarini in
3183         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
3184         * top/maint.mk (public-submodule-commit): Quote more safely.
3185
3186 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
3187
3188         canonicalize, canonicalize-lgpl: support MS-Windows file names
3189         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
3190         for test cases, which it'd be nice to add at some point.
3191         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
3192         * lib/canonicalize.c (canonicalize_filename_mode):
3193         * lib/canonicalize-lgpl.c (__realpath):
3194         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
3195         slash is at the beginning of the file name.  Use ISSLASH, instead
3196         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
3197         the first character with '/'.  Test for
3198         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
3199         with a drive letter.
3200         * lib/canonicalize.c (SLASHES): New macro.
3201         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
3202
3203 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
3204
3205         fts: introduce FTS_VERBATIM
3206         * lib/fts_.h (FTS_VERBATIM): New bit flag.
3207         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
3208         * lib/fts.c (fts_open): Honor it.
3209
3210 2012-11-09  Pádraig Brady  <P@draigBrady.com>
3211
3212         getlogin-tests: allow errno == ENXIO
3213         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3214         with errno == ENXIO (No controlling tty).
3215         getlogin_r-tests: Likewise. Also allow errno == ENOENT
3216         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
3217         with errno == ENOENT.  This was reported to happen in various
3218         situations on GNU/Linux.
3219
3220 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
3221
3222         getlogin-tests: allow errno == ENOENT
3223         * tests/test-getlogin.c (main): Skip tests if getlogin fails
3224         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
3225         when running a test in an Emacs shell buffer.
3226
3227 2012-11-08  Jim Meyering  <jim@meyering.net>
3228
3229         tests/nap.h: avoid warning about unused variable
3230         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
3231
3232         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
3233         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
3234         white space before each of the special-cased file names, to avoid
3235         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
3236         in http://bugs.gnu.org/12830.
3237
3238 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
3239
3240         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
3241         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
3242         fails with errno == EBADF when fd is opened with O_PATH.
3243         Reported by Jim Meyering in
3244         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
3245         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3246         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
3247
3248 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
3249
3250         test-utimens: speed up by taking shorter naps
3251         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
3252         New functions.
3253         (nap): Use them, to do a better job of guessing the delay.
3254         On Fedora 17 with ext4 atop md atop hard disks, this made
3255         test-utimens run 10x faster, because the test napped for
3256         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
3257         <http://bugs.gnu.org/12820#11>.
3258
3259 2012-11-07  Jim Meyering  <jim@meyering.net>
3260
3261         mountlist.c: fix a compilation failure
3262         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
3263         I introduced while transforming commit v0.0-7683-g613bcb6
3264
3265 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3266
3267         errno: port to LynxOS 178 2.2.2
3268         Problem reported by Joel Brobecker in
3269         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
3270         * doc/posix-headers/errno.texi (errno.h): Document this.
3271         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
3272         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
3273         Supply a string for EILSEQ.
3274         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
3275
3276 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
3277
3278         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
3279         Linux kernel 2.6.39 introduced O_PATH (see
3280         <http://lwn.net/Articles/433854/>) and this is a better fallback
3281         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
3282         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
3283         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
3284         * lib/fcntl.in.h (O_ACCMODE):
3285         * tests/test-fcntl-h.c (main):
3286         Do not reject O_ACCMODE merely because it has more than the
3287         minimal number of bits, as POSIX allows extensions here.
3288
3289 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
3290
3291         mountlist: do not classify a bind-mounted dir entry as "dummy"
3292         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
3293         the "none"-testing clause.
3294         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
3295         exception for bind-mounted directories.
3296
3297 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
3298
3299         quote: provide a means to escape strings with nul characters
3300         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
3301         (quote, quote_n): Rename formal arguments for consistency with
3302         quotearg.
3303
3304 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
3305
3306         test-raise: don't assume 199 is an invalid signal
3307         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
3308
3309         sh-quote-tests: port to Solaris 9
3310         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
3311         Problem reported by Dagobert Michelsen in
3312         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
3313
3314 2012-10-28  Jim Meyering  <jim@meyering.net>
3315
3316         maint.mk: rename a new configurable variable
3317         * top/maint.mk (_gl_translatable_string_re): Rename from
3318         translation-markers: _gl_ prefix to insulate from user Makefile code,
3319         and the _re suffix to inform that it's a regular expression.
3320
3321 2012-10-26  Eric Blake  <eblake@redhat.com>
3322
3323         maint.mk: let packages tweak sc_po_check pattern
3324         * top/maint.mk (sc_po_check): Add translation-markers, to allow
3325         finding files with other translation markers.
3326
3327 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
3328
3329         euidaccess: speed up 'configure' on GNU hosts
3330         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
3331         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
3332         it's needed only in this case.  Use AC_CHECK_DECLS, not
3333         AC_CHECK_DECLS_ONCE.
3334         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
3335         or AC_REQUIRE for AC_FUNC_GETGROUPS.
3336
3337         * lib/regexec.c (re_search_internal): Fix grammar in comment.
3338
3339 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3340
3341         fchmodat, fchownat, fstatat: port to non-inlining compilers
3342         Problem reported for FreeBSD 9 by Jim Meyering in
3343         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
3344         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
3345         New files, which define FCHMODAT_INLINE etc.
3346         * lib/fchmodat.c (FCHMODAT_INLINE):
3347         * lib/fchownat.c (FCHOWNAT_INLINE):
3348         * lib/fstatat.c (FSTATAT_INLINE):
3349         Remove, as chmodat.c etc. now do this.
3350         * modules/fchmodat (Files): Add lib/chmodat.c.
3351         * modules/fchownat (Files): Add lib/chownat.c.
3352         * modules/fstatat (Files): Add lib/statat.c.
3353
3354 2012-10-15  Jim Meyering  <jim@meyering.net>
3355
3356         fchmodat.c, fchownat.c: compile-impeding typos
3357         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
3358         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
3359         Introduced in commit v0.0-7636-gd202279.
3360
3361 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
3362
3363         fcntl-h: support GNU flags like O_IGNORE_CTTY
3364         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
3365         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
3366         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
3367         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
3368         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
3369         Define to 0 if not already defined.
3370         * tests/test-fcntl-h.c: Test these new flags.
3371
3372 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
3373
3374         faccessat, etc.: support AT_FDCWD-only use
3375         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
3376         this function only if its first argument is AT_FDCWD.
3377         Emacs wants faccessat for AT_EACCESS but not for any first-arg
3378         values other than AT_FDCWD, so it doesn't want all the openat
3379         machinery with fchdir etc.
3380         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
3381         * modules/fstatat, modules/mkdirat, modules/openat (Files):
3382         * modules/unlinkat (Files):
3383         Remove lib/openat-priv.h, as at-internal supplies this file.
3384         Removing this file here allows us to support programs like Emacs
3385         that avoid at-internal.
3386
3387         faccessat: speed up 'configure' on mainstream hosts
3388         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
3389         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
3390         since it's only on unusual platforms that we need to check for
3391         'access', and it's better not to slow 'configure' down on all
3392         platforms.
3393
3394         faccessat: port to Solaris 10
3395         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
3396         Needed on Solaris 10, which doesn't have AT_EACCESS,
3397         so we need the Gnulib fcntl.h, which defines it.
3398
3399 2012-10-14  Pádraig Brady  <P@draigBrady.com>
3400         canonicalize: fix C89 compilation
3401         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
3402         declarations so C89 is supported.  Also remove the comment
3403         referencing memorty allocation as the suggested feature could
3404         not be implemented as suggested.
3405         Reported by Michael Goffioul.
3406
3407 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
3408
3409         group-member: omit unnecessary dependencies
3410         This is for Emacs, which has its own allocator and where we
3411         don't want to use xalloc.
3412         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
3413         since we no longer use xmalloc.  Do not include stdbool.h, since
3414         the changes below happen to remove the only use of bool.
3415         (GROUPBUF_SIZE): New constant.
3416         (struct group_info): Remove n_groups member.  Add groupbuf member.
3417         This lets us get the groups without using malloc, usually.
3418         (free_group_info, get_group_info): Adjust to this.
3419         (get_group_info): Return the number of groups found, or -1 on error.
3420         Use plain malloc not xmalloc, and treat its failure as if there
3421         are no groups, as the user already loses in case of error.
3422         (group_member): Simplify, based on changes to get_group_info.
3423         * modules/group-member (Depends-on): Remove dependencies on
3424         xalloc and stdbool.  Add dependency on xalloc-oversized.
3425
3426 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
3427
3428         gethrxtime: port to C++
3429         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
3430
3431 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3432
3433         ptsname: fix macro-name typo
3434         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
3435
3436 2012-10-03  Simon Josefsson  <simon@josefsson.org>
3437
3438         inttostr: Relax license.
3439         * modules/inttostr (License): Change from LGPL to LGPLv2+.
3440
3441 2012-10-03  Eric Blake  <eblake@redhat.com>
3442
3443         ptsname_r: support ptys returned by FreeBSD posix_openpt
3444         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
3445         lives in /dev/pts/.
3446
3447 2012-10-02  Eric Blake  <eblake@redhat.com>
3448
3449         pselect: reject invalid file descriptors
3450         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
3451         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
3452         * modules/pselect (Depends-on): Add dup2.
3453         * doc/posix-functions/pselect.texi (pselect): Document this.
3454
3455         select: reject invalid file descriptors
3456         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
3457         * lib/select.c (rpl_select) [!win32]: Work around it.
3458         * modules/select (Depends-on): Add dup2.
3459         * doc/posix-functions/select.texi (select): Document this.
3460
3461         select: enhance test
3462         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
3463         New functions.
3464         (test_function): Enhance test.
3465         (do_select_bad_fd): Avoid any stale errno values.
3466
3467         ptsname: reject invalid file descriptors
3468         http://www.austingroupbugs.net/view.php?id=503
3469         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
3470         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
3471         * modules/stdlib (Makefile.am): Replace witness.
3472         * lib/stdlib.in.h (ptsname): Allow for replacement.
3473         * modules/ptsname (configure.ac): Trigger replacement.
3474         * doc/posix-functions/ptsname.texi (ptsname): Document this.
3475
3476 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
3477
3478         hash-pjw-bare: new module
3479         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
3480         * lib/hash-pjw-bare.h: Likewise.
3481         * modules/hash-pjw-bare: New file.
3482         * MODULES.html.sh (Misc): Add it.
3483
3484 2012-10-02  Eric Blake  <eblake@redhat.com>
3485
3486         manywarnings: cater to more gcc infelicities
3487         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
3488         -Wuninitialized without -O.
3489
3490 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
3491
3492         select, poll tests: Make setsockopt invocation effective.
3493         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
3494         the bind() call.
3495         * tests/test-select.h (open_server_socket): Likewise.
3496
3497 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
3498
3499         sockets, sys_stat: restore AC_C_INLINE
3500         This undoes the 2012-09-22 patch.
3501         * m4/sockets.m4 (gl_SOCKETS):
3502         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3503         Restore AC_C_INLINE, since MSVC requires __inline or _inline
3504         and does not support plain 'inline'.  Reported by Bruno Haible in
3505         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
3506
3507 2012-09-30  Bruno Haible  <bruno@clisp.org>
3508
3509         localeconv tests: Avoid test failure on OpenIndiana.
3510         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
3511         skip the 'grouping' and 'mon_grouping' tests.
3512         Reported by Jim Meyering.
3513
3514 2012-09-30  Bruno Haible  <bruno@clisp.org>
3515
3516         havelib: Follow libtool developments.
3517         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
3518         Suggested by Simon Josefsson.
3519
3520 2012-09-29  Jim Meyering  <meyering@redhat.com>
3521
3522         fstatat.c: fix a compile-impeding typo
3523         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
3524         Introduced in commit v0.0-7636-gd202279.
3525         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
3526
3527 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
3528
3529         extern-inline: provide a -Wundef safe config.h
3530         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
3531         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
3532         to produce a -Wundef warning free config.h.
3533
3534 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3535
3536         hash-pjw: relax license to LGPLv2+
3537         * modules/hash-pjw (License): Relax, with consent of author.
3538
3539 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3540
3541         maint.mk: fix strict vs. lazy variable issues with RELEASE
3542         * top/maint.mk (_equal): New function.
3543         (member_check): Strip the result to avoid spurious spaces.
3544         (url_dir_list): Do not use ifeq, which is strict, as it will
3545         require RELEASE_TYPE to be defined.
3546         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
3547         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
3548         (announcement_Cc_alpha,announcement_mail_headers_alpha)
3549         (announcement_Cc_beta,announcement_mail_headers_beta)
3550         (announcement_Cc_stable,announcement_mail_headers_stable): these.
3551         (release): Do not depend on $(release-type), as it forces its
3552         evaluation.  Bounce to it.
3553
3554 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
3555
3556         maint.mk: formatting changes
3557         * top/maint.mk: Indent bodies of if's.
3558
3559 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
3560
3561         maint.mk: factor the validation of RELEASE_TYPE
3562         With help from Jim Meyering.
3563         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
3564         * top/maint.mk (_empty, _sp): Move their definition earlier.
3565         (member-check, release-type): New.
3566         Use the latter instead of $(RELEASE_TYPE).
3567         Remove now useless local checks.
3568
3569 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3570
3571         maint.mk: provide "make upload" to ease uploading
3572         See
3573         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
3574         Do not depend simply on the current $(VERSION), as there may have been
3575         new commits since the tarball generation.  Rather, rely on $(RELEASE),
3576         as "make release-commit" already does.
3577
3578         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
3579         "make TYPE".
3580
3581         * top/maint.mk (upload_command, upload, release): New.
3582         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
3583         (VERSION): first word of $(RELEASE) is always right.
3584         (emit_upload_commands): Adjust.
3585         * top/README-release: Update.
3586
3587 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
3588
3589         maint.mk: silent rules
3590         With help from Stefano Lattarini.
3591         * top/maint.mk (writable-files): Use $(AM_V_GEN).
3592         (announcement): Use $(AM_V_at).
3593
3594 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3595
3596         localename: port gl_locale_name_thread_unsafe to FreeBSD
3597         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
3598         and use the simpler FreeBSD implementation on Mac OS X as well.
3599         Original idea suggested by Ed Maste in
3600         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
3601
3602 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
3603
3604         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
3605         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
3606         * lib/mbuiter.c, lib/xsize.c: New files.
3607         * lib/binary-io.h (BINARY_IO_INLINE):
3608         * lib/eealloc.h (EEALLOC_INLINE):
3609         * lib/mbfile.h (MBFILE_INLINE):
3610         * lib/mbiter.h (MBITER_INLINE):
3611         * lib/mbuiter.h (MBUITER_INLINE):
3612         * lib/xsize.h (XSIZE_INLINE):
3613         New macros.
3614         Replace all uses of 'static inline' with them.
3615         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3616         * m4/eealloc.m4 (gl_EEALLOC):
3617         * m4/mbfile.m4 (gl_MBFILE):
3618         * m4/mbiter.m4 (gl_MBITER):
3619         * m4/xsize.m4 (gl_XSIZE):
3620         Do not require AC_C_INLINE.
3621         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
3622         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
3623         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
3624         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
3625         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
3626         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
3627         * modules/binary-io, modules/eealloc, modules/mbfile:
3628         * modules/mbiter, modules/mbuiter:
3629         (Depends-on): Add extern-inline.
3630
3631         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
3632         * lib/pipe-filter-aux.c: New file.
3633         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
3634         Replace all uses of 'static inline' with it.
3635         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3636         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
3637         (filter_retcode): No real need for inline here.
3638         * modules/pipe-filter-gi, modules/pipe-filter-ii:
3639         (Files): Add lib/pipe-filter-aux.c.
3640         (Depends-on): Add extern-inline.
3641         (configure.ac): Do not require AC_C_INLINE.
3642         (lib_SOURCES): Add pipe-filter-aux.c.
3643
3644         fdutimensat: omit unnecessary AC_C_INLINE
3645         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
3646
3647         fchmodat, fchownat, fstatat: use extern-inline
3648         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
3649         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
3650         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
3651         New macros.
3652         * lib/openat.h:
3653         Replace all uses of 'static inline' with them.
3654         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3655         * modules/fchmodat, modules/fchownat, modules/fstatat:
3656         * modules/openat-h:
3657         (Depends-on):
3658         Add extern-inline.
3659         (configure.ac): Remove AC_C_INLINE.
3660
3661         acl, mbchar, priv-set: use extern-inline
3662         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
3663         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
3664         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
3665         New macros.
3666         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
3667         Replace all uses of 'static inline' with it.
3668         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
3669         * m4/acl.m4 (gl_FUNC_ACL):
3670         * m4/mbchar.m4 (gl_MBCHAR):
3671         * m4/priv-set.m4 (gl_PRIV_SET):
3672         Remove AC_C_INLINE, since 'inline' is no longer used directly.
3673         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
3674         Add extern-inline.
3675
3676         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
3677         * m4/sockets.m4 (gl_SOCKETS):
3678         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
3679         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
3680         environments where it's already guaranteed to work, so we needn't
3681         check for it at 'configure'-time.
3682
3683         tls-tests: omit unnecessary 'inline'
3684         * tests/test-tls.c (perhaps_yield): No longer inline.
3685         Simplicity and portability trump efficiency in test cases.
3686
3687         utimens-tests: avoid unnecessary 'inline'
3688         * modules/fdutimensat-tests (configure.ac):
3689         * modules/futimens-tests (configure.ac):
3690         * modules/utimens-tests (configure.ac):
3691         * modules/utimensat-tests (configure.ac):
3692         Remove AC_C_INLINE.
3693         * tests/test-utimens-common.h (ctime_compare):
3694         No longer inline.  Simplicity and portability trump efficiency here.
3695
3696         misc: don't limit commentary to inline functions
3697         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
3698         * lib/xalloc-oversized.h, lib/xsize.h:
3699         Contrast macros to functions in general, not just to inline functions,
3700         when the commentary does not apply only to inline functions.
3701
3702 2012-09-20  Jim Meyering  <meyering@redhat.com>
3703
3704         non-recursive-gnulib-prefix-hack: new module
3705         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
3706         the file that originated in Bison.
3707         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
3708         largely copied from a snippet that resided in bison's configure.ac.
3709         * modules/non-recursive-gnulib-prefix-hack: New file.
3710         * MODULES.html.sh (Support for maintaining and releasing projects):
3711         Add it.
3712
3713 2012-09-18  Jim Meyering  <meyering@redhat.com>
3714
3715         maint.mk: generalize _gl_tight_scope for non-recursive make
3716         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
3717         that *.h would describe additional .h files in the directory
3718         specified by $(_gl_TS_dir).  I.e., add this...
3719         (_gl_TS_other_headers): New variable.
3720
3721         maint.mk: exempt trailing blanks found in "binary" files
3722         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
3723         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
3724         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3725
3726 2012-09-17  Jim Meyering  <meyering@redhat.com>
3727
3728         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
3729         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
3730         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
3731         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3732
3733 2012-09-17  Jim Meyering  <meyering@redhat.com>
3734
3735         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
3736         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
3737         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
3738         It is not in the same category as "exit (0)" or "exit (1)", and
3739         besides, I know of no symbolic name for that 77.  Reported by
3740         Richard W.M. Jones in
3741         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3742
3743 2012-09-17  Jim Meyering  <meyering@redhat.com>
3744
3745         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
3746         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
3747         all uses of #define, not just those that start in column 1.
3748         Richard W.M. Jones reported a false positive in
3749         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
3750
3751 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3752
3753         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
3754         * lib/localcharset.c (locale_charset) [DARWIN7]:
3755         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
3756         as these two values are incompatible.  Problem reported by Max Horn.
3757         For more discussion, please see
3758         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
3759
3760         doc: document sticky-EOF issue
3761         * doc/posix-functions/fgetc.texi (fgetc):
3762         * doc/posix-functions/fgets.texi (fgets):
3763         * doc/posix-functions/fread.texi (fread):
3764         * doc/posix-functions/fscanf.texi (fscanf):
3765         * doc/posix-functions/getc.texi (getc):
3766         * doc/posix-functions/getchar.texi (getchar):
3767         * doc/posix-functions/scanf.texi (scanf):
3768         Mention that glibc and default Solaris do not conform to
3769         C99 and POSIX-2001 or later, with respect to how getchar
3770         etc. behave when feof reports nonzero.
3771
3772 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3773
3774         poll: fix poll(0, NULL, msec)
3775         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
3776         but nfd is 0.  In that case poll should behave like select.
3777
3778 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
3779             Paolo Bonzini <bonzini@gnu.org>
3780
3781         poll: fix for systems that can't recv() on a non-socket
3782         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
3783         is readable.  In this case POLLHUP will not be supported.
3784         * doc/posix-functions/poll.texi: Document this.
3785
3786 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
3787
3788         poll/select: document portability problems not fixed by Gnulib.
3789         * doc/posix-functions/poll.texi: poll does not work well on
3790         pipes under Windows.  It has the same limitations as select on
3791         BeOS.
3792         * doc/posix-functions/select.texi: select does not work well
3793         on pipes under Windows.
3794
3795 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3796
3797         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
3798         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
3799         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
3800         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
3801
3802 2012-09-06  Eric Blake  <eblake@redhat.com>
3803
3804         net_if: give more details about the bug being fixed
3805         * doc/posix-headers/net_if.texi: Add clarification.
3806
3807 2012-09-05  Eric Blake  <eblake@redhat.com>
3808
3809         net_if: new module
3810         * modules/net_if: New module, borrowing ideas from netinet_in.
3811         * m4/net_if_h.m4: New file.
3812         * lib/net_if.in.h: Likewise.
3813         * doc/posix-headers/net_if.texi (net/if.h): Document it.
3814         * MODULES.html.sh (lacking POSIX:2008): Likewise.
3815         * tests/test-net_if.c: Make function checks conditional.
3816         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
3817
3818 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
3819
3820         readutmp: fix non-portable UT_PID use
3821         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
3822         Use `UT_PID (u) > 0' as absolute condition.
3823
3824 2012-09-04  Jim Meyering  <meyering@redhat.com>
3825
3826         fts: reduce two or more trailing spaces to just one, usually
3827         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
3828         or more slashes, trim all but the final one.  But if a name consists
3829         solely of two slashes, don't modify it.  If it consists solely of
3830         three or more slashes, strip all but one.
3831
3832         This is part of the solution to a minor problem with rm:
3833         it would print a bogus ELOOP diagnostic when failing to remove
3834         the slash-decorated name of a symlink-to-directory:
3835
3836             $ mkdir d && ln -s d s && env rm -r s/
3837             rm: cannot remove 's': Too many levels of symbolic links
3838
3839         With the change below and a trivial don't-trim-trailing-slashes
3840         adjustment to remove.c, it does this:
3841
3842             $ env rm -r s/
3843             rm: cannot remove 's/': Not a directory
3844
3845         Improved by: Eric Blake
3846
3847         fts: when there is no risk of overlap, use memcpy, not memmove
3848         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
3849
3850 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
3851
3852         stdbool: be more compatible with mixed C/C++ compiles
3853         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
3854         Define to bool, true, false, respectively, as GCC's builtin
3855         stdbool.h does.  Problem reported by Michael Goffioul in
3856         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
3857
3858 2012-08-28  Jim Meyering  <meyering@redhat.com>
3859
3860         revert last change: it was not needed
3861         * tests/test-vc-list-files-git.sh: There's already a test for
3862         a working git, just below.
3863
3864 2012-08-28  Jim Meyering  <meyering@redhat.com>
3865
3866         tests: test-vc-list-files-git.sh: skip if git is not available
3867         * tests/test-vc-list-files-git.sh: Skip this test when git is
3868         not available.
3869
3870 2012-08-26  Bruno Haible  <bruno@clisp.org>
3871
3872         gnulib-tool: Remove no-op option --no-changelog.
3873         * gnulib-tool (func_usage): Don't mention --no-changelog.
3874         (do_changelog): Remove variable.
3875         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3876
3877 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3878
3879         doc: remove fdl-1.2.texi
3880         It is no longer used or maintained, and its use of @acronym
3881         is problematic.  See the thread containing
3882         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
3883         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
3884         * doc/old-licenses/fdl-1.2.texi: Remove.
3885
3886         execinfo: port to FreeBSD
3887         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
3888         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
3889         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
3890         * modules/execinfo (Link): Add $(LIB_EXECINFO).
3891
3892 2012-08-23  Jim Meyering  <meyering@redhat.com>
3893
3894         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
3895         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
3896         to placate gcc's -Wold-style-declaration.
3897
3898 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3899
3900         doc: do not use @acronym
3901         * doc/inet_ntoa.texi (inet_ntoa):
3902         * doc/parse-datetime.texi (Seconds since the Epoch)
3903         (Specifying time zone rules):
3904         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
3905         Don't use @acronym.  Problem reported by John Darlington in
3906         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
3907
3908 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3909
3910         stdnoreturn: port to newer GCCs
3911         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
3912         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
3913         Problem reported by Jim Meyering in
3914         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
3915         Also, rename the 'test' function to a void a clash with the
3916         already-supplied 'main' function; this fixes a bug that incorrectly
3917         rejected GCC 4.7.1's <stdnoreturn.h>.
3918         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
3919         Document GCC problem.
3920
3921 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
3922
3923         pipe-filter: fix comment typo
3924         * lib/pipe-filter.h: Mention correct function.
3925
3926 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
3927
3928         execinfo: new module
3929         This is for Emacs.  Currently, it provides a no-effect stub
3930         on all platforms where it does not already work.
3931         It already works on glibc-based systems, and on Solaris 11.
3932         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
3933         New files.
3934         * doc/glibc-headers/execinfo.texi (execinfo.h):
3935         * MODULES.html.sh (Misc): Document it.
3936
3937 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
3938
3939         extern-inline: support old GCC 'inline'
3940         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
3941         if available.  This applies to GCC versions 2.7 through 4.2, or
3942         when newer GCC is using -fgnu89-inline.  The goal is to address
3943         some of the performance issues mentioned by Bruno Haible in
3944         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
3945
3946 2012-08-20  Eric Blake  <eblake@redhat.com>
3947
3948         maint.mk: avoid redundant file name in message
3949         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
3950         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
3951         (sc_makefile_path_separator_check): Remove bogus $(ME).
3952
3953 2012-08-20  Mike Frysinger <vapier@gentoo.org>
3954
3955         timer-time: fix link order when static linking on glibc
3956         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3957         _after_ -lrt so that it's significant.
3958
3959 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
3960
3961         timespec: omit unnecessary AC_C_INLINE
3962         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
3963
3964         stat-time: omit unnecessary AC_C_INLINE
3965         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
3966         Do not require AC_C_INLINE.
3967
3968         ignore-value: omit unnecessary AC_C_INLINE
3969         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
3970
3971         sys_select: avoid 'static inline'
3972         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
3973
3974         mktime: avoid 'static inline'
3975         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
3976         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
3977
3978 2012-08-19  Bruno Haible  <bruno@clisp.org>
3979
3980         gnulib-tool: Improve coding style.
3981         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
3982         func_emit_lib_Makefile_am.
3983         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3984
3985 2012-08-19  Bruno Haible  <bruno@clisp.org>
3986
3987         gnulib-tool: Fix indentation.
3988         * gnulib-tool (func_import): Fix indentation.
3989
3990 2012-08-19  Bruno Haible  <bruno@clisp.org>
3991
3992         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
3993         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
3994         on the list of removed files.
3995
3996 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
3997
3998         test-parse-datetime: avoid glibc leap-second glitch
3999         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
4000         with the 2012 rules.  Problem reported by Bruce Dubbs in
4001         <http://bugs.gnu.org/12206>.
4002
4003 2012-08-14  Bruno Haible  <bruno@clisp.org>
4004
4005         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
4006         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
4007         from argument.
4008         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4009
4010 2012-08-14  Eric Blake  <eblake@redhat.com>
4011
4012         ldexp: relax license
4013         * modules/ldexp (License): Trivial relax, since the module only
4014         provides a permissively licensed m4 file.
4015
4016 2012-08-13  Bruno Haible  <bruno@clisp.org>
4017
4018         gnulib-tool: Fix persistence of --witness-c-macro option.
4019         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
4020         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4021
4022 2012-08-11  Eric Blake  <eblake@redhat.com>
4023
4024         count-leading-zeros: use a lookup table on non-gcc compilers
4025         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
4026         alternate implementation, suggested by Jim Meyering.
4027
4028 2012-08-10  Eric Blake  <eblake@redhat.com>
4029
4030         count-leading-zeros: new module
4031         * modules/count-leading-zeros: New module.
4032         * m4/count-leading-zeros.m4: New file.
4033         * lib/count-leading-zeros.h: Likewise.
4034         * modules/count-leading-zeros-tests: New test.
4035         * tests/test-count-leading-zeros.c: New file.
4036         * MODULES.html.sh (Integer arithmetic functions): Document it.
4037
4038 2012-08-07  Simon Josefsson  <simon@josefsson.org>
4039             Jim Meyering  <meyering@redhat.com>
4040
4041         maintainer-makefile: Fix syntax error with dash.
4042         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
4043         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
4044
4045 2012-08-05  Jim Meyering  <meyering@redhat.com>
4046
4047         extern-inline: also ignore -Wmissing-declarations
4048         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
4049         required with gcc-4.8.0-to-be.
4050
4051         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
4052         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
4053         for /error ?([^,]*)/.  This avoids false-positives for strings like
4054         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
4055
4056 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
4057
4058         gnumakefile: better interaction with Automake-NG
4059         * modules/gnumakefile [Makefile.am]: The makefiles generated by
4060         Automake-NG always contain a definition of VPATH, even in non-VPATH
4061         builds (its value being simply '.' in that case).  So, in the
4062         'clean-GNUmakefile' rule, to determine whether running under a
4063         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
4064         '$(VPATH)' expands to the empty string.
4065
4066 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
4067
4068         base64: Use extern C scope in header file, for C++.
4069         * lib/base64.h: Add C++ namespace protection.
4070
4071 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
4072
4073         stat-time, timespec, u64: support naive out-of-dir builds
4074         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
4075         Use '#include "foo.h"', not '#include <foo.h>', when including
4076         one's own interface.  This works better when configuring with
4077         out-of-directory builds, since packages need not add an
4078         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
4079
4080 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
4081
4082         utimens: use extern-inline
4083         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
4084         * lib/utimens.h: Add copyright notice, since this is now large enough
4085         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4086         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
4087         * modules/utimens (Depends-on): Add extern-inline.
4088
4089         u64: use extern-inline
4090         * lib/u64.c: New file.
4091         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4092         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
4093         * modules/u64 (Files): Add lib/u64.c.
4094         (Depends-on): Add extern-inline.
4095         (configure.ac): No need to require AC_C_INLINE, since extern-inline
4096         does that now.
4097         (lib_SOURCES): Add u64.c.
4098
4099         timespec: use extern-inline
4100         * lib/timespec.c: New file.
4101         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4102         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
4103         * modules/timespec (Files): Add lib/timespec.c.
4104         (Depends-on): Add extern-inline.
4105         (lib_SOURCES): Add timespec.c.
4106
4107         stat-time: use extern-inline
4108         * lib/stat-time.c: New file.
4109         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
4110         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
4111         * modules/stat-time (Files): Add lib/stat-time.c.
4112         (Depends-on): Add extern-inline.
4113         (lib_SOURCES): Add stat-time.c.
4114
4115         extern-inline: new module
4116         * modules/extern-inline, m4/extern-inline.m4: New files.
4117         This is for better support of 'extern inline' a la ISO C99,
4118         with a portable alternative on compilers that do not support
4119         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
4120         of the Emacs executable, when compiled with debugging disabled,
4121         which is a typical way that Emacs is built while developing.
4122
4123 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
4124
4125         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
4126         * build-aux/do-release-commit-and-tag: Move variable definitions
4127         together.
4128         ($branch): Instead of defaulting to "master", default to the current
4129         branch (as gnu-web-doc-update does).
4130         (help): Display the current values of the option arguments.
4131         * top/maint.mk (release-commit): New.
4132         * top/README-release: Simplify the corresponding step.
4133
4134 2012-07-30  Eric Blake  <eblake@redhat.com>
4135
4136         passfd: fix comment on recvfd
4137         * lib/passfd.c (recvfd): Fix comment.
4138         Reported by Jann Horn <jannhorn@googlemail.com>.
4139
4140 2012-07-30  Jim Meyering  <meyering@redhat.com>
4141
4142         maint.mk: avoid a sub-shell
4143         * top/maint.mk (release-prep): Remove unneeded sub-shell.
4144
4145 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4146
4147         maint.mk: use silent-rules support from Automake
4148         * top/maint.mk (news-check, vc-diff-check, announcement)
4149         (no-submodule-changes, alpha beta stable, release-prep)
4150         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
4151
4152 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4153
4154         maint.mk: provide a web-manual-update target
4155         * top/maint.mk: here.
4156         * top/README-release: Use it to simplify the web manual update step.
4157
4158 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4159
4160         README-release: shorten the circuit to post a news
4161         * top/README-release: Point directly to the news submission form.
4162
4163 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4164
4165         gnu-web-doc-update: fix --help
4166         * build-aux/gnu-web-doc-update: The information "top level" was written
4167         twice.
4168
4169 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
4170
4171         maint.mk: absolute VPATH issue
4172         * top/maint.mk (release-prep): Help Git find .git/.
4173         From Jim Meyering.
4174
4175 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4176
4177         gitlog-to-changelog: fix previous change
4178         * build-aux/gitlog-to-changelog: Fix condition.
4179         Add missing ";".
4180
4181 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4182
4183         gitlog-to-changelog: don't expect .git to be in $srcdir
4184         Reported by Bruno Haible.
4185         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
4186         * build-aux/gitlog-to-changelog (&git_dir_option): New.
4187         Use it.
4188
4189 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
4190
4191         maint.mk: absolute VPATH build fix
4192         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
4193         $(srcdir) is not a parent of $(builddir).
4194
4195 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
4196
4197         clean-temp: Fix memory leak.
4198         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
4199         'files' members of tmpdir.
4200
4201 2012-07-27  Jim Meyering  <meyering@redhat.com>
4202
4203         maint.mk: new rule: refresh-gnulib-patches
4204         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
4205         Use this rule to refresh them.
4206         * top/maint.mk (refresh-gnulib-patches): New rule.
4207
4208 2012-07-24  Bruno Haible  <bruno@clisp.org>
4209
4210         gnulib-tool: Fix handling of inctests variable.
4211         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
4212         Reported by Nick Bowler <nbowler@elliptictech.com>.
4213
4214 2012-07-22  Bruno Haible  <bruno@clisp.org>
4215
4216         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
4217         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
4218         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4219         Remove exemption for getpass.h.
4220         Suggested by Eric Blake.
4221
4222 2012-07-20  Eric Blake  <eblake@redhat.com>
4223
4224         verify: document conflict with -Wnested-externs
4225         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
4226
4227         maint.mk: forbid exit(-1)
4228         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
4229
4230 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
4231
4232         fsusage: port back to Solaris
4233         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
4234         error (fsd not declared) on Solaris 10.  Reported privately by
4235         Andrew Borodin.
4236
4237 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
4238
4239         gnu-web-doc-update: fix error messages
4240         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
4241
4242         gnu-web-doc-update: check the requirements.
4243         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
4244         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
4245         * build-aux/bootstrap (find_tool): Comment change.
4246
4247 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
4248
4249         maint.mk: minor simplication.
4250         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
4251         for default values.
4252
4253 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
4254
4255         gitlog-to-changelog: VPATH build issues
4256         If builddir is not a subdirectory of srcdir, running git from it will
4257         fail.
4258         * build-aux/gitlog-to-changelog (--srcdir): New option.
4259
4260 2012-07-15  Bruno Haible  <bruno@clisp.org>
4261
4262         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
4263         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
4264         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
4265         Remove exemption for fpending.h.
4266         Suggested by Eric Blake.
4267
4268 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
4269
4270         pthread_sigmask: fix bug on FreeBSD 9
4271         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
4272         Include string.h.
4273         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
4274         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
4275         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
4276         but pthread_sigmask (1729, NULL, NULL) returns zero.
4277         See <http://bugs.gnu.org/11884>.
4278         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
4279         by inspecting whether the main call changed the old mask.
4280
4281 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
4282
4283         README-release: make it more legible
4284         * top/README-release: Improve typography slightly.
4285
4286 2012-07-15  Jim Meyering  <meyering@redhat.com>
4287
4288         maint: require that each sc_... command start with "@"
4289         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
4290         "make sc_maint" helps us avoid this nit.
4291
4292 2012-07-15  Jim Meyering  <meyering@redhat.com>
4293
4294         maint.mk: add leading "@" to quiet new "make syntax-check" rule
4295         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
4296
4297 2012-07-13  Eric Blake  <eblake@redhat.com>
4298
4299         maint.mk: new syntax check for HAVE_DECL checks
4300         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
4301         * cfg.mk
4302         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
4303         Exempt some false positives.
4304         Based on a report by Karel Zak.
4305
4306         argp: make HAVE_DECL usage consistent
4307         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
4308         macros, not whether they are defined.
4309         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
4310         convention with other declaration checks.
4311         Reported by Karel Zak, with suggestions from Paul Eggert.
4312
4313         stat-time: relax license to LGPLv2+
4314         * modules/stat-time (License): Relax, with consent of all authors.
4315
4316         strndup: fix m4 usage error
4317         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
4318         defined, to either 0 or 1.
4319         Reported by Karel Zak.
4320
4321 2012-07-11  Jim Meyering  <meyering@redhat.com>
4322
4323         maint: enable the sc_avoid_if_before_free syntax-check rule
4324         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
4325         (if_before_free_offenders_): Define.
4326         (if_before_free_basename_re_): Define.
4327         Exempt current files with useless if-before-free.
4328
4329 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
4330
4331         gettext: do not assume '#define ... defined ...' behavior
4332         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
4333         Do not use '#define FOO ... defined BAR ...', as the C standard says
4334         it's not portable to expect that this works after macro expansion.
4335         Problem reported for gzip by Steven M. Schweda in
4336         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
4337
4338 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
4339
4340         getloadavg: clean out old Emacs and Autoconf cruft
4341         See Glenn Morris in <http://bugs.gnu.org/11905>.
4342         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
4343         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
4344         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
4345         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
4346
4347 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
4348
4349         bootstrap: let warn be like tests/init.sh's warn_
4350         Reported by Jim Meyering.
4351         * build-aux/bootstrap (warn): Remove, replaced by...
4352         (warnf_, warn_): these.
4353         Adjust callers.
4354         Shorten messages that no longer fit in 80 columns.
4355
4356 2012-07-09  Bruno Haible  <bruno@clisp.org>
4357
4358         getopt: Simplify after Emacs changed.
4359         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
4360         (gl_GETOPT_IFELSE): Remove macro.
4361
4362 2012-07-09  Jim Meyering  <meyering@redhat.com>
4363
4364         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
4365         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
4366
4367         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
4368         Bugs in both of those conspired to make the
4369         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
4370         _sc_search_regexp's handling of non-empty $in_files would filter
4371         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
4372         choice of in_files value meant there would be no match in most
4373         projects, due to the presence of two or more Makefile.in files.
4374         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
4375         Fix a bug in how a non-empty $$in_files was processed:
4376         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
4377         in spite of the name, it's a regexp, not a list of file names.
4378
4379 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
4380
4381         getloadavg, getopt: fix commentary re configure.in
4382         Autoconf is deprecating the name 'configure.in', so change it to
4383         to the new name 'configure.ac' in a couple of places.
4384         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
4385         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
4386         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
4387         Emacs has renamed it to configure.ac, and it no longer refers
4388         to these macros anyway.
4389
4390         timespec: mark functions with const attributes
4391         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
4392         Mark with _GL_ATTRIBUTE_CONST.
4393
4394 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4395
4396         canonicalize[-lgpl]: handle "guessing" values when cross-building
4397         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4398         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
4399         matches "*yes" instead of just "yes".  Regression introduced in commit
4400         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
4401
4402 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
4403             Bruno Haible  <bruno@clisp.org>
4404
4405         canonicalize: make the right guess when cross-compiling to GNU
4406         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
4407         determine whether cross-compiling to glibc systems, so as to
4408         include GNU/Hurd.
4409
4410 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
4411
4412         timespec-sub: avoid duplicate include
4413         * lib/timespec-sub.c: Do not include <config.h> twice.
4414         Reported by Juanma Barranquero.
4415
4416 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
4417
4418         bootstrap: use a more consistent error reporting scheme
4419         * build-aux/bootstrap (warn, die): New.
4420         Use them.
4421
4422 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
4423
4424         sys_time: allow too-wide tv_sec
4425         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
4426         timeval even if tv_sec is wider than time_t.  This allows
4427         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
4428         as without this patch gnulib replaces struct timeval
4429         and OpenBSD futimes therefore has a type mismatch.
4430         * doc/posix-headers/sys_time.texi: Mention this.
4431
4432         pthread: check for both pthread_create and pthread_join
4433         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
4434         alter the check so that it tests for both pthread_create and
4435         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
4436         Suggested by Bruno Haible and Richard Yao in
4437         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
4438
4439         parse-datetime: doc tuneup
4440         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
4441         spacing issues.
4442
4443 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
4444
4445         do-release-commit-and-tag: fix the previous commit
4446         * build-aux/do-release-commit-and-tag: Actually the test was right,
4447         but the comment and the error message were misleading.
4448         Fix comment, and improve error message.
4449         Perform check first, so that NEWS is not modified uselessly.
4450
4451         do-release-commit-and-tag: fix typo
4452         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
4453         _not_ start with a stub.
4454
4455 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
4456
4457         pthread: check for pthread_create, not pthread_join
4458         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
4459         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
4460         pthread_join in libc.  I hope this removes the need for all the
4461         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
4462         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
4463
4464 2012-07-04  Jim Meyering  <meyering@redhat.com>
4465
4466         parse-datetime: fix failure to diagnose invalid input
4467         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
4468         rather than diagnosing the invalid input.  Now it reports this:
4469         date: invalid date '\260'
4470         * lib/parse-datetime.y (to_uchar): Define.
4471         (yylex): Don't sign-extend "other" bytes.
4472         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
4473         Thanks to Bruno Haible for the patch to this file.
4474         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
4475         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
4476
4477 2012-07-03  Jim Meyering  <meyering@redhat.com>
4478
4479         bootstrap: do not require now-removed build-aux/missing
4480         Now that build-aux/missing is, er, missing, bootstrap would
4481         silently fail.
4482         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
4483         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
4484         no longer part of gnulib.
4485         Diagnose the failure.
4486
4487 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
4488
4489         alloca: add support for HP NonStop TNS/E native
4490         * lib/alloca.in.h (alloca): Support the new host.
4491         From a suggestion by Joachim Schmitz in
4492         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
4493
4494 2012-07-02  Pádraig Brady  <P@draigBrady.com>
4495
4496         fsusage: remove code not needed on non GNU/Linux systems.
4497
4498         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4499         Don't include headers no longer needed in this case.
4500         * lib/fsusage.c [STAT_STATVFS &&
4501         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
4502         STAT_STATFS2_FRSIZE to exclude code not used in this case.
4503
4504 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
4505
4506         fsusage: include files needed for glibc 2.6 fallback
4507         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
4508         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
4509         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
4510         Problem reported by Ludovic Courtès in
4511         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
4512
4513         fsusage: avoid needless check on GNU/Linux
4514         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
4515         on GNU/Linux systems, since it can't possibly work.
4516
4517 2012-07-01  Bruno Haible  <bruno@clisp.org>
4518
4519         log: Fix an autoconf >= 2.64 warning.
4520         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
4521         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4522
4523 2012-06-28  Bruno Haible  <bruno@clisp.org>
4524
4525         log10f: Fix possible configuration problem.
4526         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
4527         $LOGF_LIBM.
4528         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4529
4530 2012-06-28  Bruno Haible  <bruno@clisp.org>
4531
4532         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
4533         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
4534         not gl_cv_func_unlink_works.
4535         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
4536
4537 2012-06-27  Eric Blake  <eblake@redhat.com>
4538
4539         config: drop scripts that automake says are not independent
4540         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
4541         * build-aux/elisp-comp: Delete.
4542         * build-aux/missing: Likewise.
4543         * build-aux/ylwrap: Likewise.
4544         * modules/elisp-comp: Likewise.
4545         * MODULES.html.sh: Drop mention of elisp-comp.
4546         * NEWS: Mention this.
4547
4548 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
4549
4550         root-uid: new module
4551         This is for portability to Tandem's NonStop Kernel.
4552         * lib/root-uid.h, modules/root-uid: New files.
4553         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
4554         * lib/write-any-file.c, tests/test-sethostname2.c:
4555         Include "root-uid.h".
4556         * lib/euidaccess.c (euidaccess):
4557         * lib/pt_chown.c (main):
4558         * lib/unlinkdir.c (cannot_unlink_dir):
4559         * lib/write-any-file.c (can_write_any_file):
4560         * m4/mknod.m4 (gl_FUNC_MKNOD):
4561         * tests/test-sethostname2.c (geteuid, main):
4562         Don't assume ROOT_UID == 0.
4563         * modules/euidaccess (Depends-on):
4564         * modules/pt_chown (Depends-on):
4565         * modules/sethostname-tests (Depends-on):
4566         * modules/unlinkdir (Depends-on):
4567         * modules/write-any-file (Depends-on):
4568         Add root-uid.
4569
4570         regex: use locale-independent comparison for codeset name
4571         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
4572         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
4573         for codeset name.
4574         * lib/regex_internal.h: Do not include <strings.h>, since we
4575         no longer use strcasecmp.
4576         * modules/regex (Depends-on): Remove strcase.
4577
4578 2012-06-23  Bruno Haible  <bruno@clisp.org>
4579
4580         getopt-posix: No longer guarantee that option processing is resettable.
4581         * doc/posix-functions/getopt.texi: Drop description of problem with
4582         internal state. Fix info about mingw and msvc9.
4583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
4584         option processing by getopt(). Run three test programs instead of one.
4585         Simplify cross-compilation guess.
4586         * NEWS: Mention the change.
4587         Reported by Rich Felker <dalias@aerifal.cx>.
4588
4589 2012-06-26  Bruno Haible  <bruno@clisp.org>
4590
4591         argp, regex: Ensure strcasecmp gets declared.
4592         * lib/argp-help.c: Include <strings.h>.
4593         * lib/regex_internal.h: Likewise.
4594         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
4595
4596 2012-06-24  Bruno Haible  <bruno@clisp.org>
4597
4598         ptsname_r: Make it consistent with ptsname on AIX.
4599         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
4600         implementation as for OSF/1.
4601         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
4602         a pty master.
4603
4604         ptsname_r: Make it consistent with ptsname on OSF/1.
4605         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4606         OSF/1.
4607
4608 2012-06-24  Bruno Haible  <bruno@clisp.org>
4609
4610         ttyname_r: Fix result on OSF/1, Solaris.
4611         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
4612
4613 2012-06-24  Bruno Haible  <bruno@clisp.org>
4614
4615         ptsname_r: Add support for Solaris.
4616         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
4617         Solaris.
4618
4619         ptsname_r: Fix test failure on native Windows.
4620         * modules/ptsname_r (Depends-on): Add isatty.
4621
4622         ptsname_r: Fix test failures on IRIX, Solaris.
4623         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
4624         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
4625         accordingly.
4626         * lib/ptsname_r.c: Include <fcntl.h>.
4627         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
4628         set errno if fd is invalid.
4629         * tests/test-isatty.c (main): Update comments.
4630
4631 2012-06-24  Bruno Haible  <bruno@clisp.org>
4632
4633         ptsname test: Extend test.
4634         * tests/test-ptsname.c: Include <errno.h>.
4635         (main): Test behaviour with invalid file descriptor.
4636
4637 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
4638
4639         time: fix obsolete comment
4640         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
4641         reference to HAVE_STRUCT_TIMESPEC in comment.
4642
4643 2012-06-23  Bruno Haible  <bruno@clisp.org>
4644
4645         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
4646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
4647         does not handle abbreviated long options with equivalent
4648         disambiguations, set gl_replace_getopt to yes.
4649         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
4650
4651 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
4652
4653         time_r: fix typo that always overrode localtime_r decl
4654         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
4655         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
4656         not in a standard include.
4657
4658 2012-06-22  Bruno Haible  <bruno@clisp.org>
4659
4660         Write "Mac OS X" instead of "MacOS X".
4661         * README: Write "Mac OS X" instead of "MacOS X".
4662         * build-aux/bootstrap: Likewise.
4663         * build-aux/install-reloc: Likewise.
4664         * lib/acl-internal.h: Likewise.
4665         * lib/acl_entries.c: Likewise.
4666         * lib/argp-ba.c: Likewise.
4667         * lib/argp-pv.c: Likewise.
4668         * lib/config.charset: Likewise.
4669         * lib/copy-acl.c: Likewise.
4670         * lib/csharpexec.c: Likewise.
4671         * lib/euidaccess.c: Likewise.
4672         * lib/fbufmode.c: Likewise.
4673         * lib/fflush.c: Likewise.
4674         * lib/file-has-acl.c: Likewise.
4675         * lib/filemode.h: Likewise.
4676         * lib/fpurge.c: Likewise.
4677         * lib/freadable.c: Likewise.
4678         * lib/freadahead.c: Likewise.
4679         * lib/freading.c: Likewise.
4680         * lib/freadptr.c: Likewise.
4681         * lib/freadseek.c: Likewise.
4682         * lib/fseeko.c: Likewise.
4683         * lib/fseterr.c: Likewise.
4684         * lib/fsusage.c: Likewise.
4685         * lib/fwritable.c: Likewise.
4686         * lib/fwriting.c: Likewise.
4687         * lib/get-rusage-as.c: Likewise.
4688         * lib/get-rusage-data.c: Likewise.
4689         * lib/getdomainname.c: Likewise.
4690         * lib/idpriv-drop.c: Likewise.
4691         * lib/idpriv-droptemp.c: Likewise.
4692         * lib/localcharset.c: Likewise.
4693         * lib/locale.in.h: Likewise.
4694         * lib/localename.c: Likewise.
4695         * lib/mbsrtowcs-state.c: Likewise.
4696         * lib/nproc.c: Likewise.
4697         * lib/passfd.c: Likewise.
4698         * lib/posix_openpt.c: Likewise.
4699         * lib/printf-parse.c: Likewise.
4700         * lib/progreloc.c: Likewise.
4701         * lib/safe-read.h: Likewise.
4702         * lib/safe-write.h: Likewise.
4703         * lib/sched.in.h: Likewise.
4704         * lib/set-mode-acl.c: Likewise.
4705         * lib/signal.in.h: Likewise.
4706         * lib/stdint.in.h: Likewise.
4707         * lib/stdio-impl.h: Likewise.
4708         * lib/stdlib.in.h: Likewise.
4709         * lib/strtod.c: Likewise.
4710         * lib/sys_select.in.h: Likewise.
4711         * lib/tcgetsid.c: Likewise.
4712         * lib/unistd.in.h: Likewise.
4713         * lib/unlockpt.c: Likewise.
4714         * lib/vasnprintf.c: Likewise.
4715         * lib/vma-iter.c: Likewise.
4716         * lib/wcsrtombs-state.c: Likewise.
4717         * m4/acl.m4: Likewise.
4718         * m4/acosl.m4: Likewise.
4719         * m4/asinl.m4: Likewise.
4720         * m4/atanl.m4: Likewise.
4721         * m4/c-stack.m4: Likewise.
4722         * m4/cosl.m4: Likewise.
4723         * m4/expl.m4: Likewise.
4724         * m4/extensions.m4: Likewise.
4725         * m4/fdatasync.m4: Likewise.
4726         * m4/fmal.m4: Likewise.
4727         * m4/frexp.m4: Likewise.
4728         * m4/frexpf.m4: Likewise.
4729         * m4/frexpl.m4: Likewise.
4730         * m4/fsusage.m4: Likewise.
4731         * m4/getdomainname.m4: Likewise.
4732         * m4/getloadavg.m4: Likewise.
4733         * m4/getopt.m4: Likewise.
4734         * m4/gettext.m4: Likewise.
4735         * m4/gnulib-common.m4: Likewise.
4736         * m4/intdiv0.m4: Likewise.
4737         * m4/intlmacosx.m4: Likewise.
4738         * m4/largefile.m4: Likewise.
4739         * m4/ldexpl.m4: Likewise.
4740         * m4/link-follow.m4: Likewise.
4741         * m4/locale-ar.m4: Likewise.
4742         * m4/locale-fr.m4: Likewise.
4743         * m4/locale-ja.m4: Likewise.
4744         * m4/locale-tr.m4: Likewise.
4745         * m4/locale-zh.m4: Likewise.
4746         * m4/locale_h.m4: Likewise.
4747         * m4/lock.m4: Likewise.
4748         * m4/logl.m4: Likewise.
4749         * m4/mathfunc.m4: Likewise.
4750         * m4/minus-zero.m4: Likewise.
4751         * m4/mktime.m4: Likewise.
4752         * m4/mmap-anon.m4: Likewise.
4753         * m4/multiarch.m4: Likewise.
4754         * m4/nanosleep.m4: Likewise.
4755         * m4/nocrash.m4: Likewise.
4756         * m4/poll.m4: Likewise.
4757         * m4/printf-frexpl.m4: Likewise.
4758         * m4/printf.m4: Likewise.
4759         * m4/signbit.m4: Likewise.
4760         * m4/sinl.m4: Likewise.
4761         * m4/sqrtl.m4: Likewise.
4762         * m4/strerror_r.m4: Likewise.
4763         * m4/tanl.m4: Likewise.
4764         * m4/threadlib.m4: Likewise.
4765         * m4/ttyname_r.m4: Likewise.
4766         * m4/unlink.m4: Likewise.
4767         * m4/visibility.m4: Likewise.
4768         * m4/wcwidth.m4: Likewise.
4769         * tests/minus-zero.h: Likewise.
4770         * tests/test-alloca-opt.c: Likewise.
4771         * tests/test-copy-acl.sh: Likewise.
4772         * tests/test-copy-file.sh: Likewise.
4773         * tests/test-fdatasync.c: Likewise.
4774         * tests/test-file-has-acl.sh: Likewise.
4775         * tests/test-flock.c: Likewise.
4776         * tests/test-fsync.c: Likewise.
4777         * tests/test-localename.c: Likewise.
4778         * tests/test-malloca.c: Likewise.
4779         * tests/test-nonblocking-pipe.h: Likewise.
4780         * tests/test-nonblocking-socket.h: Likewise.
4781         * tests/test-openpty.c: Likewise.
4782         * tests/test-posix_openpt.c: Likewise.
4783         * tests/test-ptsname.c: Likewise.
4784         * tests/test-ptsname_r.c: Likewise.
4785         * tests/test-sameacls.c: Likewise.
4786         * tests/test-select.h: Likewise.
4787         * tests/test-set-mode-acl.sh: Likewise.
4788         * tests/test-snprintf-posix.h: Likewise.
4789         * tests/test-sprintf-posix.h: Likewise.
4790         * tests/test-strtod.c: Likewise.
4791         * tests/test-time.c: Likewise.
4792         * tests/test-vasnprintf-posix.c: Likewise.
4793         * tests/test-vasprintf-posix.c: Likewise.
4794         * doc/acl-resources.txt: Likewise.
4795         * doc/**/*.texi: Likewise.
4796         Reported by Max Horn <max@quendi.de>.
4797
4798 2012-06-22  Bruno Haible  <bruno@clisp.org>
4799
4800         grantpt: Relax requirement regarding invalid file descriptors.
4801         * lib/grantpt.c: Don't include <fcntl.h>.
4802         (grantpt): Don't verify the validity of the file descriptor.
4803         * modules/grantpt (Depends-on): Remove fcntl-h.
4804         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
4805         file descriptors.
4806         * doc/posix-functions/grantpt.texi: Document more platforms on which
4807         grantpt succeeds for invalid file descriptors.
4808         Reported by Rich Felker <dalias@aerifal.cx>.
4809
4810 2012-06-22  Bruno Haible  <bruno@clisp.org>
4811
4812         fbufmode test: Don't test unportable behaviour.
4813         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
4814         (main): Invoke it three times.
4815         Reported by Szabolcs Nagy <nsz@port70.net>
4816         and Rich Felker <dalias@aerifal.cx>.
4817
4818 2012-06-21  Bruno Haible  <bruno@clisp.org>
4819
4820         gnulib-tool: Refactor inctests variable.
4821         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
4822         (func_modules_transitive_closure,
4823         func_modules_transitive_closure_separately,
4824         func_import, func_create_testdir): Update.
4825
4826         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
4827         * gnulib-tool: Accept option --without-tests.
4828         (func_usage): Document --without-tests option. Rearrange.
4829         (inctests): Normalize according to the mode.
4830         * NEWS: Mention the change.
4831         Suggested by Simon Josefsson.
4832
4833 2012-06-21  Bruce Korb  <bkorb@gnu.org>
4834
4835         parse-duration test: Avoid spurious output.
4836         * tests/test-parse-duration.sh: Reindent with leading tabs.
4837
4838 2012-06-21  Jim Meyering  <meyering@redhat.com>
4839
4840         maint: disable the strncpy prohibition
4841         * cfg.mk: Do not prohibit strncpy here.
4842
4843 2012-06-21  Bruno Haible  <bruno@clisp.org>
4844
4845         nonblocking: Avoid compilation error on mingw64.
4846         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
4847         fscanf.
4848         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
4849         * modules/vfscanf (configure.ac): Likewise.
4850         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
4851         definition only if stdio.h has prepared it.
4852         Reported by Daniel P. Berrange <berrange@redhat.com>.
4853
4854 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
4855
4856         gnulib-tool: Use readlink if it is available.
4857         * gnulib-tool (func_readlink): Choose function more appropriately.
4858
4859 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
4860
4861         posixtm-tests: port to buggy compiler
4862         Problem reported by Simon Josefsson in
4863         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
4864         * modules/posixtm-tests (Depends-on): Add stdint.
4865         * tests/test-posixtm.c (struct posixtm_test.t_expected):
4866         Now of type int_least64_t, not int64_t, both because that's
4867         what INT64_C returns and because int_least64_t works even
4868         on 72-bit hosts.
4869         (T): Use INT64_C on constants outside the traditional int range,
4870         to work around compiler bug noted by Simon.
4871
4872         mktime: fix integer overflow in 'configure'-time test
4873         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
4874         after integer overflow.  Problem reported by Rich Felker in
4875         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
4876         Also, don't look for further instances of a bug if we've already
4877         found one instance; this helps 'configure' run faster.
4878
4879 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
4880
4881         tmpfile, clean-temp: Fix invocation of GetVersionEx.
4882         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
4883         GetVersionEx correctly.
4884         * lib/clean-temp.c (supports_delete_on_close): Likewise.
4885
4886 2012-06-20  Bruno Haible  <bruno@clisp.org>
4887
4888         fdopen: Allow implementations that don't reject invalid fd arguments.
4889         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
4890         succeeds.
4891         Reported by Rich Felker <dalias@aerifal.cx>.
4892
4893 2012-06-20  Simon Josefsson  <simon@josefsson.org>
4894
4895         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
4896         bring in LIBINTL.
4897
4898 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
4899
4900         init.sh: do not rely on autoupated PWD
4901         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
4902         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
4903         Although Nelson's bug was not necessarily fixed by this patch,
4904         it seems wise to make the change for safety.
4905         * tests/init.sh (path_prepend_): Do not rely on PWD updating
4906         automagically after 'cd'; this is not reliable on older shells.
4907         (setup_): Fail if we cannot cd to temporary directory.
4908
4909 2012-06-19  Bruno Haible  <bruno@clisp.org>
4910
4911         stat, fstat: Avoid warnings on mingw64.
4912         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
4913         redefining.
4914         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
4915         Reported by Daniel P. Berrange <berrange@redhat.com>.
4916
4917 2012-06-19  Bruno Haible  <bruno@clisp.org>
4918
4919         stdioext: Add support for musl libc.
4920
4921         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
4922         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
4923
4924         * m4/fseterr.m4: New file.
4925         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
4926         function exists.
4927         * modules/fseterr (Files): Add m4/fseterr.m4.
4928         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
4929         __fseterr does not exist.
4930         (Makefile.am): Remove fseterr.c from lib_SOURCES.
4931
4932         * lib/freadable.h: Update comment.
4933
4934         * lib/fwritable.h: Update comment.
4935
4936         * lib/freading.h: Update comment.
4937
4938         * lib/fwriting.h: Update comment.
4939
4940         * m4/freadahead.m4: New file.
4941         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
4942         that function exists.
4943         * modules/freadahead (Files): Add m4/freadahead.m4.
4944         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
4945         __freadahead does not exist.
4946         (Makefile.am): Remove freadahead.c from lib_SOURCES.
4947
4948         * m4/freadptr.m4: New file.
4949         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
4950         function exists.
4951         * modules/freadptr (Files): Add m4/freadptr.m4.
4952         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
4953         __freadptr does not exist.
4954         (Makefile.am): Remove freadptr.c from lib_SOURCES.
4955
4956         * m4/freadseek.m4: New file.
4957         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
4958         exists.
4959         * modules/freadseek (Files): Add m4/freadseek.m4.
4960         (configure.ac): Invoke gl_FUNC_FREADSEEK.
4961
4962         * lib/fpurge.c (fpurge): Update comment.
4963
4964         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
4965
4966 2012-06-19  Bruno Haible  <bruno@clisp.org>
4967
4968         *printf-posix: Put more info into config.log.
4969         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
4970         exit code into config.log.
4971
4972 2012-06-19  Bruno Haible  <bruno@clisp.org>
4973
4974         getopt-gnu: Fix exit code overflow in autoconf test.
4975         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
4976         to keep them below < 128.
4977
4978 2012-06-17  Jim Meyering  <meyering@redhat.com>
4979
4980         maint.mk: fix typo in code to derive GPG key at release time
4981         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
4982
4983 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
4984
4985         regex: avoid warning when pointers are not long
4986         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
4987         and uintptr_t, not long, for portability to hosts where pointers and
4988         long have different sizes.  Issue noted by Daniel P. Berrange in
4989         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
4990         and fix suggested by Bruno Haible in
4991         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
4992
4993 2012-06-17  Bruno Haible  <bruno@clisp.org>
4994
4995         dummy: Relicense into the public domain.
4996         * modules/dummy (License): Set to "public domain".
4997         Suggested by Reuben Thomas.
4998
4999 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
5000
5001         announce-gen: VPATH issues
5002         * build-aux/announce-gen (--srcdir): New option, used to trim the
5003         $srcdir part of the path from $builddir to NEWS.
5004         * top/maint.mk (announcement): Adjust.
5005
5006 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
5007
5008         gnu-web-doc-update: VPATH builds
5009         * build-aux/gnu-web-doc-update (--builddir): New option.
5010         Revamp the handling of options.
5011         Prefer $(...) to `...`.
5012         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
5013         the template, and it is GNU mktemp specific.
5014         Prefer set -e to long series of &&.
5015         Restore the initial git branch, not "master".
5016         Properly initialize submodules (don't rely only on bootstrap).
5017         Do not reconfigure blindly, use config.status.
5018         * top/README-release: Update instructions for gnu-web-doc-update.
5019
5020 2012-06-11  Jim Meyering  <meyering@redhat.com>
5021
5022         maint.mk: revert most of the previous change re "all these"
5023         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
5024         For rationale, see the discussion at
5025         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
5026
5027 2012-06-10  Karl Berry  <karl@gnu.org>
5028
5029         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
5030
5031         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
5032
5033 2012-06-10  Bruce Korb  <bkorb@gnu.org>
5034
5035         parse-duration: Relicense under LGPLv2+.
5036         * modules/parse-duration (License): Change to LGPLv2+.
5037
5038 2012-06-10  Jim Meyering  <meyering@redhat.com>
5039
5040         maint.mk: prohibit common grammar error: "all these"
5041         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
5042         the list of prohibited word sequences.  It should be "all of these".
5043         * lib/tempname.c (__gen_tempname): Fix one of them.
5044
5045 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
5046
5047         do-release-commit-and-tag: support VPATH builds
5048         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
5049         (noteworthy): Defined earlier to factor its value.
5050         (noteworthy_stub): New.
5051         Use it to factor.
5052         (help_version): Split into...
5053         (help, version): these.
5054         Adjust the option processing part.
5055         Support "--option=value" in addition to "--option value".
5056         (builddir): New.
5057         (--builddir): New option.
5058         * top/README-release: Document this.
5059         Reword slightly so that the reader cannot understand that he
5060         has to do these steps before calling do-release-commit-and-tag.
5061
5062 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
5063
5064         readme-release: also require announce-gen and maintainer-makefile
5065         * modules/readme-release (Depends-on): here.
5066         * modules/announce-gen, modules/do-release-commit-and-tag,
5067         modules/gnu-web-doc-update, modules/maintainer-makefile
5068         (Description): Point to readme-release.
5069
5070 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
5071
5072         maint.mk: fix VPATH issues.
5073         * top/maint.mk (news-check): GNU Make understand $< very well.
5074         (release-prep): NEWS is in $(srcdir).
5075
5076 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
5077
5078         readme-release: require the promoted modules.
5079         * modules/readme-release (Depends-on): Add
5080         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
5081         in this text.
5082
5083 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5084             Bruno Haible  <bruno@clisp.org>
5085
5086         error, strerror-override: Support mingw64 from Fedora 17.
5087         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
5088         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
5089         EINPROGRESS.
5090         * lib/strerror-override.h (strerror_override): Test it.
5091         * lib/strerror-override.c (strerror_override): Likewise.
5092         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
5093
5094 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5095             Bruno Haible  <bruno@clisp.org>
5096
5097         error, strerror-override: Support mingw64 from Fedora 17.
5098         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
5099         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
5100         * lib/strerror-override.h (strerror_override): Test it.
5101         * lib/strerror-override.c (strerror_override): Likewise.
5102
5103 2012-06-03  Bruno Haible  <bruno@clisp.org>
5104
5105         error, strerror-override: Support new errno values from POSIX:2008.
5106         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
5107         ENOTRECOVERABLE.
5108         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
5109         platforms.
5110         * lib/strerror-override.c (strerror_override): Conditionalize the
5111         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
5112         * lib/strerror-override.h (strerror_override): Declare also if
5113         GNULIB_defined_EOWNERDEAD is defined.
5114         * tests/test-errno.c (e130, e131): New variables.
5115         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
5116         ENOTRECOVERABLE.
5117         Reported by Paolo Bonzini.
5118
5119 2012-05-31  Jim Meyering  <meyering@redhat.com>
5120
5121         savewd: add missing dependency on sys_wait module
5122         * modules/savewd (Depends-on): Add sys_wait, needed at least
5123         for MSVC.  Report and suggested change by Michael Goffioul.
5124
5125 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5126
5127         system-quote-tests: port to CentOS 5
5128         Problem reported by Tom G. Christensen in
5129         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
5130         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
5131
5132 2012-05-29  Jim Meyering  <meyering@redhat.com>
5133
5134         maint: fix typos in comments and ChangeLog
5135         Culprits identified and fixed mostly automatically using these commands:
5136         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
5137         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
5138         using http://github.com/lyda/misspell-check
5139         * ChangeLog: Fix typos.
5140         * doc/solaris-versions: Likewise.
5141         * lib/regexec.c (re_search_stub): Likewise.
5142         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
5143
5144 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
5145
5146         manywarnings: remove duplicate -Wmultichar entry
5147         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
5148         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
5149         so keep the entry marked as documented.
5150
5151 2012-05-27  Karl Berry  <karl@gnu.org>
5152
5153         * config/srclist.txt (mktime.c): remove last libc sync,
5154         perhaps just temporarily.
5155
5156 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
5157
5158         regex: don't assume uint64_t or uint32_t
5159         * lib/regcomp.c (init_word_char): Don't assume that the types
5160         uint64_t and uint32_t exist.  The C standard doesn't guarantee
5161         them, and on some 32-bit compilers there is no uint64_t.
5162         Problem reported by Gianluigi Tiesi in
5163         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
5164
5165 2012-05-25  Jim Meyering  <meyering@redhat.com>
5166
5167         maint.mk: add strncpy-prohibiting syntax-check rule
5168         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
5169
5170 2012-05-24  Jim Meyering  <meyering@redhat.com>
5171
5172         maint.mk: compute $(gpg_key_ID) more portably
5173         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
5174         That use of sed is not portable to some fringe systems.
5175         Reported by Paul Eggert in
5176         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
5177
5178 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
5179
5180         mktime: sync from glibc
5181         * config/srclist.txt: Uncomment mktime.c.
5182         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
5183         First, indent with tabs, since glibc uses tabs and doesn't want to
5184         change and we'd rather be identical to glibc.  Also, two small
5185         coding changes:
5186         (isdst_differ): Use &&, not &, as && is the usual style.
5187         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
5188         for clarity.
5189
5190 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5191
5192         announce-gen: du -h is more portable than du --human
5193         * build-aux/announce-gen (sizes): Invoke du with -h instead
5194         of --human.  Accept leading white space in its output.
5195
5196 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5197
5198         announce-gen: Improve diagnostics.
5199         * build-aux/announce-gen: When parsing command line options,
5200         prefer "announce-gen: option --release-type requires an argument"
5201         to "Option release-type requires an argument".
5202
5203 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
5204
5205         maint.mk: gpg_key_ID: use sed more portably
5206         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
5207         the closing brace.
5208         (refresh-po): Fuse two sed invocations into one.
5209
5210 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
5211
5212         gitlog-to-changelog: support the log message format used in Bison.
5213         * build-aux/gitlog-to-changelog: Support --strip-tab and
5214         --strip-cherry-picked.
5215
5216 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
5217
5218         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
5219         the rest of the current time slice to another thread in the current
5220         process. So if the thread that feeds the file decscriptor we're
5221         polling is not in the current process, we get busy-waiting.
5222         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
5223         Patch from Theodore Leblond.
5224         * lib/select.c: Split polling out of the loop that sets the output
5225         fd_sets.  Check for zero result and loop if the wait timeout is
5226         infinite.
5227
5228 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5229
5230         select: Fix build error on IRIX 6.5.
5231         * lib/select.c: Include stddef.h for NULL.
5232
5233 2012-05-21  Simon Josefsson  <simon@josefsson.org>
5234
5235         gc: fix libgcrypt detection on older machines.
5236         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
5237         copyright years because the file has been distributed every year
5238         since it was created.
5239
5240 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
5241
5242         crypto: fix bug in large buffer handling
5243         Problem reported by Serge Belyshev for glibc in
5244         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
5245         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
5246         * lib/md4.c (md4_process_block):
5247         * lib/md5.c (md5_process_block):
5248         * lib/sha1.c (sha1_process_block):
5249         * lib/sha256.c (sha256_process_block):
5250         Don't assume the buffer length is less than 2**32.
5251         * lib/sha512.c (sha512_process_block): Likewise.
5252         Here, the bug is present only in the rare case where the host does
5253         not support uint64_t or where size_t is wider than 64 bits.
5254         Use u64size to work around the problems.
5255         * lib/u64.h (u64size): New macro.
5256
5257 2012-05-15  Pádraig Brady  <P@draigBrady.com>
5258
5259         fsusage: fix block size returned on older Linux 2.6
5260
5261         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
5262         which is available since Linux 2.6.
5263         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
5264         when the member is available so it can be used as a fallback.
5265         * doc/posix-functions/statvfs.texi: Mention the hang issue
5266         on Linux < 2.6.36.
5267
5268 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
5269
5270         bootstrap: suppress stderr chatter
5271         * build-aux/bootstrap (insert_sorted_if_absent, main program):
5272         Omit unnecessary chatter to stderr.  The main program chatter
5273         was there only inadvertantly.
5274
5275         bootstrap: .gitignore files created by autopoint, libtool
5276         I ran into this problem when bootstrapping the latest diffutils.
5277         After './bootstrap', 'git status' reported lots of untracked files
5278         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
5279         autopoint and do not need to be version-controlled.
5280         * build-aux/bootstrap: Put into .gitignore the files that
5281         autopoint and libtool create, by keeping track of files that exist
5282         after but not before these programs are run.
5283         (version_controlled_file): Move up.  2nd arg is now full file
5284         name, not base name; this is more convenient.  Put CVS at the end,
5285         as it's now somewhat deprecated.
5286
5287 2012-05-14  Jim Meyering  <meyering@redhat.com>
5288
5289         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
5290         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
5291         definition.  Reported by Bruno Haible.
5292
5293 2012-05-13  Bruno Haible  <bruno@clisp.org>
5294             Paul Eggert  <eggert@cs.ucla.edu>
5295
5296         binary-io: Define set_binary_mode function.
5297         * lib/binary-io.h (set_binary_mode): New function.
5298         (SET_BINARY): Define in terms of set_binary_mode.
5299         * modules/binary-io (configure.ac): Require AC_C_INLINE.
5300         * tests/test-binary-io.c (main): Accept an argument, and test either
5301         set_binary_mode or SET_BINARY depending on the argument.
5302         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
5303         argument. Clean up also t-bin-out0.tmp.
5304
5305 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
5306
5307         bootstrap: take advantage of POSIX shell features
5308
5309         The 'bootstrap' script offered by Gnulib script already uses POSIX
5310         shell features (like $((...)) arithmetic expansions) that are not
5311         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
5312         means that bootstrap must already be run using a proper POSIX shell,
5313         which will thus provide more features, like ${var#pattern} parameter
5314         expansion or inversion of a command exit status with '!'.  We can
5315         thus use these features to improve the clarity and the performances
5316         of the bootstrap script.
5317
5318         Suggested by Eric Blake.
5319
5320         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
5321         of sed/expr plus command substitutions, to save some forks.  While
5322         we are at it, prefer the POSIX $(...) form of command substitution,
5323         rather than the legacy form `...` (since the former is visually
5324         clearer and interacts better with quoting), and prefer the idiom:
5325           "if ! CMD; then ACTION ..."
5326         over the idiom:
5327           "if CMD; then :; else ACTION ..."
5328         which was required by legacy Bourne shells not supporting '!'.
5329
5330 2012-05-12  Bruno Haible  <bruno@clisp.org>
5331
5332         system-quote: Add more comments.
5333         * lib/system-quote.h: Add more comments about wilcards and limitations.
5334         Suggested by Eli Zaretskii <eliz@gnu.org>.
5335
5336         sh-quote, system-quote: Add comments about wildcards.
5337         * lib/sh-quote.h: Clarify what happens with wildcard characters.
5338         * lib/system-quote.h: Likewise.
5339         Reported by Eli Zaretskii <eliz@gnu.org>.
5340
5341 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
5342
5343         fsusage: check for GNU/Linux statvfs problem dynamically
5344         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5345         Define STAT_STATFS2_BSIZE too, since in this case the code now
5346         checks dynamically whether statvfs is reliable, falling back on
5347         Linux-style statfs otherwise.
5348         (statvfs_works): New function, for dynamically testing statvfs.
5349         (get_fs_usage) [STAT_STATVFS]: Use it.
5350         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
5351         statvfs on GNU/Linux hosts, since it's now done dynamically.
5352
5353 2012-05-10  Bruno Haible  <bruno@clisp.org>
5354
5355         system-quote, execute, spawn-pipe: Escape '?' on Windows.
5356         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
5357         '?' character.
5358         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
5359         * tests/test-system-quote-main.c (check_all): Check also strings like
5360         "??????????".
5361         Reported by Eli Zaretskii <eliz@gnu.org>.
5362
5363 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5364
5365         _Noreturn: port config.h to gcc -Wundef
5366         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
5367         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
5368         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
5369
5370 2012-05-10  Bruno Haible  <bruno@clisp.org>
5371
5372         system-quote: Refactor.
5373         * lib/system-quote.h (system_quote_copy): Fix comment.
5374         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
5375         New functions, extracted from system_quote_copy.
5376         (system_quote_length, system_quote_copy): Use these functions.
5377         Reported by Paul Eggert.
5378
5379 2012-05-08  Bruno Haible  <bruno@clisp.org>
5380
5381         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
5382         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
5383
5384 2012-05-08  Bruno Haible  <bruno@clisp.org>
5385
5386         Tests for module 'system-quote'.
5387         * modules/system-quote-tests: New file.
5388         * tests/test-system-quote.sh: New file.
5389         * tests/test-system-quote-main.c: New file.
5390         * tests/test-system-quote-child.c: New file.
5391
5392         New module 'system-quote'.
5393         * lib/system-quote.h: New file.
5394         * lib/system-quote.c: New file.
5395         * modules/system-quote: New file.
5396
5397 2012-05-08  Bruno Haible  <bruno@clisp.org>
5398
5399         sh-quote: Make C++ safe and allow multiple inclusion.
5400         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
5401         declarations in extern "C".
5402
5403 2012-05-08  Bruno Haible  <bruno@clisp.org>
5404
5405         sh-quote tests: Make tests stricter.
5406         * tests/test-sh-quote.c (check_one): Check the return value of
5407         shell_quote_copy.
5408         (main): Check a string with a CR character. Check a string that
5409         contains UCHAR_MAX.
5410
5411 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
5412
5413         warnings.m4: provide a means to specify the program to compile.
5414         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
5415         (gl_WARN_ADD): here.
5416         Use gl_AS_VAR_APPEND.
5417         Support an argument to specify the program to compile.
5418         (gl_WARN_ADD): Accept an argument to specify the program to compile.
5419         AC_SUBST the WARN_CFLAGS when they are used.
5420         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
5421         leave this to gl_WARN_ADD.
5422
5423 2012-05-08  Eric Blake  <eblake@redhat.com>
5424
5425         doc: recommendations on gettext version
5426         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
5427         choice between versions.
5428         * DEPENDENCIES (gettext): Cover both approaches.
5429
5430 2012-05-08  Jim Meyering  <meyering@redhat.com>
5431
5432         init.sh: explain why EXEEXT support uses aliases rather than functions
5433         * tests/init.sh: Add a comment.
5434
5435         init.sh: don't let bash aliases interfere with tests
5436         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
5437         is bash.  This avoids problems for those who alias standard commands to
5438         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
5439         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
5440
5441 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
5442
5443         stdint: be more consistent with glibc, SunOS libc
5444         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
5445         (gl_int_fast16_t, gl_uint_fast16_t)
5446         (gl_int_fast32_t, gl_uint_fast32_t)
5447         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
5448         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
5449         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
5450         Be consistent with glibc by default, and with SunOS 5.10 and later
5451         if __sun is defined.  This lessens the likelihood of clashes if
5452         code compiled for older hosts is combined with code compiled for
5453         newer ones.  Problem reported by Niels Möller in
5454         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
5455
5456 2012-05-07  Eric Blake  <eblake@redhat.com>
5457
5458         isatty: relax license to LGPLv2+
5459         * modules/isatty (License): Relax license.
5460
5461 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5462
5463         stat-size: comment fix
5464         * lib/stat-size.h: Remove obsolete comment about indenting.
5465
5466 2012-05-06  Bruno Haible  <bruno@clisp.org>
5467
5468         Tests for module 'sh-quote'.
5469         * modules/sh-quote-tests: New file.
5470         * tests/test-sh-quote.c: New file.
5471
5472 2012-05-06  Bruno Haible  <bruno@clisp.org>
5473
5474         sh-quote: Improve shell_quote_argv's signature.
5475         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
5476         * lib/sh-quote.c (shell_quote_argv): Likewise.
5477
5478 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
5479
5480         stdint: document issues with int_fast8_t etc.
5481         * doc/posix-headers/stdint.texi (stdint.h): Say that other
5482         stdint.h substitutes may define these types differently.  See
5483         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
5484
5485 2012-05-05  Bruno Haible  <bruno@clisp.org>
5486
5487         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
5488         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
5489         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
5490         or 'guessing no (mishandles large arguments)'.
5491
5492 2012-05-05  Bruno Haible  <bruno@clisp.org>
5493
5494         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
5495         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
5496         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5497         set gl_cv_func_link_follows_symlink to "guessing no".
5498
5499 2012-05-05  Bruno Haible  <bruno@clisp.org>
5500
5501         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
5502         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
5503         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
5504         "guessing no".
5505         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
5506
5507 2012-05-05  Bruno Haible  <bruno@clisp.org>
5508
5509         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
5510         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
5511         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
5512         set gl_cv_struct_dirent_d_ino to "guessing yes".
5513
5514 2012-05-05  Bruno Haible  <bruno@clisp.org>
5515
5516         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
5517         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
5518         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
5519         "guessing yes".
5520
5521 2012-05-05  Bruno Haible  <bruno@clisp.org>
5522
5523         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
5524         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
5525         compiling to a glibc system, set gl_cv_func_signbit and
5526         gl_cv_func_signbit_gcc to "guessing yes".
5527
5528 2012-05-05  Bruno Haible  <bruno@clisp.org>
5529
5530         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
5531         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
5532         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
5533         to "guessing yes".
5534         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
5535         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
5536
5537 2012-05-05  Bruno Haible  <bruno@clisp.org>
5538
5539         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
5540         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
5541         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
5542         gl_cv_func_realpath_works to "guessing yes".
5543
5544 2012-05-05  Bruno Haible  <bruno@clisp.org>
5545
5546         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
5547         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
5548         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
5549
5550 2012-05-04  Bruno Haible  <bruno@clisp.org>
5551
5552         Tweak last commit.
5553         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
5554         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5555
5556 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
5557
5558         unistd_h: make it easier to avoid sys_types_h
5559         This is useful for Emacs, which has its own method of porting to
5560         Windows, and which therefore does not need the sys_types_h module.
5561         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
5562         code moved here from gl_SYS_TYPES_H.
5563         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
5564         using the code directly.
5565         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
5566         gl_SYS_TYPES_H.
5567         * modules/sys_types (Files):
5568         * modules/unistd (Files): Add m4/off_t.m4.
5569
5570 2012-05-03  Bruno Haible  <bruno@clisp.org>
5571
5572         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
5573         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
5574         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
5575         "guessing yes" or "guessing no".
5576         (gl_FUNC_LSTAT): Update.
5577         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
5578         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5579         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
5580
5581 2012-05-03  Bruno Haible  <bruno@clisp.org>
5582
5583         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
5584         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
5585         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
5586         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
5587         cross-compiling, choose the first alternative on glibc systems.
5588         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
5589
5590 2012-05-03  Bruno Haible  <bruno@clisp.org>
5591
5592         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
5593         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
5594         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
5595
5596 2012-05-03  Bruno Haible  <bruno@clisp.org>
5597
5598         chown: Avoid "guessing no" when cross-compiling to glibc systems.
5599         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
5600
5601 2012-05-03  Bruno Haible  <bruno@clisp.org>
5602
5603         Avoid "guessing no" guesses when cross-compiling to glibc systems.
5604         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
5605         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
5606         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
5607         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
5608         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
5609         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
5610         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
5611         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
5612         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
5613         compiling to glibc systems, set gl_cv_func_chown_slash_works,
5614         gl_cv_func_chown_ctime_works to "guessing yes".
5615         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
5616         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
5617         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
5618         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
5619         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
5620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
5621         compiling to glibc systems, set gl_cv_func_open_directory_works to
5622         "guessing yes".
5623         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
5624         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
5625         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
5626         "guessing yes".
5627         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
5628         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
5629         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
5630         compiling to glibc systems, set gl_cv_func_floorf_ieee to
5631         "guessing yes".
5632         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
5633         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
5634         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
5635         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
5636         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
5637         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
5638         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
5639         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
5640         "guessing yes".
5641         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
5642         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
5643         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
5644         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
5645         "guessing yes".
5646         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
5647         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
5648         "guessing yes".
5649         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
5650         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
5651         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
5652         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
5653         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
5654         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
5655         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
5656         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
5657         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
5658         compiling to glibc systems, set gl_cv_func_log10f_ieee to
5659         "guessing yes".
5660         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
5661         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
5662         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
5663         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
5664         "guessing yes".
5665         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
5666         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
5667         "guessing yes".
5668         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
5669         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
5670         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
5671         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
5672         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
5673         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
5674         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
5675         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
5676         compiling to glibc systems, set gl_cv_func_mkfifo_works to
5677         "guessing yes".
5678         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
5679         compiling to glibc systems, set gl_cv_func_mknod_works to
5680         "guessing yes".
5681         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
5682         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
5683         "guessing yes".
5684         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
5685         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
5686         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
5687         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
5688         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
5689         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
5690         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
5691         compiling to glibc systems, set gl_cv_func_svid_putenv to
5692         "guessing yes".
5693         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
5694         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
5695         "guessing yes".
5696         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
5697         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
5698         "guessing yes".
5699         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
5700         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
5701         to "guessing yes".
5702         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
5703         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
5704         to "guessing yes".
5705         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
5706         compiling to glibc systems, set gl_cv_func_rmdir_works to
5707         "guessing yes".
5708         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
5709         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
5710         gl_cv_func_unlink_parent_fails to "guessing yes".
5711         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
5712         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
5713         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
5714         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
5715         gl_cv_func_rename_dest_works to "guessing yes".
5716         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
5717         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
5718         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
5719         compiling to glibc systems, set gl_cv_func_roundf_ieee to
5720         "guessing yes".
5721         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
5722         compiling to glibc systems, set gl_cv_func_roundl_ieee to
5723         "guessing yes".
5724         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
5725         compiling to glibc systems, set gl_cv_func_setenv_works to
5726         "guessing yes".
5727         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
5728         compiling to glibc systems, set gl_cv_func_unsetenv_works to
5729         "guessing yes".
5730         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
5731         compiling to glibc systems, set gl_cv_func_sleep_works to
5732         "guessing yes".
5733         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
5734         compiling to glibc systems, set gl_cv_func_stat_file_slash to
5735         "guessing yes".
5736         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
5737         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
5738         "guessing yes".
5739         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
5740         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
5741         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
5742         compiling to glibc systems, set gl_cv_func_truncf_ieee to
5743         "guessing yes".
5744         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
5745         compiling to glibc systems, set gl_cv_func_truncl_ieee to
5746         "guessing yes".
5747         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
5748         compiling to glibc systems, set gl_cv_func_usleep_works to
5749         "guessing yes".
5750         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
5751         compiling to glibc systems, set gl_cv_func_futimesat_works to
5752         "guessing yes".
5753
5754 2012-05-03  Bruno Haible  <bruno@clisp.org>
5755
5756         Say "guessing yes" or "guessing no" when cross-compiling.
5757         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
5758         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
5759         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
5760         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
5761         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
5762         am_cv_func_working_getline to "guessing yes" or "guessing no".
5763         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
5764         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
5765         (gl_FUNC_MEMMEM): When cross-compiling, set
5766         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
5767         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
5768         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
5769         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
5770         set gl_cv_func_strcasestr_works_always to "guessing yes" or
5771         "guessing no".
5772         (gl_FUNC_STRCASESTR): When cross-compiling, set
5773         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
5774         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
5775         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
5776         (gl_FUNC_STRSTR): When cross-compiling, set
5777         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
5778         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
5779         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
5780         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
5781         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
5782
5783 2012-05-01  Bruno Haible  <bruno@clisp.org>
5784
5785         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
5786         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
5787         * build-aux/reloc-ldflags: Likewise.
5788         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
5789
5790 2012-05-01  Bruno Haible  <bruno@clisp.org>
5791
5792         gnulib-tool: Remove transitional code.
5793         * gnulib-tool: Don't warn about --import with 0 arguments any more.
5794         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
5795
5796 2012-05-01  Bruno Haible  <bruno@clisp.org>
5797
5798         getcwd: Fix misindentation.
5799         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
5800
5801 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
5802
5803         exclude: process exclude and include directives in order
5804         This restores the pre-2009 behavior, and is part of a fix of a
5805         grep bug reported by Quentin Arce in
5806         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
5807         * lib/exclude.c (struct exclude): Remove 'tail' member.
5808         (new_exclude_segment): Prepend the new segment instead of appending.
5809         Return void, since that's now more convenient.
5810         (file_pattern_matches): Renamed from excluded_file_pattern_p.
5811         (file_name_matches): Renamed from excluded_file_name_p.
5812         (file_pattern_matches, file_name_matches):
5813         Return true if the pattern matches, not if it excludes.
5814         All callers changed.
5815         (excluded_file_name): Process the list in reverse order;
5816         since the list is now reversed this restores the pre-2009 behavior.
5817         (add_exclude): Adjust to new reversed-order list.  Use local var
5818         rather than macro, for clarity.
5819         * tests/test-exclude7.sh: Adjust to corrected behavior.
5820
5821         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
5822         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
5823         it's not possible here.  Handle the case of \ at end of pattern
5824         without dumping core.
5825         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
5826
5827         _Noreturn: future-proof non-GNU and non-MSVC compilers
5828         * build-aux/snippet/_Noreturn.h (_Noreturn):
5829         * m4/gnulib-common.m4 (gl_COMMON_BODY):
5830         Do not define _Noreturn if __STDC_VERSION__ indicates this is
5831         C11 or later.  This is more likely to work with random future C
5832         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
5833         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
5834
5835         exclude: handle wildcards with FNM_EXTMATCH
5836         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
5837         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
5838         comment that "has wildcards" really means "has or may have
5839         wildcards".  Simplify by avoiding the need to call strcspn.
5840
5841 2012-04-29  Bruno Haible  <bruno@clisp.org>
5842
5843         gnulib-tool: Fix list of authors.
5844         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
5845
5846 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
5847
5848         bootstrap: support Automake-NG in $buildreq
5849         * bootstrap (check_versions): Handle automake and aclocal from
5850         Automake-NG specially.  They can be specified as respectively
5851         the "automake-ng" and "aclocal-ng" requirements.
5852
5853 2012-04-25  Eric Blake  <eblake@redhat.com>
5854
5855         bootstrap: only force latest Makefile.in.in for gettext module
5856         * build-aux/bootstrap (with_gettext): Only install latest
5857         Makefile.in.in for projects requesting bleeding edge gettext.
5858
5859 2012-04-22  Bruno Haible  <bruno@clisp.org>
5860
5861         doc: Mention reason for replacement on glibc/Linux systems.
5862         * doc/posix-functions/dprintf.texi: Mention the problem with special
5863         'long double' values.
5864         * doc/posix-functions/fprintf.texi: Likewise.
5865         * doc/posix-functions/printf.texi: Likewise.
5866         * doc/posix-functions/snprintf.texi: Likewise.
5867         * doc/posix-functions/sprintf.texi: Likewise.
5868         * doc/posix-functions/vdprintf.texi: Likewise.
5869         * doc/posix-functions/vfprintf.texi: Likewise.
5870         * doc/posix-functions/vprintf.texi: Likewise.
5871         * doc/posix-functions/vsnprintf.texi: Likewise.
5872         * doc/posix-functions/vsprintf.texi: Likewise.
5873         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
5874         platforms with F_DUPFD_CLOEXEC problems.
5875         * doc/posix-functions/glob.texi: Mention which platforms are affected
5876         by the problem with symbolic links.
5877         * doc/posix-functions/linkat.texi: Mention the problem with
5878         AT_SYMLINK_FOLLOW on Linux.
5879
5880 2012-04-22  Bruno Haible  <bruno@clisp.org>
5881
5882         pwrite: Don't replace on all platforms.
5883         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
5884
5885 2012-04-22  Bruno Haible  <bruno@clisp.org>
5886
5887         rint* tests: Avoid gcc warnings.
5888         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
5889         * tests/test-rintf.c (INFINITY, NAN): Likewise.
5890         * tests/test-rintl.c (INFINITY, NAN): Likewise.
5891
5892 2012-04-21  Bruno Haible  <bruno@clisp.org>
5893
5894         users.txt: Update.
5895         * users.txt: Add freedink, wdiff. Update URLs for projects that have
5896         switched from CVS to git, bzr, or svn.
5897
5898 2012-04-21  Bruno Haible  <bruno@clisp.org>
5899
5900         Large File Support for native Windows platforms.
5901
5902         * m4/largefile.m4 (gl_LARGEFILE): New macro.
5903         * modules/largefile (configure.ac): Require gl_LARGEFILE.
5904
5905         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
5906         type.
5907         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
5908         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
5909         * doc/posix-headers/sys_types.texi: Mention the effect of the
5910         'largefile' module.
5911
5912         * lib/fcntl.in.h: Add comments about off_t.
5913         * modules/fcntl-h (Depends-on): Add sys_types.
5914
5915         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
5916         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
5917         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
5918         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
5919         * modules/unistd (Depends-on): Add sys_types.
5920         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
5921
5922         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
5923         instead of lseek.
5924         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
5925         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
5926         * modules/lseek (Depends-on): Add sys_types.
5927
5928         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
5929         msvc-nothrow.h.
5930         (SetFileSize): New function.
5931         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
5932         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
5933         if Large File Support is requested.
5934         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
5935         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
5936
5937         * lib/stdio.in.h: Add comments about off_t.
5938         * modules/stdio (Depends-on): Add sys_types.
5939
5940         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
5941         instead of ftello.
5942         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
5943         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
5944         (gl_PREREQ_FTELLO): New macro.
5945         * modules/ftello (Depends-on): Add sys_types.
5946         (configure.ac): Incoke gl_PREREQ_FTELLO.
5947
5948         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
5949         instead of fseeko.
5950         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
5951         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
5952         (gl_PREREQ_FSEEKO): New macro.
5953         * modules/fseeko (Depends-on): Add sys_types.
5954         (configure.ac): Invoke gl_PREREQ_FSEEKO.
5955
5956         * lib/sys_stat.in.h: Add comments about off_t.
5957         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
5958         64-bit integer for st_size in 'struct stat'.
5959         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
5960         Define _GL_WINDOWS_64_BIT_ST_SIZE.
5961         * modules/sys_stat (Depends-on): Add sys_types.
5962         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
5963
5964         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
5965         instead of stat or _stat.
5966
5967         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
5968         'struct _stati64' instead of fstat and 'struct stat'.
5969         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
5970         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
5971
5972         Reported by Ray Satiro <raysatiro@yahoo.com>.
5973
5974 2012-04-19  Eric Blake  <eblake@redhat.com>
5975
5976         bootstrap: accommodate older libtool
5977         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
5978         Reported by Daniel P. Berrange.
5979
5980 2012-04-19  Jim Meyering  <meyering@redhat.com>
5981
5982         announce-gen: avoid failure due to lack of Digest::SHA1
5983         Even with the preferred Digest::SHA available, this script
5984         would fail when the backup module, Digest::SHA1, was not installed.
5985         * build-aux/announce-gen: Quote the conditional use of "use".
5986         Reported by Reuben Thomas in:
5987         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
5988
5989         bootstrap: don't let a user's CDPATH setting affect this script
5990         When CDPATH is set, cd will sometimes generate output.
5991         When "cd" is run in a subshell whose output matters, that
5992         surprising-to-some output can cause malfunction.
5993         Unsetting CDPATH turns off this shell "feature."
5994         * build-aux/bootstrap (CDPATH): Unset.
5995         Reported by Reuben Thomas in:
5996         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
5997         and inspired by his patch here:
5998         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
5999
6000 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
6001         and Jim Meyering  <meyering@redhat.com>
6002
6003         maint.mk: catch "see @xref{}" and similar
6004         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
6005         prohibit "See also @xref{", "Also see @pxref{", and similar.
6006
6007 2012-04-16  Jim Meyering  <meyering@redhat.com>
6008
6009         bootstrap: really use gnulib's po/Makefile.in.in
6010         * build-aux/bootstrap: Correct the source file name in previous change.
6011         Reported by Akim Demaille.
6012
6013         configmake: correct minor inconsistency in Makefile rule
6014         * modules/configmake (Makefile.am): All other rules like this one
6015         run the final "mv -f ..." in the same backslash-continued command
6016         as the one that does everything else.  This one put the mv -f ...
6017         command on a separate, non-backslash-continued line.
6018         Make it like the others.
6019
6020         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
6021         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
6022         the one from gettext.  Reported by Akim Demaille.
6023
6024 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
6025
6026         Fix recursion of install-* into po directories.
6027         Bison's install-pdf bug reported by Hans Aberg at
6028         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
6029         * build-aux/po/Makefile.in.in (install-dvi, install-html)
6030         (install-info, install-pdf, install-ps): New targets.
6031
6032 2012-04-16  Jim Meyering  <meyering@redhat.com>
6033
6034         maint: avoid spurious "make sc_maint" failure
6035         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
6036         exempt all *.class file names, for lib/javaversion.class.
6037
6038 2012-04-15  Bruno Haible  <bruno@clisp.org>
6039
6040         lseek: Make configure test independent of environment.
6041         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
6042         Windows, we know that lseek() on pipes is broken; skip the runtime
6043         test.
6044
6045 2012-04-14  Bruno Haible  <bruno@clisp.org>
6046
6047         stat: Bypass buggy override in mingw64.
6048         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
6049         * lib/stat.c (stat) [mingw64]: Define to _stat.
6050         * doc/posix-functions/stat.texi: Mention mingw64 bug.
6051
6052 2012-04-14  Bruno Haible  <bruno@clisp.org>
6053
6054         pathmax: Fix compilation error on MSVC 9.
6055         * modules/pathmax (Depends-on): Add unistd.
6056
6057 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
6058
6059         README: document pointer comparison assumption
6060         * README (Portability guidelines): Document assumption about
6061         pointer comparisons, in response to a recent bug-gnulib comment by
6062         Jeffrey Kegler.
6063
6064 2012-04-12  Bruno Haible  <bruno@clisp.org>
6065
6066         Tests for module 'getrusage'.
6067         * modules/getrusage-tests: New file.
6068         * tests/test-getrusage.c: New file.
6069
6070         New module 'getrusage'.
6071         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
6072         warn-on-use.h.
6073         (getrusage): New declaration.
6074         * lib/getrusage.c: New file.
6075         * m4/getrusage.m4: New file.
6076         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
6077         is declared.
6078         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
6079         HAVE_GETRUSAGE.
6080         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
6081         snippet/c++defs, snippet/warn-on-use.
6082         (Makefile.am): Update generation of sys/resource.h. Substitute
6083         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
6084         * modules/getrusage: New file.
6085         * doc/posix-functions/getrusage.texi: Mention the new module.
6086
6087 2012-04-12  Bruno Haible  <bruno@clisp.org>
6088
6089         Tests for module 'sys_resource'.
6090         * modules/sys_resource-tests: New file.
6091         * tests/test-sys_resource.c: New file.
6092
6093         New module 'sys_resource'.
6094         * lib/sys_resource.in.h: New file.
6095         * m4/sys_resource_h.m4: New file.
6096         * modules/sys_resource: New file.
6097         * doc/posix-headers/sys_resource.texi: Mention the new module.
6098
6099 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
6100
6101         ioctl: Fix compilation error on mingw.
6102         * lib/ioctl.c: Include <windows.h>.
6103         Also reported by Ray Satiro <raysatiro@yahoo.com>.
6104
6105 2012-04-04  Jim Meyering  <meyering@redhat.com>
6106
6107         regex: correct #pragma guard expression
6108         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
6109         not 4.3.  Correct its cpp guard expression.
6110
6111 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
6112
6113         regex: remove unnecessary type punning
6114         Problem reported by Vladimir Serbinenko in
6115         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
6116         * lib/regex.h (struct re_pattern_buffer): Change the type of
6117         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
6118         Fix comment to match code.
6119         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
6120         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
6121         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
6122         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
6123         (set_regs):
6124         Omit no-longer-necessary casts.
6125
6126 2012-04-03  Bruno Haible  <bruno@clisp.org>
6127
6128         Tests for module 'ilogbl'.
6129         * modules/ilogbl-tests: New file.
6130         * tests/test-ilogbl.c: New file.
6131
6132         New module 'ilogbl'.
6133         * lib/math.in.h (ilogbl): New declaration.
6134         * lib/ilogbl.c: New file.
6135         * m4/ilogbl.m4: New file.
6136         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
6137         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
6138         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
6139         Split sed invocation, to avoid the limit of 100 substitutions of
6140         HP-UX 'sed'.
6141         * modules/ilogbl: New file.
6142         * tests/test-math-c++.cc: Check the declaration of ilogbl.
6143         * doc/posix-functions/ilogbl.texi: Mention the new module.
6144
6145 2012-04-03  Bruno Haible  <bruno@clisp.org>
6146
6147         Tests for module 'ilogbf'.
6148         * modules/ilogbf-tests: New file.
6149         * tests/test-ilogbf.c: New file.
6150
6151         New module 'ilogbf'.
6152         * lib/math.in.h (ilogbf): New declaration.
6153         * lib/ilogbf.c: New file.
6154         * m4/ilogbf.m4: New file.
6155         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
6156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
6157         REPLACE_ILOGBF.
6158         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
6159         REPLACE_ILOGBF.
6160         * modules/ilogbf: New file.
6161         * tests/test-math-c++.cc: Check the declaration of ilogbf.
6162         * doc/posix-functions/ilogbf.texi: Mention the new module.
6163
6164 2012-04-03  Bruno Haible  <bruno@clisp.org>
6165
6166         Tests for module 'ilogb'.
6167         * modules/ilogb-tests: New file.
6168         * tests/test-ilogb.c: New file.
6169         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
6170         tests/test-logb-ieee.h.
6171
6172         New module 'ilogb'.
6173         * lib/math.in.h (ilogb): New declaration.
6174         * lib/ilogb.c: New file.
6175         * m4/ilogb.m4: New file.
6176         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
6177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
6178         REPLACE_ILOGB.
6179         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
6180         REPLACE_ILOGB.
6181         * modules/ilogb: New file.
6182         * tests/test-math-c++.cc: Check the declaration of ilogb.
6183         * doc/posix-functions/ilogb.texi: Mention the new module.
6184
6185 2012-04-03  Bruno Haible  <bruno@clisp.org>
6186
6187         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
6188         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
6189         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
6190         (main): Check their values.
6191         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
6192         problem.
6193
6194 2012-04-03  Bruno Haible  <bruno@clisp.org>
6195
6196         Tests for module 'logbl-ieee'.
6197         * modules/logbl-ieee-tests: New file.
6198         * tests/test-logbl-ieee.c: New file.
6199
6200         New module 'logbl-ieee'.
6201         * modules/logbl-ieee: New file.
6202
6203         Tests for module 'logb-ieee'.
6204         * modules/logb-ieee-tests: New file.
6205         * tests/test-logb-ieee.c: New file.
6206
6207         New module 'logb-ieee'.
6208         * modules/logb-ieee: New file.
6209
6210         Tests for module 'logbf-ieee'.
6211         * modules/logbf-ieee-tests: New file.
6212         * tests/test-logbf-ieee.c: New file.
6213         * tests/test-logb-ieee.h: New file.
6214
6215         New module 'logbf-ieee'.
6216         * modules/logbf-ieee: New file.
6217
6218 2012-04-03  Bruno Haible  <bruno@clisp.org>
6219
6220         Tests for module 'logbl'.
6221         * modules/logbl-tests: New file.
6222         * tests/test-logbl.c: New file.
6223
6224         New module 'logbl'.
6225         * lib/math.in.h (logbl): New declaration.
6226         * lib/logbl.c: New file.
6227         * m4/logbl.m4: New file.
6228         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
6229         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
6230         REPLACE_LOGBL.
6231         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
6232         REPLACE_LOGBL.
6233         * modules/logbl: New file.
6234         * tests/test-math-c++.cc: Check the declaration of logbl.
6235         * doc/posix-functions/logbl.texi: Mention the new module.
6236
6237 2012-04-02  Bruno Haible  <bruno@clisp.org>
6238
6239         Tests for module 'logbf'.
6240         * modules/logbf-tests: New file.
6241         * tests/test-logbf.c: New file.
6242
6243         New module 'logbf'.
6244         * lib/math.in.h (logbf): New declaration.
6245         * lib/logbf.c: New file.
6246         * m4/logbf.m4: New file.
6247         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
6248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
6249         REPLACE_LOGBF.
6250         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
6251         REPLACE_LOGBF.
6252         * modules/logbf: New file.
6253         * tests/test-math-c++.cc: Check the declaration of logbf.
6254         * doc/posix-functions/logbf.texi: Mention the new module.
6255
6256 2012-04-02  Bruno Haible  <bruno@clisp.org>
6257
6258         logb tests: More tests.
6259         * tests/test-logb.h: New file, based on tests/test-logb.c and
6260         tests/test-frexp.h.
6261         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
6262         (main): Just invoke test_function.
6263         * modules/logb-tests (Files): Add tests/test-logb.h,
6264         tests/minus-zero.h, tests/randomd.c.
6265         (Makefile.am): Add randomd.c to test_logb_SOURCES.
6266
6267         logb: Provide replacement and workarounds.
6268         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
6269         is 1.
6270         * lib/logb.c: New file.
6271         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
6272         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
6273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
6274         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
6275         * modules/logb (Files): Add lib/logb.c.
6276         (Depends-on): Add isfinite, frexp, isnand.
6277         (configure.ac): Compile the replacement code logb.c if needed.
6278         * tests/test-math-c++.cc: Check the declaration of logb.
6279         * doc/posix-functions/logb.texi: Mention the replacement and the bug
6280         with subnormal numbers.
6281
6282 2012-04-02  Bruno Haible  <bruno@clisp.org>
6283
6284         log10* tests: Speed up.
6285         * tests/test-log10.h (test_function): Reduce amount of random numbers
6286         to test.
6287
6288 2012-04-01  Bruno Haible  <bruno@clisp.org>
6289
6290         logf-ieee: Fix test whether logf works.
6291         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
6292
6293 2012-04-01  Bruno Haible  <bruno@clisp.org>
6294
6295         log10l: Work around log10l-ieee test failure on IRIX 6.5.
6296         * lib/log10l.c: Include <float.h>
6297         (log10l): On IRIX, normalize the +Infinity value.
6298         * modules/log10l (Depends-on): Add 'float'.
6299         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
6300         +Infinity.
6301
6302         log10f-ieee: Work around test failure on NetBSD 5.1.
6303         * m4/log10f-ieee.m4: New file.
6304         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
6305         test whether log10f works with a negative argument. Replace it if not.
6306         * lib/log10f.c (log10f): For negative arguments, return NaN.
6307         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
6308         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
6309         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
6310
6311         log10f-ieee: Work around test failure on Solaris 9.
6312         * modules/log10f-ieee (Depends-on): Add log10-ieee.
6313         (configure.ac): Require gl_FUNC_LOG10F.
6314
6315         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
6316         * m4/log10-ieee.m4: New file.
6317         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
6318         whether log10 works with a negative argument. Replace it if not.
6319         * lib/log10.c (log10): For negative arguments, return NaN.
6320         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
6321         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
6322         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
6323
6324         Tests for module 'log10l-ieee'.
6325         * modules/log10l-ieee-tests: New file.
6326         * tests/test-log10l-ieee.c: New file.
6327
6328         New module 'log10l-ieee'.
6329         * modules/log10l-ieee: New file.
6330
6331         Tests for module 'log10-ieee'.
6332         * modules/log10-ieee-tests: New file.
6333         * tests/test-log10-ieee.c: New file.
6334
6335         New module 'log10-ieee'.
6336         * modules/log10-ieee: New file.
6337
6338         Tests for module 'log10f-ieee'.
6339         * modules/log10f-ieee-tests: New file.
6340         * tests/test-log10f-ieee.c: New file.
6341         * tests/test-log10-ieee.h: New file.
6342
6343         New module 'log10f-ieee'.
6344         * modules/log10f-ieee: New file.
6345
6346 2012-04-01  Bruno Haible  <bruno@clisp.org>
6347
6348         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
6349         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
6350         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
6351         workaround.
6352         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
6353         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
6354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
6355         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
6356         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
6357         (Depends-on): Update conditions.
6358         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
6359         IRIX 6.5, OSF/1 5.1 problems.
6360
6361 2012-04-01  Bruno Haible  <bruno@clisp.org>
6362
6363         log10f: Work around OSF/1 5.1 bug.
6364         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
6365         * lib/log10f.c (log10f): If logf exists, use it and provide just the
6366         workaround.
6367         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
6368         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
6369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
6370         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
6371         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
6372         (Depends-on): Update conditions.
6373         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
6374
6375 2012-04-01  Bruno Haible  <bruno@clisp.org>
6376
6377         log10: Work around OSF/1 5.1 bug.
6378         * lib/math.in.h (log10): New declaration.
6379         * lib/log10.c: New file.
6380         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
6381         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
6382         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
6383         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
6384         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
6385         * modules/log10 (Files): Add lib/log10.c.
6386         (Depends-on): Add math.
6387         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
6388         * tests/test-math-c++.cc: Check the declaration of log10.
6389         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
6390
6391 2012-03-31  Bruno Haible  <bruno@clisp.org>
6392
6393         log10l tests: More tests.
6394         * modules/log10l-tests (Files): Add tests/test-log10l.h,
6395         tests/minus-zero.h, tests/randoml.c.
6396         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
6397         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
6398         (main): Invoke test_function.
6399
6400         log10f tests: More tests.
6401         * modules/log10f-tests (Files): Add tests/test-log10.h,
6402         tests/minus-zero.h, tests/randomf.c.
6403         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
6404         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
6405         (main): Invoke test_function.
6406
6407         log10 tests: More tests.
6408         * tests/test-log10.h: New file.
6409         * modules/log10-tests (Files): Add tests/test-log10.h,
6410         tests/minus-zero.h, tests/randomd.c.
6411         (Makefile.am): Add randomd.c to test_log10_SOURCES.
6412         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
6413         (main): Invoke test_function.
6414
6415 2012-03-31  Simon Josefsson  <simon@josefsson.org>
6416
6417         fflush: Fix syntax error.
6418         * lib/fflush.c: Include unused-parameter.h, needed for
6419         _GL_UNUSED_PARAMETER.
6420         * modules/fflush (Depends-on): Add snippet/unused-parameter.
6421
6422 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6423
6424         regex: pacify GCC when compiling GRUB
6425         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
6426         a diagnostic.  Reported by Vladimir Serbinenko in
6427         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
6428
6429 2012-03-29  Eric Blake  <eblake@redhat.com>
6430
6431         stdio: don't assume gets any more
6432         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
6433         support.
6434         * modules/stdio (Makefile.am): Likewise.
6435         * lib/stdio-read.c (gets): Likewise.
6436         * tests/test-stdio-c++.cc: Likewise.
6437         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
6438         * lib/stdio.in.h (gets): Make warning occur in more places.
6439         * doc/posix-functions/gets.texi (gets): Update documentation.
6440         Reported by Christer Solskogen.
6441
6442         maint.mk: fix syntax checks without exclusions
6443         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
6444         Reported by Daniel P. Berrange.
6445
6446         strerror_r: avoid compiler warning
6447         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
6448         level.
6449
6450         fflush: avoid compiler warning
6451         * lib/fflush.c (update_fpos_cache): Mark variables that are
6452         potentially unused.
6453
6454 2012-03-25  Bruno Haible  <bruno@clisp.org>
6455
6456         Tests for module 'localeconv'.
6457         * modules/localeconv-tests: New file.
6458         * tests/test-localeconv.c: New file.
6459
6460         New module 'localeconv'.
6461         * lib/locale.in.h (localeconv): New declaration.
6462         * lib/localeconv.c: New file.
6463         * m4/localeconv.m4: New file.
6464         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
6465         REPLACE_LOCALECONV.
6466         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
6467         REPLACE_LOCALECONV.
6468         * modules/localeconv: New file.
6469         * modules/nl_langinfo (Depends-on): Add localeconv.
6470         * modules/human (Depends-on): Likewise.
6471         * doc/posix-functions/localeconv.texi: Mention the new module.
6472
6473 2012-03-25  Bruno Haible  <bruno@clisp.org>
6474
6475         locale: Provide a complete 'struct lconv'.
6476         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6477         'struct lconv' does not contain int_p_cs_precedes.
6478         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6479         * doc/posix-headers/locale.texi: Update.
6480
6481         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
6482         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
6483         * doc/posix-headers/locale.texi: Update.
6484
6485         locale: Provide a working 'struct lconv'.
6486         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
6487         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
6488         'struct lconv' does not even contain decimal_point.
6489         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
6490         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
6491         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
6492         * doc/posix-headers/locale.texi: Mention the problems with
6493         'struct lconv'.
6494         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
6495
6496 2012-03-24  Bruno Haible  <bruno@clisp.org>
6497
6498         Enable common subexpression optimization in GCC.
6499         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
6500         macros.
6501         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
6502         GCC attribute 'const'.
6503         (uc_locale_language): Declare with GCC attribute 'pure'.
6504         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
6505         with GCC attribute 'const'.
6506         * lib/unictype.in.h (uc_is_general_category_withtable,
6507         uc_combining_class, uc_combining_class_name,
6508         uc_combining_class_long_name, uc_bidi_class_name,
6509         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
6510         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
6511         uc_decimal_value, uc_digit_value, uc_numeric_value,
6512         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
6513         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
6514         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
6515         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
6516         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
6517         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
6518         Declare with GCC attribute 'const'.
6519         (uc_general_category_name, uc_general_category_long_name,
6520         uc_general_category_byname, uc_general_category,
6521         uc_is_general_category, uc_combining_class_byname,
6522         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
6523         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
6524         Declare with GCC attribute 'pure'.
6525         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
6526         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
6527         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
6528         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
6529         with GCC attribute 'pure'.
6530         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
6531         'const'.
6532         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
6533         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
6534         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
6535         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
6536         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
6537         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
6538         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
6539         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
6540         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
6541         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
6542         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
6543         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
6544         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
6545         GCC attribute 'pure'.
6546         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
6547         'const'.
6548         * lib/uniwidth.in.h (uc_width): Simplify declaration.
6549         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
6550         u32_strwidth): Declare with GCC attribute 'pure'.
6551
6552         Enable common subexpression optimization in GCC.
6553         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6554         (alphasort): Declare with GCC attribute 'pure'.
6555         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6556         (atoll): Declare with GCC attribute 'pure'.
6557         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
6558         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
6559         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
6560         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
6561         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
6562         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
6563         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
6564
6565 2012-03-24  Bruno Haible  <bruno@clisp.org>
6566
6567         gnulib-tool: Avoid unintended error output from 'cmp'.
6568         * gnulib-tool (func_add_file, func_update_file, func_import): Use
6569         "cmp -s", not "cmp > /dev/null".
6570
6571 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
6572
6573         gnulib-tool: fix imprecise comments w.r.t. an automake bug
6574
6575         It's not just Automake versions < 1.9b that creates an empty
6576         pkgdatadir at installation time if pkgdata_DATA is specified
6577         to empty; modern automake versions do this as well, at least
6578         until automake 1.11.4 (not yet released at the moment of writing,
6579         but soon to appear).  That behaviour was generally considered a
6580         feature rather than a bug, at least until this discussion:
6581         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
6582
6583         See also automake bugs #10997 and #11030.
6584
6585         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
6586         reference to relevant automake bug numbers.
6587         (func_emit_tests_Makefile_am): Likewise.
6588
6589 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6590
6591         announce-gen: use Digest::SHA when possible
6592         * build-aux/announce-gen: Use Digest::SHA when possible, falling
6593         back to Digest::SHA1 if necessary.
6594
6595 2012-03-20  Jim Meyering  <meyering@redhat.com>
6596
6597         tests: avoid gcc warnings about argv vs. const initializers
6598         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
6599         warnings about discarding 'const' qualifier from pointer target type.
6600         * tests/test-posix_spawn2.c (main): Likewise.
6601
6602 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
6603
6604         README-release: simplify slightly
6605         * top/README-release: Run "git checkout master" only once.
6606
6607 2012-03-15  Mark Wielaard  <mark@klomp.org>
6608
6609         git-merge-changelog: add specific example on how to use with hg.
6610         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
6611
6612 2012-03-18  Mark Wielaard  <mark@klomp.org>
6613
6614         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
6615
6616 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
6617
6618         git-version-gen: don't let "prefix" envvar cause trouble
6619         * build-aux/git-version-gen (prefix): Initialize properly,
6620         so as not to use a value specified via the environment.
6621         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
6622
6623 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6624
6625         regex: diagnose too-large repeat counts in EREs
6626         Previously, the code did not diagnose the too-large repeat count
6627         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
6628         as if it were 'b\{1000000000}', which is unexpected.
6629         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
6630         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
6631         is a reasonable one for this problem.  Another option would be to
6632         create a new REG_OVERFLOW error for repeat counts that are too large.
6633         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
6634         count is too large, so that the caller can distinguish the two cases.
6635         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
6636         "Too large" return code, and that repeat counts are one example of this.
6637
6638 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
6639
6640         doc: some glibc x32 integer width issues
6641         * doc/posix-headers/sys_types.texi (sys/types.h):
6642         * doc/posix-headers/time.texi (time.h):
6643         Mention that glibc x32 does not conform to POSIX in a couple of
6644         areas related to integer widths.
6645
6646 2012-03-15  Bruno Haible  <bruno@clisp.org>
6647
6648         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
6649         * lib/fma.c (VOLATILE): New macro.
6650         (FUNC): Use it to work around a GCC compiler bug.
6651
6652 2012-03-13  Bruno Haible  <bruno@clisp.org>
6653
6654         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6655         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
6656         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
6657         REPLACE_HYPOTL to 1.
6658         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
6659
6660 2012-03-13  Bruno Haible  <bruno@clisp.org>
6661
6662         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6663         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
6664         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
6665         REPLACE_REMAINDERL to 1.
6666         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
6667         bug.
6668
6669 2012-03-13  Bruno Haible  <bruno@clisp.org>
6670
6671         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6672         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
6673         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
6674         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
6675         too big rounding errors.
6676         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
6677         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
6678         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
6679         (Depends-on): Update conditions.
6680         * tests/test-sqrtl.c (my_ldexpl): New function.
6681         (main): Add test of a particular value.
6682         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6683
6684 2012-03-13  Pádraig Brady  <P@draigBrady.com>
6685
6686         doc: Update timer_* platform portability notes.
6687         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
6688         that always return ENOSYS.
6689         * doc/posix-functions/timer_delete.texi: Likewise.
6690         * doc/posix-functions/timer_gettime.texi: Likewise.
6691         * doc/posix-functions/timer_settime.texi: Likewise.
6692
6693 2012-03-13  Bruno Haible  <bruno@clisp.org>
6694
6695         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
6696         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
6697         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
6698         REPLACE_CBRTL to 1.
6699         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
6700
6701 2012-03-13  Bruno Haible  <bruno@clisp.org>
6702
6703         remainderl: Avoid compilation error on AIX >= 5.2.
6704         * lib/math.in.h (remainderl): Undefine macro from the system header.
6705
6706 2012-03-13  Bruno Haible  <bruno@clisp.org>
6707
6708         Avoid compilation errors with MSVC option -fp:strict.
6709         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
6710         * lib/cbrtf.c: Likewise.
6711         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6712
6713 2012-03-12  Bruno Haible  <bruno@clisp.org>
6714
6715         uninorm: Don't crash in out-of-memory conditions.
6716         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
6717         gracefully.
6718         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
6719         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
6720
6721 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
6722
6723         quote: fix syntax-check
6724         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
6725         also exports quote_quoting_options.
6726
6727 2012-03-12  Simon Josefsson  <simon@josefsson.org>
6728
6729         Collapse list of copyright years to ranges.  See
6730         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
6731         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
6732         build-aux/csharpexec.sh.in, build-aux/gnupload,
6733         build-aux/install-reloc, build-aux/javacomp.sh.in,
6734         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
6735         build-aux/move-if-change, build-aux/reloc-ldflags,
6736         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
6737
6738 2012-03-11  Bruno Haible  <bruno@clisp.org>
6739
6740         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6741         * m4/log2f-ieee.m4: New file.
6742         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
6743         whether log2f works with a minus zero argument. Replace it if not.
6744         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
6745         (Depends-on): Add log2-ieee.
6746         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
6747         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
6748
6749         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
6750         * m4/log2-ieee.m4: New file.
6751         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
6752         whether log2 works with a minus zero argument. Replace it if not.
6753         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
6754         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
6755         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
6756
6757         Tests for module 'log2l-ieee'.
6758         * modules/log2l-ieee-tests: New file.
6759         * tests/test-log2l-ieee.c: New file.
6760
6761         New module 'log2l-ieee'.
6762         * modules/log2l-ieee: New file.
6763
6764         Tests for module 'log2-ieee'.
6765         * modules/log2-ieee-tests: New file.
6766         * tests/test-log2-ieee.c: New file.
6767
6768         New module 'log2-ieee'.
6769         * modules/log2-ieee: New file.
6770
6771         Tests for module 'log2f-ieee'.
6772         * modules/log2f-ieee-tests: New file.
6773         * tests/test-log2f-ieee.c: New file.
6774         * tests/test-log2-ieee.h: New file.
6775
6776         New module 'log2f-ieee'.
6777         * modules/log2f-ieee: New file.
6778
6779 2012-03-11  Bruno Haible  <bruno@clisp.org>
6780
6781         Tests for module 'log2l'.
6782         * modules/log2l-tests: New file.
6783         * tests/test-log2l.c: New file.
6784
6785         New module 'log2l'.
6786         * lib/math.in.h (log2l): New declaration.
6787         * lib/log2l.c: New file.
6788         * m4/log2l.m4: New file.
6789         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
6790         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
6791         REPLACE_LOG2L.
6792         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
6793         REPLACE_LOG2L.
6794         * modules/log2l: New file.
6795         * tests/test-math-c++.cc: Check the declaration of log2l.
6796         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
6797         and OSF/1 problems.
6798
6799 2012-03-11  Bruno Haible  <bruno@clisp.org>
6800
6801         Tests for module 'log2f'.
6802         * modules/log2f-tests: New file.
6803         * tests/test-log2f.c: New file.
6804
6805         New module 'log2f'.
6806         * lib/math.in.h (log2f): New declaration.
6807         * lib/log2f.c: New file.
6808         * m4/log2f.m4: New file.
6809         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
6810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
6811         REPLACE_LOG2F.
6812         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
6813         REPLACE_LOG2F.
6814         * modules/log2f: New file.
6815         * tests/test-math-c++.cc: Check the declaration of log2f.
6816         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
6817         and OSF/1 and Cygwin problems.
6818
6819 2012-03-11  Bruno Haible  <bruno@clisp.org>
6820
6821         Tests for module 'log2'.
6822         * modules/log2-tests: New file.
6823         * tests/test-log2.c: New file.
6824         * tests/test-log2.h: New file.
6825
6826         New module 'log2'.
6827         * lib/math.in.h (log2): New declaration.
6828         * lib/log2.c: New file.
6829         * m4/log2.m4: New file.
6830         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
6831         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
6832         REPLACE_LOG2.
6833         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
6834         REPLACE_LOG2.
6835         * modules/log2: New file.
6836         * tests/test-math-c++.cc: Check the declaration of log2.
6837         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
6838         and OSF/1 and Cygwin problems.
6839
6840 2012-03-11  Bruno Haible  <bruno@clisp.org>
6841
6842         exp2* tests: More tests.
6843         * tests/test-exp2.h (test_function): Test all integral arguments that
6844         don't need to overflow or denormalized numbers.
6845         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
6846         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
6847         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
6848
6849 2012-03-10  Bruno Haible  <bruno@clisp.org>
6850
6851         log1pl-ieee: Work around test failure on AIX 7.1.
6852         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
6853
6854         log1pl-ieee: Work around test failure on IRIX 6.5.
6855         * m4/log1pl-ieee.m4: New file.
6856         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
6857         test whether log1pl works with a minus zero argument. Replace it if
6858         not.
6859         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
6860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
6861         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
6862         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
6863         (Depends-on): Update conditions.
6864         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6865         m4/signbit.m4.
6866         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
6867         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
6868
6869         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
6870         * m4/log1pf-ieee.m4: New file.
6871         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
6872         test whether log1pf works with a minus zero argument. Replace it if
6873         not.
6874         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
6875         m4/signbit.m4.
6876         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
6877         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
6878
6879         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
6880         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
6881         (configure.ac): Require gl_FUNC_LOG1PF.
6882
6883         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
6884         * m4/log1p-ieee.m4: New file.
6885         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
6886         whether log1p works with a minus zero argument. Replace it if not.
6887         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
6888         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
6889         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
6890         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
6891         (Depends-on): Update conditions.
6892         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
6893         m4/signbit.m4.
6894         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
6895         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
6896
6897         Tests for module 'log1pl-ieee'.
6898         * modules/log1pl-ieee-tests: New file.
6899         * tests/test-log1pl-ieee.c: New file.
6900
6901         New module 'log1pl-ieee'.
6902         * modules/log1pl-ieee: New file.
6903
6904         Tests for module 'log1p-ieee'.
6905         * modules/log1p-ieee-tests: New file.
6906         * tests/test-log1p-ieee.c: New file.
6907
6908         New module 'log1p-ieee'.
6909         * modules/log1p-ieee: New file.
6910
6911         Tests for module 'log1pf-ieee'.
6912         * modules/log1pf-ieee-tests: New file.
6913         * tests/test-log1pf-ieee.c: New file.
6914         * tests/test-log1p-ieee.h: New file.
6915
6916         New module 'log1pf-ieee'.
6917         * modules/log1pf-ieee: New file.
6918
6919 2012-03-10  Bruno Haible  <bruno@clisp.org>
6920
6921         Tests for module 'log1pl'.
6922         * modules/log1pl-tests: New file.
6923         * tests/test-log1pl.c: New file.
6924
6925         New module 'log1pl'.
6926         * lib/math.in.h (log1pl): New declaration.
6927         * lib/log1pl.c: New file.
6928         * m4/log1pl.m4: New file.
6929         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
6930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
6931         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
6932         * modules/log1pl: New file.
6933         * tests/test-math-c++.cc: Check the declaration of log1pl.
6934         * doc/posix-functions/log1pl.texi: Mention the new module.
6935
6936 2012-03-10  Bruno Haible  <bruno@clisp.org>
6937
6938         Tests for module 'log1pf'.
6939         * modules/log1pf-tests: New file.
6940         * tests/test-log1pf.c: New file.
6941
6942         New module 'log1pf'.
6943         * lib/math.in.h (log1pf): New declaration.
6944         * lib/log1pf.c: New file.
6945         * m4/log1pf.m4: New file.
6946         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
6947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
6948         REPLACE_LOG1PF.
6949         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
6950         REPLACE_LOG1PF.
6951         * modules/log1pf: New file.
6952         * tests/test-math-c++.cc: Check the declaration of log1pf.
6953         * doc/posix-functions/log1pf.texi: Mention the new module.
6954
6955 2012-03-10  Bruno Haible  <bruno@clisp.org>
6956
6957         log1p tests: More tests.
6958         * tests/test-log1p.h: New file.
6959         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
6960         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
6961         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
6962         (main): Invoke test_function.
6963
6964         log1p: Provide replacement for Minix and MSVC.
6965         * lib/math.in.h (log1p): New declaration.
6966         * lib/log1p.c: New file.
6967         * m4/log1p.m4: New file.
6968         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
6969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
6970         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
6971         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
6972         (Depends-on): Add math, isnand, log, round.
6973         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
6974         HAVE_LOG1P is 0.
6975         * tests/test-math-c++.cc: Check the declaration of log1p.
6976         * doc/posix-functions/log1p.texi: Mention the replacement.
6977
6978 2012-03-10  Bruno Haible  <bruno@clisp.org>
6979
6980         math tests: Small simplification.
6981         * tests/test-exp.h (test_function): Use the same err_bound for
6982         'double' on platforms with sizeof (long double) == sizeof (double)
6983         than on platforms with sizeof (long double) > sizeof (double).
6984         * tests/test-exp2.h (test_function): Likewise.
6985         * tests/test-expm1.h (test_function): Likewise.
6986         * tests/test-log.h (test_function): Likewise.
6987
6988 2012-03-10  Bruno Haible  <bruno@clisp.org>
6989
6990         Fix some comments.
6991         * lib/expl.c: Fix an ambiguous comment.
6992         * lib/expm1.c: Likewise.
6993         * lib/expm1l.c: Likewise.
6994         * lib/exp2.c: Likewise.
6995         * lib/exp2l.c: Likewise.
6996
6997 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
6998
6999         regex: allow inclusion of <regex.h> before <limits.h>
7000         Without this patch, portable programs had to include <limits.h> before
7001         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
7002         I ran into this problem with a test version of GNU grep on Solaris 8.
7003         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
7004         This is done conditionally so that this change can be merged
7005         back to glibc.
7006         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
7007         using the included regex.
7008
7009         fts: depend on fdopendir
7010         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
7011         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
7012         problem was introduced when fdopendir was split out.
7013
7014 2012-03-10  Bruno Haible  <bruno@clisp.org>
7015
7016         Remove unused variables.
7017         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
7018         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7019
7020 2012-03-10  Bruno Haible  <bruno@clisp.org>
7021
7022         isnanf-nolibm: Fix last commit.
7023         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
7024
7025         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
7026         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
7027
7028 2012-03-10  Bruno Haible  <bruno@clisp.org>
7029
7030         logf-ieee: Work around test failure on NetBSD 5.1.
7031         * m4/logf-ieee.m4: New file.
7032         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
7033         whether logf works with a negative argument. Replace it if not.
7034         * lib/logf.c (logf): For negative arguments, return NaN.
7035         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
7036         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
7037         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
7038
7039         logf-ieee: Work around test failure on Solaris 9.
7040         * modules/logf-ieee (Depends-on): Add log-ieee.
7041         (configure.ac): Require gl_FUNC_LOGF.
7042
7043         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
7044         * m4/log-ieee.m4: New file.
7045         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
7046         log works with a negative argument. Replace it if not.
7047         * lib/log.c (log): For negative arguments, return NaN.
7048         * modules/log-ieee (Files): Add m4/log-ieee.m4.
7049         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
7050         * doc/posix-functions/log.texi: Mention the log-ieee module.
7051
7052         Tests for module 'logl-ieee'.
7053         * modules/logl-ieee-tests: New file.
7054         * tests/test-logl-ieee.c: New file.
7055
7056         New module 'logl-ieee'.
7057         * modules/logl-ieee: New file.
7058
7059         Tests for module 'log-ieee'.
7060         * modules/log-ieee-tests: New file.
7061         * tests/test-log-ieee.c: New file.
7062
7063         New module 'log-ieee'.
7064         * modules/log-ieee: New file.
7065
7066         Tests for module 'logf-ieee'.
7067         * modules/logf-ieee-tests: New file.
7068         * tests/test-logf-ieee.c: New file.
7069         * tests/test-log-ieee.h: New file.
7070
7071         New module 'logf-ieee'.
7072         * modules/logf-ieee: New file.
7073
7074 2012-03-10  Bruno Haible  <bruno@clisp.org>
7075
7076         log: Fix bug introduced on 2012-03-09.
7077         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
7078
7079 2012-03-10  Pádraig Brady  <P@draigBrady.com>
7080
7081         timer-time: link explicitly with pthreads on glibc
7082         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
7083         to support static linking, when newer glibc is
7084         detected, as that contains pthread emulation of
7085         POSIX timer functions where required.
7086         * modules/timer-time: Depend on threadlib to
7087         pull in the appropriate library to link.
7088
7089 2012-03-10  Bruno Haible  <bruno@clisp.org>
7090
7091         log* tests: More tests.
7092         * tests/test-log.h: New file.
7093         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
7094         (main): Invoke test_function.
7095         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
7096         (main): Invoke test_function.
7097         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
7098         (main): Invoke test_function.
7099         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7100         tests/randomd.c.
7101         (Makefile.am): Add randomd.c to test_log_SOURCES.
7102         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7103         tests/randomf.c.
7104         (Makefile.am): Add randomf.c to test_logf_SOURCES.
7105         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
7106         tests/randoml.c.
7107         (Depends-on): Add 'float'.
7108         (Makefile.am): Add randoml.c to test_logl_SOURCES.
7109
7110 2012-03-09  Bruno Haible  <bruno@clisp.org>
7111
7112         logl: Work around OSF/1 5.1 bug.
7113         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
7114         * lib/logl.c (logl): If logl exists, use it and provide just the
7115         workaround.
7116         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
7117         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
7118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
7119         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
7120         * modules/logl (configure.ac): Consider REPLACE_LOGL.
7121         (Depends-on): Update conditions.
7122         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
7123
7124 2012-03-09  Bruno Haible  <bruno@clisp.org>
7125
7126         logf: Work around OSF/1 5.1 bug.
7127         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
7128         * lib/logf.c (logf): If logf exists, use it and provide just the
7129         workaround.
7130         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
7131         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
7132         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
7133         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
7134         * modules/logf (configure.ac): Consider REPLACE_LOGF.
7135         (Depends-on): Update conditions.
7136         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
7137
7138 2012-03-09  Bruno Haible  <bruno@clisp.org>
7139
7140         log: Work around OSF/1 5.1 bug.
7141         * lib/math.in.h (log): New declaration.
7142         * lib/log.c: New file.
7143         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
7144         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
7145         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
7146         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
7147         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
7148         * modules/log (Files): Add lib/log.c.
7149         (Depends-on): Add math.
7150         (configure.ac): If REPLACE_LOG is 1, compile an override.
7151         * tests/test-math-c++.cc: Check the declaration of log.
7152         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
7153
7154 2012-03-09  Jim Meyering  <meyering@redhat.com>
7155
7156         readtokens.c: adjust wording in a comment
7157         * lib/readtokens.c: Insert omitted "that" in a comment.
7158
7159 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7160
7161         modechange: add notations +40, 00440, etc.
7162         * lib/modechange.c (mode_compile): Support new notations
7163         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
7164
7165 2012-03-08  Bruno Haible  <bruno@clisp.org>
7166
7167         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
7168         * m4/exp2l-ieee.m4: New file.
7169         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
7170         test whether exp2l works with a NaN argument and with a negative
7171         infinity argument. Replace it if not.
7172         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
7173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
7174         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
7175         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
7176         (Depends-on): Update conditions.
7177         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
7178         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
7179         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
7180
7181         Tests for module 'exp2l-ieee'.
7182         * modules/exp2l-ieee-tests: New file.
7183         * tests/test-exp2l-ieee.c: New file.
7184
7185         New module 'exp2l-ieee'.
7186         * modules/exp2l-ieee: New file.
7187
7188         Tests for module 'exp2-ieee'.
7189         * modules/exp2-ieee-tests: New file.
7190         * tests/test-exp2-ieee.c: New file.
7191
7192         New module 'exp2-ieee'.
7193         * modules/exp2-ieee: New file.
7194
7195         Tests for module 'exp2f-ieee'.
7196         * modules/exp2f-ieee-tests: New file.
7197         * tests/test-exp2f-ieee.c: New file.
7198         * tests/test-exp2-ieee.h: New file.
7199
7200         New module 'exp2f-ieee'.
7201         * modules/exp2f-ieee: New file.
7202
7203 2012-03-08  Bruno Haible  <bruno@clisp.org>
7204
7205         Tests for module 'exp2l'.
7206         * modules/exp2l-tests: New file.
7207         * tests/test-exp2l.c: New file.
7208
7209         New module 'exp2l'.
7210         * lib/math.in.h (exp2l): New declaration.
7211         * lib/exp2l.c: New file.
7212         * lib/expl-table.c: New file, extracted from lib/expl.c.
7213         * lib/expl.c (gl_expl_table): New declaration.
7214         (expl): Remove expl_table. Update reference.
7215         * m4/exp2l.m4: New file.
7216         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
7217         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
7218         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
7219         * modules/exp2l: New file.
7220         * modules/expl (Files): Add lib/expl-table.c.
7221         (configure.ac): Compile also expl-table.c.
7222         * tests/test-math-c++.cc: Check the declaration of exp2l.
7223         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
7224         problem.
7225
7226 2012-03-08  Bruno Haible  <bruno@clisp.org>
7227
7228         Tests for module 'exp2f'.
7229         * modules/exp2f-tests: New file.
7230         * tests/test-exp2f.c: New file.
7231
7232         New module 'exp2f'.
7233         * lib/math.in.h (exp2f): New declaration.
7234         * lib/exp2f.c: New file.
7235         * m4/exp2f.m4: New file.
7236         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
7237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
7238         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
7239         * modules/exp2f: New file.
7240         * tests/test-math-c++.cc: Check the declaration of exp2f.
7241         * doc/posix-functions/exp2f.texi: Mention the new module and the
7242         IRIX problem.
7243
7244 2012-03-08  Bruno Haible  <bruno@clisp.org>
7245
7246         Tests for module 'exp2'.
7247         * modules/exp2-tests: New file.
7248         * tests/test-exp2.c: New file.
7249         * tests/test-exp2.h: New file.
7250
7251         New module 'exp2'.
7252         * lib/math.in.h (exp2): New declaration.
7253         * lib/exp2.c: New file.
7254         * m4/exp2.m4: New file.
7255         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
7256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
7257         REPLACE_EXP2.
7258         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
7259         REPLACE_EXP2.
7260         * modules/exp2: New file.
7261         * tests/test-math-c++.cc: Check the declaration of exp2.
7262         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
7263         and OpenBSD problems.
7264
7265 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
7266
7267         savedir: fix comment typo
7268         * lib/savedir.c (savedirstream): Fix typo in comment.
7269
7270 2012-03-08  Bruno Haible  <bruno@clisp.org>
7271
7272         test-readtokens.c: use const; remove unwarranted cast
7273         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
7274
7275 2012-03-08  Bruno Haible  <bruno@clisp.org>
7276
7277         fmal: Avoid compilation error on AIX.
7278         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
7279         AIX 5.2..7.1.
7280
7281 2012-03-08  Bruno Haible  <bruno@clisp.org>
7282
7283         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
7284         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
7285         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
7286         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
7287         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
7288         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
7289         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
7290
7291 2012-03-08  Bruno Haible  <bruno@clisp.org>
7292
7293         remainderf: Override buggy system function on IRIX 6.5.
7294         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
7295         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
7296         when it exists.
7297         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
7298
7299 2012-03-08  Jim Meyering  <meyering@redhat.com>
7300
7301         test-readtokens.c: avoid const-related compilation warnings
7302         * tests/test-readtokens.c: Avoid const-related compilation warnings.
7303
7304 2012-03-07  Jim Meyering  <meyering@redhat.com>
7305             Bruno Haible  <bruno@clisp.org>
7306
7307         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
7308         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
7309         tests/randomd.c.
7310         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
7311         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
7312         tests/randoml.c.
7313         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
7314
7315 2012-03-07  Bruno Haible  <bruno@clisp.org>
7316
7317         expm1l: Avoid compilation error on AIX.
7318         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
7319         AIX 5.2..7.1.
7320
7321 2012-03-07  Bruno Haible  <bruno@clisp.org>
7322
7323         expm1l: Don't override undeclared system function on IRIX 6.5.
7324         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
7325         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
7326         it exists. Set HAVE_DECL_EXPM1L.
7327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
7328         HAVE_EXPM1L.
7329         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
7330         HAVE_EXPM1L.
7331         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
7332
7333 2012-03-07  Bruno Haible  <bruno@clisp.org>
7334
7335         remainderl: Don't override undeclared system function on IRIX 6.5.
7336         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
7337         HAVE_REMAINDERL.
7338         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
7339         declared when it exists. Set HAVE_DECL_REMAINDERL.
7340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
7341         not HAVE_REMAINDERL.
7342         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
7343         HAVE_REMAINDERL.
7344         * doc/posix-functions/remainderl.texi: Mention missing declaration
7345         problem.
7346
7347 2012-03-07  Bruno Haible  <bruno@clisp.org>
7348
7349         rintf: Don't override undeclared system function on IRIX 6.5.
7350         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
7351         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
7352         exists. Set HAVE_DECL_RINTF.
7353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
7354         HAVE_RINTF.
7355         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
7356         HAVE_RINTF.
7357         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
7358
7359 2012-03-07  Bruno Haible  <bruno@clisp.org>
7360
7361         roundl: Avoid compilation error on AIX.
7362         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
7363         AIX 5.2..7.1.
7364
7365 2012-03-07  Bruno Haible  <bruno@clisp.org>
7366
7367         roundl: Don't override undeclared system function on IRIX 6.5.
7368         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
7369         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
7370         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7371         * modules/roundl (configure.ac): For replacement code, test
7372         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
7373         (Depends-on): Update conditions.
7374         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
7375
7376 2012-03-07  Bruno Haible  <bruno@clisp.org>
7377
7378         roundf: Don't override undeclared system function on IRIX 6.5.
7379         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
7380         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
7381         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7382         * modules/roundf (configure.ac): For replacement code, test
7383         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
7384         (Depends-on): Update conditions.
7385         * modules/roundf-ieee (Depends-on): Update conditions.
7386         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
7387
7388 2012-03-07  Bruno Haible  <bruno@clisp.org>
7389
7390         round: Don't override undeclared system function on IRIX 6.5.
7391         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
7392         argument.
7393         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
7394         also when it is not declared. Set HAVE_ROUND. For replacement code,
7395         test HAVE_ROUND, not HAVE_DECL_ROUND.
7396         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
7397         not HAVE_DECL_ROUND.
7398         (Depends-on): Update conditions.
7399         * modules/round-ieee (Depends-on): Update conditions.
7400         * doc/posix-functions/round.texi: Mention the IRIX problem.
7401
7402 2012-03-07  Bruno Haible  <bruno@clisp.org>
7403
7404         copysignf: Don't override undeclared system function on IRIX 6.5.
7405         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
7406         HAVE_COPYSIGNF.
7407         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
7408         declared when it exists. Set HAVE_DECL_COPYSIGNF.
7409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
7410         not HAVE_COPYSIGNF.
7411         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
7412         HAVE_COPYSIGNF.
7413         * doc/posix-functions/copysignf.texi: Mention missing declaration
7414         problem.
7415
7416 2012-03-07  Jim Meyering  <meyering@redhat.com>
7417
7418         readtokens: add tests
7419         * modules/readtokens-tests: New file.
7420         * tests/test-readtokens.c: New file.
7421
7422 2012-03-07  Jim Meyering  <meyering@redhat.com>
7423
7424         quotearg: the module must now include quote.h
7425         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
7426         So must the module.
7427         * modules/quotearg (Files): Add quote.h.
7428
7429 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
7430
7431         readtokens: avoid core dumps with unusual calling patterns
7432         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
7433         * lib/readtokens.c: Include limits.h.
7434         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
7435         (readtoken): Don't cache the delimiters; the cache code was buggy
7436         if !delim && saved_delim, or if the new n_delim differs from the old.
7437         Also, it wasn't thread-safe.
7438
7439 2012-03-07  Bruno Haible  <bruno@clisp.org>
7440
7441         quote: Adhere to common module description layout.
7442         * modules/quote (Makefile.am): Add back empty section.
7443
7444 2012-03-06  Akim Demaille  <demaille@gostai.com>
7445
7446         quote: fuse into quotearg
7447         This patch is made for the benefit of Bison.
7448         quote does not leave the choice of the quoting style to the user.
7449         quoting_style provides poor customizability, yet quoting_options,
7450         which is very rich, is hidden inside quotearg.c.  So in order to
7451         allow quote customization, move its implementation to quotearg.c.
7452         * lib/quote.c: Remove.
7453         * modules/quote: Adjust.
7454         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
7455         warning: provide all the members of literal structs.
7456         (quote_quoting_options): New.
7457         (quote, quote_n): Import implementation from quote.c.
7458         * lib/quote.h: Import the comments from quote.c.
7459         (quote_quoting_options): New.
7460
7461 2012-03-06  Bruno Haible  <bruno@clisp.org>
7462
7463         Tests for module 'expm1l-ieee'.
7464         * modules/expm1l-ieee-tests: New file.
7465         * tests/test-expm1l-ieee.c: New file.
7466
7467         New module 'expm1l-ieee'.
7468         * modules/expm1l-ieee: New file.
7469
7470         Tests for module 'expm1f-ieee'.
7471         * modules/expm1f-ieee-tests: New file.
7472         * tests/test-expm1f-ieee.c: New file.
7473
7474         New module 'expm1f-ieee'.
7475         * modules/expm1f-ieee: New file.
7476
7477         Tests for module 'expm1-ieee'.
7478         * modules/expm1-ieee-tests: New file.
7479         * tests/test-expm1-ieee.c: New file.
7480         * tests/test-expm1-ieee.h: New file.
7481
7482         New module 'expm1-ieee'.
7483         * modules/expm1-ieee: New file.
7484         * m4/expm1-ieee.m4: New file.
7485         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
7486         whether expm1 works with a minus zero argument. Replace it if not.
7487         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
7488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
7489         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
7490         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
7491         (Depends-on): Update conditions.
7492         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
7493         AIX problem.
7494
7495 2012-03-06  Bruno Haible  <bruno@clisp.org>
7496
7497         Work around expm1f bug on IRIX 6.5.
7498         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
7499         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
7500         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
7501         not work.
7502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
7503         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
7504         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
7505         (Depends-on): Update conditions.
7506         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
7507
7508 2012-03-06  Bruno Haible  <bruno@clisp.org>
7509
7510         Tests for module 'expm1l'.
7511         * modules/expm1l-tests: New file.
7512         * tests/test-expm1l.c: New file.
7513
7514         New module 'expm1l'.
7515         * lib/math.in.h (expm1l): New declaration.
7516         * lib/expm1l.c: New file.
7517         * m4/expm1l.m4: New file.
7518         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
7519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
7520         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
7521         * modules/expm1l: New file.
7522         * tests/test-math-c++.cc: Check the declaration of expm1l.
7523         * doc/posix-functions/expm1l.texi: Mention the new module.
7524
7525 2012-03-06  Bruno Haible  <bruno@clisp.org>
7526
7527         Tests for module 'expm1f'.
7528         * modules/expm1f-tests: New file.
7529         * tests/test-expm1f.c: New file.
7530
7531         New module 'expm1f'.
7532         * lib/math.in.h (expm1f): New declaration.
7533         * lib/expm1f.c: New file.
7534         * m4/expm1f.m4: New file.
7535         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
7536         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
7537         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
7538         * modules/expm1f: New file.
7539         * tests/test-math-c++.cc: Check the declaration of expm1f.
7540         * doc/posix-functions/expm1f.texi: Mention the new module.
7541
7542 2012-03-06  Bruno Haible  <bruno@clisp.org>
7543
7544         Tests for module 'expm1'.
7545         * modules/expm1-tests: New file.
7546         * tests/test-expm1.c: New file.
7547         * tests/test-expm1.h: New file.
7548
7549         New module 'expm1'.
7550         * lib/math.in.h (expm1): New declaration.
7551         * lib/expm1.c: New file.
7552         * m4/expm1.m4: New file.
7553         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
7554         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
7555         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
7556         * modules/expm1: New file.
7557         * tests/test-math-c++.cc: Check the declaration of expm1.
7558         * doc/posix-functions/expm1.texi: Mention the new module.
7559
7560 2012-03-06  Bruno Haible  <bruno@clisp.org>
7561
7562         math: Ensure declarations of math functions.
7563         * modules/acosf (Depends-on): Add 'extensions'.
7564         * modules/asinf (Depends-on): Likewise.
7565         * modules/atan2f (Depends-on): Likewise.
7566         * modules/atanf (Depends-on): Likewise.
7567         * modules/cbrt (Depends-on): Likewise.
7568         * modules/cbrtf (Depends-on): Likewise.
7569         * modules/cbrtl (Depends-on): Likewise.
7570         * modules/copysignf (Depends-on): Likewise.
7571         * modules/copysignl (Depends-on): Likewise.
7572         * modules/cosf (Depends-on): Likewise.
7573         * modules/coshf (Depends-on): Likewise.
7574         * modules/expf (Depends-on): Likewise.
7575         * modules/fabsf (Depends-on): Likewise.
7576         * modules/fabsl (Depends-on): Likewise.
7577         * modules/fmaf (Depends-on): Likewise.
7578         * modules/fmal (Depends-on): Likewise.
7579         * modules/fmodf (Depends-on): Likewise.
7580         * modules/fmodl (Depends-on): Likewise.
7581         * modules/frexpf (Depends-on): Likewise.
7582         * modules/frexpl (Depends-on): Likewise.
7583         * modules/hypot (Depends-on): Likewise.
7584         * modules/hypotf (Depends-on): Likewise.
7585         * modules/hypotl (Depends-on): Likewise.
7586         * modules/ldexpf (Depends-on): Likewise.
7587         * modules/ldexpl (Depends-on): Likewise.
7588         * modules/log10f (Depends-on): Likewise.
7589         * modules/log10l (Depends-on): Likewise.
7590         * modules/log1p (Depends-on): Likewise.
7591         * modules/logb (Depends-on): Likewise.
7592         * modules/logf (Depends-on): Likewise.
7593         * modules/modff (Depends-on): Likewise.
7594         * modules/modfl (Depends-on): Likewise.
7595         * modules/powf (Depends-on): Likewise.
7596         * modules/remainderf (Depends-on): Likewise.
7597         * modules/remainderl (Depends-on): Likewise.
7598         * modules/rintf (Depends-on): Likewise.
7599         * modules/rintl (Depends-on): Likewise.
7600         * modules/sinf (Depends-on): Likewise.
7601         * modules/sinhf (Depends-on): Likewise.
7602         * modules/sqrtf (Depends-on): Likewise.
7603         * modules/tanf (Depends-on): Likewise.
7604         * modules/tanhf (Depends-on): Likewise.
7605         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
7606         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
7607         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
7608         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
7609         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
7610         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
7611         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
7612         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
7613         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
7614         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
7615         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
7616         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
7617         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
7618         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
7619         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
7620         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
7621         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
7622         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
7623         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
7624         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
7625         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
7626         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
7627         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
7628         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
7629         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
7630         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
7631         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
7632         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
7633         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
7634         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
7635         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
7636         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
7637         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
7638         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
7639         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7640         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7641         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
7642         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
7643         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
7644         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
7645         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
7646
7647 2012-03-06  Bruno Haible  <bruno@clisp.org>
7648
7649         math: Update module names in warnings.
7650         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
7651         tanl): Use specific module name in warn-on-use warning.
7652
7653 2012-03-06  Bruno Haible  <bruno@clisp.org>
7654
7655         expl: Simplify computation.
7656         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
7657
7658 2012-03-05  Bruno Haible  <bruno@clisp.org>
7659
7660         exp* tests: More tests.
7661         * tests/test-exp.h: New file.
7662         * tests/test-exp.c: Include <float.h> and test-exp.h.
7663         (main): Invoke test_function.
7664         * tests/test-expf.c: Include <float.h> and test-exp.h.
7665         (main): Invoke test_function.
7666         * tests/test-expl.c: Include <float.h> and test-exp.h.
7667         (main): Invoke test_function.
7668         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
7669         (Makefile.am): Add randomd.c to test_exp_SOURCES.
7670         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
7671         (Makefile.am): Add randomf.c to test_expf_SOURCES.
7672         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
7673         (Depends-on): Add 'float'.
7674         (Makefile.am): Add randoml.c to test_expl_SOURCES.
7675
7676         expl: Fix precision of computed result.
7677         * lib/expl.c: Completely rewritten.
7678         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
7679         (Maintainer): Add me.
7680         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
7681
7682 2012-03-05  Bruno Haible  <bruno@clisp.org>
7683
7684         cbrt* tests: More tests.
7685         * tests/test-cbrt.h: New file.
7686         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
7687         (main): Invoke test_function.
7688         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
7689         (main): Invoke test_function.
7690         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
7691         (main): Invoke test_function.
7692         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
7693         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
7694         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
7695         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
7696         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
7697         (Depends-on): Add 'float'.
7698         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
7699
7700 2012-03-05  Bruno Haible  <bruno@clisp.org>
7701
7702         hypot* tests: More tests.
7703         * tests/test-hypot.h: New file, partially extracted from
7704         tests/test-hypotl.c.
7705         * tests/test-hypot.c: Include test-hypot.h.
7706         (main): Invoke test_function.
7707         * tests/test-hypotf.c: Include test-hypot.h.
7708         (main): Invoke test_function.
7709         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
7710         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
7711         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
7712         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
7713         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
7714         tests/randomf.c.
7715         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
7716         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
7717         tests/randoml.c.
7718         (Depends-on): Add 'fpucw', 'float'.
7719         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
7720
7721 2012-03-05  Bruno Haible  <bruno@clisp.org>
7722
7723         fpucw: Doc about FreeBSD.
7724         * lib/fpucw.h: Mention FreeBSD in comments.
7725
7726 2012-03-04  Bruno Haible  <bruno@clisp.org>
7727
7728         sqrt* tests: More tests.
7729         * tests/test-sqrt.h: New file.
7730         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
7731         (main): Invoke test_function.
7732         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
7733         (main): Invoke test_function.
7734         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
7735         (main): Invoke test_function.
7736         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
7737         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
7738         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
7739         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
7740         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
7741         (Depends-on): Add 'float'.
7742         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
7743
7744 2012-03-04  Bruno Haible  <bruno@clisp.org>
7745
7746         remainder* tests: More tests.
7747         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
7748         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
7749         (main): Invoke test_function.
7750         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
7751         (main): Invoke test_function.
7752         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
7753         (main): Invoke test_function.
7754         * modules/remainder-tests (Files): Add tests/test-remainder.h,
7755         tests/randomd.c.
7756         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
7757         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
7758         tests/randomf.c.
7759         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
7760         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
7761         tests/randoml.c.
7762         (Depends-on): Add 'float'.
7763         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
7764
7765 2012-03-04  Bruno Haible  <bruno@clisp.org>
7766
7767         remainder, remainderf, remainderl: Fix computation for large quotients.
7768         * lib/remainder.c: Completely rewritten.
7769         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
7770         USE_FLOAT.
7771         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
7772         USE_LONG_DOUBLE.
7773         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
7774         isnand, isinf. Remove round, fma.
7775         * modules/remainderf (Files): Add lib/remainder.c.
7776         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
7777         Remove roundf, fmaf.
7778         * modules/remainderl (Files): Add lib/remainder.c.
7779         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
7780         isinf. Remove roundl, fmal.
7781         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
7782         REMAINDER_LIBM.
7783         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
7784         REMAINDERF_LIBM.
7785         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
7786         REMAINDERL_LIBM.
7787
7788 2012-03-04  Bruno Haible  <bruno@clisp.org>
7789
7790         fmod* tests: More tests.
7791         * tests/test-fmod.h (my_ldexp): New function.
7792         (test_function): Reduce amount of random numbers to test. Add tests
7793         of very large quotients x / y.
7794         * tests/test-fmod.c (MAX_EXP): New macro.
7795         * tests/test-fmodf.c (MAX_EXP): Likewise.
7796         * tests/test-fmodl.c (MAX_EXP): Likewise.
7797
7798 2012-03-04  Bruno Haible  <bruno@clisp.org>
7799
7800         fmod, fmodl: Fix computation for large quotients x / y.
7801         * lib/fmod.c: Completely rewritten.
7802         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
7803         USE_LONG_DOUBLE.
7804         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
7805         isnand. Remove fma.
7806         * modules/fmodl (Files): Add lib/fmod.c.
7807         (Depends-on): Add float, isfinite, signbit, fabsl,
7808         frexpl, ldexpl, isnanl. Remove fma.
7809         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
7810         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
7811
7812 2012-03-03  Bruno Haible  <bruno@clisp.org>
7813
7814         fmod* tests: More tests.
7815         * tests/test-fmod.h: New file.
7816         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
7817         (main): Invoke test_function.
7818         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
7819         (main): Invoke test_function.
7820         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
7821         (main): Invoke test_function.
7822         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
7823         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
7824         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
7825         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
7826         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
7827         (Depends-on): Add 'float'.
7828         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
7829
7830 2012-03-03  Bruno Haible  <bruno@clisp.org>
7831
7832         rint* tests: More tests.
7833         * tests/test-rint.h: New file, partially extracted from
7834         tests/test-rintl.c.
7835         * tests/test-rint.c: Include test-rint.h.
7836         (main): Invoke test_function.
7837         * tests/test-rintf.c: Include test-rint.h.
7838         (main): Invoke test_function.
7839         * tests/test-rintl.c: Include test-rint.h.
7840         (main): Invoke test_function.
7841         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
7842         (Makefile.am): Add randomd.c to test_rint_SOURCES.
7843         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
7844         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
7845         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
7846         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
7847
7848 2012-03-03  Bruno Haible  <bruno@clisp.org>
7849
7850         modf* tests: More tests.
7851         * tests/test-modf.h: New file.
7852         * tests/test-modf.c: Include <float.h> and test-modf.h.
7853         (main): Invoke test_function.
7854         * tests/test-modff.c: Include <float.h> and test-modf.h.
7855         (main): Invoke test_function.
7856         * tests/test-modfl.c: Include <float.h> and test-modf.h.
7857         (main): Invoke test_function.
7858         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
7859         (Makefile.am): Add randomd.c to test_modf_SOURCES.
7860         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
7861         (Makefile.am): Add randomf.c to test_modff_SOURCES.
7862         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
7863         (Depends-on): Add 'float'.
7864         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
7865
7866 2012-03-03  Bruno Haible  <bruno@clisp.org>
7867
7868         fabs* tests: More tests.
7869         * tests/test-fabs.h: New file, partially extracted from
7870         tests/test-fabsl.c.
7871         * tests/test-fabs.c (RANDOM): New macro.
7872         * tests/test-fabsf.c (RANDOM): New macro.
7873         * tests/test-fabsl.c (RANDOM): New macro.
7874         * modules/fabs-tests (Files): Add tests/randomd.c.
7875         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
7876         * modules/fabsf-tests (Files): Add tests/randomf.c.
7877         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
7878         * modules/fabsl-tests (Files): Add tests/randoml.c.
7879         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
7880
7881 2012-03-03  Bruno Haible  <bruno@clisp.org>
7882
7883         ldexp* tests: More tests.
7884         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
7885         * tests/test-ldexp.c (RANDOM): New macro.
7886         * tests/test-ldexpf.c (RANDOM): New macro.
7887         * tests/test-ldexpl.c (RANDOM): New macro.
7888         * modules/ldexp-tests (Files): Add tests/randomd.c.
7889         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
7890         * modules/ldexpf-tests (Files): Add tests/randomf.c.
7891         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
7892         * modules/ldexpl-tests (Files): Add tests/randoml.c.
7893         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
7894
7895 2012-03-03  Bruno Haible  <bruno@clisp.org>
7896
7897         frexp* tests: More tests.
7898         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
7899         * tests/test-frexp.c (RANDOM): New macro.
7900         * tests/test-frexpf.c (RANDOM): New macro.
7901         * tests/test-frexpl.c (RANDOM): New macro.
7902         * modules/frexp-tests (Files): Add tests/randomd.c.
7903         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
7904         * modules/frexpf-tests (Files): Add tests/randomf.c.
7905         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
7906         * modules/frexpl-tests (Files): Add tests/randoml.c.
7907         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
7908
7909 2012-03-03  Bruno Haible  <bruno@clisp.org>
7910
7911         Support for pseudo-random numbers in tests.
7912         * tests/randomf.c: New file.
7913         * tests/randomd.c: New file.
7914         * tests/randoml.c: New file.
7915         * tests/macros.h (randomf, randomd, randoml): New declarations.
7916
7917 2012-03-03  Bruno Haible  <bruno@clisp.org>
7918
7919         frexp* tests: Refactor.
7920         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
7921         * tests/test-frexp.c: Include and use it.
7922         * tests/test-frexpf.c: Likewise.
7923         * tests/test-frexpl.c: Likewise.
7924         * modules/frexp-tests (Files): Add tests/test-frexp.h.
7925         * modules/frexpf-tests (Files): Likewise.
7926         * modules/frexpl-tests (Files): Likewise.
7927
7928 2012-03-02  Jim Meyering  <meyering@redhat.com>
7929
7930         maint: don't specify XZ_OPT=-9ev in dist-related rule
7931         Using xz's -9 option is warranted only if you have a very large
7932         tarball (see xz's documentation for the sizes vs. presets), and
7933         requires 64MiB of memory at decompression time.
7934         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
7935         Automake's default of just "-e" is fine.  Override on a
7936         per-package basis by setting XZ_OPT e.g., in cfg.mk.
7937
7938 2012-03-01  Eric Blake  <eblake@redhat.com>
7939
7940         maint.mk: allow announcement for non-gnulib project
7941         * maint.mk (announcement): Skip gnulib version if not used.
7942
7943 2012-03-01  Jim Meyering  <meyering@redhat.com>
7944
7945         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
7946         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
7947         envvar settings cannot interfere.  Otherwise, setting envvars like
7948         prohibit=foo require=bar, etc. would cause spurious test failures.
7949
7950 2012-03-01  Eric Blake  <eblake@redhat.com>
7951
7952         maint.mk: add per-line exclusions to prohibitions
7953         * maint.mk (_sc_search_regexp): Add $exclude parameter.
7954         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
7955         (sc_const_long_option): Use it.
7956
7957 2012-03-01  Bruno Haible  <bruno@clisp.org>
7958
7959         Tests for module 'expl-ieee'.
7960         * modules/expl-ieee-tests: New file.
7961         * tests/test-expl-ieee.c: New file.
7962
7963         New module 'expl-ieee'.
7964         * modules/expl-ieee: New file.
7965
7966         Tests for module 'exp-ieee'.
7967         * modules/exp-ieee-tests: New file.
7968         * tests/test-exp-ieee.c: New file.
7969
7970         New module 'exp-ieee'.
7971         * modules/exp-ieee: New file.
7972
7973         Tests for module 'expf-ieee'.
7974         * modules/expf-ieee-tests: New file.
7975         * tests/test-expf-ieee.c: New file.
7976         * tests/test-exp-ieee.h: New file.
7977
7978         New module 'expf-ieee'.
7979         * modules/expf-ieee: New file.
7980
7981 2012-02-29  Bruno Haible  <bruno@clisp.org>
7982
7983         cbrtl-ieee: Work around test failure on IRIX 6.5.
7984         * m4/cbrtl-ieee.m4: New file.
7985         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
7986         test whether cbrtl works with a minus zero argument. Replace it if not.
7987         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
7988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
7989         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
7990         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
7991         (Depends-on): Update conditions.
7992         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
7993         m4/signbit.m4.
7994         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
7995         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
7996         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
7997
7998         Tests for module 'cbrtl-ieee'.
7999         * modules/cbrtl-ieee-tests: New file.
8000         * tests/test-cbrtl-ieee.c: New file.
8001
8002         New module 'cbrtl-ieee'.
8003         * modules/cbrtl-ieee: New file.
8004
8005         Tests for module 'cbrt-ieee'.
8006         * modules/cbrt-ieee-tests: New file.
8007         * tests/test-cbrt-ieee.c: New file.
8008
8009         New module 'cbrt-ieee'.
8010         * modules/cbrt-ieee: New file.
8011
8012         Tests for module 'cbrtf-ieee'.
8013         * modules/cbrtf-ieee-tests: New file.
8014         * tests/test-cbrtf-ieee.c: New file.
8015         * tests/test-cbrt-ieee.h: New file.
8016
8017         New module 'cbrtf-ieee'.
8018         * modules/cbrtf-ieee: New file.
8019
8020 2012-02-29  Bruno Haible  <bruno@clisp.org>
8021
8022         cbrtf: Work around bug in IRIX 6.5 system function.
8023         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
8024         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
8025         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
8026         work.
8027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
8028         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
8029         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
8030         (Depends-on): Update conditions.
8031         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
8032
8033 2012-02-29  Bruno Haible  <bruno@clisp.org>
8034
8035         Tests for module 'cbrtl'.
8036         * modules/cbrtl-tests: New file.
8037         * tests/test-cbrtl.c: New file.
8038
8039         New module 'cbrtl'.
8040         * lib/math.in.h (cbrtl): New declaration.
8041         * lib/cbrtl.c: New file.
8042         * m4/cbrtl.m4: New file.
8043         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
8044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
8045         HAVE_DECL_CBRTL.
8046         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
8047         HAVE_DECL_CBRTL.
8048         * modules/cbrtl: New file.
8049         * tests/test-math-c++.cc: Check the declaration of cbrtl.
8050         * doc/posix-functions/cbrtl.texi: Mention the new module.
8051
8052 2012-02-29  Bruno Haible  <bruno@clisp.org>
8053
8054         Tests for module 'cbrtf'.
8055         * modules/cbrtf-tests: New file.
8056         * tests/test-cbrtf.c: New file.
8057
8058         New module 'cbrtf'.
8059         * lib/math.in.h (cbrtf): New declaration.
8060         * lib/cbrtf.c: New file.
8061         * m4/cbrtf.m4: New file.
8062         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
8063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
8064         HAVE_DECL_CBRTF.
8065         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
8066         HAVE_DECL_CBRTF.
8067         * modules/cbrtf: New file.
8068         * tests/test-math-c++.cc: Check the declaration of cbrtf.
8069         * doc/posix-functions/cbrtf.texi: Mention the new module.
8070
8071 2012-02-29  Bruno Haible  <bruno@clisp.org>
8072
8073         cbrt: Provide replacement on MSVC and Minix.
8074         * lib/math.in.h (cbrt): New declaration.
8075         * lib/cbrt.c: New file.
8076         * m4/cbrt.m4: New file.
8077         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
8078         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
8079         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
8080         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
8081         (Depends-on): Add dependencies.
8082         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
8083         * tests/test-math-c++.cc: Check the declaration of cbrt.
8084         * doc/posix-functions/cbrt.texi: Mention that the module provides a
8085         replacement.
8086
8087 2012-02-29  Bruno Haible  <bruno@clisp.org>
8088
8089         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
8090         * m4/hypotl-ieee.m4: New file.
8091         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
8092         test whether hypotl works with mixed NaN and Infinity arguments.
8093         Replace it if not.
8094         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
8095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
8096         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
8097         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
8098         (Depends-on): Update conditions.
8099         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
8100         (Depends-on): Add hypot-ieee.
8101         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
8102         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
8103
8104         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
8105         * m4/hypotf-ieee.m4: New file.
8106         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
8107         test whether hypotf works with mixed NaN and Infinity arguments.
8108         Replace it if not.
8109         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
8110         (Depends-on): Add hypot-ieee.
8111         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
8112         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
8113
8114         hypot-ieee: Work around test failure on OSF/1 and native Windows.
8115         * lib/math.in.h (hypot): New declaration.
8116         * lib/hypot.c: New file.
8117         * m4/hypot-ieee.m4: New file.
8118         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
8119         whether hypot works with mixed NaN and Infinity arguments. Replace it
8120         if not.
8121         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
8122         REPLACE_HYPOT.
8123         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
8124         * modules/hypot (Files): Add lib/hypot.c.
8125         (Depends-on): Add dependencies.
8126         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
8127         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
8128         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
8129         * tests/test-math-c++.cc: Check the declaration of hypot.
8130         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
8131
8132         Tests for module 'hypotl-ieee'.
8133         * modules/hypotl-ieee-tests: New file.
8134         * tests/test-hypotl-ieee.c: New file.
8135
8136         New module 'hypotl-ieee'.
8137         * modules/hypotl-ieee: New file.
8138
8139         Tests for module 'hypot-ieee'.
8140         * modules/hypot-ieee-tests: New file.
8141         * tests/test-hypot-ieee.c: New file.
8142
8143         New module 'hypot-ieee'.
8144         * modules/hypot-ieee: New file.
8145
8146         Tests for module 'hypotf-ieee'.
8147         * modules/hypotf-ieee-tests: New file.
8148         * tests/test-hypotf-ieee.c: New file.
8149         * tests/test-hypot-ieee.h: New file.
8150
8151         New module 'hypotf-ieee'.
8152         * modules/hypotf-ieee: New file.
8153
8154 2012-02-29  Bruno Haible  <bruno@clisp.org>
8155
8156         Remove unused variables.
8157         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
8158         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
8159         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
8160         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
8161
8162 2012-02-29  Eric Blake  <eblake@redhat.com>
8163
8164         termios: fix pid_t always, not just for tcgetsid
8165         * doc/posix-headers/termios.texi (termios.h): Mention problem.
8166         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
8167         just when building tcgetsid.
8168
8169 2012-02-29  Bruno Haible  <bruno@clisp.org>
8170
8171         Tests for module 'hypotl'.
8172         * modules/hypotl-tests: New file.
8173         * tests/test-hypotl.c: New file.
8174
8175         New module 'hypotl'.
8176         * lib/math.in.h (hypotl): New declaration.
8177         * lib/hypotl.c: New file.
8178         * m4/hypotl.m4: New file.
8179         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8180         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
8181         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
8182         * modules/hypotl: New file.
8183         * tests/test-math-c++.cc: Check the hypotl declaration.
8184         * doc/posix-functions/hypotl.texi: Mention the new module.
8185
8186 2012-02-29  Eric Blake  <eblake@redhat.com>
8187
8188         tcgetsid: fix cygwin header bug
8189         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
8190
8191         docs: update cygwin progress
8192         * doc/posix-functions/llround.texi (llround): Added in cygwin
8193         1.7.8.
8194         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
8195         * doc/glibc-functions/program_invocation_name.texi
8196         (program_invocation_name): Likewise.
8197         * doc/glibc-functions/program_invocation_short_name.texi
8198         (program_invocation_short_name): Likewise.
8199         * doc/glibc-functions/madvise.texi (madvise): Likewise.
8200         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
8201         Likewise.
8202         * doc/posix-functions/pthread_spin_destroy.texi
8203         (pthread_spin_destroy): Added in cygwin 1.7.10.
8204         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
8205         Likewise.
8206         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
8207         Likewise.
8208         * doc/posix-functions/pthread_spin_trylock.texi
8209         (pthread_spin_trylock): Likewise.
8210         * doc/posix-functions/pthread_spin_unlock.texi
8211         (pthread_spin_unlock): Likewise.
8212         * doc/posix-functions/pthread_setschedprio.texi
8213         (pthread_setschedprio): Likewise.
8214         * doc/posix-functions/pthread_attr_getstack.texi
8215         (pthread_attr_getstack): Likewise.
8216         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
8217         (pthread_attr_getstackaddr): Likewise.
8218         * doc/glibc-functions/pthread_getattr_np.texi
8219         (pthread_getattr_np): Likewise.
8220         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
8221         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
8222         * doc/posix-functions/clock_settime.texi (clock_settime):
8223         Likewise.
8224         * doc/posix-functions/pthread_attr_getguardsize.texi
8225         (pthread_attr_getguardsize): Likewise.
8226         * doc/posix-functions/pthread_attr_setguardsize.texi
8227         (pthread_attr_setguardsize): Likewise.
8228         * doc/posix-functions/pthread_attr_setstack.texi
8229         (pthread_attr_setstack): Likewise.
8230         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
8231         (pthread_attr_setstackaddr): Likewise.
8232         * doc/posix-functions/clock_getcpuclockid.texi
8233         (clock_getcpuclockid): Likewise.
8234         * doc/posix-functions/pthread_getcpuclockid.texi
8235         (pthread_getcpuclockid): Likewise.
8236         * doc/glibc-functions/error.texi (error): Likewise.
8237         * doc/glibc-functions/error_at_line.texi (error_at_line):
8238         Likewise.
8239         * doc/glibc-functions/error_message_count.texi
8240         (error_message_count): Likewise.
8241         * doc/glibc-functions/error_one_per_line.texi
8242         (error_one_per_line): Likewise.
8243         * doc/glibc-functions/error_print_progname.texi
8244         (error_print_progname): Likewise.
8245         * doc/posix-functions/pthread_condattr_getclock.texi
8246         (pthread_condattr_getclock): Likewise.
8247         * doc/posix-functions/pthread_condattr_setclock.texi
8248         (pthread_condattr_setclock): Likewise.
8249         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
8250         Likewise.
8251         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
8252         * doc/glibc-functions/getpt.texi (getpt): Likewise.
8253         * doc/glibc-functions/get_current_dir_name.texi
8254         (get_current_dir_name): Likewise.
8255         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
8256         Likewise.
8257         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
8258         wrong return type.
8259         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
8260         1.7.11.
8261
8262 2012-02-29  Bruno Haible  <bruno@clisp.org>
8263
8264         Tests for module 'hypotf'.
8265         * modules/hypotf-tests: New file.
8266         * tests/test-hypotf.c: New file.
8267
8268         New module 'hypotf'.
8269         * lib/math.in.h (hypotf): New declaration.
8270         * lib/hypotf.c: New file.
8271         * m4/hypotf.m4: New file.
8272         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
8273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
8274         REPLACE_HYPOTF.
8275         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
8276         REPLACE_HYPOTF.
8277         * modules/hypotf: New file.
8278         * tests/test-math-c++.cc: Check the hypotf declaration.
8279         * doc/posix-functions/hypotf.texi: Mention the new module.
8280
8281         hypot: Prepare for hypotf module.
8282         * m4/hypot.m4: New file.
8283         * modules/hypot (Files): Add m4/hypot.m4.
8284         (configure.ac): Invoke gl_FUNC_HYPOT.
8285
8286 2012-02-29  Bruno Haible  <bruno@clisp.org>
8287
8288         hypot tests: More tests.
8289         * tests/test-hypot.c: Include <float.h>.
8290         (main): Add tests about overflow and underflow.
8291
8292 2012-02-29  Bruno Haible  <bruno@clisp.org>
8293
8294         math code: Add comments.
8295         * lib/acosl.c: Add comment about related glibc source files.
8296         * lib/asinl.c: Likewise.
8297         * lib/atanl.c: Likewise.
8298         * lib/expl.c: Likewise.
8299         * lib/logl.c: Likewise.
8300         * lib/sincosl.c: Likewise.
8301         * lib/sinl.c: Likewise.
8302         * lib/tanl.c: Likewise.
8303         * lib/trigl.c: Likewise.
8304         * lib/cosl.c: Likewise. Fix comments.
8305
8306 2012-02-28  Bruno Haible  <bruno@clisp.org>
8307
8308         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
8309         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
8310         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
8311         HUGE_VALL are defined.
8312         (numeric_equald): Renamed from numeric_equal.
8313         (numeric_equalf, numeric_equall): New functions.
8314         (main): Check also HUGE_VALF, HUGE_VALL.
8315         * modules/math-tests (Files): Add tests/macros.h.
8316         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
8317         HUGE_VALL.
8318
8319 2012-02-28  Bruno Haible  <bruno@clisp.org>
8320
8321         doc: Move ISO C11 feature notes into POSIX chapters.
8322         * doc/posix-functions/aligned_alloc.texi: Renamed from
8323         doc/glibc-functions/aligned_alloc.texi.
8324         * doc/posix-functions/quick_exit.texi: Renamed from
8325         doc/glibc-functions/quick_exit.texi.
8326         * doc/posix-headers/uchar.texi: Renamed from
8327         doc/glibc-headers/uchar.texi.
8328         * doc/posix-functions/c16rtomb.texi: Renamed from
8329         doc/glibc-functions/c16rtomb.texi.
8330         * doc/posix-functions/c32rtomb.texi: Renamed from
8331         doc/glibc-functions/c32rtomb.texi.
8332         * doc/posix-functions/mbrtoc16.texi: Renamed from
8333         doc/glibc-functions/mbrtoc16.texi.
8334         * doc/posix-functions/mbrtoc32.texi: Renamed from
8335         doc/glibc-functions/mbrtoc32.texi.
8336         * doc/gnulib.texi: Update.
8337         (Glibc uchar.h): Remove section.
8338         Suggested by Eric Blake.
8339
8340 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
8341
8342         stdnoreturn: port to MSVC better
8343         MSVC standard headers use __declspec(noreturn), so #define noreturn
8344         to empty on that platform.  Reported by Bruno Haible in
8345         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
8346         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
8347         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
8348
8349 2012-02-28  Bruno Haible  <bruno@clisp.org>
8350
8351         doc: Mention new glibc headers and functions.
8352         * doc/glibc-headers/uchar.texi: New file.
8353         * doc/glibc-functions/aligned_alloc.texi: New file.
8354         * doc/glibc-functions/c16rtomb.texi: New file.
8355         * doc/glibc-functions/c32rtomb.texi: New file.
8356         * doc/glibc-functions/clock_adjtime.texi: New file.
8357         * doc/glibc-functions/fanotify_init.texi: New file.
8358         * doc/glibc-functions/fanotify_mark.texi: New file.
8359         * doc/glibc-functions/inet6_opt_append.texi: New file.
8360         * doc/glibc-functions/inet6_opt_find.texi: New file.
8361         * doc/glibc-functions/inet6_opt_finish.texi: New file.
8362         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
8363         * doc/glibc-functions/inet6_opt_init.texi: New file.
8364         * doc/glibc-functions/inet6_opt_next.texi: New file.
8365         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
8366         * doc/glibc-functions/inet6_rth_add.texi: New file.
8367         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
8368         * doc/glibc-functions/inet6_rth_init.texi: New file.
8369         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
8370         * doc/glibc-functions/inet6_rth_segments.texi: New file.
8371         * doc/glibc-functions/inet6_rth_space.texi: New file.
8372         * doc/glibc-functions/login.texi: New file.
8373         * doc/glibc-functions/mbrtoc16.texi: New file.
8374         * doc/glibc-functions/mbrtoc32.texi: New file.
8375         * doc/glibc-functions/name_to_handle_at.texi: New file.
8376         * doc/glibc-functions/ntp_gettimex.texi: New file.
8377         * doc/glibc-functions/open_by_handle_at.texi: New file.
8378         * doc/glibc-functions/prlimit.texi: New file.
8379         * doc/glibc-functions/process_vm_readv.texi: New file.
8380         * doc/glibc-functions/process_vm_writev.texi: New file.
8381         * doc/glibc-functions/recvmmsg.texi: New file.
8382         * doc/glibc-functions/scandirat.texi: New file.
8383         * doc/glibc-functions/sendmmsg.texi: New file.
8384         * doc/glibc-functions/setns.texi: New file.
8385         * doc/glibc-functions/timespec_get.texi: New file.
8386         * doc/gnulib.texi: Include them.
8387         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
8388         sections.
8389         Reported by Eric Blake.
8390
8391 2012-02-28  Bruno Haible  <bruno@clisp.org>
8392
8393         Avoid compilation errors with MSVC option -fp:strict.
8394         * lib/floor.c: Use MSVC specific pragma fenv_access.
8395         * lib/ceil.c: Likewise.
8396         * lib/trunc.c: Likewise.
8397         * lib/round.c: Likewise.
8398         * lib/rint.c: Likewise.
8399         * lib/fma.c: Likewise.
8400         * lib/integer_length.c: Likewise.
8401         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8402         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8403         * tests/test-floor2.c: Likewise.
8404         * tests/test-floorf2.c: Likewise.
8405         * tests/test-ceil2.c: Likewise.
8406         * tests/test-ceilf2.c: Likewise.
8407         * tests/test-trunc2.c: Likewise.
8408         * tests/test-truncf2.c: Likewise.
8409         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8410
8411 2012-02-27  Bruno Haible  <bruno@clisp.org>
8412
8413         Tests for module 'sqrtl-ieee'.
8414         * modules/sqrtl-ieee-tests: New file.
8415         * tests/test-sqrtl-ieee.c: New file.
8416
8417         New module 'sqrtl-ieee'.
8418         * modules/sqrtl-ieee: New file.
8419
8420         Tests for module 'sqrt-ieee'.
8421         * modules/sqrt-ieee-tests: New file.
8422         * tests/test-sqrt-ieee.c: New file.
8423
8424         New module 'sqrt-ieee'.
8425         * modules/sqrt-ieee: New file.
8426
8427         Tests for module 'sqrtf-ieee'.
8428         * modules/sqrtf-ieee-tests: New file.
8429         * tests/test-sqrtf-ieee.c: New file.
8430         * tests/test-sqrt-ieee.h: New file.
8431
8432         New module 'sqrtf-ieee'.
8433         * modules/sqrtf-ieee: New file.
8434
8435 2012-02-27  Bruno Haible  <bruno@clisp.org>
8436
8437         remainderl-ieee: Work around test failure on OSF/1.
8438         * m4/remainderl-ieee.m4: New file.
8439         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
8440         present, test whether remainderl works with a zero second argument.
8441         Replace it if not.
8442         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
8443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
8444         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
8445         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
8446         (Depends-on): Update conditions.
8447         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
8448         (Depends-on): Add remainder-ieee.
8449         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
8450         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
8451         module.
8452
8453         remainderf-ieee: Work around test failure on OSF/1.
8454         * m4/remainderf-ieee.m4: New file.
8455         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
8456         present, test whether remainderf works with a zero second argument.
8457         Replace it if not.
8458         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
8459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
8460         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
8461         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
8462         (Depends-on): Update conditions.
8463         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
8464         (Depends-on): Add remainder-ieee.
8465         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
8466         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
8467         module.
8468
8469         remainder-ieee: Work around test failure on OSF/1.
8470         * m4/remainder-ieee.m4: New file.
8471         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
8472         present, test whether remainder works with a zero second argument.
8473         Replace it if not.
8474         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
8475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
8476         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
8477         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
8478         (Depends-on): Update dependencies.
8479         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
8480         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
8481         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
8482
8483         Tests for module 'remainderl-ieee'.
8484         * modules/remainderl-ieee-tests: New file.
8485         * tests/test-remainderl-ieee.c: New file.
8486
8487         New module 'remainderl-ieee'.
8488         * modules/remainderl-ieee: New file.
8489
8490         Tests for module 'remainder-ieee'.
8491         * modules/remainder-ieee-tests: New file.
8492         * tests/test-remainder-ieee.c: New file.
8493
8494         New module 'remainder-ieee'.
8495         * modules/remainder-ieee: New file.
8496
8497         Tests for module 'remainderf-ieee'.
8498         * modules/remainderf-ieee-tests: New file.
8499         * tests/test-remainderf-ieee.c: New file.
8500         * tests/test-remainder-ieee.h: New file.
8501
8502         New module 'remainderf-ieee'.
8503         * modules/remainderf-ieee: New file.
8504
8505 2012-02-27  Bruno Haible  <bruno@clisp.org>
8506
8507         modff, modfl: Fix configure syntax error.
8508         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
8509         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
8510
8511 2012-02-27  Bruno Haible  <bruno@clisp.org>
8512
8513         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
8514         * m4/fmodl-ieee.m4: New file.
8515         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
8516         whether fmodl works with zero arguments. Replace it if not.
8517         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
8518         (Depends-on): Add fmod-ieee.
8519         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
8520         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
8521
8522         fmodf-ieee: Work around test failure on OSF/1.
8523         * m4/fmodf-ieee.m4: New file.
8524         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
8525         whether fmodf works with zero arguments. Replace it if not.
8526         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
8527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
8528         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
8529         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
8530         (Depends-on): Update dependencies.
8531         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
8532         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
8533         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
8534
8535         fmodf-ieee: Work around test failure on MSVC 9.
8536         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
8537         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
8538
8539         fmod-ieee: Work around test failures on OSF/1, mingw.
8540         * m4/fmod-ieee.m4: New file.
8541         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
8542         whether fmod works with zero arguments. Replace it if not.
8543         * lib/math.in.h (fmod): New declaration.
8544         * lib/fmod.c: New file.
8545         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
8546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
8547         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
8548         * modules/fmod (Files): Add lib/fmod.c.
8549         (Depends-on): Add math, isinf, trunc, fma.
8550         (configure.ac): Arrange to compile lib/fmod.c if needed.
8551         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
8552         m4/signbit.m4.
8553         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
8554         * tests/test-math-c++.cc: Check the declaration of fmod.
8555         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
8556
8557         fmodl-ieee: Fix test failures.
8558         * lib/fmodl.c (fmodl): Treat Inf specially.
8559         * modules/fmodl (Depends-on): Add isinf.
8560
8561         Tests for module 'fmodl-ieee'.
8562         * modules/fmodl-ieee-tests: New file.
8563         * tests/test-fmodl-ieee.c: New file.
8564
8565         New module 'fmodl-ieee'.
8566         * modules/fmodl-ieee: New file.
8567
8568         Tests for module 'fmod-ieee'.
8569         * modules/fmod-ieee-tests: New file.
8570         * tests/test-fmod-ieee.c: New file.
8571
8572         New module 'fmod-ieee'.
8573         * modules/fmod-ieee: New file.
8574
8575         Tests for module 'fmodf-ieee'.
8576         * modules/fmodf-ieee-tests: New file.
8577         * tests/test-fmodf-ieee.c: New file.
8578         * tests/test-fmod-ieee.h: New file.
8579
8580         New module 'fmodf-ieee'.
8581         * modules/fmodf-ieee: New file.
8582
8583 2012-02-27  Bruno Haible  <bruno@clisp.org>
8584
8585         Tests for module 'rintl-ieee'.
8586         * modules/rintl-ieee-tests: New file.
8587         * tests/test-rintl-ieee.c: New file.
8588
8589         New module 'rintl-ieee'.
8590         * modules/rintl-ieee: New file.
8591
8592         Tests for module 'rint-ieee'.
8593         * modules/rint-ieee-tests: New file.
8594         * tests/test-rint-ieee.c: New file.
8595
8596         New module 'rint-ieee'.
8597         * modules/rint-ieee: New file.
8598
8599         Tests for module 'rintf-ieee'.
8600         * modules/rintf-ieee-tests: New file.
8601         * tests/test-rintf-ieee.c: New file.
8602         * tests/test-rint-ieee.h: New file.
8603
8604         New module 'rintf-ieee'.
8605         * modules/rintf-ieee: New file.
8606
8607 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8608
8609         regex: re_search etc. should return -2 when memory exhausted
8610         This bug was uncovered when testing 'grep'.  Without the fix,
8611         re_search and friends return -1 when memory is exhausted, but -1
8612         means no match, and this causes grep to falsely report no-match
8613         instead of memory-exhaustion.  See
8614         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
8615         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
8616         trouble; this can occur if re_search_internal ran out of memory.
8617
8618 2012-02-26  Bruno Haible  <bruno@clisp.org>
8619
8620         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
8621         * m4/modfl-ieee.m4: New file.
8622         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
8623         whether modfl works with Inf. Replace it if not.
8624         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
8625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
8626         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
8627         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
8628         (Depends-on): Update dependencies.
8629         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
8630         m4/signbit.m4.
8631         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
8632         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
8633
8634         modfl-ieee: Fix dependencies.
8635         * modules/modfl-ieee (Depends-on): Add modf-ieee.
8636
8637         modfl-ieee: Fix test failures.
8638         * lib/modfl.c (modfl): Treat NaN and Inf specially.
8639         * modules/modfl (Depends-on): Add isfinite, isinf.
8640
8641         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
8642         * m4/modff-ieee.m4: New file.
8643         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
8644         whether modff works with NaN and Inf. Replace it if not.
8645         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
8646         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
8647         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
8648         * modules/modff (configure.ac): Consider REPLACE_MODFF.
8649         (Depends-on): Update dependencies.
8650         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
8651         m4/signbit.m4.
8652         (Depends-on): Add modf-ieee.
8653         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
8654         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
8655
8656         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
8657         * m4/modf-ieee.m4: New file.
8658         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
8659         whether modf works with NaN and Inf. Replace it if not.
8660         * lib/math.in.h (modf): New declaration.
8661         * lib/modf.c: New file.
8662         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
8663         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
8664         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
8665         * modules/modf (Files): Add lib/modf.c.
8666         (Depends-on): Add math, isfinite, trunc, isinf.
8667         (configure.ac): Addrange to compile lib/modf.c if needed.
8668         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
8669         m4/signbit.m4.
8670         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
8671         * tests/test-math-c++.cc: Check the declaration of modf.
8672         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
8673
8674         Tests for module 'modfl-ieee'.
8675         * modules/modfl-ieee-tests: New file.
8676         * tests/test-modfl-ieee.c: New file.
8677
8678         New module 'modfl-ieee'.
8679         * modules/modfl-ieee: New file.
8680
8681         Tests for module 'modf-ieee'.
8682         * modules/modf-ieee-tests: New file.
8683         * tests/test-modf-ieee.c: New file.
8684
8685         New module 'modf-ieee'.
8686         * modules/modf-ieee: New file.
8687
8688         Tests for module 'modff-ieee'.
8689         * modules/modff-ieee-tests: New file.
8690         * tests/test-modff-ieee.c: New file.
8691         * tests/test-modf-ieee.h: New file.
8692
8693         New module 'modff-ieee'.
8694         * modules/modff-ieee: New file.
8695
8696 2012-02-26  Bruno Haible  <bruno@clisp.org>
8697
8698         Tests for module 'fabsl-ieee'.
8699         * modules/fabsl-ieee-tests: New file.
8700         * tests/test-fabsl-ieee.c: New file.
8701
8702         New module 'fabsl-ieee'.
8703         * modules/fabsl-ieee: New file.
8704
8705         Tests for module 'fabs-ieee'.
8706         * modules/fabs-ieee-tests: New file.
8707         * tests/test-fabs-ieee.c: New file.
8708
8709         New module 'fabs-ieee'.
8710         * modules/fabs-ieee: New file.
8711
8712         Tests for module 'fabsf-ieee'.
8713         * modules/fabsf-ieee-tests: New file.
8714         * tests/test-fabsf-ieee.c: New file.
8715         * tests/test-fabs-ieee.h: New file.
8716
8717         New module 'fabsf-ieee'.
8718         * modules/fabsf-ieee: New file.
8719
8720 2012-02-26  Bruno Haible  <bruno@clisp.org>
8721
8722         Tests for module 'fmal-ieee'.
8723         * modules/fmal-ieee-tests: New file.
8724         * tests/test-fmal-ieee.c: New file.
8725
8726         New module 'fmal-ieee'.
8727         * modules/fmal-ieee: New file.
8728
8729         Tests for module 'fma-ieee'.
8730         * modules/fma-ieee-tests: New file.
8731         * tests/test-fma-ieee.c: New file.
8732
8733         New module 'fma-ieee'.
8734         * modules/fma-ieee: New file.
8735
8736         Tests for module 'fmaf-ieee'.
8737         * modules/fmaf-ieee-tests: New file.
8738         * tests/test-fmaf-ieee.c: New file.
8739         * tests/test-fma-ieee.h: New file.
8740
8741         New module 'fmaf-ieee'.
8742         * modules/fmaf-ieee: New file.
8743
8744 2012-02-26  Bruno Haible  <bruno@clisp.org>
8745
8746         Tests for module 'ldexpl-ieee'.
8747         * modules/ldexpl-ieee-tests: New file.
8748         * tests/test-ldexpl-ieee.c: New file.
8749
8750         New module 'ldexpl-ieee'.
8751         * modules/ldexpl-ieee: New file.
8752
8753         Tests for module 'ldexp-ieee'.
8754         * modules/ldexp-ieee-tests: New file.
8755         * tests/test-ldexp-ieee.c: New file.
8756
8757         New module 'ldexp-ieee'.
8758         * modules/ldexp-ieee: New file.
8759
8760         Tests for module 'ldexpf-ieee'.
8761         * modules/ldexpf-ieee-tests: New file.
8762         * tests/test-ldexpf-ieee.c: New file.
8763         * tests/test-ldexp-ieee.h: New file.
8764
8765         New module 'ldexpf-ieee'.
8766         * modules/ldexpf-ieee: New file.
8767
8768 2012-02-26  Bruno Haible  <bruno@clisp.org>
8769
8770         Refactor frexp*-ieee tests.
8771         * tests/test-frexp-ieee.h: New file.
8772         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
8773         (main): Just call test_function.
8774         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
8775         (main): Just call test_function.
8776         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
8777         (main): Just call test_function.
8778         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
8779         * modules/frexp-ieee-tests (Files): Likewise.
8780         * modules/frexpl-ieee-tests (Files): Likewise.
8781
8782         Tests for module 'frexpl-ieee'.
8783         * modules/frexpl-ieee-tests: New file.
8784         * tests/test-frexpl-ieee.c: New file.
8785
8786         New module 'frexpl-ieee'.
8787         * modules/frexpl-ieee: New file.
8788
8789         Tests for module 'frexp-ieee'.
8790         * modules/frexp-ieee-tests: New file.
8791         * tests/test-frexp-ieee.c: New file.
8792
8793         New module 'frexp-ieee'.
8794         * modules/frexp-ieee: New file.
8795
8796         Tests for module 'frexpf-ieee'.
8797         * modules/frexpf-ieee-tests: New file.
8798         * tests/test-frexpf-ieee.c: New file.
8799
8800         New module 'frexpf-ieee'.
8801         * modules/frexpf-ieee: New file.
8802
8803 2012-02-26  Bruno Haible  <bruno@clisp.org>
8804
8805         roundl-ieee tests: More tests.
8806         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8807         (main): Add tests for [MX] shaded specification in POSIX.
8808         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8809         (Depends-on): Add isnanl-nolibm.
8810
8811         round-ieee tests: More tests.
8812         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8813         (main): Add tests for [MX] shaded specification in POSIX.
8814         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8815         (Depends-on): Add isnand-nolibm.
8816
8817         roundf-ieee tests: More tests.
8818         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8819         (main): Add tests for [MX] shaded specification in POSIX.
8820         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8821         (Depends-on): Add isnanf-nolibm.
8822
8823         truncl-ieee tests: More tests.
8824         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8825         (main): Add tests for [MX] shaded specification in POSIX.
8826         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8827         (Depends-on): Add isnanl-nolibm.
8828
8829         trunc-ieee tests: More tests.
8830         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8831         (main): Add tests for [MX] shaded specification in POSIX.
8832         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8833         (Depends-on): Add isnand-nolibm.
8834
8835         truncf-ieee tests: More tests.
8836         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8837         (main): Add tests for [MX] shaded specification in POSIX.
8838         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8839         (Depends-on): Add isnanf-nolibm.
8840
8841         ceill-ieee tests: More tests.
8842         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8843         (main): Add tests for [MX] shaded specification in POSIX.
8844         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8845         (Depends-on): Add isnanl-nolibm.
8846
8847         ceil-ieee tests: More tests.
8848         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8849         (main): Add tests for [MX] shaded specification in POSIX.
8850         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8851         (Depends-on): Add isnand-nolibm.
8852
8853         ceilf-ieee tests: More tests.
8854         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8855         (main): Add tests for [MX] shaded specification in POSIX.
8856         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8857         (Depends-on): Add isnanf-nolibm.
8858
8859         floorl-ieee tests: More tests.
8860         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
8861         (main): Add tests for [MX] shaded specification in POSIX.
8862         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8863         (Depends-on): Add isnanl-nolibm.
8864
8865         floor-ieee tests: More tests.
8866         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
8867         (main): Add tests for [MX] shaded specification in POSIX.
8868         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8869         (Depends-on): Add isnand-nolibm.
8870
8871         floorf-ieee tests: More tests.
8872         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
8873         (main): Add tests for [MX] shaded specification in POSIX.
8874         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
8875         (Depends-on): Add isnanf-nolibm.
8876
8877 2012-02-26  Bruno Haible  <bruno@clisp.org>
8878
8879         fpieee: More comments.
8880         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
8881
8882 2012-02-25  Bruno Haible  <bruno@clisp.org>
8883
8884         Tests for module 'log10l'.
8885         * modules/log10l-tests: New file.
8886         * tests/test-log10l.c: New file.
8887         * tests/test-math-c++.cc: Check the declaration of log10l.
8888
8889         New module 'log10l'.
8890         * lib/math.in.h (log10l): New declaration.
8891         * lib/log10l.c: New file.
8892         * m4/log10l.m4: New file.
8893         * modules/log10l: New file.
8894         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
8895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
8896         HAVE_DECL_LOG10L.
8897         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
8898         HAVE_DECL_LOG10L.
8899         * doc/posix-functions/log10l.texi: Mention the new module.
8900
8901 2012-02-25  Bruno Haible  <bruno@clisp.org>
8902
8903         fmodl, remainder*: Avoid wrong results due to rounding errors.
8904         * lib/fmodl.c (fmodl): Correct the result if it is not within the
8905         expected bounds.
8906         * lib/remainderf.c (remainderf): Likewise.
8907         * lib/remainder.c (remainder): Likewise.
8908         * lib/remainderl.c (remainderl): Likewise.
8909
8910 2012-02-25  Bruno Haible  <bruno@clisp.org>
8911
8912         Tests for module 'remainderl'.
8913         * modules/remainderl-tests: New file.
8914         * tests/test-remainderl.c: New file.
8915         * tests/test-math-c++.cc: Check the declaration of remainderl.
8916
8917         New module 'remainderl'.
8918         * lib/math.in.h (remainderl): New declaration.
8919         * lib/remainderl.c: New file.
8920         * m4/remainderl.m4: New file.
8921         * modules/remainderl: New file.
8922         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
8923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
8924         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
8925         HAVE_REMAINDERL.
8926         * doc/posix-functions/remainderl.texi: Mention the new module.
8927
8928 2012-02-25  Bruno Haible  <bruno@clisp.org>
8929
8930         Tests for module 'remainderf'.
8931         * modules/remainderf-tests: New file.
8932         * tests/test-remainderf.c: New file.
8933         * tests/test-math-c++.cc: Check the declaration of remainderf.
8934
8935         New module 'remainderf'.
8936         * lib/math.in.h (remainderf): New declaration.
8937         * lib/remainderf.c: New file.
8938         * m4/remainderf.m4: New file.
8939         * modules/remainderf: New file.
8940         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
8941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
8942         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
8943         HAVE_REMAINDERF.
8944         * doc/posix-functions/remainderf.texi: Mention the new module.
8945
8946 2012-02-25  Bruno Haible  <bruno@clisp.org>
8947
8948         remainder: Support for MSVC.
8949         * lib/math.in.h (remainder): New declaration.
8950         * lib/remainder.c: New file.
8951         * m4/remainder.m4: New file.
8952         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
8953         (Depends-on): Add math, round, fma.
8954         (configure.ac): Use results of gl_FUNC_REMAINDER.
8955         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
8956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
8957         HAVE_DECL_REMAINDER.
8958         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
8959         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
8960         * tests/test-math-c++.cc: Check the declaration of remainder.
8961         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
8962         problems are fixed.
8963
8964 2012-02-25  Bruno Haible  <bruno@clisp.org>
8965
8966         Tests for module 'fmodl'.
8967         * modules/fmodl-tests: New file.
8968         * tests/test-fmodl.c: New file.
8969         * tests/test-math-c++.cc: Check the declaration of fmodl.
8970
8971         New module 'fmodl'.
8972         * lib/math.in.h (fmodl): New declaration.
8973         * lib/fmodl.c: New file.
8974         * m4/fmodl.m4: New file.
8975         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
8976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
8977         REPLACE_FMODL.
8978         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
8979         REPLACE_FMODL.
8980         * modules/fmodl: New file.
8981         * doc/posix-functions/fmodl.texi: Mention the new module.
8982
8983 2012-02-25  Bruno Haible  <bruno@clisp.org>
8984
8985         Tests for module 'modfl'.
8986         * modules/modfl-tests: New file.
8987         * tests/test-modfl.c: New file.
8988         * tests/test-math-c++.cc: Check the declaration of modfl.
8989
8990         New module 'modfl'.
8991         * lib/math.in.h (modfl): New declaration.
8992         * lib/modfl.c: New file.
8993         * m4/modfl.m4: New file.
8994         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
8995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
8996         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
8997         * modules/modfl: New file.
8998         * doc/posix-functions/modfl.texi: Mention the new module.
8999
9000 2012-02-25  Bruno Haible  <bruno@clisp.org>
9001
9002         Tests for module 'fabsl'.
9003         * modules/fabsl-tests: New file.
9004         * tests/test-fabsl.c: New file.
9005         * tests/test-math-c++.cc: Check the declaration of fabsl.
9006
9007         New module 'fabsl'.
9008         * lib/math.in.h (fabsl): New declaration.
9009         * lib/fabsl.c: New file.
9010         * m4/fabsl.m4: New file.
9011         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
9012         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
9013         REPLACE_FABSL.
9014         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
9015         REPLACE_FABSL.
9016         * modules/fabsl: New file.
9017         * doc/posix-functions/fabsl.texi: Mention the new module.
9018
9019 2012-02-25  Bruno Haible  <bruno@clisp.org>
9020
9021         fabs tests: More tests.
9022         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
9023         (zero): New variable.
9024         (main): Add tests for signed zero.
9025         * modules/fabs-tests (Files): Add tests/minus-zero.h.
9026
9027         fabsf tests: More tests.
9028         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
9029         (zero): New variable.
9030         (main): Add tests for signed zero.
9031         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
9032
9033 2012-02-24  Bruno Haible  <bruno@clisp.org>
9034
9035         atanl: Provide function definition on MSVC.
9036         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
9037         function pointer.
9038         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
9039
9040 2012-02-24  Bruno Haible  <bruno@clisp.org>
9041
9042         acosl: Provide function definition on MSVC.
9043         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
9044         function pointer.
9045         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
9046
9047 2012-02-24  Bruno Haible  <bruno@clisp.org>
9048
9049         asinl: Provide function definition on MSVC.
9050         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
9051         function pointer.
9052         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
9053
9054 2012-02-24  Bruno Haible  <bruno@clisp.org>
9055
9056         tanl: Provide function definition on MSVC.
9057         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
9058         function pointer.
9059         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
9060
9061 2012-02-24  Bruno Haible  <bruno@clisp.org>
9062
9063         cosl: Provide function definition on MSVC.
9064         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
9065         function pointer.
9066         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
9067
9068 2012-02-24  Bruno Haible  <bruno@clisp.org>
9069
9070         sinl: Provide function definition on MSVC.
9071         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
9072         function pointer.
9073         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
9074
9075 2012-02-24  Bruno Haible  <bruno@clisp.org>
9076
9077         logl: Provide function definition on MSVC.
9078         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
9079         function pointer.
9080         * lib/math.in.h (logl): Undefine if it does not exist as a function.
9081
9082 2012-02-24  Bruno Haible  <bruno@clisp.org>
9083
9084         expl: Provide function definition on MSVC.
9085         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
9086         function pointer.
9087         * lib/math.in.h (expl): Undefine if it does not exist as a function.
9088
9089 2012-02-24  Bruno Haible  <bruno@clisp.org>
9090
9091         sqrtl: Provide function definition on MSVC.
9092         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
9093         a function pointer.
9094         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
9095
9096 2012-02-24  Bruno Haible  <bruno@clisp.org>
9097
9098         ceill: Provide function definition on MSVC.
9099         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
9100         used as a function pointer.
9101         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
9102
9103 2012-02-24  Bruno Haible  <bruno@clisp.org>
9104
9105         floorl: Provide function definition on MSVC.
9106         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
9107         used as a function pointer.
9108         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
9109
9110 2012-02-24  Bruno Haible  <bruno@clisp.org>
9111
9112         ceilf: Provide function definition on MSVC.
9113         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
9114         used as a function pointer.
9115         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
9116
9117 2012-02-24  Bruno Haible  <bruno@clisp.org>
9118
9119         floorf: Provide function definition on MSVC.
9120         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
9121         used as a function pointer.
9122         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
9123
9124 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9125
9126         stdnoreturn: new module
9127         This implements a replacement for C11's <stdnoreturn.h>.
9128         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
9129         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
9130         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
9131         * tests/test-stdnoreturn.c: New files.
9132
9133 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
9134
9135         regex: fix false multibyte matches in some regular expressions
9136         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
9137         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
9138         * lib/regex_internal.c (re_string_skip_chars):
9139         Fix miscomputation of remain_len that may cause incomplete
9140         multi-byte character and false match.
9141
9142 2012-02-24  Jim Meyering  <meyering@redhat.com>
9143
9144         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
9145         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
9146         uses with "==" *before* the call, e.g., 0 == strcmp (...)
9147         Remove now-unnecessary str''cmp obfuscation.
9148         Suggested by Akim Demaille.
9149
9150 2012-02-24  Bruno Haible  <bruno@clisp.org>
9151
9152         streq: Rename macro.
9153         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
9154         * NEWS: Mention the change.
9155         * lib/mbrtowc.c (mbrtowc): Update.
9156         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
9157         * lib/wcwidth.c (wcwidth): Update.
9158         Suggested by Akim Demaille and Jim Meyering.
9159
9160 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
9161
9162         regex: fix typo in definition of MIN
9163         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
9164         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
9165
9166 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9167             Bruno Haible  <bruno@clisp.org>
9168
9169         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
9170         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
9171         entries into a stack-allocated buffer directly.
9172         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
9173
9174 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
9175             Bruno Haible  <bruno@clisp.org>
9176
9177         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
9178
9179          - There were several instances of this pattern:
9180
9181              for (;;) {
9182                n = acl (f, GETACLCNT, 0, NULL);
9183                [ allocate an array A of size N ]
9184                if (acl (f, GETACL, n, a) == n)
9185                  break;
9186              }
9187
9188            This loop might never terminate if some other process is constantly
9189            manipulating the file's ACL.  The loop should be rewritten to
9190            terminate.
9191
9192          - The acl (... GETACLNT ...) call is merely an optimization; its value
9193            is merely a hint as to how big to make the array.  A better
9194            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
9195            and just guess a reasonably-big size, growing the size and trying
9196            again if it's not large enough.  This guarantees termination, and
9197            saves a system call.
9198
9199         * lib/acl-internal.h: Include <limits.h>.
9200         (MIN, SIZE_MAX): New macros.
9201         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
9202         a stack-allocated buffer, and use malloc if it does not fit. Don't
9203         use GETACLCNT.
9204         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9205
9206 2012-02-19  Bruno Haible  <bruno@clisp.org>
9207
9208         acl: Fix endless loop on Solaris with vxfs.
9209         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
9210         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
9211         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
9212         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
9213         * tests/test-sameacls.c (main)[Solaris]: Likewise.
9214         Reported by Bill Jones in
9215         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
9216
9217 2012-02-19  Bruno Haible  <bruno@clisp.org>
9218
9219         acl: Fix copy-acl test failure on Solaris 11 2011-11.
9220         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
9221         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
9222         that this function returns 0 in some more cases.
9223
9224 2012-02-19  Bruno Haible  <bruno@clisp.org>
9225
9226         acl: Update doc references.
9227         * doc/acl-resources.txt: Update links to Solaris documentation.
9228
9229 2012-02-19  Bruno Haible  <bruno@clisp.org>
9230
9231         Fix test failure in many locales on Solaris 11.
9232         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
9233         'tr' arguments.
9234         * tests/test-pipe-filter-ii1.c (main): Likewise.
9235         * build-aux/bootstrap (check_versions): Run 'tr' command with range
9236         expressions in the C locale.
9237         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9238         * m4/host-os.m4 (gl_HOST_OS): Likewise.
9239
9240 2012-02-19  Bruno Haible  <bruno@clisp.org>
9241
9242         gnulib-tool: Improve usage message.
9243         * gnulib-tool (func_usage): Move doc of --help and --version to the
9244         section "Operation modes".
9245
9246 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
9247
9248         README-release: make it easier to execute commands
9249         * top/README-release: break commands out on to separate lines.
9250
9251 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
9252
9253         GNUmakefile: simplify detection of unconfigured trees
9254         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
9255         whether the tree make is being run from is already configured or
9256         not.  Related simplifications.
9257
9258 2012-02-13  Simon Josefsson  <simon@josefsson.org>
9259
9260         * gnulib-tool (func_usage): Document --help and --version.
9261
9262 2012-02-11  Jim Meyering  <meyering@redhat.com>
9263
9264         bootstrap: don't exit 0 upon gnulib-tool failure
9265         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
9266         its exit status, not 0.
9267
9268 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
9269
9270         README-release: various improvements
9271         * top/README-release: Give a command to push changes for the
9272         release.  Add "distcheck" to list of other pre-release checks.
9273         Fix instance of "make stable" which should be "make TYPE".
9274
9275 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
9276
9277         maint: replace FSF snail-mail addresses with URLs
9278         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
9279         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
9280         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
9281         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
9282         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
9283         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
9284         * lib/check-version.c, lib/check-version.h, lib/config.charset:
9285         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
9286         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
9287         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
9288         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
9289         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
9290         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
9291         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
9292         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
9293         * lib/glthread/thread.c, lib/glthread/thread.h:
9294         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
9295         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
9296         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
9297         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
9298         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
9299         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
9300         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
9301         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
9302         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
9303         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
9304         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
9305         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
9306         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
9307         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
9308         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
9309         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
9310         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
9311         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
9312         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
9313         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
9314         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
9315         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
9316         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
9317         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
9318         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
9319         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
9320         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
9321         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
9322         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
9323         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
9324         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
9325         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
9326         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
9327         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
9328         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
9329         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
9330         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
9331         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
9332         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
9333         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
9334         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
9335         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
9336         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
9337         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
9338         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
9339         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
9340         * tests/test-poll.c, tests/test-quotearg-simple.c:
9341         * tests/test-quotearg.c, tests/test-quotearg.h:
9342         * tests/test-round-ieee.c, tests/test-round1.c:
9343         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
9344         * tests/test-roundl-ieee.c, tests/test-roundl.c:
9345         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
9346         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
9347         * tests/test-strerror.c, tests/test-strerror_r.c:
9348         * tests/test-strsignal.c, tests/test-strverscmp.c:
9349         * tests/test-xmemdup0.c:
9350         Replace FSF snail mail addresses with URLs, as per GNU coding
9351         standards.  See glibc bug
9352         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
9353
9354 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9355
9356         README-release: capitalize a word and split a line
9357         * top/README-release: Fix punctuation and spacing.
9358
9359 2012-02-08  Akim Demaille  <demaille@gostai.com>
9360
9361         fatal-signal: use C prototypes (with explicit void).
9362         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
9363         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
9364
9365 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9366
9367         regex: spelling fix
9368         * lib/regexec.c: spelling fix
9369
9370         regex: rely on stdint.h for SIZE_MAX
9371         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
9372
9373 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
9374
9375         regex: merge glibc changes
9376
9377         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
9378         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
9379         (init_word_char): Work even if bitset words are not exactly 32 or
9380         64 bits wide.  Don't assume there are no padding bits.
9381         * lib/regex.c [_LIBC]: Do not include <config.h>.
9382         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
9383         and -Wtype-limits.
9384         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
9385         needless disagreement with glibc.  All uses changed.  Define it to
9386         1 only if _GNU_SOURCE, to match glibc.
9387         (_REG_RM_NAME): Remove; no longer needed, since the names in
9388         question are now all protected by __USE_GNU.
9389         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
9390         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
9391         * lib/regex_internal.h (MIN): New macro.
9392
9393         2012-01-03 Ulrich Drepper <drepper@gmail.com>
9394         * lib/regcomp.c (init_word_char): Optimize regex a bit.
9395
9396         2011-12-30 Jakub Jelinek <jakub@redhat.com>
9397         * lib/regex_internal.c (re_string_fetch_byte_case):
9398         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
9399         is miscompiled, and it turns out it is because of an incorrect
9400         attribute on re_string_fetch_byte_case.  Unlike
9401         re_string_peek_byte_case, this one is really not pure, it modifies
9402         memory (increments pstr->cur_idx), and with the pure attribute GCC
9403         assumed it doesn't and it cached the presumed value of
9404         regexp->cur_idx in a variable across the
9405          for (;; ++i)
9406            {
9407              if (i >= BRACKET_NAME_BUF_SIZE)
9408                return REG_EBRACK;
9409              if (token->type == OP_OPEN_CHAR_CLASS)
9410                ch = re_string_fetch_byte_case (regexp);
9411              else
9412                ch = re_string_fetch_byte (regexp);
9413              if (re_string_eoi(regexp))
9414                return REG_EBRACK;
9415              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
9416                break;
9417              elem->opr.name[i] = ch;
9418            }
9419
9420         2011-11-29 Andreas Schwab <schwab@redhat.com>
9421         * lib/regcomp.c (build_equiv_class):
9422         Fix access after end of search string in regex matcher.
9423
9424         2011-11-12 Ulrich Drepper <drepper@redhat.com>
9425         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
9426
9427         2011-10-12 Ulrich Drepper <drepper@redhat.com>
9428         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
9429
9430         2011-10-11 Ulrich Drepper <drepper@redhat.com>
9431         * lib/regcomp.c (parse_branch, parse_sub_exp):
9432         More regex memory leak fixes and tests.
9433         (parse_sub_exp, parse_bracket_exp):
9434         Fix memory leak for some invalid regular expressions.
9435
9436         2011-05-28 Ulrich Drepper <drepper@gmail.com>
9437         * lib/regex_internal.c, lib/regexec.c:
9438         Fix unnecessary overallocation due to incomplete character.  When
9439         incomplete characters are found at the end of a string the code
9440         ran amok and allocated lots of memory.  Stricter limits are now in
9441         place.
9442
9443         2011-05-20 Reuben Thomas <rrt@sc3d.org>
9444         * lib/regex.h: Update documentation.
9445
9446         2011-05-16 Aharon Robbins <arnold@skeeve.com>
9447         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
9448
9449         2010-05-05 Andreas Schwab <schwab@redhat.com>
9450         * lib/regexec.c (find_collation_sequence_value):
9451         Fix lookup of collation sequence value during regexp matching.
9452
9453         2010-01-22 Ulrich Drepper <drepper@redhat.com>
9454         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
9455
9456         2008-01-16 Ulrich Drepper <drepper@redhat.com>
9457         * lib/regex.h: Cleanup namespace.
9458
9459         2007-11-26 Ulrich Drepper <drepper@redhat.com>
9460         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
9461
9462         2007-08-26 Ulrich Drepper <drepper@redhat.com>
9463         * lib/regex_internal.h: Prevent some declarations and definitions
9464         to be seen when used in tests.
9465
9466         2005-05-06 Ulrich Drepper <drepper@redhat.com>
9467         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
9468         __libc_lock_* macros if not _LIBC.
9469         (struct re_dfa_t): Add lock.
9470
9471 2012-02-07  Eric Blake  <eblake@redhat.com>
9472
9473         maint.mk: also prohibit lower-case @var@
9474         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
9475         lower case, like @top_srcdir@.
9476
9477 2012-02-04  Eric Blake  <eblake@redhat.com>
9478
9479         canonicalize: avoid uninitialized memory use
9480         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
9481         random '/' left in dest.
9482         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
9483
9484 2012-02-04  Bruno Haible  <bruno@clisp.org>
9485
9486         isatty: Fix test failure of ptsname_r on native Windows.
9487         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
9488         and don't set errno.
9489         (isatty): Test first whether fd is valid. Set errno when returning 0.
9490
9491 2012-02-04  Bruno Haible  <bruno@clisp.org>
9492
9493         spawn-pipe tests: Fix a NULL program name in a diagnostic.
9494         * tests/test-spawn-pipe-main.c: Include progname.h.
9495         (main): Invoke set_program_name.
9496         * modules/spawn-pipe-tests (Depends-on): Add progname.
9497
9498         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
9499         * tests/test-nonblocking-socket-main.c: Include progname.h.
9500         (main): Invoke set_program_name.
9501         * modules/nonblocking-socket-tests (Depends-on): Add progname.
9502
9503         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
9504         * tests/test-nonblocking-pipe-main.c: Include progname.h.
9505         (main): Invoke set_program_name.
9506         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
9507
9508 2012-02-04  Eric Blake  <eblake@redhat.com>
9509
9510         canonicalize-lgpl: fix // handling
9511         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
9512
9513         canonicalize: fix // handling
9514         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
9515         /// to //, since only // is special.
9516
9517 2012-02-04  Bruno Haible  <bruno@clisp.org>
9518
9519         ioctl: Fix test failure on native Windows.
9520         * lib/ioctl.c: Include msvc-nothrow.h.
9521         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
9522
9523 2012-02-04  Bruno Haible  <bruno@clisp.org>
9524
9525         fsync: Avoid test failure on native Windows.
9526         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
9527         read-only.
9528
9529 2012-02-04  Bruno Haible  <bruno@clisp.org>
9530
9531         sys_select: Avoid syntax error on OpenBSD 5.0.
9532         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
9533         currently being included, just include the system's <sys/select.h>.
9534
9535 2012-02-04  Bruno Haible  <bruno@clisp.org>
9536
9537         sys_select: Avoid syntax error on OpenBSD 5.0.
9538         * lib/sys_select.in.h: Include <signal.h> only after the include_next
9539         <sys/select.h>, not before.
9540         Reported by Jiri B <jirib@devio.us>.
9541
9542 2012-02-04  Bruno Haible  <bruno@clisp.org>
9543
9544         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
9545         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
9546         global variables.
9547         * tests/test-get-rusage-data.c (main): Likewise.
9548         Reported by Jim Meyering.
9549
9550 2012-02-04  Bruno Haible  <bruno@clisp.org>
9551
9552         stdioext: Fix last commit.
9553         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
9554
9555 2012-02-03  Bruno Haible  <bruno@clisp.org>
9556
9557         stdioext: Add tentative support for Plan9.
9558         * lib/stdio-impl.h: Include <errno.h>.
9559         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
9560         * lib/freadable.c (freadable): Likewise.
9561         * lib/fwritable.c (fwritable): Likewise.
9562         * lib/fbufmode.c (fbufmode): Likewise.
9563         * lib/freading.c (freading): Likewise.
9564         * lib/fwriting.c (fwriting): Likewise.
9565         * lib/freadptr.c (freadptr): Likewise.
9566         * lib/freadseek.c (freadptrinc): Likewise.
9567         * lib/freadahead.c (freadahead): Likewise.
9568         * lib/fpurge.c (fpurge): Likewise.
9569         * lib/fseeko.c (rpl_fseeko): Likewise.
9570         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
9571         Reported by Jens Staal <staal1978@gmail.com>.
9572
9573 2012-02-02  Jim Meyering  <meyering@redhat.com>
9574
9575         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
9576         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
9577         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
9578         not even to try to add the attribute.  Instead, add a pragma to suppress
9579         the suggestion/warning.
9580
9581 2012-01-31  Karl Berry  <karl@gnu.org>
9582
9583         setstate doc: typo.
9584         * doc/posix-functions/setstate.texi (setstate): { not (.
9585
9586 2012-01-31  Bruno Haible  <bruno@clisp.org>
9587
9588         popen: Make more robust on Windows.
9589         * lib/popen.c: On native Windows, use the _popen based code even if
9590         HAVE_POPEN is set.
9591         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
9592         environment variable on native Windows.
9593
9594 2012-01-30  Bruno Haible  <bruno@clisp.org>
9595
9596         pclose: Fix typo.
9597         * lib/stdio.in.h (pclose): Fix typo in warning message.
9598
9599 2012-01-30  Bruno Haible  <bruno@clisp.org>
9600
9601         doc about getlogin_r, setstate.
9602         * doc/posix-functions/getlogin_r.texi: List the incompatible
9603         declaration problem under "not fixed by gnulib".
9604         * doc/posix-functions/setstate.texi: Mention incompatible declaration
9605         problem on Solaris 11 and other platforms.
9606
9607 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
9608             Bruno Haible  <bruno@clisp.org>
9609
9610         poll tests: Make test more robust.
9611         * tests/test-poll.c: Include macros.h.
9612         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
9613         return value of various I/O operations.
9614         * modules/poll-tests (Files): Add tests/macros.h.
9615
9616 2012-01-30  Bruno Haible  <bruno@clisp.org>
9617
9618         sys_stat: Fix support for mingw64 and MSVC.
9619         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
9620         header files already do it.
9621         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
9622         stat itself.
9623         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9624
9625 2012-01-30  Bruno Haible  <bruno@clisp.org>
9626
9627         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
9628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
9629         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
9630
9631 2012-01-29  Bruno Haible  <bruno@clisp.org>
9632
9633         quotearg: Fix test failure on MacOS X 10.5.
9634         * tests/test-quotearg-simple.c: Include localcharset.h.
9635         (main): If the locale encoding is not ASCII, bypass the tests of
9636         locale_quoting_style and clocale_quoting_style.
9637         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
9638
9639 2012-01-29  Jim Meyering  <meyering@redhat.com>
9640
9641         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
9642         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
9643         detect uses of canonicalize_file_name.
9644
9645 2012-01-28  Bruno Haible  <bruno@clisp.org>
9646
9647         test-framework-sh: Fix test failure with AIX 7.1 diff.
9648         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
9649         in column 1, like 'diff -c' does.
9650         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
9651         whether 'diff -u' is used. Instead, test whether the output contains
9652         some '@' character.
9653
9654 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
9655
9656         strtoimax: eliminate need for stdint.h, inttypes.h checks
9657         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
9658         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
9659         the prerequisites for a recently-introduced strtoimax test.
9660         I guess this might cause strtoimax to be replaced when not
9661         strictly necessary on older hosts, but this shouldn't introduce
9662         any bugs and it should make Emacs 'configure' faster on typical
9663         modern hosts.  Problem discovered when importing the latest gnulib
9664         to an Emacs test version.
9665         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
9666
9667 2012-01-28  Bruno Haible  <bruno@clisp.org>
9668
9669         sys_time: Override 'struct timeval' on some native Windows platforms.
9670         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
9671         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
9672         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
9673         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
9674         needs to be overridden.
9675         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
9676         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
9677         * tests/test-sys_select.c: Check that the tv_sec member has the same
9678         size as a 'time_t'.
9679         * tests/test-sys_time.c: Likewise.
9680         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
9681         is set, set also REPLACE_GETTIMEOFDAY.
9682         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
9683         convert the resulting 'struct timeval' before returning.
9684         * lib/select.c: Include <sys/time.h>.
9685         (select, timeval): Undefine at the right place.
9686         * modules/select (Depends-on): Add sys_time.
9687         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
9688         some Windows platforms.
9689         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
9690
9691 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9692
9693         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
9694         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
9695         an integer.
9696         * lib/fcntl.c (dupfd): Likewise.
9697         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
9698
9699 2012-01-28  Bruno Haible  <bruno@clisp.org>
9700
9701         fcntl: Avoid compilation error on native Windows.
9702         * modules/fcntl (Depends-on): Add 'close'.
9703
9704 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9705
9706         select, poll, isatty: Avoid warnings on x86_64 mingw64.
9707         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
9708         pointer to an integer.
9709         * lib/poll.c (IsConsoleHandle): Likewise.
9710         * lib/isatty.c (IsConsoleHandle): Likewise.
9711
9712 2012-01-28  Jim Meyering  <meyering@redhat.com>
9713
9714         doc: clarify README-release
9715         * top/README-release: Clarify: you should make a point to have
9716         the latest stable versions of build tools in your PATH, and the
9717         reference to buildreq is solely for its list of tool names, not
9718         for its minimal-functional version numbers.
9719         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
9720
9721         maint.mk: use more readable (yet functionally equivalent) quoting
9722         It is common to quote a single quote in a single quoted string like
9723         this:  '...'\''...'.  Unless you know the idiom, that looks like
9724         gibberish, so prefer to double-quote the string when possible.
9725         Then you can use a more readable, lone single quote: "...'..."
9726         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
9727         "don't" is more readable than the equivalent 'don'\''t'.
9728         (sc_cast_of_x_alloc_return_value): Likewise.
9729         (sc_cast_of_alloca_return_value): Likewise.
9730         (sc_makefile_path_separator_check): Similar: use ":" in '...',
9731         rather than '\'':'\''.
9732
9733 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9734
9735         stdalign: relax _Alignof and tighten _Alignas test
9736         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
9737         as it was too strict: alignof must divide offsetof, but it need
9738         not equal offsetof.  Inspired by Joseph S. Myers's comment
9739         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
9740         Conversely, tighten the _Alignas test a bit, as the resulting
9741         alignment must be exactly 8.
9742
9743 2012-01-27  Bruno Haible  <bruno@clisp.org>
9744
9745         stdalign: Document the last change.
9746         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
9747
9748 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
9749
9750         stdalign: check that alignof and offsetof are consistent
9751         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
9752         Problem reported for gnulib by Richard W.M. Jones in
9753         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
9754
9755 2012-01-27  Jim Meyering  <meyering@redhat.com>
9756
9757         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
9758         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
9759         convert a sequence with gaps to the minimal containing range.
9760         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
9761         * tests/test-update-copyright.sh: Test for this.
9762         The FSF confirmed it is ok to do this, assuming there is at
9763         least one significant change per year in the affected range:
9764         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
9765
9766 2012-01-26  Bruno Haible  <bruno@clisp.org>
9767
9768         pipe2: refine doc about thread-safety
9769         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
9770         multithread-safety problem.
9771         * doc/glibc-functions/accept4.texi: Likewise.
9772
9773 2012-01-26  Bruno Haible  <bruno@clisp.org>
9774
9775         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
9776         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
9777         In the test program, include <fcntl.h>, for O_RDONLY.
9778
9779 2012-01-26  Eric Blake  <eblake@redhat.com>
9780
9781         pipe2: document lack of thread-safety in replacement
9782         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
9783         issue in replacement.
9784         * doc/glibc-functions/accept4.texi (accept4): Likewise.
9785         Based on a report by Eric Wong.
9786
9787 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
9788             Bruno Haible  <bruno@clisp.org>
9789
9790         malloca: Avoid warnings on x86_64 mingw64.
9791         * lib/malloca.c: Include <stdint.h>.
9792         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
9793         * modules/malloca (Depends-on): Add stdint.
9794         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
9795
9796 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
9797
9798         obstack: remove __STDC__ conditionals
9799         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
9800         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
9801         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
9802         m4/include_next.m4 as the only gnulib-maintained places that still
9803         refer to __STDC__.
9804
9805 2012-01-24  Bruno Haible  <bruno@clisp.org>
9806
9807         havelib: Modern quoting.
9808         * build-aux/config.rpath: Quote 'like this', not `like this', as per
9809         the recent change to the GNU coding standards.
9810
9811 2012-01-24  Bruno Haible  <bruno@clisp.org>
9812
9813         stdint: Improve support for Android.
9814         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
9815         Reported by Simon Josefsson <simon@josefsson.org>.
9816
9817 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
9818
9819         doc: omit trailing empty lines from INSTALL etc.
9820         * doc/Makefile (INSTALL): Omit trailing empty lines.
9821         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
9822         omit trailing empty lines.  This simplifies the build procedure.
9823
9824 2012-01-23  Jim Meyering  <meyering@redhat.com>
9825
9826         tests: avoid spurious warnings about gl_sockets_startup
9827         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
9828         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
9829         reporting a "statement with no effect".
9830         * tests/test-accept.c (main): Mark as "(void)".
9831         * tests/test-accept4.c (main): Likewise.
9832         * tests/test-bind.c (main): Likewise.
9833         * tests/test-connect.c (main): Likewise.
9834         * tests/test-getpeername.c (main): Likewise.
9835         * tests/test-getsockname.c (main): Likewise.
9836         * tests/test-getsockopt.c (main): Likewise.
9837         * tests/test-listen.c (main): Likewise.
9838         * tests/test-recv.c (main): Likewise.
9839         * tests/test-recvfrom.c (main): Likewise.
9840         * tests/test-send.c (main): Likewise.
9841         * tests/test-sendto.c (main): Likewise.
9842         * tests/test-setsockopt.c (main): Likewise.
9843         * tests/test-shutdown.c (main): Likewise.
9844
9845 2012-01-21  Bruno Haible  <bruno@clisp.org>
9846
9847         locale-fr.m4: Fix for Android.
9848         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
9849         failure of the test program on Bionic libc.
9850
9851 2012-01-21  Jim Meyering  <meyering@redhat.com>
9852
9853         bootstrap: fail when bootstrap_post_import_hook fails
9854         Otherwise, it's far too easy to miss diagnostics emitted
9855         between gnulib-tool's output and that of running configure.
9856         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
9857
9858 2012-01-17  Jim Meyering  <meyering@redhat.com>
9859
9860         maint: enable sc_trailing_blank
9861         * build-aux/pmccabe.css: Remove trailing blanks.
9862         * doc/acl-cygwin.txt: Likewise.
9863         * doc/gnu-oids.texi: Likewise
9864         * cfg.mk: Enable sc_trailing_blank.
9865         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
9866
9867 2012-01-17  Jim Meyering  <meyering@redhat.com>
9868
9869         maint: enable sc_prohibit_openat_without_use
9870         * cfg.mk: Enable sc_prohibit_openat_without_use.
9871         Exempt lib/selinux-at.c.
9872
9873 2012-01-17  Jim Meyering  <meyering@redhat.com>
9874
9875         maint: enable sc_prohibit_cloexec_without_use
9876         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
9877         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
9878
9879 2012-01-17  Jim Meyering  <meyering@redhat.com>
9880
9881         maint: enable sc_prohibit_intprops_without_use
9882         * cfg.mk: Enable sc_prohibit_intprops_without_use
9883         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
9884
9885 2012-01-17  Jim Meyering  <meyering@redhat.com>
9886
9887         maint: enable sc_prohibit_hash_pjw_without_use
9888         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
9889         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
9890         to match any use of \<hash_pjw\>, i.e., not necessarily with a
9891         following " (".
9892
9893 2012-01-17  Jim Meyering  <meyering@redhat.com>
9894
9895         maint: enable double-word-prohibiting rule
9896         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
9897         Exempt three files.
9898
9899 2012-01-17  Jim Meyering  <meyering@redhat.com>
9900
9901         maint: remove empty lines at EOF, but excluding modules/*
9902         Apply syntax rules at home as well as abroad.  Most changes
9903         were induced by running this:
9904           make srcdir=. _build-aux=build-aux -f top/maint.mk \
9905             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
9906             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
9907         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
9908         Exempt modules/* and two binary files.
9909         Also exempt doc/INSTALL*, per request from Bruno Haible.
9910         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
9911         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
9912         * doc/Copyright/request-assign.future: Likewise.
9913         * doc/Copyright/request-disclaim.changes: Likewise.
9914         * doc/INSTALL: Likewise.
9915         * doc/INSTALL.ISO: Likewise.
9916         * doc/INSTALL.UTF-8: Likewise.
9917         * doc/acl-cygwin.txt: Likewise.
9918         * doc/acl-resources.txt: Likewise.
9919         * doc/fdl-1.2.texi: Likewise.
9920         * doc/fdl-1.3.texi: Likewise.
9921         * doc/fdl.texi: Likewise.
9922         * lib/argp-pin.c: Likewise.
9923         * lib/round.c: Likewise.
9924         * lib/unicase/u16-totitle.c: Likewise.
9925         * lib/unictype/block_test.c: Likewise.
9926         * lib/uninorm/canonical-decomposition.c: Likewise.
9927         * m4/README: Likewise.
9928         * m4/relocatable-lib.m4: Likewise.
9929         * tests/test-isnand-nolibm.c: Likewise.
9930         * tests/test-isnand.c: Likewise.
9931         * tests/uninorm/NormalizationTest.txt: Likewise.
9932
9933 2012-01-17  Jim Meyering  <meyering@redhat.com>
9934
9935         maint: add framework to run syntax-check rules against gnulib sources
9936         * cfg.mk: New file, to disable all currently-failing tests.
9937         We'll enable them one by one, as they are made to pass.
9938         * Makefile (sc_maint): New rule.
9939
9940 2012-01-21  Bruno Haible  <bruno@clisp.org>
9941
9942         stdint: Add support for Android.
9943         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
9944         include the system's <stdint.h>.
9945         Reported by Simon Josefsson <simon@josefsson.org>.
9946
9947 2012-01-19  Jim Meyering  <meyering@redhat.com>
9948
9949         bootstrap: add bootstrap_post_import_hook
9950         Bison does still need something like the gnulib_mk_hook whose
9951         invocation I had to remove along with slurp in commit 767ccd40.
9952         Technically, we could get along without it, but doing so would
9953         have required living with a warning and a mandatory post-bootstrap
9954         automake rerun.
9955         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
9956         (bootstrap_post_import_hook): New function.
9957         Invoke it after gnulib-tool --import and before autoreconf.
9958
9959 2012-01-18  Jim Meyering  <meyering@redhat.com>
9960
9961         gitlog-to-changelog: don't use "no_"-prefixed variable name
9962         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
9963         to enable both --cluster and --no-cluster.  Change variable name,
9964         s/\$no_cluster/$cluster/, and reverse usage to match.
9965
9966         gitlog-to-changelog: use "||", not "or" in expressions
9967         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
9968         expressions.
9969
9970 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
9971
9972         gitlog-to-changelog: new option --no-cluster
9973         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
9974         clustering of adjacent commit messages.
9975
9976 2012-01-17  Jim Meyering  <meyering@redhat.com>
9977
9978         maint: spell file systems with two words, not one
9979         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
9980         two words, not one.
9981
9982 2012-01-16  Jim Meyering  <meyering@redhat.com>
9983
9984         bootstrap: add a FIXME comment to ensure we eventually remove the hack
9985         * build-aux/bootstrap (gnulib_tool_options): Add comment.
9986
9987 2012-01-16  Eric Blake  <eblake@redhat.com>
9988
9989         bootstrap: cater to autoconf 2.59
9990         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
9991         is not available.
9992
9993         bootstrap: properly check for libtool
9994         * build-aux/bootstrap (libtoolize): Also run libtool when older
9995         usage is detected.
9996
9997 2012-01-15  Bruno Haible  <bruno@clisp.org>
9998
9999         Improve support for MSVC 9.
10000         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
10001         clashes on MSVC.
10002         * lib/fcntl.in.h: Likewise.
10003         * lib/stdlib.in.h: Likewise.
10004         * lib/sys_stat.in.h: Likewise.
10005
10006 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
10007
10008         gnupload: we hold the master copy of this script now
10009         For motivation and more information, see:
10010         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
10011         * build-aux/gnupload: Make it clear in the heading comments that the
10012         master copy of this file is maintained by gnulib.  Since we are at
10013         it, bump its copyright year and ...
10014         ($scriptversion): ... the date in its version.
10015         ($usage): Patches and bug reports should be sent to the gnulib list,
10016         not the automake one.
10017         * config/srclist.txt: Don't try to sync 'gnupload' from automake
10018         anymore.
10019
10020 2012-01-15  Bruno Haible  <bruno@clisp.org>
10021
10022         Fix module 'random'.
10023         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
10024         initstate, setstate are declared.
10025
10026 2012-01-14  Bruno Haible  <bruno@clisp.org>
10027
10028         Tests for module 'random'.
10029         * modules/random-tests: New file.
10030         * tests/test-random.c: New file, based on tests/test-random_r.c.
10031
10032         New module 'random'.
10033         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
10034         declarations.
10035         * lib/random.c: New file, based on glibc/stdlib/random.c.
10036         * m4/random.m4: New file.
10037         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
10038         HAVE_RANDOM.
10039         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
10040         * modules/random: New file.
10041         * config/srclist.txt: Add an entry for random.c.
10042         * doc/posix-functions/random.texi: Mention the 'random' module.
10043         * doc/posix-functions/initstate.texi: Likewise.
10044         * doc/posix-functions/setstate.texi: Likewise.
10045         * doc/posix-functions/srandom.texi: Likewise.
10046
10047 2012-01-12  Bruno Haible  <bruno@clisp.org>
10048
10049         random_r: Use common idioms.
10050         * lib/random_r.c: Include <stdlib.h> first.
10051
10052         random_r: Override incompatible API on AIX, OSF/1.
10053         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
10054         Override the system function if REPLACE_RANDOM_R is 1.
10055         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
10056         and OSF/1, set REPLACE_RANDOM_R.
10057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
10058         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
10059         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
10060         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
10061         * doc/glibc-functions/random_r.texi: Likewise.
10062         * doc/glibc-functions/setstate_r.texi: Likewise.
10063
10064         random_r: Support for MSVC 9.
10065         * lib/random_r.c: Include stdint.h, not inttypes.h.
10066
10067 2012-01-12  Eric Blake  <eblake@redhat.com>
10068
10069         inet_ntop: guard extra work by IF_LINT
10070         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
10071         better code generation when not checking for warnings.
10072         Suggested by Paul Eggert and Jim Meyering.
10073
10074         strptime: fix regression on mingw
10075         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
10076         Fix regression.  Reported by Bruno Haible.
10077
10078 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
10079             Bruno Haible  <bruno@clisp.org>
10080
10081         copy-file: add error-code-returning variant.
10082         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
10083         (qcopy_file_preserving): New declaration.
10084         * lib/copy-file.c (qcopy_file_preserving): Renamed from
10085         copy_file_preserving. Change return type to 'int'. Don't emit an error
10086         message here.
10087         (copy_file_preserving): New function.
10088         * tests/test-copy-file.c: Include <stdlib.h>.
10089         (main): Test qcopy_file_preserving if the environment variable
10090         NO_STDERR_OUTPUT is set.
10091         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
10092         with NO_STDERR_OUTPUT
10093         * tests/test-copy-file-2.sh: Likewise.
10094
10095 2012-01-10  Bruno Haible  <bruno@clisp.org>
10096
10097         copy-file: Use 'quote' module consistently.
10098         * lib/copy-file.c (copy_file_preserving): Use quote().
10099
10100         copy-file: Refactor.
10101         * lib/copy-file.c: Include quote.h.
10102         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
10103         message here.
10104         * modules/copy-file (Depends-on): Add quote.
10105
10106         acl: Export qcopy_acl.
10107         * lib/acl.h (qcopy_acl): New declaration.
10108         * lib/copy-acl.c (qcopy_acl): Make non-static.
10109
10110         acl: Rename a local variable.
10111         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
10112
10113         acl: Align return values of copy_acl and qcopy_acl.
10114         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
10115         maybe < -1.
10116
10117 2012-01-11  Eric Blake  <eblake@redhat.com>
10118
10119         strptime: silence gcc warnings
10120         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
10121         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
10122         Reported by Daniel P. Berrange.
10123
10124         inet_ntop: silence gcc warning
10125         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
10126         Reported by Daniel P. Berrange.
10127
10128 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
10129
10130         getloadavg test: skip the test on GNU/Linux without /proc mounted
10131         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
10132         file.  When /proc is not mounted, it always fails with ENOENT.
10133         * tests/test-getloadavg.c (main): Treat ENOENT return code from
10134         getloadavg(3) the same way as ENOSYS and ENOTSUP.
10135
10136 2012-01-10  Bruno Haible  <bruno@clisp.org>
10137
10138         regex: Avoid link error on MSVC 9.
10139         * modules/regex (Depends-on): Add wctype.
10140
10141 2012-01-10  Bruno Haible  <bruno@clisp.org>
10142
10143         doc: Mention --with-tests option.
10144         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
10145         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
10146         --with-tests.
10147         Reported by Reuben Thomas.
10148
10149 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
10150
10151         users.txt: order package names lexicographically.
10152         * users.txt: Order package names lexicographically.
10153
10154 2012-01-10  Jim Meyering  <meyering@redhat.com>
10155
10156         maint.mk: fix description in comment
10157         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
10158
10159         ignore-value: remove deprecated ignore_ptr function
10160         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
10161         * NEWS: Note this.
10162
10163 2012-01-09  Jim Meyering  <meyering@redhat.com>
10164
10165         test-init.sh: avoid a subshell
10166         * tests/test-init.sh: Remove protective subshell.
10167         Suggested by Bernhard Voelker.  While a subshell is normally
10168         required to protect against older shells (Solaris, FreeBSD) that
10169         warn about a missing program before performing redirection, the
10170         shell-selection tests performed by init.sh probably exclude any
10171         offending shell.
10172
10173 2012-01-08  Bruno Haible  <bruno@clisp.org>
10174
10175         setlocale tests: Avoid test failure on Solaris 11 2011-11.
10176         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
10177         variable.
10178
10179 2012-01-08  Bruno Haible  <bruno@clisp.org>
10180
10181         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
10182         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10183         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10184         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
10185         macro.
10186         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
10187         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10188         * lib/spawn_faction_addopen.c: Add workaround implementation if
10189         HAVE_WORKING_POSIX_SPAWN.
10190         * modules/spawn (Makefile): Substitute
10191         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
10192         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
10193         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
10194         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
10195         (Depends-on): Update conditions.
10196         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10197         the Solaris 11 bug.
10198
10199 2012-01-08  Bruno Haible  <bruno@clisp.org>
10200
10201         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
10202         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10203         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10204         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
10205         macro.
10206         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
10207         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10208         * lib/spawn_faction_adddup2.c: Add workaround implementation if
10209         HAVE_WORKING_POSIX_SPAWN.
10210         * modules/spawn (Makefile): Substitute
10211         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
10212         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
10213         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
10214         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
10215         (Depends-on): Update conditions.
10216         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10217         the Solaris 11 bug.
10218
10219 2012-01-08  Bruno Haible  <bruno@clisp.org>
10220
10221         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
10222         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
10223         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10224         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
10225         HAVE_WORKING_POSIX_SPAWN.
10226         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
10227         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
10228         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10229         * lib/spawn_faction_addclose.c: Add workaround implementation if
10230         HAVE_WORKING_POSIX_SPAWN.
10231         * modules/spawn (Makefile): Substitute
10232         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
10233         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
10234         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
10235         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
10236         (Depends-on): Update conditions.
10237         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10238         the Solaris 11 bug.
10239
10240 2012-01-08  Bruno Haible  <bruno@clisp.org>
10241
10242         doc: Update for Solaris 11 2011-11.
10243         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
10244         * m4/printf.m4: Update comments.
10245
10246 2012-01-08  Bruno Haible  <bruno@clisp.org>
10247
10248         mktime: Avoid compilation error on Solaris 11.
10249         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
10250
10251 2012-01-08  Bruno Haible  <bruno@clisp.org>
10252
10253         doc: Small fix.
10254         * doc/posix-headers/nl_types.texi: Correct platforms list.
10255
10256 2012-01-08  Simon Josefsson  <simon@josefsson.org>
10257
10258         Add lgpl-3.0 module.
10259         * MODULES.html.sh (Support for building documentation): Add
10260         lgpl-3.0.
10261         * modules/lgpl-3.0: New file.
10262
10263 2012-01-08  Jim Meyering  <meyering@redhat.com>
10264
10265         select.c: indent with spaces, not TABs
10266         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
10267
10268 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10269
10270         quotearg: do not use grave accent for left quote
10271         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
10272         locale_quoting_style.
10273         (quotearg_buffer_restyled): Fix example.
10274         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
10275
10276 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10277
10278         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
10279         Most programs do not have translation catalogs for English and much
10280         less separate catalogs for British and American English.  Drop the
10281         suggestion to translators about these two, and provide it
10282         automatically for Unicode locales.  Like most programs, even those
10283         using American English, we use single quotation marks.  This conflicts
10284         with the American typographic convention, but works better when you
10285         cite the entire error message within double quotes.  It also tries not
10286         to clash with established practice and with what non-gnulib programs
10287         will usually do.
10288         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
10289         using an UTF-8 or GB-18030 locale.  The list of other locales with
10290         quotes was provided by Bruno Haible.
10291         (quotearg_buffer_restyled): Adjust instructions to translators.
10292         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
10293         text, since this would be wrong when using Unicode.
10294         * modules/quotearg: Depend on c-strcaseeq.
10295
10296 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
10297
10298         quotearg: fix Wikipedia link
10299         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
10300
10301 2012-01-07  Simon Josefsson  <simon@josefsson.org>
10302
10303         Fix for mingw with MSVC9.
10304         * m4/ld-version-script.m4: Check that compiler rejects version
10305         scripts with syntax errors.  Reported by Bruno Haible
10306         <bruno@clisp.org>.
10307
10308 2012-01-06  Bruno Haible  <bruno@clisp.org>
10309
10310         Talk about "native Windows API", not "Woe32".
10311         * lib/accept4.c: Update comments to mention native Windows.
10312         * lib/execute.c: Likewise.
10313         * lib/fatal-signal.c: Likewise.
10314         * lib/localcharset.c: Likewise.
10315         * lib/nanosleep.c: Likewise.
10316         * lib/nl_langinfo.c: Likewise.
10317         * lib/pclose.c: Likewise.
10318         * lib/pipe-filter-gi.c: Likewise.
10319         * lib/pipe-filter-ii.c: Likewise.
10320         * lib/pipe.c: Likewise.
10321         * lib/pipe2.c: Likewise.
10322         * lib/popen.c: Likewise.
10323         * lib/progreloc.c: Likewise.
10324         * lib/relocatable.c: Likewise.
10325         * lib/sigaction.c: Likewise.
10326         * lib/sigprocmask.c: Likewise.
10327         * lib/spawn-pipe.h: Likewise.
10328         * lib/spawn-pipe.c: Likewise.
10329         * lib/spawni.c: Likewise.
10330         * lib/stat-time.h: Likewise.
10331         * lib/w32spawn.h: Likewise.
10332         * tests/test-isatty.c: Likewise.
10333         * lib/config.charset: More comments.
10334         * doc/gnulib-intro.texi: Mention native Windows.
10335         * doc/posix-functions/_Exit_C99.texi: Likewise.
10336         * doc/posix-headers/fcntl.texi: Likewise.
10337
10338 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
10339
10340         argp: Avoid crash if translator uses % characters in a translation.
10341         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
10342         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10343
10344 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
10345
10346         doc: C11 and C++11 are now official
10347         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
10348         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
10349         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
10350         * modules/stdalign:
10351         Replace references to draft C1X to C11, and to draft C++0X to C++11.
10352
10353 2012-01-06  Bruno Haible  <bruno@clisp.org>
10354
10355         uc-is-grapheme-break tests: Tweak.
10356         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
10357         message.
10358
10359 2012-01-06  Bruno Haible  <bruno@clisp.org>
10360
10361         test-init.sh: correct the test for diff -u
10362         * tests/test-init.sh: Also redirect stdout to /dev/null.
10363
10364 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
10365
10366         Use ', not `, for quoting output.
10367         * build-aux/announce-gen (usage, sizes, print_news_deltas)
10368         (print_changelog_deltas, get_tool_versions, main program):
10369         * build-aux/git-version-gen:
10370         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
10371         * build-aux/move-if-change (help):
10372         * build-aux/useless-if-before-free (usage, main program):
10373         * check-module (parse_module_file, usage)
10374         (find_included_lib_files, check_module):
10375         * lib/argmatch.c (main) [TEST]:
10376         * lib/argp-help.c (_help):
10377         * lib/getopt1.c (main) [TEST]:
10378         * lib/git-merge-changelog.c (usage):
10379         * lib/xstrtol-error.c (xstrtol_error):
10380         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
10381         * m4/argz.m4 (gl_FUNC_ARGZ):
10382         * m4/bison.m4 (gl_BISON):
10383         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
10384         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
10385         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
10386         * m4/fpending.m4 (gl_PREREQ_FPENDING):
10387         * m4/gc-random.m4 (gl_GC_RANDOM):
10388         * m4/intl.m4 (gt_CHECK_DECL):
10389         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
10390         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
10391         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
10392         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
10393         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
10394         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
10395         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
10396         * tests/test-dirname.c (main):
10397         * tests/test-getpass.c (main):
10398         * tests/test-iconvme.c (main):
10399         * tests/test-parse-datetime.c (LOG):
10400         * tests/test-xstrtoimax.sh:
10401         * tests/test-xstrtol.sh:
10402         * tests/test-xstrtoll.sh:
10403         * tests/test-xstrtoumax.sh:
10404         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
10405         * top/GNUmakefile (abort-due-to-no-makefile):
10406         Quote 'like this', not `like this', as per the recent change to
10407         the GNU coding standards.
10408
10409 2012-01-05  Bruno Haible  <bruno@clisp.org>
10410
10411         strtoimax: Don't force a replacement on systems where intmax_t is int.
10412         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
10413         'intmax_t' is not larger than 'int'.
10414         Reported by Pádraig Brady <P@draigBrady.com>.
10415
10416 2012-01-05  Bruno Haible  <bruno@clisp.org>
10417
10418         doc: Mention NetBSD bugs.
10419         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
10420         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
10421
10422 2012-01-05  Bruno Haible  <bruno@clisp.org>
10423
10424         strtoumax tests: Enhance tests.
10425         * tests/test-strtoumax.c (main): Add tests for large values.
10426
10427 2012-01-05  Bruno Haible  <bruno@clisp.org>
10428
10429         strtoimax: Work around AIX 5.1 bug.
10430         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
10431         definition.
10432         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
10433         Set HAVE_STRTOIMAX.
10434         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
10435         REPLACE_STRTOIMAX.
10436         * modules/inttypes-incomplete (Makefile.am): Substitute
10437         REPLACE_STRTOIMAX.
10438         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
10439         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
10440         (Depends-on): Update conditions.
10441         * tests/test-strtoimax.c (main): Add tests for large values.
10442         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
10443
10444 2012-01-05  Bruno Haible  <bruno@clisp.org>
10445
10446         inttypes: Modernize.
10447         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
10448         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
10449         (Makefile.am): Update inttypes.h rule.
10450
10451 2012-01-05  Jim Meyering  <meyering@redhat.com>
10452
10453         init.sh: don't waste a subshell just to redirect stderr
10454         * tests/init.sh: In testing for diff -u and diff -c, use a
10455         stderr-redirecting exec inside `...` rather than a subshell.
10456
10457         test-init.sh: avoid failure on HP-UX 11.00
10458         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
10459         resolves to diff -c or cmp.  Reported by Bruno Haible.
10460
10461 2012-01-05  Bruno Haible  <bruno@clisp.org>
10462
10463         Tests for module 'strtoull'.
10464         * modules/strtoull-tests: New file.
10465         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
10466
10467 2012-01-05  Bruno Haible  <bruno@clisp.org>
10468
10469         Tests for module 'strtoll'.
10470         * modules/strtoll-tests: New file.
10471         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
10472
10473 2012-01-05  Bruno Haible  <bruno@clisp.org>
10474
10475         Tests for module 'strtoul'.
10476         * modules/strtoul-tests: New file.
10477         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
10478
10479 2012-01-05  Bruno Haible  <bruno@clisp.org>
10480
10481         Tests for module 'strtol'.
10482         * modules/strtol-tests: New file.
10483         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
10484
10485 2012-01-04  Jim Meyering  <meyering@redhat.com>
10486
10487         test-init.sh: accommodate Solaris 5.10's different diff -u output
10488         * tests/test-init.sh: Also exempt @@ lines from the comparison
10489         of diff output, since Solaris 5.10 and GNU diff formats differ.
10490         Reported by Stefano Lattarini.
10491
10492 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
10493
10494         test-posixtm: don't assume signed integer wraparound
10495         * tests/test-posixtm.c (main): Don't assume wraparound semantics
10496         after signed integer overflow.  Inspired by (though it may not
10497         fix) Bruno Haible's bug report in
10498         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
10499
10500         Spell out "Windows 9x" and "Windows XP".
10501         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
10502         "Windows 9x" and "WinXP" with "Windows XP".
10503
10504 2012-01-04  Jim Meyering  <meyering@redhat.com>
10505
10506         test-vc-list-files-cvs.sh: remove obsolete comment
10507         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
10508         double exit.  Now that's all encapsulated via skip_ and Exit.
10509
10510 2012-01-04  Bruno Haible  <bruno@clisp.org>
10511
10512         Talk about "native Windows API", not "Win32".
10513         * lib/classpath.c: Update comments to mention native Windows.
10514         * lib/csharpexec.c: Likewise.
10515         * lib/dup2.c: Likewise.
10516         * lib/error.c: Likewise.
10517         * lib/fcntl.c: Likewise.
10518         * lib/filename.h: Likewise.
10519         * lib/findprog.c: Likewise.
10520         * lib/get-rusage-as.c: Likewise.
10521         * lib/get-rusage-data.c: Likewise.
10522         * lib/getpagesize.c: Likewise.
10523         * lib/javaexec.c: Likewise.
10524         * lib/msvc-inval.c: Likewise.
10525         * lib/msvc-nothrow.c: Likewise.
10526         * lib/nanosleep.c: Likewise.
10527         * lib/nonblocking.c: Likewise.
10528         * lib/printf-parse.c: Likewise.
10529         * lib/setlocale.c: Likewise.
10530         * lib/sigaction.c: Likewise.
10531         * lib/strerror_r.c: Likewise.
10532         * lib/tmpdir.c: Likewise.
10533         * lib/vasnprintf.c: Likewise.
10534         * lib/w32spawn.h: Likewise.
10535         * lib/waitpid.c: Likewise.
10536         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
10537         * m4/locale-ar.m4: Likewise.
10538         * m4/locale-fr.m4: Likewise.
10539         * m4/locale-ja.m4: Likewise.
10540         * m4/locale-tr.m4: Likewise.
10541         * m4/locale-zh.m4: Likewise.
10542         * m4/printf.m4: Likewise.
10543         * tests/test-cloexec.c: Likewise.
10544         * tests/test-copy-acl.sh: Likewise.
10545         * tests/test-copy-file.sh: Likewise.
10546         * tests/test-file-has-acl.sh: Likewise.
10547         * tests/test-set-mode-acl.sh: Likewise.
10548         * tests/test-dup-safer.c: Likewise.
10549         * tests/test-dup2.c: Likewise.
10550         * tests/test-dup3.c: Likewise.
10551         * tests/test-fcntl.c: Likewise.
10552         * tests/test-nonblocking-pipe.h: Likewise.
10553         * tests/test-nonblocking-socket.h: Likewise.
10554         * tests/test-pipe.c: Likewise.
10555         * tests/test-pipe2.c: Likewise.
10556         * tests/test-spawn-pipe-child.c: Likewise.
10557         * doc/acl-resources.txt: Likewise.
10558         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10559         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
10560         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
10561         * lib/localcharset.c: Update comments to mention native Windows.
10562         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10563         * lib/localename.c: Likewise.
10564         * lib/progreloc.c: Likewise.
10565         * lib/relocatable.c: Likewise.
10566         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
10567         (windows_compute_revents): Renamed from win32_compute_revents.
10568         (windows_compute_revents_socket): Renamed from
10569         win32_compute_revents_socket.
10570         * lib/select.c: Update comments to mention native Windows.
10571         (windows_poll_handle): Renamed from win32_poll_handle.
10572         * m4/threadlib.m4: Update comments to mention native Windows.
10573         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
10574         --enable-threads=windows instead of --enable-threads=win32. Set
10575         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
10576         * lib/glthread/lock.h: Update comments to mention native Windows.
10577         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
10578         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
10579         USE_WIN32_THREADS.
10580         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
10581         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
10582         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
10583         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
10584         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
10585         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
10586         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
10587         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
10588         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
10589         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
10590         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
10591         * tests/test-tls.c: Likewise.
10592         Rationale:
10593         Microsoft renamed the "Win32 API" to "Windows API", as it is available
10594         on both 32-bit and 64-bit Windows systems.
10595         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
10596         line of distinction is between "native Windows" on one side and Unix/
10597         POSIX systems on the other side. More details in
10598         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
10599         Suggested by Paul Eggert.
10600
10601 2012-01-03  Bruno Haible  <bruno@clisp.org>
10602
10603         isatty: Support for MSVC 9.
10604         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
10605         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
10606         (_isatty_nothrow): New function.
10607         (isatty): Use it instead of _isatty.
10608         (IsConsoleHandle): Add comment, from Paolo Bonzini.
10609         * lib/poll.c (IsConsoleHandle): Likewise.
10610         * lib/select.c (IsConsoleHandle): Likewise.
10611         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
10612         (gl_PREREQ_ISATTY): New macro.
10613         * modules/isatty (Depends-on): Add msvc-inval.
10614         (configure.ac): Invoke gl_PREREQ_ISATTY.
10615
10616 2012-01-03  Jim Meyering  <meyering@redhat.com>
10617
10618         maint.mk: remove temporary transition aid from over 1.5 years ago
10619         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
10620         purpose was to aid in the transition (avoiding silent malfunction)
10621         from that old name to the new _sc_search_regexp.  This shim was
10622         added by commit 219c504b.
10623
10624         init.sh: do not try to accommodate compare arguments starting with "-"
10625         * tests/init.sh (compare_dev_null_): Do not try to accommodate
10626         compare arguments that start with "-".  Besides, we do not worry
10627         about this when invoking diff or cmp; why start now with sed?
10628         Using "--" to separate options from argument would trigger sed
10629         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
10630         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
10631
10632 2012-01-02  Bruno Haible  <bruno@clisp.org>
10633
10634         Enhance tests for module 'isatty'.
10635         * modules/isatty-tests (Depends-on): Add pipe-posix.
10636         * tests/test-isatty.c: Include <fcntl.h>.
10637         (DEV_NULL): New macro.
10638         (main): Test the resut of isatty() also on regular files, pipes, and
10639         /dev/null.
10640
10641         New module 'isatty'.
10642         * lib/unistd.in.h (isatty): New declaration.
10643         * lib/isatty.c: New file, based on an idea of
10644         Bastien Roucariès <roucaries.bastien@gmail.com>.
10645         * m4/isatty.m4: New file.
10646         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
10647         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
10648         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
10649         REPLACE_ISATTY.
10650         * modules/isatty: New file.
10651         * doc/posix-functions/isatty.texi: Mention the new module.
10652         Suggested by Paolo Bonzini.
10653
10654 2012-01-02  Bruno Haible  <bruno@clisp.org>
10655
10656         canonicalize: Tweak 2011-12-29 commit.
10657         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
10658         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
10659
10660 2012-01-02  Jim Meyering  <meyering@redhat.com>
10661
10662         gitlog-to-changelog: describe input syntax in --help output
10663         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
10664
10665         gitlog-to-changelog: fix typo in --help: show backslash before email @
10666         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
10667         in sources, but not in actual output.
10668
10669 2011-12-30  Jim Meyering  <meyering@redhat.com>
10670
10671         gitlog-to-changelog: don't malfunction when name contains %-directive
10672         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
10673         in a name string cause trouble.  E.g., with a user name of "%s",
10674         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
10675
10676 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
10677
10678         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
10679         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
10680         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
10681         the "  (tiny change)" notation that is appended to the standard
10682         ChangeLog "date  name  email" header line.
10683
10684 2012-01-01  Jim Meyering  <meyering@redhat.com>
10685
10686         test-framework-sh: init.sh: fix "make dist" failure
10687         When using gnulib-tool's --with-tests option and any module that
10688         depends on test-framework-sh, "make dist" would fail due to the
10689         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
10690         in the gltests directory, and not in the gllib/ directory.
10691         One way to work around that is to move the EXTRA_DIST += init.sh
10692         from the primary module to the -tests one:
10693         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
10694         * modules/test-framework-sh (Makefile.am): ...not here.
10695         Reported by Tom G. Christensen in
10696         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
10697
10698         version-etc: update copyright year reported by --version
10699         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
10700
10701 2011-12-31  Pádraig Brady  <P@draigBrady.com>
10702
10703         canonicalize: only stat() if required
10704         * lib/canonicalize.c (canonicalize_filename_mode):
10705         Avoid calling l?stat() when both CAN_MISSING,
10706         and CAN_NOLINKS are set, as we neither need
10707         to resolve symlinks or test component existence.
10708
10709 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10710
10711         doc: cover st_ino issues once; add OpenVMS etc.
10712         * doc/posix-functions/stat.texi (stat):
10713         * doc/posix-functions/lstat.texi (lstat):
10714         * doc/posix-functions/fstatat.texi (fstatat):
10715         * doc/posix-functions/fstat.texi (fstat):
10716         Move general 'struct stat' stuff to sys_stat.texi,
10717         leaving behind a pointer.
10718         * doc/posix-headers/sys_stat.texi (sys/stat.h):
10719         Merge duplicate info about 'struct stat' problems into here.
10720         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
10721         and suggest partial workarounds.
10722
10723         same-inode: port to OpenVMS
10724         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
10725         three st_ino values.
10726
10727 2011-12-30  Pádraig Brady  <P@draigBrady.com>
10728
10729         canonicalize: fix references to stat() and lstat()
10730         * lib/canonicalize.c (canonicalize_filename_mode):
10731         Ensure references always resolve to a replacement
10732         function if required (even via a macro).
10733
10734 2011-12-30  Jim Meyering  <meyering@redhat.com>
10735
10736         gitlog-to-changelog: remove a little duplication
10737         * build-aux/gitlog-to-changelog (main): Grep @lines once,
10738         rather than twice.
10739
10740 2011-12-29  Pádraig Brady  <P@draigBrady.com>
10741
10742         canonicalize: add support for not resolving symlinks
10743         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
10744         indicate we don't want to follow symlinks.  Also
10745         provide CAN_MODE_MASK to aid setting these existing
10746         mutually exclusive values.
10747         * lib/canonicalize.c (canonicalize_filename_mode):
10748         Extract the flags from can_mode parameter, which
10749         are currently just used to select between stat()
10750         and lstat().  Also ensure that mutually exclusive
10751         values are flagged immediately as invalid.
10752         * tests/test-canonicalize.c: Verify symlinks are
10753         not followed, and that invalid flag combinations
10754         are diagnosed.
10755
10756 2011-12-25  Jim Meyering  <meyering@redhat.com>
10757
10758         gitlog-to-changelog: do not clump multi-paragraph entries
10759         Identical header lines (date,name,email+coauthors) are suppressed,
10760         thus putting all entries with those same characteristics under
10761         a single header.  However, when a log entry consists of two or
10762         more paragraphs, it may not be clear where it starts and ends.
10763         This change makes it so that such an entry is always separated
10764         from others by a header line, even when that header would
10765         otherwise be suppressed.
10766         * build-aux/gitlog-to-changelog: Implement the above.
10767         Inspired by a related request from Stefano Lattarini in
10768         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
10769
10770 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
10771
10772         announce-gen: fix `cmd' typo in diagnostic
10773         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
10774         diagnostic: a missing '$' meant that the command was not output.
10775
10776 2011-12-23  Jim Meyering  <meyering@redhat.com>
10777
10778         test-framework-sh: distribute init.sh
10779         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
10780         Otherwise, "make -C gnulib-tests check" (at least in grep) would
10781         fail due to the lack of init.sh.
10782
10783         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
10784         * modules/atexit-tests: Rather than listing tests/init.sh,
10785         now that there's a module for it, simply depend on that new module.
10786         * modules/closein-tests: Likewise.
10787         * modules/exclude-tests: Likewise.
10788         * modules/getcwd-tests: Likewise.
10789         * modules/perror-tests: Likewise.
10790         * modules/pread-tests: Likewise.
10791         * modules/pwrite-tests: Likewise.
10792         * modules/vc-list-files-tests: Likewise.
10793         * modules/verify-tests: Likewise.
10794         * modules/xalloc-die-tests: Likewise.
10795         * modules/xstrtoimax-tests: Likewise.
10796         * modules/xstrtol-tests: Likewise.
10797         * modules/xstrtoll-tests: Likewise.
10798         * modules/xstrtoumax-tests: Likewise.
10799         * modules/yesno-tests: Likewise.
10800
10801 2011-12-22  Jim Meyering  <meyering@redhat.com>
10802
10803         test-framework-sh: add minimal tests of init.sh's compare function
10804         * modules/test-framework-sh-tests: New file.
10805         * tests/test-init.sh: New file.
10806
10807         test-framework-sh: new module
10808         * modules/test-framework-sh: New file.
10809         * MODULES.html.sh (Support for maintaining and releasing projects):
10810         List it.
10811
10812         init.sh: do not emit simulated diff output to stderr
10813         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
10814
10815 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
10816
10817         .gitignore: ignore gnulib.dvi and regex.info
10818         * doc/.gitignore:add gnulib.dvi and regex.info
10819
10820 2011-12-22  Jim Meyering  <meyering@redhat.com>
10821
10822         init.sh: correct previous change
10823         * tests/init.sh (compare): My previous change was wrong.
10824         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
10825
10826         init.sh: avoid unwarranted test failure when using "set -e"
10827         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
10828         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
10829         a use like "compare exp out" would get evoke an unconditional failure.
10830
10831 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
10832
10833         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
10834         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
10835         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
10836         autoreconf that did not.
10837         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
10838         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
10839
10840 2011-12-17  Jim Meyering  <meyering@redhat.com>
10841
10842         bootstrap: remove some now-unneeded code
10843         This script arose back when gnulib-tool was young.
10844         Since then, it has seen improvements that render much of this
10845         script unnecessary.  In particular, it can now make symlinks
10846         to the files it uses.  Also, I no longer see as much value in
10847         marking files as read-only via comments.
10848         If you relied on the symlink-creation feature of the preceding
10849         version of this script, you can get most of that functionality
10850         by adding the --symlink option to the definition of
10851         gnulib_tool_option_extras in your bootstrap.conf file.
10852         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
10853         Run autopoint and libtoolize *before* gnulib-tool.
10854         After it, run an abbreviated autoreconf, rather than a loop around
10855         all tools.
10856         (slirp, bt_mark_as_generated): Remove functions.
10857
10858 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10859
10860         ftoastr: fix typo
10861         * lib/ftoastr.h: Fix misspelling in comment.
10862
10863 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
10864
10865         * top/README-release: fix punctuation.
10866
10867 2011-12-17  Jim Meyering  <meyering@redhat.com>
10868
10869         bootstrap: correct the recent buildreq change
10870         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
10871         had no effect.
10872         * build-aux/bootstrap (buildreq): Bracket each search term with
10873         "*...*", so that the shell "case" statement works as intended.
10874         Add comments.
10875
10876 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
10877
10878         build: let bootstrap resort to wget when downloading .po files
10879         * build-aux/bootstrap (download_po_files): Fallback to wget when
10880         downloading the .po files via rsync fails.  This is necessary to
10881         bootstrap from behind a strict firewall.
10882
10883 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10884
10885         stdint: don't assume C++11 when compiling with g++
10886         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
10887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
10888         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
10889         work also in C++ before C++11, as that improperly inhibits
10890         generating a substitute stdint.h for that case.
10891
10892 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10893
10894         alloca: protect comment from gnulib-tool
10895         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
10896         that gnulib-tool doesn't think it's a license, and munge it to
10897         say "GCC version 3".
10898
10899 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
10900
10901         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
10902         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
10903         $(abs_top_builddir) instead of $(top_builddir).
10904
10905 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
10906
10907         strftime-tests: also test nanoseconds
10908         * tests/test-strftime.c (T): Add a test of %N.
10909
10910 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
10911
10912         inttypes, stdint: add C++11 support
10913         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
10914         when including inttypes.h and stdint.h.  Support this change to
10915         the standard.
10916         * doc/posix-headers/inttypes.texi (inttypes.h):
10917         * doc/posix-headers/stdint.texi (stdint.h): Document this.
10918         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
10919         Define if not defined already, for the benefit of pre-C++11 hosts.
10920         Define the standard format macros (e.g., PRId8) always.
10921         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
10922         Likewise, if __cpluspus.  Define the standard constant and limit
10923         macros (e.g., INT8_C, INT8_MAX) always.
10924         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
10925         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
10926         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
10927         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
10928         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
10929         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
10930         Likewise.
10931
10932 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10933
10934         nonblocking tests: Fix test failure on Linux/PPC.
10935         Suggested by Prerna Saxena in
10936         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
10937         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
10938         Set to 1100000.
10939
10940 2011-12-12  Jim Meyering  <meyering@redhat.com>
10941
10942         argmatch: don't hard-code `' when listing valid option arguments
10943         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
10944         use the quote function to add quotes.  Use fputs rather than
10945         fprintf for the format string with no format directive.
10946
10947 2011-12-07  Eric Blake  <eblake@redhat.com>
10948
10949         bootstrap: detect tools required by gnulib-tool
10950         * build-aux/bootstrap (buildreq): Provide minimum implicit
10951         dependencies.
10952         * DEPENDENCIES: Mention patch as a prereq.
10953
10954 2011-12-04  Bruno Haible  <bruno@clisp.org>
10955
10956         sethostname: Port to Windows platforms.
10957         * lib/sethostname.c: Provide an alternate implementation for Windows
10958         platforms.
10959         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
10960         (main): Skip the test if sethostname() fails with EPERM. On Windows
10961         platforms, don't check the result of gethostname().
10962
10963 2011-12-04  Bruno Haible  <bruno@clisp.org>
10964             Jim Meyering  <meyering@redhat.com>
10965
10966         tests: Avoid spurious error message on platforms without mktemp program.
10967         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
10968
10969 2011-12-04  Bruno Haible  <bruno@clisp.org>
10970
10971         sethostname: Fix documentation.
10972         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
10973         "not fixed" section.
10974
10975 2011-12-03  Bruno Haible  <bruno@clisp.org>
10976
10977         gnulib-tool: Verify that the License field is present and non-empty.
10978         * gnulib-tool (func_get_license_raw): New function, extracted from
10979         func_get_license.
10980         (func_get_license): Use it. Warn if the module is not a test module and
10981         has no license.
10982         Suggested by Jim Meyering.
10983
10984 2011-12-03  Bruno Haible  <bruno@clisp.org>
10985
10986         sethostname tests: Fix link error on mingw.
10987         * tests/test-sethostname1.c: New file, extracted from
10988         tests/test-sethostname.c.
10989         * tests/test-sethostname2.c: New file, extracted from
10990         tests/test-sethostname.c.
10991         * tests/test-sethostname.c: Remove file.
10992         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
10993         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
10994         (Depends-on): Add gethostname.
10995         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
10996         Link the latter with $(GETHOSTNAME_LIB).
10997
10998         sethostname tests: Fix compilation error on mingw.
10999         * tests/test-sethostname.c: Don't include <sys/types.h>.
11000         (geteuid): Use a dummy value without uid_t.
11001         * modules/sethostname-tests (Depends-on): Remove sys_types.
11002
11003         sethostname tests: Avoid a gcc warning.
11004         * tests/test-sethostname.c (main): Remove an unused variable.
11005
11006         Tweak last commit.
11007         * modules/sethostname-tests (Files): Sort by decreasing importance.
11008         (configure.ac): Check for geteuid.
11009         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
11010         the test when there's nothing to test. Drop an unnecessary cast.
11011         Improve an error message. Verify that the final sethostname() call
11012         succeeds.
11013
11014 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11015
11016         Add a test suite for the sethostname module.
11017         * modules/sethostname-tests: New file.  A test program
11018         for the sethostname module.
11019         * tests/test-sethostname.c: Likewise.
11020
11021 2011-12-03  Bruno Haible  <bruno@clisp.org>
11022
11023         Tweak last commit.
11024         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
11025         Fix preprocessor directives indentation. Fix typos.
11026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
11027         * modules/unistd (Makefile): Likewise.
11028
11029 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11030
11031         Integrate the sethostname module into unistd.
11032         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
11033         into the unistd.h header.
11034         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
11035         preprocessor directives.
11036         * modules/unistd: Setup the Makefile substitutions of the
11037         SETHOSTNAME preprocessor directives.
11038
11039 2011-12-03  Bruno Haible  <bruno@clisp.org>
11040
11041         Tweak last commit.
11042         * lib/sethostname.c: Don't include <string.h>.
11043         (sethostname): No need to copy the argument string to the stack. Don't
11044         call clearerr. Preserve errno when fprintf failed.
11045         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
11046         Don't invoke AC_REPLACE_FUNCS.
11047         * modules/sethostname (Link): Remove empty section.
11048         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
11049         failure problem.
11050
11051 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11052
11053         New module 'sethostname'.
11054         * lib/sethostname.c (sethostname): New file.  Provide sethostname
11055         for systems that lack it.
11056         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
11057         sethostname declaration and function.
11058         * modules/sethostname: New file.  Define the sethostname module.
11059
11060 2011-12-03  Bruno Haible  <bruno@clisp.org>
11061
11062         Tweak last commit.
11063         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
11064
11065 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
11066
11067         Split the HOST_NAME_MAX detection into a separate m4 macro.
11068         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
11069         macro so it can be used by the pending sethostname module.
11070
11071 2011-12-03  Bruno Haible  <bruno@clisp.org>
11072
11073         Fix module descriptions syntax.
11074         * modules/argv-iter (License): Fix syntax.
11075         * modules/di-set (License): Likewise.
11076         * modules/ino-map (License): Likewise.
11077         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
11078
11079 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
11080
11081         stdalign: port to Clang 3.0
11082         Problem reported by Simon Josefsson in
11083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
11084         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
11085         which has <stdalign.h> but which does not define alignof.
11086         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
11087
11088 2011-12-01  Eric Blake  <eblake@redhat.com>
11089
11090         mktempd: silence dd usage
11091         * build-aux/mktempd (rand_bytes): Silence dd.
11092
11093 2011-11-30  Simon Josefsson  <simon@josefsson.org>
11094
11095         manywarnings: Don't mention gcc version in docstring.
11096         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
11097         Jim Meyering <meyering@redhat.com>.
11098
11099 2011-11-30  Jim Meyering  <meyering@redhat.com>
11100
11101         hash: mark a few floating point constants with "f" suffix
11102         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
11103         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
11104         floating point constants with "f", since they're destined to be
11105         saved/used as "float"s.
11106
11107 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
11108
11109         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
11110         * tests/test-float.c (test_long_double): Correct and re-enable the
11111         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
11112
11113 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
11114
11115         Avoid subtracting two pointers that don't point into the same block.
11116         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
11117         only pointers into the same memory block are subtracted. We cannot
11118         assume that sizeof (ptrdiff_t) == sizeof (void *).
11119
11120 2011-11-29  Eric Blake  <eblake@redhat.com>
11121
11122         maint.mk: add syntax check for use of compare from init.sh
11123         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
11124         moved here from coreutils.
11125
11126         manywarnings: drop -Wunsuffixed-float-constants
11127         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
11128         '1.0D', which is the only way to silence this warning for 'double'.
11129
11130 2011-11-29  Jim Meyering  <meyering@redhat.com>
11131
11132         hash: mark compute_bucket_size with the pure attribute
11133         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
11134
11135         quotearg, propername: correct pragma guard expression
11136         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
11137         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
11138
11139 2011-11-28  Jim Meyering  <meyering@redhat.com>
11140
11141         propername: do not mark proper_name with the const attribute
11142         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
11143         since it examines data pointed to by its parameter.
11144         * lib/propername.c (proper_name): Instead, add a pragma to suppress
11145         the suggestion from -Wsuggest-attribute=const.
11146
11147         propername: mark one more function as const
11148         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
11149
11150 2011-11-27  Jim Meyering  <meyering@redhat.com>
11151
11152         mark functions with const and pure attributes
11153
11154         Mark functions per suggestions from gcc-4.6 when using these options:
11155         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
11156         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
11157         Follow these guidelines: when possible, apply the attribute to
11158         an extern declaration, not to its definition.  Apply it to the
11159         definition only when the definition is static.
11160         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
11161         * lib/argv-iter.h (argv_iter_n_args): Likewise.
11162         * lib/base64.h (isbase64): Likewise.
11163         * lib/basename-lgpl.c (last_component, base_len): Likewise.
11164         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
11165         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
11166         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
11167         (c_tolower, c_toupper): Likewise.
11168         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
11169         * lib/chdir-long.c (find_non_slash): Likewise.
11170         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
11171         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
11172         * lib/file-type.h (file_type): Likewise.
11173         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
11174         * lib/filevercmp.c (verrevcmp): Likewise.
11175         * lib/freadahead.h (freadahead): Likewise.
11176         * lib/fts.c (fts_maxarglen): Likewise.
11177         * lib/hash-pjw.h (hash_pjw): Likewise.
11178         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
11179         * lib/hash.c (is_prime, next_prime): Likewise.
11180         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
11181         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
11182         (hash_table_ok, hash_get_first, hash_string): Likewise.
11183         (compute_bucket_size): Likewise.
11184         * lib/i-ring.h (i_ring_empty): Likewise.
11185         * lib/isnan.c (isnanl): Likewise.
11186         * lib/math.h (isnanl, rpl_isnanl): Likewise.
11187         * lib/memcasecmp.h (memcasecmp): Likewise.
11188         * lib/memchr2.h (memchr2): Likewise.
11189         * lib/memcmp2.h (memcmp2): Likewise.
11190         * lib/parse-datetime.y (lookup_zone): Likewise.
11191         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
11192         [!WINDOWS_SOCKETS]: Likewise.
11193         * lib/strnlen1.h (strnlen1): Likewise.
11194         * lib/uniwidth.in.h (uc_width): Likewise.
11195         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
11196         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
11197         (quoting_options_from_style): Add a comment.
11198         * lib/propername.h (proper_name): Add a comment.
11199
11200 2011-11-27  Bruno Haible  <bruno@clisp.org>
11201
11202         Remove unused macros from !_LIBC code in glibc-borrowed files.
11203         * lib/fnmatch.c (STRCOLL): Remove macro.
11204         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
11205         * lib/glob.c (__stat, __readdir64): Remove macros.
11206         * lib/tempname.c (__open64, __xstat64): Remove macros.
11207         Suggested by Paul Eggert.
11208
11209 2011-11-27  Bruno Haible  <bruno@clisp.org>
11210
11211         getcwd: Fix link error on MSVC 9.
11212         * modules/getcwd (Depends-on): Add readdir, rewinddir.
11213
11214 2011-11-27  Bruno Haible  <bruno@clisp.org>
11215
11216         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
11217         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
11218         HAVE_OPENDIR is 0.
11219         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
11220         HAVE_CLOSEDIR is 0.
11221         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
11222         is 0.
11223         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
11224
11225 2011-11-27  Bruno Haible  <bruno@clisp.org>
11226
11227         getcwd: Fix bug from 2011-08-17.
11228         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
11229         platforms that need it.
11230         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
11231         code of 4 to be a failure, not a success. This ensures that
11232         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
11233
11234 2011-11-27  Bruno Haible  <bruno@clisp.org>
11235
11236         binary-io tests: Avoid test failure on mingw when libtool is used.
11237         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
11238         Don't verify the size of t-bin-out1.tmp here.
11239         * tests/test-binary-io.sh: Verify it here.
11240         Reported by Simon Josefsson.
11241
11242 2011-11-26  Bruno Haible  <bruno@clisp.org>
11243
11244         Fix conflict between two instantiations of module 'unistd'.
11245         * gnulib-tool (func_emit_autoconf_snippet): Substitute
11246         ${include_guard_prefix} also in the autoconf snippet.
11247         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
11248         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
11249         GNULIB_UNISTD_H_GETOPT.
11250         * modules/getopt-posix (configure.ac): Set the
11251         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
11252         * modules/getopt-gnu (configure.ac): Likewise.
11253         * modules/unistd (Makefile.am): Change the substitution value of
11254         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
11255         Reported by Simon Josefsson.
11256
11257 2011-11-25  Bruno Haible  <bruno@clisp.org>
11258
11259         pagealign_alloc: Doc and comments.
11260         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
11261         module.
11262         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
11263
11264 2011-11-25  Jim Meyering  <meyering@redhat.com>
11265
11266         test-update-copyright.sh: avoid false-positive failure
11267         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
11268         around false positive failure on Cygwin/Windows.  The latter was
11269         matching erroneously-created files with names like
11270         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
11271
11272 2011-11-25  Simon Josefsson  <simon@josefsson.org>
11273
11274         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
11275         * m4/valgrind-tests.m4: Check that the parameters that will be
11276         used works, not just a subset of them.  Reported by Bruno Haible
11277         <bruno@clisp.org>.
11278
11279 2011-11-24  Jim Meyering  <meyering@redhat.com>
11280
11281         test-stdalign.c: comment out long double tests
11282         * tests/test-stdalign.c: Don't try to reduce alignment of long double
11283         variables.  That provokes errors like this from gcc-4.7.0 20111124:
11284         error: '_Alignas' specifiers cannot reduce alignment of \
11285         'static_longdouble_alignas'.
11286
11287 2011-11-22  Jim Meyering  <meyering@redhat.com>
11288
11289         init.sh: make "compare /dev/null FILE" output more readable
11290         * tests/init.sh (compare_): Document the preferred order of arguments.
11291         (emit_diff_u_header_): New function.
11292         (compare_dev_null_): Emit a simulated diff, rather than just the
11293         contents of the unexpected file.  Suggestion from Bruno Haible.
11294
11295 2011-11-21  Jim Meyering  <meyering@redhat.com>
11296             Eric Blake  <eblake@redhat.com>
11297
11298         init.sh: work around OSF/1 5.1's mishandling of /dev/null
11299         * tests/init.sh: Make our compare function slightly more portable.
11300         Reported by Bruno Haible in
11301         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
11302
11303 2011-11-21  Simon Josefsson  <simon@josefsson.org>
11304
11305         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
11306         before using it, in code that ends up in config.h.
11307
11308 2011-11-20  Bruno Haible  <bruno@clisp.org>
11309
11310         getcwd: Work around getcwd bug on AIX 5..7.
11311         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
11312         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
11313         Use a different value for gl_cv_func_getcwd_path_max. Move the
11314         definition of HAVE_PARTLY_WORKING_GETCWD from here...
11315         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
11316         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
11317         Define HAVE_MINIMALLY_WORKING_GETCWD.
11318         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
11319         where it is not even minimally working, that is, on AIX.
11320         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
11321         m4/getcwd-path-max.m4.
11322         (main): Update exit code computation.
11323         * doc/posix-functions/getcwd.texi: Mention list of platforms where
11324         getcwd does not handle long file names.
11325
11326 2011-11-20  Bruno Haible  <bruno@clisp.org>
11327
11328         getcwd: Fix bug from 2009-09-10.
11329         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
11330         like "no".
11331
11332 2011-11-20  Simon Josefsson  <simon@josefsson.org>
11333
11334         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
11335
11336 2011-11-20  Bruno Haible  <bruno@clisp.org>
11337
11338         fma tests: Avoid shadowing local variables.
11339         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
11340         expected.
11341
11342 2011-11-20  Bruno Haible  <bruno@clisp.org>
11343
11344         copysignf tests: Fix.
11345         * tests/test-copysignf.c: Fix signature check.
11346
11347 2011-11-20  Bruno Haible  <bruno@clisp.org>
11348
11349         fma: Remove unused code.
11350         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
11351         unused macros.
11352
11353 2011-11-20  Bruno Haible  <bruno@clisp.org>
11354
11355         sethostname: Fix doc about AIX.
11356         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
11357         sethostname; it has it.
11358
11359         sethostname: Mention more portability problems.
11360         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
11361         problem.
11362         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
11363
11364 2011-11-19  Bruno Haible  <bruno@clisp.org>
11365
11366         Depend on module fcntl-h when AT_FDCWD is used.
11367         * modules/utimens (Depends-on): Add fcntl-h.
11368         * modules/areadlinkat (Depends-on): Likewise.
11369         * modules/areadlinkat-with-size (Depends-on): Likewise.
11370         * modules/faccessat (Depends-on): Likewise.
11371         * modules/fchmodat (Depends-on): Likewise.
11372         * modules/fchownat (Depends-on): Likewise.
11373         * modules/getcwd (Depends-on): Likewise.
11374         * modules/mkdirat (Depends-on): Likewise.
11375         * modules/mkfifoat (Depends-on): Likewise.
11376         * modules/readlinkat (Depends-on): Likewise.
11377         * modules/symlinkat (Depends-on): Likewise.
11378         * modules/dup2-tests (Depends-on): Likewise.
11379         * modules/fdutimensat-tests (Depends-on): Likewise.
11380         * modules/futimens-tests (Depends-on): Likewise.
11381
11382 2011-11-19  Bruno Haible  <bruno@clisp.org>
11383
11384         euidaccess: Update a comment.
11385         * lib/euidaccess.c: Update comment about platforms with faccessat.
11386
11387 2011-11-19  Bruno Haible  <bruno@clisp.org>
11388
11389         openat: Fix file list.
11390         * modules/openat (Files): Remove lib/at-func.c.
11391
11392 2011-11-19  Bruno Haible  <bruno@clisp.org>
11393
11394         fstatat: Simplify.
11395         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
11396         gnulib should define rpl_fstatat, there is a
11397         "#define fstatat rpl_fstatat" in <sys/stat.h>.
11398
11399 2011-11-19  Bruno Haible  <bruno@clisp.org>
11400
11401         Ensure 'inline' can be used in tests/test-utimens-common.h.
11402         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
11403         * modules/futimens-tests (configure.ac): Likewise.
11404         * modules/utimens-tests (configure.ac): Likewise.
11405         * modules/utimensat-tests (configure.ac): Likewise.
11406
11407 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11408
11409         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
11410         not hash_insert0.
11411         (hash_insert_if_absent): Doc fix.
11412
11413 2011-11-19  Simon Josefsson  <simon@josefsson.org>
11414
11415         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
11416
11417 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11418
11419         test-getcwd: disambiguate exit status
11420         * tests/test-getcwd.c (test_long_name): Return 0..7.
11421         (main): Exit with an unambiguous exit status.  The old
11422         code yielded a mysterious mixture of two failure codes.
11423
11424         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
11425         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
11426         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
11427         rpl_fstatat or fstatat.  This should fix the other problem
11428         reported by Kai Habel in
11429         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11430         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
11431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
11432         and I reproduced it on a Solaris 8 host we still have in production.
11433
11434 2011-11-18  Jim Meyering  <meyering@redhat.com>
11435
11436         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
11437         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
11438         Add a sentence to the comment.
11439         (hash_insert0): New function that simply calls hash_insert_if_absent.
11440         * lib/hash.h (hash_insert_if_absent): Declare it.
11441         (hash_insert0): Add deprecation attribute.
11442         (_GL_ATTRIBUTE_DEPRECATED): Define.
11443         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
11444         not hash_insert0.
11445         * NEWS: Mention it, even though it's not really an incompatible change.
11446
11447 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
11448
11449         openat: avoid compilation failure due to lack of <errno.h> inclusion
11450         * lib/openat.c: Include <errno.h>.
11451
11452 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
11453
11454         * modules/getcwd (Depends-on): Add fdopendir.
11455         This fixes one of the two problems reported by Kai Habel in
11456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
11457
11458         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
11459         stdalign problem reported by Ian Beckwith in
11460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
11461         * modules/crypto/gc-arcfour (Depends-on):
11462         Depend conditionally on crypto/arcfour.
11463         * modules/crypto/gc-arctwo (Depends-on):
11464         Depend conditionally on crypto/arctwo.
11465         * modules/crypto/gc-des (Depends-on):
11466         Depend conditionally on crypto/des.
11467         * modules/crypto/gc-hmac-md5 (Depends-on):
11468         Depend conditionally on crypto/hmac-md5.
11469         * modules/crypto/gc-hmac-sha1 (Depends-on):
11470         Depend conditionally on crypto/hmac-sha1.
11471         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
11472         * modules/crypto/gc-md4 (Depends-on):
11473         Depend conditionally on crypto/md4.
11474         * modules/crypto/gc-md5 (Depends-on):
11475         Depend conditionally on crypto/md5.
11476         * modules/crypto/gc-rijndael (Depends-on):
11477         Depend conditionally on crypto/rijndael.
11478         * modules/crypto/gc-sha1 (Depends-on):
11479         Depend conditionally on crypto/sha1.
11480         * modules/crypto/gc-arcfour:
11481         * modules/crypto/gc-arctwo:
11482         * modules/crypto/gc-des:
11483         * modules/crypto/gc-hmac-md5:
11484         * modules/crypto/gc-hmac-sha1:
11485         * modules/crypto/gc-md2:
11486         * modules/crypto/gc-md4:
11487         * modules/crypto/gc-md5:
11488         * modules/crypto/gc-rijndael:
11489         * modules/crypto/gc-sha1:
11490         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
11491         now that the conditional dependencies do the work for us.
11492
11493 2011-11-17  Jim Meyering  <meyering@redhat.com>
11494
11495         tests: factor st_ctime-comparison out of two headers
11496         * tests/test-utimens-common.h (ctime_compare): Define.
11497         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
11498         * tests/test-lutimens.h (test_lutimens): Likewise.
11499         * tests/test-utimens.h (test_utimens): Likewise.
11500
11501         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
11502         Invoke the test program via an init.sh-using wrapper.
11503         * tests/test-getcwd.sh: New file.
11504         * modules/getcwd-tests (Files): Add it.
11505         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
11506
11507 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
11508
11509         gitlog-to-changelog: support multi-author commits.
11510         The FSF cares about keeping track of all authors of patches to its
11511         projects, but Git doesn't provide obvious support for multi-author
11512         changesets. Consensus seems to be forming around the use of extra
11513         Signed-off-by inspired lines in the log message formatted as
11514         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
11515         multi-author commits between version control systems.
11516         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
11517         log message and output in standard ChangeLog multi-author format.
11518         Reported by Peter Rosin <peda@lysator.liu.se>
11519
11520 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
11521             Bruno Haible  <bruno@clisp.org>
11522
11523         Fix some modules' file list.
11524         * modules/fstatat (Files): Add m4/lstat.m4.
11525         * modules/openat (Files): Likewise.
11526         * modules/unlinkat (Files): Likewise.
11527
11528 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
11529
11530         maint.mk: fix tight-scope.mk generation in VPATH builds.
11531         * top/maint.mk (tight-scope.mk): Make sure to prefix file
11532         reference with $(srcdir) so that the file is found correctly even
11533         when running `make syntax-check' in a VPATH build.
11534
11535 2011-11-13  Bruno Haible  <bruno@clisp.org>
11536             Jim Meyering  <meyering@redhat.com>
11537
11538         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
11539         * tests/init.sh (compare): Remove "No differences encountered" or
11540         synonymous output from the 'diff' program.
11541
11542 2011-11-13  Bruno Haible  <bruno@clisp.org>
11543
11544         Makefile: Tweak indentation.
11545         * Makefile: Use tab as first character in every line that contains rule
11546         commands.
11547
11548 2011-11-13  Bruno Haible  <bruno@clisp.org>
11549
11550         Syntax check for copyright statements.
11551         * check-copyright: New file.
11552         * Makefile (sc_check_copyright): New rule.
11553
11554 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11555
11556         * build-aux/git-version-gen: Add --prefix to configure the tag
11557         match string.
11558
11559 2011-11-13  Simon Josefsson  <simon@josefsson.org>
11560
11561         * build-aux/git-version-gen: Add --help and --version.
11562
11563 2011-11-12  Jim Meyering  <meyering@redhat.com>
11564
11565         revamp the other test-exclude?.sh scripts to use init.sh, too
11566         * tests/test-exclude1.sh: Use init.sh.
11567         * tests/test-exclude2.sh: Likewise.
11568         * tests/test-exclude3.sh: Likewise.
11569         * tests/test-exclude4.sh: Likewise.
11570         * tests/test-exclude5.sh: Likewise.
11571         * tests/test-exclude6.sh: Likewise.
11572         * tests/test-exclude7.sh: Likewise.
11573         * tests/test-exclude8.sh: Likewise.
11574         * modules/exclude-tests (Files): List init.sh.
11575
11576         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
11577         These shell scripts ignored failure of the binary test-exclude,
11578         so making the latter return 77 didn't cause them to be skipped.
11579         * tests/test-exclude5.sh: Exit with test-exclude's error status
11580         when that program fails.  Revamp to use init.sh.
11581         * tests/test-exclude2.sh: Likewise.
11582
11583         test-exclude: fix a typo
11584         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
11585
11586 2011-11-11  Bruno Haible  <bruno@clisp.org>
11587
11588         obstack: Fix compilation error on MSVC 9.
11589         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
11590
11591 2011-11-11  Jim Meyering  <meyering@redhat.com>
11592
11593         test-exclude: skip tests rather than failing on deficient systems
11594         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
11595         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
11596         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
11597         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
11598
11599 2011-11-10  Bruno Haible  <bruno@clisp.org>
11600
11601         ptsname_r test: Avoid gcc warning on glibc systems.
11602         * tests/test-ptsname_r.c (null_ptr): New function.
11603         (test_errors): Use it.
11604
11605 2011-11-10  Bruno Haible  <bruno@clisp.org>
11606
11607         ptsname_r: Avoid compilation error on OSF/1 5.1.
11608         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
11609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
11610         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
11611         function is not declared or incompatibly declared.
11612         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
11613         * modules/ptsname_r (Depends-on, configure.ac): Update.
11614         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
11615
11616 2011-11-10  Bruno Haible  <bruno@clisp.org>
11617
11618         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
11619         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
11620         When cross-compiling, guess yes on all platforms except AIX.
11621         Reported by Ludovic Courtès <ludo@gnu.org>.
11622
11623 2011-11-09  Bruno Haible  <bruno@clisp.org>
11624
11625         ptsname_r tests: Fix bugs.
11626         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
11627         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
11628
11629 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11630
11631         fstatat: work with cross-compilation
11632         Problem reported by Ludovic Courtès in
11633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
11634         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
11635         "cross-compiling" and assume the bug is present.  Replace
11636         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
11637         an inverted sense, to be more conservative about our assumptions.
11638         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
11639
11640 2011-11-09  Bruno Haible  <bruno@clisp.org>
11641
11642         Improve MODULES.html output.
11643         * modules/mkfifoat (Description): Use the word "function".
11644         * modules/readlinkat (Description): Likewise.
11645         * modules/symlinkat (Description): Likewise.
11646
11647 2011-11-09  Eric Blake  <eblake@redhat.com>
11648
11649         ptsname_r-tests: new test module
11650         * modules/ptsname_r-tests: New module.
11651         * tests/test-ptsname_r.c: New file.
11652
11653         ptsname_r: new module
11654         * modules/ptsname_r: New module.
11655         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
11656         * lib/ptsname.c (__ptsname_r): Split...
11657         * lib/ptsname_r.c: ...into new file.
11658         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
11659         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
11660         * modules/stdlib (Makefile.am): Substitute witnesses.
11661         * lib/stdlib.in.h (ptsname_r): Declare it.
11662         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
11663         * MODULES.html.sh (Misc): Likewise.
11664         * modules/ptsname (Depends-on): Alter dependency.
11665         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
11666
11667 2011-11-09  Jim Meyering  <meyering@redhat.com>
11668
11669         announce-gen: be more concise when there's only one URL+tarball
11670         * build-aux/announce-gen (get_tool_versions): When you distribute
11671         only one type of tarball, combine the first two "Here are..."
11672         sections and make the key-checking grammar independent of
11673         how many tarballs there are.
11674
11675 2011-11-09  Eric Blake  <eblake@redhat.com>
11676
11677         openpty: provide a stub on mingw
11678         * lib/pty.in.h (includes): Provide forward declarations.
11679         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
11680
11681         raise: fix mingw handling of SIGPIPE
11682         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
11683
11684 2011-11-08  Bruno Haible  <bruno@clisp.org>
11685
11686         More conditional dependencies.
11687         * modules/faccessat (Depends-on): Add conditions.
11688         * modules/fchmodat (Depends-on): Likewise.
11689         * modules/fchownat (Depends-on): Likewise.
11690         * modules/fstatat (Depends-on): Likewise.
11691         * modules/mkfifoat (Depends-on): Likewise.
11692         * modules/readlinkat (Depends-on): Likewise.
11693         * modules/symlinkat (Depends-on): Likewise.
11694         * modules/unlinkat (Depends-on): Likewise.
11695         * modules/utimensat (Depends-on): Likewise.
11696         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
11697         * modules/linkat (Depends-on): Refine the conditions.
11698         * modules/renameat (Depends-on): Likewise.
11699
11700 2011-11-08  Bruno Haible  <bruno@clisp.org>
11701
11702         faccessat: Move AC_LIBOBJ invocation to module description.
11703         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
11704         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
11705         invocation from here...
11706         * modules/faccessat (configure.ac): ... to here. Invoke
11707         gl_PREREQ_FACCESSAT.
11708
11709 2011-11-08  Bruno Haible  <bruno@clisp.org>
11710
11711         faccessat: Simplify autoconf macro.
11712         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
11713         gl_FUNC_EUIDACCESS.
11714
11715 2011-11-08  Bruno Haible  <bruno@clisp.org>
11716
11717         renameat: Fix dependencies.
11718         * modules/renameat (Depends-on): Add stdbool.
11719
11720 2011-11-08  Bruno Haible  <bruno@clisp.org>
11721
11722         mkfifoat: Fix module description.
11723         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
11724         not gl_UNISTD_MODULE_INDICATOR.
11725
11726 2011-11-08  Bruno Haible  <bruno@clisp.org>
11727
11728         fstatat: Remove unused dependency.
11729         * modules/fstatat (Depends-on): Remove fstat.
11730
11731 2011-11-08  Simon Josefsson  <simon@josefsson.org>
11732
11733         GNUmakefile: behave when Makefile is missing.
11734         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
11735
11736 2011-11-08  Bruno Haible  <bruno@clisp.org>
11737
11738         openat: Conditionalize dependencies.
11739         * lib/openat.c: Reduce the scope of some #includes.
11740         * modules/openat (Depends-on): Add conditions.
11741
11742 2011-11-07  Jim Meyering  <meyering@redhat.com>
11743
11744         maint.mk: extract GPG key ID without using a temporary file
11745         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
11746         without using a temporary file.  Based on a suggestion from Werner Koch
11747         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
11748
11749 2011-11-07  Eric Blake  <eblake@redhat.com>
11750
11751         grantpt: fix typo
11752         * lib/stdlib.in.h (grantpt): Check correct function.
11753
11754         maint.mk: silence new syntax check
11755         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
11756
11757 2011-11-06  Bruno Haible  <bruno@clisp.org>
11758
11759         Doc about floating-point and math API.
11760         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
11761         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
11762
11763 2011-11-06  Bruno Haible  <bruno@clisp.org>
11764
11765         stdalign tests: Skip the test when compiled by Sun C.
11766         * tests/test-stdalign.c (main): Skip the test on Sun C.
11767
11768 2011-11-06  Bruno Haible  <bruno@clisp.org>
11769
11770         ansi-c++-opt: Complete the 2011-06-05 change.
11771         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
11772         does not support namespaces, set the variable to "no", not to ":".
11773
11774 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11775
11776         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
11777
11778 2011-11-06  Bruno Haible  <bruno@clisp.org>
11779
11780         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
11781         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
11782         (minus_zerol) [HP-UX]: New macro.
11783         (unary_minus) [HP-UX]: New function.
11784         (copysignl) [HP-UX]: Use unary_minus function.
11785
11786 2011-11-06  Bruno Haible  <bruno@clisp.org>
11787
11788         ldexp, ldexpf, ldexpl: Enhance tests.
11789         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
11790         and tests/test-ldexpl.c.
11791         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
11792         LDEXP, MIN_EXP, MAX_EXP): New macros.
11793         Include test-ldexp.h.
11794         (main): Just call test_function.
11795         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
11796         infinity.h, nan.h.
11797         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11798         MAX_EXP): New macros.
11799         Include test-ldexp.h.
11800         (x, y): Remove variables.
11801         (main): Just call test_function.
11802         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
11803         infinity.h, nan.h.
11804         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
11805         MAX_EXP): New macros.
11806         Include test-ldexp.h.
11807         (x, y): Remove variables.
11808         (main): Just call test_function.
11809         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
11810         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
11811         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11812         (Depends-on): Add isnand-nolibm, signbit, float.
11813         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
11814         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
11815         (Depends-on): Add isnanf-nolibm, signbit, float.
11816
11817 2011-11-06  Bruno Haible  <bruno@clisp.org>
11818
11819         math tests: Cosmetics.
11820         * tests/test-math-c++.cc: Reorder declarations.
11821
11822 2011-11-05  Bruno Haible  <bruno@clisp.org>
11823
11824         fma*: Simplify test.
11825         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
11826         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
11827
11828         Tests for module 'fmal'.
11829         * modules/fmal-tests: New file.
11830         * tests/test-fmal1.c: New file.
11831         * tests/test-fmal2.c: New file.
11832
11833         New module 'fmal'.
11834         * lib/math.in.h (fmal): New declaration.
11835         * lib/fmal.c: New file.
11836         * m4/fmal.m4: New file.
11837         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
11838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
11839         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
11840         REPLACE_FMAL.
11841         * modules/fmal: New file.
11842         * doc/posix-functions/fmal.texi: Mention the new module and the various
11843         bugs.
11844
11845         Tests for module 'fmaf'.
11846         * modules/fmaf-tests: New file.
11847         * tests/test-fmaf1.c: New file.
11848         * tests/test-fmaf2.c: New file.
11849
11850         New module 'fmaf'.
11851         * lib/math.in.h (fmaf): New declaration.
11852         * lib/fmaf.c: New file.
11853         * m4/fmaf.m4: New file.
11854         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
11855         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
11856         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
11857         REPLACE_FMAF.
11858         * modules/fmaf: New file.
11859         * doc/posix-functions/fmaf.texi: Mention the new module and the various
11860         bugs.
11861
11862         Tests for module 'fma'.
11863         * modules/fma-tests: New file.
11864         * tests/test-fma1.c: New file.
11865         * tests/test-fma1.h: New file.
11866         * tests/test-fma2.c: New file.
11867         * tests/test-fma2.h: New file.
11868
11869         New module 'fma'.
11870         * lib/math.in.h (fma): New declaration.
11871         * lib/fma.c: New file.
11872         * m4/fma.m4: New file.
11873         * m4/fegetround.m4: New file.
11874         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
11875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
11876         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
11877         REPLACE_FMA.
11878         * modules/fma: New file.
11879         * doc/posix-functions/fma.texi: Mention the new module and the various
11880         bugs.
11881
11882         Extend gl_MATHFUNC.
11883         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
11884         Support 'void' as argument type.
11885         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
11886
11887 2011-11-05  Jim Meyering  <meyering@redhat.com>
11888
11889         maint.mk: also prohibit inclusion of dirent.h without use
11890         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
11891
11892 2011-11-05  Bruno Haible  <bruno@clisp.org>
11893
11894         ldexpl tests: Avoid test failure on MSVC 9.
11895         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
11896         value. Needed in order to enforce the conversion from a value greater
11897         than LDBL_MAX to Infinity.
11898
11899 2011-11-05  Bruno Haible  <bruno@clisp.org>
11900
11901         New modules 'at-internal', 'openat-h', split off from module 'openat'.
11902         * modules/at-internal: New file, extracted from modules/openat.
11903         * modules/openat-h: New file.
11904         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
11905         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
11906         * modules/openat (Description): Add reference to POSIX function.
11907         (Files): Remove lib/openat.h, lib/openat-proc.c.
11908         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
11909         intprops, unistd.
11910         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
11911         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
11912         gl_FCNTL_MODULE_INDICATOR.
11913         (Include): Remove unistd.h, openat.h.
11914         * modules/areadlinkat (Files): Add lib/at-func.c.
11915         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11916         openat-die, openat-h, save-cwd.
11917         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
11918         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11919         openat-die, openat-h, save-cwd, unistd.
11920         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
11921         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11922         openat-h, save-cwd. Remove fcntl-h, openat.
11923         * modules/fchmodat (Files): Remove lib/openat.h.
11924         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11925         openat, stdbool, unistd.
11926         * modules/fchownat (Files): Remove lib/openat.h.
11927         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11928         openat, stdbool, sys_stat.
11929         * modules/fdopendir (Files): Remove lib/openat-priv.h,
11930         lib/openat-proc.c.
11931         (Depends-on): Add at-internal.
11932         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
11933         * modules/fstatat (Files): Remove lib/openat.h.
11934         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11935         stdbool, unistd.
11936         * modules/fts (Depends-on): Add openat-h.
11937         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
11938         openat.
11939         * modules/mkdirat (Files): Remove lib/openat.h.
11940         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
11941         openat, stdbool, sys_stat.
11942         * modules/mkfifoat (Files): Add lib/at-func.c.
11943         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11944         openat-h, save-cwd. Remove fcntl-h, openat.
11945         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
11946         * modules/readlinkat (Files): Add lib/at-func.c.
11947         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11948         openat-h, save-cwd. Remove fcntl-h, openat.
11949         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
11950         openat.
11951         * modules/selinux-at (Files): Add lib/at-func.c.
11952         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
11953         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
11954         * modules/symlinkat (Files): Add lib/at-func.c.
11955         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
11956         openat-h, save-cwd. Remove fcntl-h, openat.
11957         * modules/unlinkat (Files): Remove lib/openat.h.
11958         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
11959         stdbool.
11960         * modules/utimensat (Files): Add lib/at-func.c.
11961         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
11962         openat-die, openat-h, save-cwd.
11963         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
11964         * modules/fdutimensat-tests (Depends-on): Add openat.
11965         * modules/fstatat-tests (Depends-on): Add openat-h.
11966         * modules/readlinkat-tests (Depends-on): Add openat.
11967         * modules/symlinkat-tests (Depends-on): Add openat.
11968
11969 2011-11-05  Bruno Haible  <bruno@clisp.org>
11970
11971         openat: Include <stdbool.h>.
11972         * lib/openat.c: Include <stdbool.h>.
11973
11974 2011-11-04  Bruno Haible  <bruno@clisp.org>
11975
11976         fchownat, renameat, unlinkat: Fix dependencies.
11977         * modules/fchownat (Depends-on): Add fstatat.
11978         * modules/renameat (Depends-on): Likewise.
11979         * modules/unlinkat (Depends-on): Likewise.
11980
11981 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
11982
11983         openat: remove direct dependency on dirent
11984         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
11985         and hasn't been needed ever since fdopendir was split into its own
11986         module on 2009-08-31.
11987         * modules/openat (Depends-on): Remove dirent.
11988
11989 2011-11-04  Bruno Haible  <bruno@clisp.org>
11990
11991         renameat: Optimize code size.
11992         * modules/renameat (configure.ac): Don't compile at-func2.c if
11993         REPLACE_RENAMEAT is 1.
11994
11995 2011-11-04  Bruno Haible  <bruno@clisp.org>
11996
11997         openat tests: Fix file list.
11998         * modules/openat-tests (Files): Add tests/test-open.h.
11999
12000 2011-11-04  Bruno Haible  <bruno@clisp.org>
12001
12002         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
12003         * modules/fchmodat (Depends-on): Add openat-die.
12004         * modules/fchownat (Depends-on): Likewise.
12005         * modules/linkat (Depends-on): Likewise.
12006         * modules/renameat (Depends-on): Likewise.
12007         * modules/openat (Depends-on): Add dirent.
12008
12009 2011-11-04  Jim Meyering  <meyering@redhat.com>
12010
12011         at-func*.c: fix comments
12012         * lib/at-func2.c: Correct/improve first-line comment.
12013         * lib/at-func.c: Correct grammar in first-line comment.
12014
12015 2011-11-04  Bruno Haible  <bruno@clisp.org>
12016
12017         New module 'mkdirat', split off from module 'openat'.
12018         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
12019         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
12020         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
12021         * modules/mkdirat: New file, extracted from modules/openat.
12022         * modules/openat (Files): Remove lib/mkdirat.c.
12023         (Depends-on): Remove mkdir.
12024         (configure.ac): Remove AC_LIBOBJ of mkdirat.
12025         (Include): Remove <sys/stat.h>.
12026         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
12027         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
12028         tests/test-mkdir.h.
12029         (Depends-on): Remove ignore-value.
12030         (Makefile.am): Remove rules for test-mkdirat.
12031         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
12032         of module 'openat'.
12033         * NEWS: Mention the change.
12034
12035 2011-11-04  Bruno Haible  <bruno@clisp.org>
12036
12037         closedir: Avoid warning on mingw.
12038         * lib/closedir.c: Include <unistd.h>.
12039
12040 2011-11-04  Bruno Haible  <bruno@clisp.org>
12041
12042         New module 'fstatat', split off from module 'openat'.
12043         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
12044         defined.
12045         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
12046         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
12047         gl_FUNC_FSTATAT.
12048         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
12049         * modules/fstatat: New file, extracted from modules/openat.
12050         * modules/openat (Files): Remove lib/fstatat.c.
12051         (Depends-on): Remove lstat.
12052         (configure.ac): Remove AC_LIBOBJ of fstatat.
12053         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
12054         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
12055         tests/test-lstat.h, tests/test-stat.h.
12056         (Depends-on): Remove getcwd-lgpl.
12057         (Makefile.am): Remove rules for test-fstatat.
12058         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
12059         of module 'openat'.
12060         * NEWS: Mention the change.
12061         * modules/getcwd (Depends-on): Add fstatat.
12062         * modules/linkat (Depends-on): Likewise.
12063         * modules/mkfifoat-tests (Depends-on): Likewise.
12064         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
12065
12066 2011-11-03  Bruno Haible  <bruno@clisp.org>
12067
12068         New module 'unlinkat', split off from module 'openat'.
12069         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
12070         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
12071         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
12072         * modules/unlinkat: New file, extracted from modules/openat. Correct
12073         the dependency conditions.
12074         * modules/openat (Files): Remove lib/unlinkat.c.
12075         (Depends-on): Remove rmdir, unlink.
12076         (configure.ac): Remove AC_LIBOBJ of unlinkat.
12077         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
12078         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
12079         tests/test-rmdir.h, tests/test-unlink.h.
12080         (Depends-on): Remove unlinkdir.
12081         (Makefile.am): Remove rules for test-unlinkat.
12082         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
12083         of module 'openat'.
12084         * NEWS: Mention the change.
12085         * modules/linkat-tests (Depends-on): Add unlinkat.
12086         * modules/mkfifoat-tests (Depends-on): Likewise.
12087         * modules/readlinkat-tests (Depends-on): Likewise.
12088
12089 2011-11-02  Bruno Haible  <bruno@clisp.org>
12090
12091         New module 'fchmodat', split off from module 'openat'.
12092         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
12093         defined.
12094         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
12095         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
12096         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
12097         * modules/fchmodat: New file, extracted from modules/openat.
12098         * modules/openat (Files): Remove lib/fchmodat.c.
12099         (configure.ac): Remove AC_LIBOBJ of fchmodat.
12100         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
12101         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
12102         (Makefile.am): Remove rules for test-fchmodat.
12103         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
12104         of module 'openat'.
12105         * NEWS: Mention the change.
12106
12107 2011-11-02  Jim Meyering  <meyering@redhat.com>
12108
12109         putenv: indent #definition of "environ" to placate cppi
12110         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
12111
12112         gitlog-to-changelog: provide a ChangeLog-repair mechanism
12113         Git logs are often treated as immutable, because editing them
12114         changes the SHA1 checksums of all descendants.  Thus, errors in
12115         git logs tend to stay there forever.  However, when we generate
12116         a ChangeLog file -- typically for distribution -- from that git log,
12117         we can actually make corrections in the generated file.  The key
12118         lies in recording in machine-readable/applicable form the desired
12119         corrections.  See --help for description and an example.
12120         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
12121         (usage): Describe it; alphabetize option descriptions.
12122         (main): Honor the new option, carefully.
12123
12124 2011-11-01  Jim Meyering  <meyering@redhat.com>
12125
12126         gitlog-to-changelog: avoid an infloop
12127         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
12128         that ends up being empty.
12129
12130 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12131
12132         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
12133         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
12134         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
12135         contains (possibly-quoted) backslashes.  This should avoid
12136         all-too-common shell bugs if COMPLICATED contains backslashes in
12137         the "wrong" places.  Reported by David Evans in
12138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
12139         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
12140         because we want ASCII ranges.  Is there some reason we don't use
12141         the C locale everywhere in this script?
12142         (func_module, top level): Avoid unwanted pathname expansion when
12143         $repo_url_prefix or $repo_url_suffix_repl contain shell
12144         metacharacters like '?' and '*'.
12145
12146 2011-11-01  Bruno Haible  <bruno@clisp.org>
12147
12148         fchownat: Improve description.
12149         * modules/fchownat (Description): Add link to function.
12150
12151 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
12152
12153         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
12154         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
12155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
12156         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
12157
12158 2011-11-01  Bruno Haible  <bruno@clisp.org>
12159
12160         alignof: Avoid collision with stdalign module.
12161         * lib/alignof.h (alignof): Remove macro.
12162         * NEWS: Mention the change.
12163         Reported by Paul Eggert.
12164
12165 2011-11-01  Bruno Haible  <bruno@clisp.org>
12166
12167         New module 'fchownat', split off from module 'openat'.
12168         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
12169         defined.
12170         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
12171         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
12172         invoke gl_FUNC_FCHOWNAT.
12173         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
12174         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
12175         * modules/fchownat: New file, extracted from modules/openat.
12176         * modules/openat (Files): Remove lib/fchownat.c.
12177         (Depends-on): Remove lchown.
12178         (configure.ac): Remove AC_LIBOBJ of fchownat.
12179         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
12180         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
12181         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
12182         (Depends-on): Remove mgetgroups, usleep, stat-time.
12183         (configure.ac): Remove test for getegid.
12184         (Makefile.am): Remove rules for test-fchownat.
12185         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
12186         of module 'openat'.
12187         * NEWS: Mention the change.
12188
12189 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
12190
12191         stdalign: port better to MSVC and to Sun C 5.11
12192         This fixes some of the problems reported by Bruno Haible in
12193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
12194         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
12195         shortcomings of MSVC and of Sun C 5.11.
12196         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
12197         around __declspec arg.
12198         * modules/stdalign-tests (Files): Add tests/macros.h.
12199         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
12200         Include macros.h, for ASSERT.
12201         (DECLARE_ALIGNED): Remove.
12202         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
12203         to catch bug), and to 1 if not (simplifies the rest of the code).
12204         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
12205         (CHECK_AUTO): Remove.
12206         (CHECK_ALIGNED): Check only the alignment of the static vars,
12207         since auto var alignment isn't supported by Sun C 5.11.
12208         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
12209         ASSERT failures are easier to diagnose.
12210
12211 2011-10-31  Bruno Haible  <bruno@clisp.org>
12212
12213         doc about some IRIX 5.3 problems.
12214         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
12215         on IRIX 5.3.
12216         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
12217         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
12218         5.3.
12219         * doc/posix-functions/grantpt.texi: Likewise.
12220         * doc/posix-functions/unlockpt.texi: Likewise.
12221         * doc/posix-functions/lgamma.texi: Likewise.
12222         * doc/posix-functions/nextafter.texi: Likewise.
12223         * doc/posix-functions/remainder.texi: Likewise.
12224         * doc/posix-functions/select.texi: Mention misplaced declaration on
12225         IRIX 5.3.
12226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12227
12228 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
12229
12230         gitlog-to-changelog: fix git-log invocation.
12231         git-log mishandles date strings before 1970-01-01 UTC, and there is
12232         no use to specify --since=1970-01-01 by default anyway.
12233         * build-aux/gitlog-to-changelog: By default, when no --since option
12234         was given, do not specify explicit --since option to git-log.
12235
12236 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
12237
12238         gitlog-to-changelog: new option --append-dot.
12239         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
12240         first non-blank line of each commit message terminated with a dot.
12241
12242 2011-10-30  Bruno Haible  <bruno@clisp.org>
12243
12244         ffsl, ffsll: Avoid compilation error due to 'restrict'.
12245         * lib/ffsl.h: Include <config.h>.
12246         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
12247
12248 2011-10-30  Jim Meyering  <meyering@redhat.com>
12249
12250         GNUmakefile: reenable "make syntax-check" for most projects
12251         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
12252         build-aux variable", "syntax-check" would do nothing but succeed with
12253         the "No version control files detected..." diagnostic (unless you
12254         happened to override _build-aux via cfg.mk).
12255         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
12256         to precede inclusion of maint.mk.  Otherwise, these variables would
12257         be used undefined in any project that does not override the default.
12258
12259 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
12260
12261         gitlog-to-changelog: treat a message with only blank lines as empty.
12262         * build-aux/gitlog-to-changelog: Move the code that removes leading and
12263         trailing blank lines before the code that issues a warning about an
12264         empty commit message.
12265
12266 2011-10-30  Jim Meyering  <meyering@redhat.com>
12267
12268         test-parse-datetime.c: avoid new DST-related false positive test failure
12269         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
12270         based on the time/date we'll convert, not the current time.
12271         Otherwise, the moment we cross a DST boundary like today's in
12272         Europe, (CEST to CET), that offset ends up being one hour off.
12273
12274 2011-10-27  Bruno Haible  <bruno@clisp.org>
12275
12276         fstat: Tweak documentation.
12277         * modules/fstat (Description): More precise description.
12278
12279 2011-10-27  Bruno Haible  <bruno@clisp.org>
12280
12281         Update documentation regarding 'largefile' module.
12282         * doc/posix-functions/fstat.texi: Tweak wording.
12283         * doc/posix-functions/opendir.texi: Mention that the module fixes the
12284         problems with huge directories and/or small ino_t types.
12285         * doc/posix-functions/readdir.texi: Likewise.
12286         * doc/posix-functions/rewinddir.texi: Likewise.
12287
12288 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
12289
12290         maint.mk: don't maintain a second build-aux variable.
12291         * maint.mk (build_aux): Removed.  The maintainer-makefile module
12292         depends on GNUmakefile, which already maintains a cfg.mk
12293         overridable $(_build-aux) for projects with a non-standard
12294         build-aux directory location, although without the $(srcdir)
12295         prefix.  Use that variable consistently instead of introducing a
12296         second one.  Adjust all call sites.
12297
12298 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
12299
12300         Add stdalign module and use it in other modules.
12301         This is based on a previous proposal by Bruno Haible
12302         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
12303
12304         stdalign: new module
12305         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
12306         * modules/stdalign: New files.
12307         * MODULES.html.sh (c1x_core_properties): Add stdalign.
12308         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
12309
12310         stdalign-tests: new module
12311         * modules/stdalign-tests, tests/test-stdalign.c: New files.
12312
12313         argp: use stdalign
12314         * lib/argp-parse.c: Include <stdalign.h>.
12315         (alignof): Remove.
12316         * modules/argp (Depends-on): Add stdalign.
12317
12318         crypto libraries: use stdalign
12319         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
12320         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
12321         Do not include <stdlib.h> twice, in md4.c.
12322         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
12323         because we are accessing a pointer's bit-pattern, not a size.
12324         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
12325         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
12326         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
12327         * modules/crypto/sha512: Likewise.
12328
12329         sys_socket: use stdalign, not alignof
12330         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
12331         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
12332
12333 2011-10-27  Bruno Haible  <bruno@clisp.org>
12334
12335         raise test: Avoid a test failure on Linux/MIPS.
12336         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
12337         because 99 is a valid signal on Linux/MIPS.
12338
12339 2011-10-27  Bruno Haible  <bruno@clisp.org>
12340
12341         nonblocking tests: Fix test failure on Linux/MIPS.
12342         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
12343         Set to 270000.
12344
12345 2011-10-27  Bruno Haible  <bruno@clisp.org>
12346
12347         utimensat: Work around problem on Linux/hppa.
12348         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
12349         values.
12350         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
12351
12352 2011-10-25  Jim Meyering  <meyering@redhat.com>
12353
12354         maint.mk: fix a bug in sc_prohibit_stddef_without_use
12355         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
12356         after symbols like NULL, size_t, etc.
12357         Reported by Alfred M. Szmidt.
12358
12359         maint.mk: exempt ENODATA from a syntax-check rule
12360         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
12361         from the sc_prohibit_always-defined_macros syntax-check rule.
12362         Add a comment.  See this for more details:
12363         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
12364
12365 2011-10-23  Jim Meyering  <meyering@redhat.com>
12366
12367         fts: close parent dir FD before returning from post-traversal fts_read
12368         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
12369         unlink A, even though an FD open on A remained.  This is suboptimal
12370         (holding a file descriptor open longer than needed), but otherwise not
12371         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
12372         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
12373         that represents a real problem: it causes the removal of A to fail
12374         with e.g., "rm: cannot remove `A': Device or resource busy"
12375
12376         fts visits each directory twice and keeps a cache (fts_fd_ring) of
12377         directory file descriptors.  After completing the final, FTS_DP,
12378         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
12379         cache, but then proceeded to add a new FD to it via the subsequent
12380         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
12381         final file descriptor would be closed only via fts_close's call to
12382         fd_ring_clear.  Now, it is usually closed earlier, via the final
12383         FTS_DP-returning fts_read call.
12384         * lib/fts.c (restore_initial_cwd): New function, converted from
12385         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
12386         Update callers.
12387         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
12388         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
12389
12390 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
12391             Bruno Haible  <bruno@clisp.org>
12392             Jim Meyering  <jim@meyering.net>
12393
12394         readme-release: improve safety of release prep instructions.
12395         * README-release: Don't git pull all branches when only master
12396         is needed for the release process.
12397         Run make maintainer-clean before changing trees and merging.
12398         Don't try to run ./configure right after git pull in case files
12399         that influence the bootstrap process have changed, move the
12400         ./configure step to after running ./bootstrap.
12401         Don't bootstrap "one last time"... it's the first time!
12402
12403 2011-10-22  Bruno Haible  <bruno@clisp.org>
12404
12405         errno, strerror-override: Support for MSVC 10.
12406         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
12407         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
12408         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
12409         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
12410         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
12411         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
12412         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
12413         Assign values compatible with MSVC 10.
12414         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
12415         New macros.
12416         (GNULIB_defined_EWINSOCK): New macro.
12417         * lib/strerror-override.c (strerror_override): Update accordingly.
12418         * lib/strerror-override.h: Likewise.
12419         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
12420         longer equal to the corresponding errno value.
12421         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12422
12423 2011-10-22  Bruno Haible  <bruno@clisp.org>
12424
12425         perror: Recognize when test program crashes.
12426         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
12427         strerror, set gl_cv_func_perror_works to no.
12428         Reported by Daniel Richard G. <skunk@iskunk.org>.
12429
12430         perror: Fix indentation.
12431         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
12432
12433 2011-10-22  Bruno Haible  <bruno@clisp.org>
12434
12435         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
12436         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
12437         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
12438         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
12439         functions, not as a macro.
12440         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
12441         macros.
12442         (isfinite, isinf, isnan, signbit): Check overloaded functions and
12443         absence of macro.
12444         Suggested by Eric Blake.
12445         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12446
12447 2011-10-21  Bruno Haible  <bruno@clisp.org>
12448
12449         relocatable-prog-wrapper: Don't leave object files behind.
12450         * build-aux/install-reloc: Re-synchronize list of .o files to be
12451         removed with list of compilation units.
12452
12453 2011-10-20  Bruno Haible  <bruno@clisp.org>
12454
12455         openpty, posix_openpt: Remove code duplication.
12456         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
12457         * lib/openpty.c: Include <stdlib.h>.
12458         (openpty): Use posix_openpt on all platforms except IRIX.
12459         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
12460
12461 2011-10-20  Bruno Haible  <bruno@clisp.org>
12462
12463         unlockpt: Detect invalid argument.
12464         * lib/unlockpt.c: Include <fcntl.h>.
12465         (unlockpt): Check whether fd is valid, using fcntl().
12466         * modules/unlockpt (Depends-on): Add fcntl-h.
12467
12468 2011-10-20  Bruno Haible  <bruno@clisp.org>
12469
12470         openpty: Avoid compilation error on AIX 6.1.
12471         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
12472
12473 2011-10-20  Bruno Haible  <bruno@clisp.org>
12474
12475         posix_openpt: Support for OpenBSD.
12476         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
12477         (posix_openpt) [OpenBSD]: New code.
12478         * lib/grantpt.c: Include <fcntl.h>.
12479         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
12480         * modules/grantpt (Depends-on): Add fcntl-h.
12481
12482 2011-10-20  Bruno Haible  <bruno@clisp.org>
12483
12484         posix_openpt test: Coding style.
12485         * tests/test-posix_openpt.c: Use GNU coding style.
12486
12487 2011-10-20  Bruno Haible  <bruno@clisp.org>
12488
12489         grantpt: Support --avoid=pt_chown.
12490         * modules/grantpt (Files): Add lib/pty-private.h.
12491
12492 2011-10-20  Bruno Haible  <bruno@clisp.org>
12493
12494         posix_openpt: Fix autoconf macro.
12495         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
12496         unneeded check for _getpty.
12497
12498 2011-10-20  Bruno Haible  <bruno@clisp.org>
12499
12500         openpty: Update comments.
12501         * lib/openpty.c: Add comments about Minix.
12502
12503 2011-10-19  Eric Blake  <eblake@redhat.com>
12504
12505         openpty: relax license
12506         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
12507
12508         pt_chown: use configmake to simplify build
12509         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
12510
12511         ptsname and others: relax license
12512         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
12513         * modules/unlockpt (License): Likewise.
12514         * modules/pt_chown (License): Likewise.
12515         * modules/ptsname (License): Likewise.
12516         * modules/ttyname_r (License): Likewise.
12517
12518 2011-10-19  Jim Meyering  <meyering@redhat.com>
12519
12520         posix_openpt: remove spurious #endif
12521         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
12522
12523 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
12524
12525         maint.mk: Respect $(build_aux) in web-manual rule.
12526         * top/maint.mk (web-manual): Find gen-announce script in user's
12527         $(build_aux) directory instead of hard-coding 'build-aux'.
12528
12529 2011-10-19  Bruno Haible  <bruno@clisp.org>
12530
12531         posix_openpt: Fix compilation error.
12532         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
12533         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
12534         Mention the openpty module as an alternative.
12535
12536 2011-10-19  Bruno Haible  <bruno@clisp.org>
12537
12538         Support for old NeXTstep 3.3 frexp().
12539         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
12540         execution time of the test to 5 seconds.
12541         Reported by Daniel Richard G. <skunk@iskunk.org>.
12542
12543 2011-10-19  Bruno Haible  <bruno@clisp.org>
12544
12545         Support for old NeXTstep 3.3 sed.
12546         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
12547         part, use /.../, not \|...|. Escape periods in the header file name.
12548         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12549         Reported by Daniel Richard G. <skunk@iskunk.org>.
12550
12551 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12552
12553         Support for old NeXTstep 3.3 gcc.
12554         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
12555         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
12556         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
12557         * lib/spawn.in.h (_Restrict_arr_): Likewise.
12558         * lib/regex.h (_Restrict_arr_): Likewise.
12559         * lib/regex_internal.h (re_token_t): Likewise.
12560         * lib/regexec.c (check_node_accept_bytes): Likewise.
12561         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
12562
12563 2011-10-18  Eric Blake  <eblake@redhat.com>
12564
12565         posix_openpt: new module
12566         * modules/posix_openpt: New module.
12567         * m4/posix_openpt.m4: New file.
12568         * lib/posix_openpt.c: Likewise.
12569         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
12570         (gl_STDLIB_H_DEFAULTS): Set defaults.
12571         * modules/stdlib (Makefile.am): Substitute macros.
12572         * lib/stdlib.in.h (posix_openpt): Declare.
12573         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
12574         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
12575         * modules/posix_openpt-tests: New test module.
12576         * tests/test-posix_openpt.c: New test.
12577
12578 2011-10-15  Bruno Haible  <bruno@clisp.org>
12579
12580         xstrtoll: Fix compilation failure.
12581         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
12582         from lib/strtol.c.
12583         * doc/posix-headers/limits.texi: Mention missing numerical limits on
12584         some platforms.
12585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12586
12587 2011-10-15  Bruno Haible  <bruno@clisp.org>
12588
12589         vasnprintf: Optimize bit search operation.
12590         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
12591         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
12592         gl_DOUBLE_EXPONENT_LOCATION.
12593         * modules/vasnprintf (Files): Add m4/exponentd.m4.
12594         * modules/unistdio/u8-vasnprintf (Files): Likewise.
12595         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
12596         * modules/unistdio/u16-vasnprintf (Files): Likewise.
12597         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
12598         * modules/unistdio/u32-vasnprintf (Files): Likewise.
12599         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
12600         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
12601         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
12602
12603 2011-10-15  Bruno Haible  <bruno@clisp.org>
12604
12605         vasnprintf: Fix comments.
12606         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
12607
12608 2011-10-14  Bruno Haible  <bruno@clisp.org>
12609
12610         Tests for module 'integer_length_ll'.
12611         * modules/integer_length_ll-tests: New file.
12612         * tests/test-integer_length_ll.c: New file.
12613
12614         New module 'integer_length_ll'.
12615         * lib/integer_length_ll.c: New file.
12616         * modules/integer_length_ll: New file.
12617
12618 2011-10-14  Bruno Haible  <bruno@clisp.org>
12619
12620         Tests for module 'integer_length_l'.
12621         * modules/integer_length_l-tests: New file.
12622         * tests/test-integer_length_l.c: New file.
12623
12624         New module 'integer_length_l'.
12625         * lib/integer_length_l.c: New file.
12626         * modules/integer_length_l: New file.
12627
12628 2011-10-14  Bruno Haible  <bruno@clisp.org>
12629
12630         Tests for module 'integer_length'.
12631         * modules/integer_length-tests: New file.
12632         * tests/test-integer_length.c: New file.
12633
12634         New module 'integer_length'.
12635         * lib/integer_length.h: New file.
12636         * lib/integer_length.c: New file.
12637         * modules/integer_length: New file.
12638
12639 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12640
12641         popen: Fix dependency conditions.
12642         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
12643
12644 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
12645
12646         perror: Fix autoconf test.
12647         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
12648         <stdlib.h> and <string.h>.
12649
12650 2011-10-14  Bruno Haible  <bruno@clisp.org>
12651
12652         ffsl: Optimize on 64-bit platforms.
12653         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
12654         unrolling.
12655
12656 2011-10-13  Bruno Haible  <bruno@clisp.org>
12657
12658         ffsl: Optimize on 32-bit platforms.
12659         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
12660         use ffs() without a loop.
12661
12662         ffsl, ffsll: Optimize for GCC.
12663         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
12664         * lib/ffsl.c (GCC_BUILTIN): New macro.
12665         * lib/ffsll.c (GCC_BUILTIN): Likewise.
12666
12667 2011-10-13  Bruno Haible  <bruno@clisp.org>
12668
12669         ffs, bcopy, memset: Support symbol renaming via config.h.
12670         * lib/ffs.c: Include <config.h>.
12671         * lib/bcopy.c: Likewise.
12672         * lib/memset.c: Likewise.
12673
12674 2011-10-10  Bruno Haible  <bruno@clisp.org>
12675
12676         atanl: Simplify for platforms where 'long double' == 'double'.
12677         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12678         alternative implementation.
12679         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12680         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12681         * modules/atanl (Depends-on): Add atan. Update conditions.
12682
12683 2011-10-10  Bruno Haible  <bruno@clisp.org>
12684
12685         acosl: Simplify for platforms where 'long double' == 'double'.
12686         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12687         alternative implementation.
12688         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12689         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12690         * modules/acosl (Depends-on): Add acos. Update conditions.
12691
12692 2011-10-10  Bruno Haible  <bruno@clisp.org>
12693
12694         asinl: Simplify for platforms where 'long double' == 'double'.
12695         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12696         alternative implementation.
12697         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12698         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12699         * modules/asinl (Depends-on): Add asin. Update conditions.
12700
12701 2011-10-10  Bruno Haible  <bruno@clisp.org>
12702
12703         tanl: Simplify for platforms where 'long double' == 'double'.
12704         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12705         implementation.
12706         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12707         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12708         * modules/tanl (Depends-on): Add tan. Update conditions.
12709         (configure.ac): Don't compile trigl.c if
12710         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12711
12712 2011-10-10  Bruno Haible  <bruno@clisp.org>
12713
12714         cosl: Simplify for platforms where 'long double' == 'double'.
12715         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12716         implementation.
12717         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12718         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12719         * modules/cosl (Depends-on): Add cos. Update conditions.
12720         (configure.ac): Don't compile sincosl.c and trigl.c if
12721         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12722
12723 2011-10-10  Bruno Haible  <bruno@clisp.org>
12724
12725         sinl: Simplify for platforms where 'long double' == 'double'.
12726         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12727         implementation.
12728         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12729         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12730         * modules/sinl (Depends-on): Add sin. Update conditions.
12731         (configure.ac): Don't compile sincosl.c and trigl.c if
12732         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12733
12734 2011-10-10  Bruno Haible  <bruno@clisp.org>
12735
12736         logl: Simplify for platforms where 'long double' == 'double'.
12737         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12738         implementation.
12739         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12740         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12741         * modules/logl (Depends-on): Add log. Update conditions.
12742
12743 2011-10-10  Bruno Haible  <bruno@clisp.org>
12744
12745         expl: Simplify for platforms where 'long double' == 'double'.
12746         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
12747         implementation.
12748         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12749         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12750         * modules/expl (Depends-on): Add exp. Update conditions.
12751
12752 2011-10-10  Bruno Haible  <bruno@clisp.org>
12753
12754         sqrtl: Simplify for platforms where 'long double' == 'double'.
12755         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12756         alternative implementation.
12757         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12758         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12759         * modules/sqrtl (Depends-on): Update conditions.
12760
12761 2011-10-10  Bruno Haible  <bruno@clisp.org>
12762
12763         ldexpl: Simplify for platforms where 'long double' == 'double'.
12764         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12765         alternative implementation.
12766         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12767         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12768         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
12769
12770 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
12771
12772         ffsll: set correct witness
12773         * modules/ffsll (configure.ac): Fix typo.
12774
12775 2011-10-10  Bruno Haible  <bruno@clisp.org>
12776
12777         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
12778         * lib/printf-frexpl.c: Include <config.h>.
12779         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12780         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
12781         second time.
12782         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
12783         gl_LONG_DOUBLE_VS_DOUBLE.
12784         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
12785         conditions.
12786
12787 2011-10-10  Bruno Haible  <bruno@clisp.org>
12788
12789         frexpl: Simplify for platforms where 'long double' == 'double'.
12790         * lib/frexpl.c: Include <config.h>.
12791         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12792         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12793         time.
12794         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12795         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12796         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
12797         * modules/frexpl (Depends-on): Add frexp. Update conditions.
12798         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
12799         conditions.
12800
12801 2011-10-10  Jim Meyering  <meyering@redhat.com>
12802
12803         test-renameat: don't leave behind a temporary file
12804         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
12805           ERROR: files left in build directory after distclean:
12806           ./gltests/test-renameat.too
12807           make[1]: *** [distcleancheck] Error 1
12808         Reported by Tom G. Christensen.
12809
12810 2011-10-09  Bruno Haible  <bruno@clisp.org>
12811
12812         rint: Determine RINT_LIBM correctly on AIX 7.
12813         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
12814         directly, not only through a function pointer. Also accept an optional
12815         4th argument with extra code.
12816         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
12817         rintf() call by gcc when optimizing.
12818
12819         mathfunc.m4: Refactor.
12820         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
12821         m4 variable.
12822
12823 2011-10-09  Bruno Haible  <bruno@clisp.org>
12824
12825         rintl: Simplify for platforms where 'long double' == 'double'.
12826         * lib/rintl.c: Include <config.h>.
12827         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12828         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12829         time.
12830         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12831         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12832         * modules/rintl (Depends-on): Add rint. Update conditions.
12833
12834 2011-10-09  Bruno Haible  <bruno@clisp.org>
12835
12836         roundl: Simplify for platforms where 'long double' == 'double'.
12837         * lib/roundl.c: Include <config.h>.
12838         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12839         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12840         time.
12841         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12842         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12843         * modules/roundl (Depends-on): Add round. Update conditions.
12844
12845 2011-10-09  Bruno Haible  <bruno@clisp.org>
12846
12847         truncl: Simplify for platforms where 'long double' == 'double'.
12848         * lib/truncl.c: Include <config.h>.
12849         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12850         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12851         time.
12852         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12853         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12854         * modules/truncl (Depends-on): Add trunc. Update conditions.
12855
12856 2011-10-09  Bruno Haible  <bruno@clisp.org>
12857
12858         ceill: Simplify for platforms where 'long double' == 'double'.
12859         * lib/ceill.c: Include <config.h>.
12860         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12861         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12862         time.
12863         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12864         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12865         * modules/ceill (Depends-on): Add ceil. Update conditions.
12866
12867 2011-10-09  Bruno Haible  <bruno@clisp.org>
12868
12869         floorl: Simplify for platforms where 'long double' == 'double'.
12870         * lib/floorl.c: Include <config.h>.
12871         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
12872         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
12873         time.
12874         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12875         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12876         * modules/floorl (Depends-on): Add floor. Update conditions.
12877
12878 2011-10-09  Bruno Haible  <bruno@clisp.org>
12879
12880         rint: Fix ordering constraints.
12881         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
12882         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
12883         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
12884
12885 2011-10-09  Bruno Haible  <bruno@clisp.org>
12886
12887         copysignl: Simplify for platforms where 'long double' == 'double'.
12888         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
12889         alternative.
12890         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
12891         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
12892         * modules/copysignl (Depends-on): Add copysign. Update conditions.
12893
12894 2011-10-09  Bruno Haible  <bruno@clisp.org>
12895
12896         Tests for module 'rintl'.
12897         * modules/rintl-tests: New file.
12898         * tests/test-rintl.c: New file.
12899
12900         New module 'rintl'.
12901         * lib/math.in.h (rintl): New declaration.
12902         * lib/rintl.c: New file.
12903         * m4/rintl.m4: New file.
12904         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
12905         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
12906         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
12907         * modules/rintl: New file.
12908         * tests/test-math-c++.cc: Check the declaration of rintl.
12909         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12910         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
12911         * doc/posix-functions/rintl.texi: Mention the new module.
12912
12913 2011-10-09  Bruno Haible  <bruno@clisp.org>
12914
12915         Tests for module 'rintf'.
12916         * modules/rintf-tests: New file.
12917         * tests/test-rintf.c: New file.
12918
12919         New module 'rintf'.
12920         * lib/math.in.h (rintf): New declaration.
12921         * lib/rintf.c: New file.
12922         * m4/rintf.m4: New file.
12923         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
12924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
12925         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
12926         * modules/rintf: New file.
12927         * tests/test-math-c++.cc: Check the declaration of rintf.
12928         * doc/posix-functions/rintf.texi: Mention the new module.
12929
12930 2011-10-09  Bruno Haible  <bruno@clisp.org>
12931
12932         rint: Support for MSVC.
12933         * lib/math.in.h (rint): New declaration.
12934         * lib/rint.c: New file.
12935         * m4/rint.m4: New file.
12936         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
12937         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
12938         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
12939         * modules/rint (Description): Fix.
12940         (Files): Add lib/rint.c, m4/rint.m4.
12941         (Depends-on): Add math.
12942         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
12943         gl_MATH_MODULE_INDICATOR.
12944         * tests/test-math-c++.cc: Check the declaration of rint.
12945         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12946         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
12947         * doc/posix-functions/rint.texi: Mention the replacement provided by
12948         the module.
12949
12950         rint tests: More tests.
12951         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
12952         minus-zero.h, infinity.h, nan.h.
12953         (main): Skip the test if the current rounding mode is not standard. Add
12954         tests for negative numbers, minus zero, infinity, NaN.
12955         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
12956         tests/nan.h.
12957         (Depends-on): Add isnand-nolibm.
12958
12959 2011-10-09  Bruno Haible  <bruno@clisp.org>
12960
12961         Tests for module 'copysignl'.
12962         * modules/copysignl-tests: New file.
12963         * tests/test-copysignl.c: New file.
12964
12965         New module 'copysignl'.
12966         * lib/math.in.h (copysignl): New declaration.
12967         * lib/copysignl.c: New file.
12968         * m4/copysignl.m4: New file.
12969         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
12970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
12971         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
12972         HAVE_COPYSIGNL.
12973         * modules/copysignl: New file.
12974         * tests/test-math-c++.cc: Check the declaration of copysignl.
12975         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
12976         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
12977         * doc/posix-functions/copysignl.texi: Mention the new module.
12978
12979 2011-10-09  Bruno Haible  <bruno@clisp.org>
12980
12981         Tests for module 'copysignf'.
12982         * modules/copysignf-tests: New file.
12983         * tests/test-copysignf.c: New file.
12984
12985         New module 'copysignf'.
12986         * lib/math.in.h (copysignf): New declaration.
12987         * lib/copysignf.c: New file.
12988         * m4/copysignf.m4: New file.
12989         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
12990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
12991         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
12992         HAVE_COPYSIGNF.
12993         * modules/copysignf: New file.
12994         * tests/test-math-c++.cc: Check the declaration of copysignf.
12995         * doc/posix-functions/copysignf.texi: Mention the new module.
12996
12997 2011-10-09  Bruno Haible  <bruno@clisp.org>
12998
12999         Ensure that HAVE_* variables are set to 1 before they are set to 0.
13000         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
13001         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
13002         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13003         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
13004         gl_SIGNAL_H_DEFAULTS.
13005
13006 2011-10-09  Bruno Haible  <bruno@clisp.org>
13007
13008         poll: Make macro safer.
13009         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
13010         ac_cv_header_poll_h is not set.
13011
13012 2011-10-09  Bruno Haible  <bruno@clisp.org>
13013
13014         copysign: Provide replacement.
13015         * lib/math.in.h (copysign): New declaration.
13016         * lib/copysign.c: New file.
13017         * m4/copysign.m4: New file.
13018         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
13019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
13020         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
13021         HAVE_COPYSIGN.
13022         * modules/copysign (Description): Clarify.
13023         (Files): Add lib/copysign.c, m4/copysign.m4.
13024         (Depends-on): Add math, signbit.
13025         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
13026         gl_MATH_MODULE_INDICATOR.
13027         * tests/test-math-c++.cc: Check the declaration of copysign.
13028         * doc/posix-functions/copysign.texi: Mention the effects of the module
13029         on Minix and MSVC.
13030
13031 2011-10-09  Bruno Haible  <bruno@clisp.org>
13032
13033         isinf: Ensure macro on AIX 5.1.
13034         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
13035         macro.
13036         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
13037
13038 2011-10-09  Bruno Haible  <bruno@clisp.org>
13039
13040         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
13041         * modules/snprintf-posix-tests (configure.ac): Require
13042         gl_LONG_DOUBLE_VS_DOUBLE.
13043         * modules/sprintf-posix-tests (configure.ac): Likewise.
13044         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
13045         * modules/vasprintf-posix-tests (configure.ac): Likewise.
13046         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
13047         * modules/vsprintf-posix-tests (configure.ac): Likewise.
13048         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
13049         tests on platforms where 'long double' is the same as 'double'.
13050         * tests/test-sprintf-posix.h (test_function): Likewise.
13051         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13052         * tests/test-vasprintf-posix.c (test_function): Likewise.
13053
13054         *printf: Fix for platforms where 'long double' == 'double'.
13055         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
13056         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
13057         * modules/dprintf-posix (Files): Add m4/math_h.m4.
13058         * modules/fprintf-posix (Files): Likewise.
13059         * modules/obstack-printf-posix (Files): Likewise.
13060         * modules/snprintf-posix (Files): Likewise.
13061         * modules/sprintf-posix (Files): Likewise.
13062         * modules/vasnprintf (Files): Likewise.
13063         * modules/vasnprintf-posix (Files): Likewise.
13064         * modules/vasprintf-posix (Files): Likewise.
13065         * modules/vdprintf-posix (Files): Likewise.
13066         * modules/vfprintf-posix (Files): Likewise.
13067         * modules/vsnprintf-posix (Files): Likewise.
13068         * modules/vsprintf-posix (Files): Likewise.
13069         * modules/unistdio/u8-vasnprintf (Files): Likewise.
13070         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
13071         * modules/unistdio/u16-vasnprintf (Files): Likewise.
13072         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
13073         * modules/unistdio/u32-vasnprintf (Files): Likewise.
13074         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
13075         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
13076
13077         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
13078         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
13079         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
13080         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
13081         'long double'.
13082         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
13083
13084         isinf: Fix for platforms where 'long double' == 'double'.
13085         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
13086         Don't blindly assume 80-bit 'long double'.
13087
13088         isfinite: Fix for platforms where 'long double' == 'double'.
13089         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
13090         Don't blindly assume 80-bit 'long double'.
13091
13092         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
13093         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
13094         * modules/isfinite-tests (configure.ac): Require
13095         gl_LONG_DOUBLE_VS_DOUBLE.
13096         * modules/isinf-tests (configure.ac): Likewise.
13097         * modules/isnan-tests (configure.ac): Likewise.
13098         * modules/isnanl-tests (configure.ac): Likewise.
13099         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
13100         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
13101         tests on platforms where 'long double' is the same as 'double'.
13102         * tests/test-isinf.c (test_isinfl): Likewise.
13103         * tests/test-isnan.c (test_long_double): Likewise.
13104         * tests/test-isnanl.h (main): Likewise.
13105
13106 2011-10-08  Bruno Haible  <bruno@clisp.org>
13107
13108         Tests for module 'tanhf'.
13109         * modules/tanhf-tests: New file.
13110         * tests/test-tanhf.c: New file.
13111
13112         New module 'tanhf'.
13113         * lib/math.in.h (tanhf): New declaration.
13114         * lib/tanhf.c: New file.
13115         * m4/tanhf.m4: New file.
13116         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
13117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
13118         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
13119         * modules/tanhf: New file.
13120         * tests/test-math-c++.cc: Check the declaration of tanhf.
13121         * doc/posix-functions/tanhf.texi: Mention the new module.
13122
13123         tanh: Use a .m4 file.
13124         * m4/tanh.m4: New file.
13125         * modules/tanh (Files): Add it.
13126         (configure.ac): Just invoke gl_FUNC_TANH.
13127
13128 2011-10-08  Bruno Haible  <bruno@clisp.org>
13129
13130         Tests for module 'coshf'.
13131         * modules/coshf-tests: New file.
13132         * tests/test-coshf.c: New file.
13133
13134         New module 'coshf'.
13135         * lib/math.in.h (coshf): New declaration.
13136         * lib/coshf.c: New file.
13137         * m4/coshf.m4: New file.
13138         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
13139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
13140         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
13141         * modules/coshf: New file.
13142         * tests/test-math-c++.cc: Check the declaration of coshf.
13143         * doc/posix-functions/coshf.texi: Mention the new module.
13144
13145         cosh: Use a .m4 file.
13146         * m4/cosh.m4: New file.
13147         * modules/cosh (Files): Add it.
13148         (configure.ac): Just invoke gl_FUNC_COSH.
13149
13150 2011-10-08  Bruno Haible  <bruno@clisp.org>
13151
13152         Tests for module 'sinhf'.
13153         * modules/sinhf-tests: New file.
13154         * tests/test-sinhf.c: New file.
13155
13156         New module 'sinhf'.
13157         * lib/math.in.h (sinhf): New declaration.
13158         * lib/sinhf.c: New file.
13159         * m4/sinhf.m4: New file.
13160         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
13161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
13162         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
13163         * modules/sinhf: New file.
13164         * tests/test-math-c++.cc: Check the declaration of sinhf.
13165         * doc/posix-functions/sinhf.texi: Mention the new module.
13166
13167         sinh: Use a .m4 file.
13168         * m4/sinh.m4: New file.
13169         * modules/sinh (Files): Add it.
13170         (configure.ac): Just invoke gl_FUNC_SINH.
13171
13172 2011-10-08  Bruno Haible  <bruno@clisp.org>
13173
13174         Tests for module 'atan2f'.
13175         * modules/atan2f-tests: New file.
13176         * tests/test-atan2f.c: New file.
13177
13178         New module 'atan2f'.
13179         * lib/math.in.h (atan2f): New declaration.
13180         * lib/atan2f.c: New file.
13181         * m4/atan2f.m4: New file.
13182         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
13183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
13184         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
13185         * modules/atan2f: New file.
13186         * tests/test-math-c++.cc: Check the declaration of atan2f.
13187         * doc/posix-functions/atan2f.texi: Mention the new module.
13188
13189         atan2: Use a .m4 file.
13190         * m4/atan2.m4: New file.
13191         * modules/atan2 (Files): Add it.
13192         (configure.ac): Just invoke gl_FUNC_ATAN2.
13193
13194 2011-10-08  Bruno Haible  <bruno@clisp.org>
13195
13196         Tests for module 'atanf'.
13197         * modules/atanf-tests: New file.
13198         * tests/test-atanf.c: New file.
13199
13200         New module 'atanf'.
13201         * lib/math.in.h (atanf): New declaration.
13202         * lib/atanf.c: New file.
13203         * m4/atanf.m4: New file.
13204         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
13205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
13206         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
13207         * modules/atanf: New file.
13208         * tests/test-math-c++.cc: Check the declaration of atanf.
13209         * doc/posix-functions/atanf.texi: Mention the new module.
13210
13211         atan: Use a .m4 file.
13212         * m4/atan.m4: New file.
13213         * modules/atan (Files): Add it.
13214         (configure.ac): Just invoke gl_FUNC_ATAN.
13215
13216 2011-10-08  Bruno Haible  <bruno@clisp.org>
13217
13218         Tests for module 'acosf'.
13219         * modules/acosf-tests: New file.
13220         * tests/test-acosf.c: New file.
13221
13222         New module 'acosf'.
13223         * lib/math.in.h (acosf): New declaration.
13224         * lib/acosf.c: New file.
13225         * m4/acosf.m4: New file.
13226         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
13227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
13228         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
13229         * modules/acosf: New file.
13230         * tests/test-math-c++.cc: Check the declaration of acosf.
13231         * doc/posix-functions/acosf.texi: Mention the new module.
13232
13233         acos: Use a .m4 file.
13234         * m4/acos.m4: New file.
13235         * modules/acos (Files): Add it.
13236         (configure.ac): Just invoke gl_FUNC_ACOS.
13237
13238 2011-10-08  Bruno Haible  <bruno@clisp.org>
13239
13240         Tests for module 'asinf'.
13241         * modules/asinf-tests: New file.
13242         * tests/test-asinf.c: New file.
13243
13244         New module 'asinf'.
13245         * lib/math.in.h (asinf): New declaration.
13246         * lib/asinf.c: New file.
13247         * m4/asinf.m4: New file.
13248         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
13249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
13250         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
13251         * modules/asinf: New file.
13252         * tests/test-math-c++.cc: Check the declaration of asinf.
13253         * doc/posix-functions/asinf.texi: Mention the new module.
13254
13255         asin: Use a .m4 file.
13256         * m4/asin.m4: New file.
13257         * modules/asin (Files): Add it.
13258         (configure.ac): Just invoke gl_FUNC_ASIN.
13259
13260 2011-10-08  Bruno Haible  <bruno@clisp.org>
13261
13262         Tests for module 'tanf'.
13263         * modules/tanf-tests: New file.
13264         * tests/test-tanf.c: New file.
13265
13266         New module 'tanf'.
13267         * lib/math.in.h (tanf): New declaration.
13268         * lib/tanf.c: New file.
13269         * m4/tanf.m4: New file.
13270         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
13271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
13272         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
13273         * modules/tanf: New file.
13274         * tests/test-math-c++.cc: Check the declaration of tanf.
13275         * doc/posix-functions/tanf.texi: Mention the new module.
13276
13277         tan: Use a .m4 file.
13278         * m4/tan.m4: New file.
13279         * modules/tan (Files): Add it.
13280         (configure.ac): Just invoke gl_FUNC_TAN.
13281
13282 2011-10-08  Bruno Haible  <bruno@clisp.org>
13283
13284         Tests for module 'cosf'.
13285         * modules/cosf-tests: New file.
13286         * tests/test-cosf.c: New file.
13287
13288         New module 'cosf'.
13289         * lib/math.in.h (cosf): New declaration.
13290         * lib/cosf.c: New file.
13291         * m4/cosf.m4: New file.
13292         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
13293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
13294         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
13295         * modules/cosf: New file.
13296         * tests/test-math-c++.cc: Check the declaration of cosf.
13297         * doc/posix-functions/cosf.texi: Mention the new module.
13298
13299         cos: Use a .m4 file.
13300         * m4/cos.m4: New file.
13301         * modules/cos (Files): Add it.
13302         (configure.ac): Just invoke gl_FUNC_COS.
13303
13304 2011-10-08  Bruno Haible  <bruno@clisp.org>
13305
13306         Tests for module 'sinf'.
13307         * modules/sinf-tests: New file.
13308         * tests/test-sinf.c: New file.
13309
13310         New module 'sinf'.
13311         * lib/math.in.h (sinf): New declaration.
13312         * lib/sinf.c: New file.
13313         * m4/sinf.m4: New file.
13314         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
13315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
13316         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
13317         * modules/sinf: New file.
13318         * tests/test-math-c++.cc: Check the declaration of sinf.
13319         * doc/posix-functions/sinf.texi: Mention the new module.
13320
13321         sin: Use a .m4 file.
13322         * m4/sin.m4: New file.
13323         * modules/sin (Files): Add it.
13324         (configure.ac): Just invoke gl_FUNC_SIN.
13325
13326 2011-10-08  Bruno Haible  <bruno@clisp.org>
13327
13328         Tests for module 'powf'.
13329         * modules/powf-tests: New file.
13330         * tests/test-powf.c: New file.
13331
13332         New module 'powf'.
13333         * lib/math.in.h (powf): New declaration.
13334         * lib/powf.c: New file.
13335         * m4/powf.m4: New file.
13336         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
13337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
13338         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
13339         * modules/powf: New file.
13340         * tests/test-math-c++.cc: Check the declaration of powf.
13341         * doc/posix-functions/powf.texi: Mention the new module.
13342
13343         pow: Use a .m4 file.
13344         * m4/pow.m4: New file.
13345         * modules/pow (Files): Add it.
13346         (configure.ac): Just invoke gl_FUNC_POW.
13347
13348 2011-10-08  Bruno Haible  <bruno@clisp.org>
13349
13350         Tests for module 'log10f'.
13351         * modules/log10f-tests: New file.
13352         * tests/test-log10f.c: New file.
13353
13354         New module 'log10f'.
13355         * lib/math.in.h (log10f): New declaration.
13356         * lib/log10f.c: New file.
13357         * m4/log10f.m4: New file.
13358         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
13359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
13360         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
13361         * modules/log10f: New file.
13362         * tests/test-math-c++.cc: Check the declaration of log10f.
13363         * doc/posix-functions/log10f.texi: Mention the new module.
13364
13365         log10: Use a .m4 file.
13366         * m4/log10.m4: New file.
13367         * modules/log10 (Files): Add it.
13368         (configure.ac): Just invoke gl_FUNC_LOG10.
13369
13370 2011-10-08  Bruno Haible  <bruno@clisp.org>
13371
13372         Tests for module 'logf'.
13373         * modules/logf-tests: New file.
13374         * tests/test-logf.c: New file.
13375
13376         New module 'logf'.
13377         * lib/math.in.h (logf): New declaration.
13378         * lib/logf.c: New file.
13379         * m4/logf.m4: New file.
13380         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
13381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
13382         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
13383         * modules/logf: New file.
13384         * tests/test-math-c++.cc: Check the declaration of logf.
13385         * doc/posix-functions/logf.texi: Mention the new module.
13386
13387         log: Use a .m4 file.
13388         * m4/log.m4: New file.
13389         * modules/log (Files): Add it.
13390         (configure.ac): Just invoke gl_FUNC_LOG.
13391
13392 2011-10-08  Bruno Haible  <bruno@clisp.org>
13393
13394         Tests for module 'expf'.
13395         * modules/expf-tests: New file.
13396         * tests/test-expf.c: New file.
13397
13398         New module 'expf'.
13399         * lib/math.in.h (expf): New declaration.
13400         * lib/expf.c: New file.
13401         * m4/expf.m4: New file.
13402         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
13403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
13404         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
13405         * modules/expf: New file.
13406         * tests/test-math-c++.cc: Check the declaration of expf.
13407         * doc/posix-functions/expf.texi: Mention the new module.
13408
13409         exp: Use a .m4 file.
13410         * m4/exp.m4: New file.
13411         * modules/exp (Files): Add it.
13412         (configure.ac): Just invoke gl_FUNC_EXP.
13413
13414 2011-10-08  Bruno Haible  <bruno@clisp.org>
13415
13416         Tests for module 'sqrtf'.
13417         * modules/sqrtf-tests: New file.
13418         * tests/test-sqrtf.c: New file.
13419
13420         New module 'sqrtf'.
13421         * lib/math.in.h (sqrtf): New declaration.
13422         * lib/sqrtf.c: New file.
13423         * m4/sqrtf.m4: New file.
13424         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
13425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
13426         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
13427         * modules/sqrtf: New file.
13428         * tests/test-math-c++.cc: Check the declaration of sqrtf.
13429         * doc/posix-functions/sqrtf.texi: Mention the new module.
13430
13431 2011-10-08  Bruno Haible  <bruno@clisp.org>
13432
13433         Tests: Avoid link failures w.r.t. libintl.
13434         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
13435         $(LIBINTL).
13436         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
13437         $(LIBINTL).
13438         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
13439         against $(LIBINTL).
13440         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
13441         $(LIBINTL).
13442         * modules/openat-tests (Makefile.am): Link test-fchmodat against
13443         $(LIBINTL).
13444         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
13445
13446 2011-10-08  Bruno Haible  <bruno@clisp.org>
13447
13448         pow tests: Defeat compiler optimizations.
13449         * tests/test-pow.c (main): Assign arguments to x and y before use.
13450
13451 2011-10-08  Bruno Haible  <bruno@clisp.org>
13452
13453         gnulib-tool: Improve last commit.
13454         * gnulib-tool (func_modules_transitive_closure): Simplify code.
13455         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
13456         ignore dependencies that are not among the modules list.
13457
13458 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
13459
13460         gnulib-tool: don't follow dependencies to avoided modules
13461         This fixes a bug that is related to the previous one.
13462         * gnulib-tool (func_modules_transitive_closure)
13463         (func_emit_autoconf_snippets):
13464         Check whether a dependency is acceptable before using it.
13465         (--extract-dependencies): Report an error if --avoid is also used,
13466         since this combination of options is not yet supported.
13467
13468         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
13469         Problem reported by Peter Dyballa in
13470         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
13471         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
13472         when echoing "$condition".
13473
13474 2011-10-07  Bruno Haible  <bruno@clisp.org>
13475
13476         Fix documentation about math functions on MacOS X.
13477         * doc/posix-functions/exp2.texi: Don't say the function is missing on
13478         MacOS X 10.5.
13479         * doc/posix-functions/fdim.texi: Likewise.
13480         * doc/posix-functions/feclearexcept.texi: Likewise.
13481         * doc/posix-functions/fegetenv.texi: Likewise.
13482         * doc/posix-functions/fegetround.texi: Likewise.
13483         * doc/posix-functions/feholdexcept.texi: Likewise.
13484         * doc/posix-functions/feraiseexcept.texi: Likewise.
13485         * doc/posix-functions/fesetenv.texi: Likewise.
13486         * doc/posix-functions/fesetround.texi: Likewise.
13487         * doc/posix-functions/fetestexcept.texi: Likewise.
13488         * doc/posix-functions/feupdateenv.texi: Likewise.
13489         * doc/posix-functions/fmax.texi: Likewise.
13490         * doc/posix-functions/fmin.texi: Likewise.
13491         * doc/posix-functions/log2.texi: Likewise.
13492         * doc/posix-functions/modff.texi: Likewise.
13493         * doc/posix-functions/nan.texi: Likewise.
13494         * doc/posix-functions/nanf.texi: Likewise.
13495         * doc/posix-functions/nextafterf.texi: Likewise.
13496         * doc/posix-functions/remquo.texi: Likewise.
13497
13498 2011-10-07  Bruno Haible  <bruno@clisp.org>
13499
13500         modff: Drop assumption about library that defines modff.
13501         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
13502         AC_CHECK_FUNCS.
13503         * modules/modff (Files): Add m4/mathfunc.m4.
13504
13505 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
13506
13507         raise tests: Avoid a GCC warning.
13508         * tests/test-raise.c (handler): Use _Noreturn.
13509
13510 2011-10-07  Bruno Haible  <bruno@clisp.org>
13511
13512         Tests for module 'ldexpf'.
13513         * modules/ldexpf-tests: New file.
13514         * tests/test-ldexpf.c: New file.
13515
13516         New module 'ldexpf'.
13517         * lib/math.in.h (ldexpf): New declaration.
13518         * lib/ldexpf.c: New file.
13519         * m4/ldexpf.m4: New file.
13520         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
13521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
13522         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
13523         * modules/ldexpf: New file.
13524         * tests/test-math-c++.cc: Check the declaration of ldexpf.
13525         * doc/posix-functions/ldexpf.texi: Mention the new module.
13526
13527 2011-10-06  Bruno Haible  <bruno@clisp.org>
13528
13529         frexpf: Work around problems on IRIX and mingw.
13530         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
13531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
13532         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
13533         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
13534         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
13535         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
13536         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
13537
13538 2011-10-06  Bruno Haible  <bruno@clisp.org>
13539
13540         fabsf: Drop assumption about library that defines fabsf.
13541         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
13542         AC_CHECK_FUNCS.
13543         * modules/fabsf (Files): Add m4/mathfunc.m4.
13544
13545 2011-10-06  Bruno Haible  <bruno@clisp.org>
13546
13547         frexpf: Drop assumption about library that defines frexpf.
13548         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
13549         'int *', 'float *', 'long double *', 'float', 'long double'.
13550         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
13551         AC_CHECK_FUNCS.
13552         * modules/frexpf (Files): Add m4/mathfunc.m4.
13553
13554         Tests for module 'frexpf'.
13555         * modules/frexpf-tests: New file.
13556         * tests/test-frexpf.c: New file.
13557
13558         New module 'frexpf'.
13559         * lib/math.in.h (frexpf): New declaration.
13560         * lib/frexpf.c: New file.
13561         * m4/frexpf.m4: New file.
13562         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
13563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
13564         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
13565         * modules/frexpf: New file.
13566         * tests/test-math-c++.cc: Check the declaration of frexpf.
13567         * doc/posix-functions/frexpf.texi: Mention the new module.
13568
13569 2011-10-06  Bruno Haible  <bruno@clisp.org>
13570
13571         math: Sort function declarations of math.in.h.
13572         * lib/math.in.h (frexp, logb): Move declarations.
13573
13574 2011-10-05  Bruno Haible  <bruno@clisp.org>
13575
13576         Tests for module 'modff'.
13577         * modules/modff-tests: New file.
13578         * tests/test-modff.c: New file.
13579
13580         New module 'modff'.
13581         * lib/math.in.h (modff): New declaration.
13582         * lib/modff.c: New file.
13583         * m4/modff.m4: New file.
13584         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
13585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
13586         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
13587         * modules/modff: New file.
13588         * tests/test-math-c++.cc: Check the declaration of modff.
13589         * doc/posix-functions/modff.texi: Mention the new module.
13590
13591         modf tests: Make test sharper.
13592         * tests/test-modf.c (main): Strengthen upper bound.
13593
13594         modf: Use a .m4 file.
13595         * m4/modf.m4: New file.
13596         * modules/modf (Files): Add it.
13597         (configure.ac): Just invoke gl_FUNC_MODF.
13598
13599 2011-10-05  Bruno Haible  <bruno@clisp.org>
13600
13601         Tests for module 'fmodf'.
13602         * modules/fmodf-tests: New file.
13603         * tests/test-fmodf.c: New file.
13604
13605         New module 'fmodf'.
13606         * lib/math.in.h (fmodf): New declaration.
13607         * lib/fmodf.c: New file.
13608         * m4/fmodf.m4: New file.
13609         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
13610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
13611         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
13612         * modules/fmodf: New file.
13613         * tests/test-math-c++.cc: Check the declaration of fmodf.
13614         * doc/posix-functions/fmodf.texi: Mention the new module.
13615
13616         fmod: Use a .m4 file.
13617         * m4/fmod.m4: New file.
13618         * modules/fmod (Files): Add it.
13619         (configure.ac): Just invoke gl_FUNC_FMOD.
13620
13621 2011-10-05  Bruno Haible  <bruno@clisp.org>
13622
13623         Tests for module 'fabsf'.
13624         * modules/fabsf-tests: New file.
13625         * tests/test-fabsf.c: New file.
13626
13627         New module 'fabsf'.
13628         * lib/math.in.h (fabsf): New declaration.
13629         * lib/fabsf.c: New file.
13630         * m4/fabsf.m4: New file.
13631         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
13632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
13633         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
13634         * modules/fabsf: New file.
13635         * tests/test-math-c++.cc: Check the declaration of fabsf.
13636         * doc/posix-functions/fabsf.texi: Mention the new module.
13637
13638         fabs: Use a .m4 file.
13639         * m4/fabs.m4: New file.
13640         * modules/fabs (Files): Add it.
13641         (configure.ac): Just invoke gl_FUNC_FABS.
13642
13643 2011-10-05  Jim Meyering  <meyering@redhat.com>
13644
13645         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
13646         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
13647         ls -lL regression introduced in coreutils-8.12, it does so at the
13648         cost of an additional stat call in the common case.  Besides, now
13649         that the kernel change that prompted commit 95f7c57f has been reverted
13650         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
13651         we have no use for commit 95f7c57f, "file-has-acl: use
13652         acl_extended_file_nofollow if available".
13653
13654 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
13655
13656         file-has-acl: revert unintended change in behavior of ls -L
13657         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
13658         derived from...
13659         (file_has_acl): ...code here.  Call it.
13660         This problem was introduced with 2011-07-22 commit 95f7c57f,
13661         "file-has-acl: use acl_extended_file_nofollow if available".
13662         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
13663
13664 2011-10-03  Bruno Haible  <bruno@clisp.org>
13665
13666         poll: Avoid link errors on MSVC.
13667         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
13668         * modules/poll (Depends-on): Add sockets.
13669         (Link): New section.
13670         * NEWS: Mention the change.
13671         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
13672         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
13673         $(LIB_POLL) instead of $(LIBSOCKET).
13674
13675 2011-10-03  Bruno Haible  <bruno@clisp.org>
13676
13677         sys_select tests: Fix link error on MSVC 9.
13678         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
13679         with $(LIB_SELECT) instead of $(LIBSOCKET).
13680
13681 2011-10-03  Bruno Haible  <bruno@clisp.org>
13682
13683         sys_select: Fix compilation error on mingw.
13684         * lib/sys_select.in.h: On native Windows, include <io.h>.
13685
13686 2011-10-03  Bruno Haible  <bruno@clisp.org>
13687
13688         wmemset: Support for MSVC.
13689         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
13690         whether wmemset() exists.
13691
13692 2011-10-03  Bruno Haible  <bruno@clisp.org>
13693
13694         wmemmove: Support for MSVC.
13695         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
13696         whether wmemmove() exists.
13697
13698 2011-10-03  Bruno Haible  <bruno@clisp.org>
13699
13700         wmemcpy: Support for MSVC.
13701         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
13702         whether wmemcpy() exists.
13703
13704 2011-10-03  Bruno Haible  <bruno@clisp.org>
13705
13706         wmemcmp: Support for MSVC.
13707         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
13708         whether wmemcmp() exists.
13709
13710 2011-10-03  Bruno Haible  <bruno@clisp.org>
13711
13712         wmemchr: Support for MSVC.
13713         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
13714         whether wmemchr() exists.
13715
13716 2011-10-03  Bruno Haible  <bruno@clisp.org>
13717
13718         glthread/*, strsignal: Support for MSVC.
13719         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
13720         including <winsock.h> on MSVC 9.
13721         * lib/glthread/lock.h: Likewise.
13722         * lib/glthread/thread.h: Likewise.
13723         * lib/glthread/tls.h: Likewise.
13724         * lib/glthread/yield.h: Likewise.
13725         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
13726         if HAVE_UNISTD_H is false.
13727         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
13728
13729 2011-10-03  Bruno Haible  <bruno@clisp.org>
13730
13731         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
13732         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
13733         Set to 100000.
13734
13735 2011-10-03  Bruno Haible  <bruno@clisp.org>
13736
13737         acl: Fix specification.
13738         * lib/file-has-acl.c (file_has_acl): Fix specification.
13739
13740 2011-10-03  Bruno Haible  <bruno@clisp.org>
13741
13742         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
13743         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
13744         (compute_curr_prefix, shared_library_fullname,
13745         find_shared_library_fullname, get_shared_library_fullname, relocate):
13746         Use it together with PIC && INSTALLDIR.
13747         Reported by <jojelino@gmail.com>
13748         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
13749
13750 2011-10-01  Jim Meyering  <meyering@redhat.com>
13751
13752         maint.mk: adjust a release-related rule not to require use of gzip
13753         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
13754         Instead, check each file in $(DIST_ARCHIVES).  This is better for
13755         projects that build only .tar.xz files.  Also fix an erroneous test.
13756
13757         test-linkat: don't leave behind a temporary file
13758         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
13759         Otherwise, coreutils' "make distcheck" would fail with this:
13760           Only in /c/cu/tests/torture/coreutils/test/\
13761             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
13762           make[2]: *** [my-distcheck] Error 1
13763
13764         float, math: add omitted file
13765         * lib/itold.c: Add file, required for yesterday's float change.
13766
13767 2011-10-01  Bruno Haible  <bruno@clisp.org>
13768
13769         isinf: Fix for OpenBSD/x86.
13770         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
13771         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
13772         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
13773
13774 2011-10-01  Bruno Haible  <bruno@clisp.org>
13775
13776         isfinite: Fix syntax error in configure test.
13777         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
13778
13779         isfinite: Fix typo.
13780         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
13781         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
13782
13783 2011-10-01  Bruno Haible  <bruno@clisp.org>
13784
13785         nonblocking tests: Fix test failure on Linux/IA-64.
13786         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
13787         Set to 270000.
13788
13789 2011-10-01  Bruno Haible  <bruno@clisp.org>
13790
13791         mkfifoat tests: Fix a test failure on mingw.
13792         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
13793         with error ENOSYS.
13794
13795 2011-09-30  Bruno Haible  <bruno@clisp.org>
13796
13797         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
13798         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
13799         'long double'. Set REPLACE_ITOLD.
13800         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
13801         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
13802         * lib/itold.c: New file.
13803         * modules/float (Files): Add lib/itold.c.
13804         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
13805         (Makefile.am): Substitute REPLACE_ITOLD.
13806         * modules/math (Depends-on): Add float.
13807         (Makefile.am): Substitute REPLACE_ITOLD.
13808         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
13809         * doc/posix-headers/math.texi: Likewise.
13810         * doc/posix-functions/logl.texi: Likewise.
13811
13812 2011-09-30  Bruno Haible  <bruno@clisp.org>
13813
13814         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
13815         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
13816         Set to 140000.
13817
13818 2011-09-30  Bruno Haible  <bruno@clisp.org>
13819
13820         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
13821         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
13822         invocation, say "right after AC_PROG_CC_STDC", not "right after
13823         AC_PROG_CC".
13824         Reported by Gary V. Vaughan <gary@gnu.org>.
13825
13826 2011-09-30  Bruno Haible  <bruno@clisp.org>
13827
13828         Centralize C99 requirement.
13829         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
13830         * modules/stdarg (configure.ac-early): Invoke it instead of
13831         AC_PROG_CC_STDC.
13832         Reported by Gary V. Vaughan and Paul Eggert.
13833
13834 2011-09-29  Bruno Haible  <bruno@clisp.org>
13835
13836         float: Fix LDBL_MAX value on Linux/PowerPC.
13837         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
13838         on Linux/PowerPC.
13839         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
13840         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
13841         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
13842         platform.
13843         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
13844
13845 2011-09-29  Bruno Haible  <bruno@clisp.org>
13846
13847         doc: Improve doc about gl_EARLY.
13848         * doc/gnulib-tool.texi (Initial import): Mention where to place an
13849         AC_PROG_CC_STDC invocation.
13850         Reported by Gary V. Vaughan <gary@gnu.org>.
13851
13852 2011-09-28  Bruno Haible  <bruno@clisp.org>
13853
13854         fgetc, fputc, fread, fwrite tests: Fix link error.
13855         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
13856         on non-MSVC platforms.
13857         * tests/test-fputc.c (main): Likewise.
13858         * tests/test-fread.c (main): Likewise.
13859         * tests/test-fwrite.c (main): Likewise.
13860         Reported by Jim Meyering.
13861
13862 2011-09-27  Bruno Haible  <bruno@clisp.org>
13863
13864         fputc, fwrite tests: Avoid test failure on MSVC.
13865         * tests/test-fgetc.c: Include msvc-inval.h.
13866         (main): Invoke gl_msvc_inval_ensure_handler.
13867         * tests/test-fputc.c: Include msvc-inval.h.
13868         (main): Invoke gl_msvc_inval_ensure_handler.
13869         * tests/test-fread.c: Include msvc-inval.h.
13870         (main): Invoke gl_msvc_inval_ensure_handler.
13871         * tests/test-fwrite.c: Include msvc-inval.h.
13872         (main): Invoke gl_msvc_inval_ensure_handler.
13873         * modules/fgetc-tests (Depends-on): Add msvc-inval.
13874         * modules/fputc-tests (Depends-on): Likewise.
13875         * modules/fread-tests (Depends-on): Likewise.
13876         * modules/fwrite-tests (Depends-on): Likewise.
13877
13878 2011-09-27  Bruno Haible  <bruno@clisp.org>
13879
13880         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
13881         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
13882         (raise): Remove older, duplicated declaration.
13883         (_gl_raise_SIGPIPE): New declaration.
13884         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
13885         (rpl_raise): Remove function.
13886         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
13887         a gnulib-defined SIGPIPE here.
13888         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
13889         'sigprocmask' has detected missing signal-blocking and the module
13890         'sigpipe' is enabled.
13891         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
13892
13893 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
13894
13895         base64-tests: avoid memory leak
13896         * tests/test-base64.c (main): Plug memory leak.
13897
13898         base32: new module
13899         * modules/base32: New module.
13900         * lib/base32.c: New file.
13901         * lib/base32.h: Likewise.
13902         * m4/base32.m4: Likewise.
13903         * modules/base32-tests: New test.
13904         * tests/test-base32.c: Likewise.
13905         * MODULES.html.sh (Misc): Mention it.
13906
13907 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13908
13909         gnulib: use more-standard license notice wording
13910         * gnulib-tool (func_emit_copyright_notice): When emitting a
13911         license notice into a file, use the standard wording as suggested
13912         by the current information for GNU maintainers, except say "file"
13913         rather than "program".  The new wording gives a license version
13914         number, which addresses an issue raised by Glenn Morris in
13915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
13916         * m4/onceonly.m4: Use that same wording here, too.
13917
13918         dup2: minor simplification
13919         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
13920         as lib/dup2.c no longer uses 'inline'.
13921
13922 2011-09-25  Bruno Haible  <bruno@clisp.org>
13923
13924         strings: Fix compilation error on MSVC.
13925         * lib/strings.in.h: Include <stddef.h> for size_t.
13926
13927 2011-09-25  Bruno Haible  <bruno@clisp.org>
13928
13929         fflush et al.: Document limitation on MSVC.
13930         * doc/posix-functions/fflush.texi: Document possible crash in handling
13931         mode other than DEFAULT_HANDLING.
13932         * doc/posix-functions/fgetc.texi: Likewise.
13933         * doc/posix-functions/fputc.texi: Likewise.
13934         * doc/posix-functions/fread.texi: Likewise.
13935         * doc/posix-functions/fwrite.texi: Likewise.
13936
13937 2011-09-25  Bruno Haible  <bruno@clisp.org>
13938
13939         msvc-inval: Allow three invalid parameter handling modes.
13940         * lib/msvc-inval.h: Don't include <stdlib.h> here.
13941         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
13942         macros.
13943         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
13944         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
13945         SANE_LIBRARY_HANDLING as a no-op.
13946         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
13947         <stdlib.h>.
13948         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
13949
13950 2011-09-25  Bruno Haible  <bruno@clisp.org>
13951
13952         msvc-inval: Make handler multithread-safe.
13953         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
13954         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
13955         declarations.
13956         (gl_msvc_inval_current): New declaration.
13957         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13958         Operate on the structure returned by gl_msvc_inval_current().
13959         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
13960         Remove varaiables.
13961         (tls_index, tls_initialized): New variables.
13962         (not_per_thread): New variable.
13963         (gl_msvc_inval_current): New function.
13964         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
13965         returned by gl_msvc_inval_current().
13966
13967 2011-09-25  Bruno Haible  <bruno@clisp.org>
13968
13969         msvc-inval: Install handler globally.
13970         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
13971         !_MSC_VER.
13972         (gl_msvc_invalid_parameter_handler): Remove declaration.
13973         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
13974         declarations.
13975         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
13976         Install the handler globally, don't uninstall it.
13977         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
13978         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
13979         currently valid, call RaiseException instead.
13980         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
13981         for !_MSC_VER.
13982
13983 2011-09-25  Bruno Haible  <bruno@clisp.org>
13984
13985         strerror_r-posix: Fix for MSVC 9.
13986         * lib/strerror_r.c (local_snprintf): New function.
13987         (snprintf): Define to local_snprintf, not to _snprintf.
13988
13989 2011-09-25  Bruno Haible  <bruno@clisp.org>
13990
13991         ftruncate: Support for MSVC 9.
13992         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
13993         (chsize_nothrow): New function.
13994         (chsize): Redefine as a macro.
13995         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
13996         * modules/ftruncate (Depends-on): Add msvc-inval.
13997
13998 2011-09-25  Bruno Haible  <bruno@clisp.org>
13999
14000         New module 'fstat'.
14001         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
14002         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
14003         * lib/fchdir.c (rpl_fstat): Remove function.
14004         * m4/fstat.m4: New file.
14005         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
14006         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
14007         declared.
14008         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
14009         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
14010         * modules/fstat: New file.
14011         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
14012         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
14013         is set.
14014         * doc/posix-functions/fstat.texi: Mention the new module and the
14015         problem on MSVC.
14016         * NEWS: Mention the change.
14017         * modules/acl (Depends-on): Add fstat.
14018         * modules/chdir-safer (Depends-on): Likewise.
14019         * modules/chown (Depends-on): Likewise.
14020         * modules/copy-file (Depends-on): Likewise.
14021         * modules/fchdir (Depends-on): Likewise.
14022         * modules/fdopendir (Depends-on): Likewise.
14023         * modules/fopen (Depends-on): Likewise.
14024         * modules/fts (Depends-on): Likewise.
14025         * modules/getcwd (Depends-on): Likewise.
14026         * modules/isapipe (Depends-on): Likewise.
14027         * modules/linkat (Depends-on): Likewise.
14028         * modules/lseek (Depends-on): Likewise.
14029         * modules/mkdir-p (Depends-on): Likewise.
14030         * modules/open (Depends-on): Likewise.
14031         * modules/openat (Depends-on): Likewise.
14032         * modules/read-file (Depends-on): Likewise.
14033         * modules/renameat (Depends-on): Likewise.
14034         * modules/utimens (Depends-on): Likewise.
14035
14036 2011-09-25  Bruno Haible  <bruno@clisp.org>
14037
14038         linkat: Fix compilation on MSVC 9.
14039         * lib/linkat.c: Don't include <stdint.h>.
14040
14041 2011-09-25  Bruno Haible  <bruno@clisp.org>
14042
14043         fclose: Support for MSVC 9.
14044         * lib/fclose.c: Include msvc-inval.h.
14045         (fclose_nothrow): New function.
14046         (rpl_fclose): Use it.
14047         * modules/fclose (Depends-on): Add msvc-inval.
14048         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
14049
14050 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
14051
14052         dup2: minor simplifications
14053         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
14054         that it's a performance win.
14055         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
14056         ! defined __CYGWIN__)" to "ifdef F_GETFL".
14057
14058 2011-09-24  Jim Meyering  <meyering@redhat.com>
14059
14060         test-futimens: avoid a warning from gcc -Wshadow
14061         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
14062         to avoid a shadowing warning.
14063
14064 2011-09-24  Bruno Haible  <bruno@clisp.org>
14065
14066         fdopen: Support for MSVC 9.
14067         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
14068         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
14069         * lib/fdopen.c: Include msvc-inval.h.
14070         (fdopen_nothrow): New function.
14071         (rpl_fdopen): Use it.
14072         * modules/fdopen (Depends-on): Add msvc-inval.
14073         * modules/fclose-tests (Depends-on): Add fdopen.
14074         * modules/fflush-tests (Depends-on): Likewise.
14075         * modules/fgetc-tests (Depends-on): Likewise.
14076         * modules/fputc-tests (Depends-on): Likewise.
14077         * modules/fread-tests (Depends-on): Likewise.
14078         * modules/freopen-tests (Depends-on): Likewise.
14079         * modules/fseeko-tests (Depends-on): Likewise.
14080         * modules/ftello-tests (Depends-on): Likewise.
14081         * modules/fwrite-tests  (Depends-on): Likewise.
14082         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
14083
14084 2011-09-24  Bruno Haible  <bruno@clisp.org>
14085
14086         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
14087         * modules/fgetc-tests (Depends-on): Add unistd.
14088         * modules/fputc-tests (Depends-on): Likewise.
14089         * modules/fread-tests (Depends-on): Likewise.
14090         * modules/fwrite-tests (Depends-on): Likewise.
14091
14092 2011-09-24  Bruno Haible  <bruno@clisp.org>
14093
14094         dup: Simplify autoconf test.
14095         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
14096         on gl_MSVC_INVAL's result.
14097
14098 2011-09-24  Bruno Haible  <bruno@clisp.org>
14099
14100         Tests for function fwrite().
14101         * modules/fwrite-tests: New file.
14102         * tests/test-fwrite.c: New file.
14103         * modules/stdio-tests (Depends-on): Add fwrite-tests.
14104
14105         Tests for function fread().
14106         * modules/fread-tests: New file.
14107         * tests/test-fread.c: New file.
14108         * modules/stdio-tests (Depends-on): Add fread-tests.
14109
14110         Activate fputc tests.
14111         * modules/stdio-tests (Depends-on): Add fputc-tests.
14112
14113         Enhance fgetc, fputc tests.
14114         * tests/test-fgetc.c (main): Also test the stream's error indicator.
14115         * tests/test-fputc.c (main): Likewise.
14116
14117 2011-09-24  Bruno Haible  <bruno@clisp.org>
14118
14119         write: Support for MSVC 9.
14120         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14121         is not 1.
14122         * lib/write.c (write_nothrow): New function.
14123         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
14124         not 1. Use write_nothrow.
14125         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
14126         invalid parameter handler.
14127         (gl_PREREQ_WRITE): New macro.
14128         * modules/write (Depends-on): Add msvc-inval.
14129         (configure.ac): Invoke gl_PREREQ_WRITE.
14130         * doc/posix-functions/write.texi: Mention the problem on MSVC.
14131
14132 2011-09-24  Bruno Haible  <bruno@clisp.org>
14133
14134         read: Fix last commit.
14135         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
14136
14137 2011-09-24  Bruno Haible  <bruno@clisp.org>
14138
14139         dup2: Fix last commit.
14140         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
14141         (rpl_dup2): Disable fcntl workaround on native Windows.
14142
14143         sigprocmask: Make code safer.
14144         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
14145         section that changes macro definitions for this compilation unit.
14146
14147 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14148
14149         dup2: clarify by coalescing Windows-specific material
14150         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
14151         "msvc-nothrow.h"' to the Windows-specific section, so that the
14152         Emacs source need not contain these include files.
14153         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
14154         Windows-specific fixes into this function rather than just the
14155         nothrow fix, as this shortens and clarifies the code.  Always
14156         define as a function, as that's a bit cleaner than having it be
14157         sometimes a function and sometimes a macro.
14158         (rpl_dup2): Move the Windows-specific stuff out of here and into
14159         ms_windows_dup2.  Don't protect the Haiku-related fix with
14160         "#if !defined __linux__", as the same code also works around
14161         a Linux kernel bug, and it doesn't add any system calls on any
14162         platform.  Add comment about FreeBSD 6.1.
14163
14164         sigprocmask: move #include directive
14165         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
14166         Windows-specific section, so that the Emacs source need not
14167         contain msvc-inval.h.
14168
14169 2011-09-23  Bruno Haible  <bruno@clisp.org>
14170
14171         read: Support for MSVC 9.
14172         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
14173         is not 1.
14174         * lib/read.c (read_nothrow): New function.
14175         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
14176         read_nothrow.
14177         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
14178         invalid parameter handler.
14179         (gl_PREREQ_READ): New macro.
14180         * modules/read (Depends-on): Add msvc-inval.
14181         (configure.ac): Invoke gl_PREREQ_READ.
14182         * doc/posix-functions/read.texi: Mention the problem on MSVC.
14183
14184 2011-09-23  Bruno Haible  <bruno@clisp.org>
14185
14186         close: Support for MSVC 9.
14187         * lib/close.c: Include <errno.h>, msvc-inval.h.
14188         (close_nothrow): New function.
14189         (rpl_close): Use it.
14190         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
14191         invalid parameter handler.
14192         * modules/close (Depends-on): Add msvc-inval.
14193         * modules/dup2-tests (Depends-on): Add close.
14194         * modules/dup3-tests (Depends-on): Likewise.
14195         * modules/fcntl-tests (Depends-on): Likewise.
14196         * modules/spawn-pipe-tests (Depends-on): Likewise.
14197         * modules/unistd-safer-tests (Depends-on): Likewise.
14198         * doc/posix-functions/close.texi: Mention the problem on MSVC.
14199
14200 2011-09-23  Bruno Haible  <bruno@clisp.org>
14201
14202         New module 'dup'.
14203         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
14204         Allow replacement.
14205         * lib/dup.c: New file.
14206         * lib/fchdir.c (rpl_dup): Remove function.
14207         * m4/dup.m4: New file.
14208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
14209         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
14210         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
14211         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
14212         * modules/dup: New file.
14213         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
14214         'dup' module is in use.
14215         * modules/fdopendir (Depends-on): Add dup.
14216         * modules/fdutimensat-tests (Depends-on): Likewise.
14217         * modules/fts (Depends-on): Likewise.
14218         * modules/futimens-tests (Depends-on): Likewise.
14219         * modules/posix_spawnp-tests (Depends-on): Likewise.
14220         * modules/unistd-safer-tests (Depends-on): Likewise.
14221         * modules/utimens-tests (Depends-on): Likewise.
14222         * doc/posix-functions/dup.texi: Mention the new module and the problem
14223         on MSVC.
14224
14225 2011-09-23  Bruno Haible  <bruno@clisp.org>
14226
14227         getdtablesize: Support for MSVC 9.
14228         * lib/getdtablesize.c: Include msvc-inval.h.
14229         (_setmaxstdio_nothrow): New function.
14230         (_setmaxstdio): Redefine it.
14231         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
14232         * modules/getdtablesize (Depends-on): Add msvc-inval.
14233         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
14234
14235 2011-09-23  Bruno Haible  <bruno@clisp.org>
14236
14237         signal-h: Rename from signal.
14238         * modules/signal-h: Renamed from modules/signal.
14239         * modules/pthread_sigmask (Depends-on): Update.
14240         * modules/raise (Depends-on): Likewise.
14241         * modules/sigaction (Depends-on): Likewise.
14242         * modules/sigpipe (Depends-on): Likewise.
14243         * modules/sigprocmask (Depends-on): Likewise.
14244         * modules/sys_select (Depends-on): Likewise.
14245         * modules/signal-h-tests: Renamed from modules/signal-tests.
14246         (Files, Depends-on, Makefile.am): Update.
14247         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
14248         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
14249         (Files, Makefile.am): Update.
14250         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
14251         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
14252         * modules/signal: New placeholder file.
14253         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
14254         * doc/posix-headers/signal.texi: Update.
14255         * NEWS: Mention the change.
14256
14257 2011-09-23  Bruno Haible  <bruno@clisp.org>
14258
14259         sigprocmask: Avoid crashes through signal() on MSVC 9.
14260         * lib/sigprocmask.c: Include msvc-inval.h.
14261         (signal_nothrow): New function.
14262         (signal): Redefine it.
14263         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
14264         * modules/sigprocmask (Depends-on): Add msvc-inval.
14265         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
14266
14267 2011-09-23  Bruno Haible  <bruno@clisp.org>
14268
14269         Tests for module 'raise'.
14270         * modules/raise-tests: New file.
14271         * tests/test-raise.c: New file.
14272
14273         raise: Support for MSVC.
14274         * lib/signal.in.h (raise): New declaration.
14275         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
14276         for native Windows platforms.
14277         * m4/raise.m4: New file.
14278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
14279         HAVE_RAISE, REPLACE_RAISE.
14280         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
14281         REPLACE_RAISE.
14282         * modules/raise (Status, Notice): Remove fields.
14283         (Files): Add m4/raise.m4.
14284         (Depends-on): Add signal, msvc-inval.
14285         (configure.ac): Use the common idioms.
14286         (Maintainer): Add me.
14287         * tests/test-signal-c++.cc: Check the signature of raise.
14288         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
14289
14290 2011-09-23  Bruno Haible  <bruno@clisp.org>
14291
14292         pipe2: Fix compilation on pre-C99 compilers.
14293         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
14294
14295 2011-09-23  Bruno Haible  <bruno@clisp.org>
14296
14297         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
14298         * lib/msvc-nothrow.h: New file.
14299         * lib/msvc-nothrow.c: New file.
14300         * m4/msvc-nothrow.m4: New file.
14301         * modules/msvc-nothrow: New file.
14302         * lib/dup2.c: Include msvc-nothrow.h.
14303         (rpl_dup2): No need to protect _get_osfhandle call here.
14304         * lib/accept4.c: Include msvc-nothrow.h.
14305         * lib/error.c: Likewise.
14306         * lib/fcntl.c: Likewise.
14307         * lib/lseek.c: Likewise.
14308         * lib/nonblocking.c: Likewise.
14309         * lib/poll.c: Likewise.
14310         * lib/read.c: Likewise.
14311         * lib/select.c: Likewise.
14312         * lib/sockets.h: Likewise.
14313         * lib/sockets.c: Likewise.
14314         * lib/stdio-read.c: Likewise.
14315         * lib/stdio-write.c: Likewise.
14316         * lib/write.c: Likewise.
14317         * lib/w32sock.h: Likewise.
14318         * lib/w32spawn.h: Likewise.
14319         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
14320         * lib/fsync.c: Likewise.
14321         * lib/isapipe.c: Likewise.
14322         * modules/dup2 (Depends-on): Add msvc-nothrow.
14323         * modules/accept4 (Depends-on): Likewise.
14324         * modules/error (Depends-on): Likewise.
14325         * modules/fcntl (Depends-on): Likewise.
14326         * modules/lseek (Depends-on): Likewise.
14327         * modules/nonblocking (Depends-on): Likewise.
14328         * modules/poll (Depends-on): Likewise.
14329         * modules/read (Depends-on): Likewise.
14330         * modules/select (Depends-on): Likewise.
14331         * modules/sockets (Depends-on): Likewise.
14332         * modules/sigpipe (Depends-on): Likewise.
14333         * modules/write (Depends-on): Likewise.
14334         * modules/accept (Depends-on): Likewise.
14335         * modules/bind (Depends-on): Likewise.
14336         * modules/connect (Depends-on): Likewise.
14337         * modules/gethostname (Depends-on): Likewise.
14338         * modules/getpeername (Depends-on): Likewise.
14339         * modules/getsockname (Depends-on): Likewise.
14340         * modules/getsockopt (Depends-on): Likewise.
14341         * modules/ioctl (Depends-on): Likewise.
14342         * modules/listen (Depends-on): Likewise.
14343         * modules/recv (Depends-on): Likewise.
14344         * modules/recvfrom (Depends-on): Likewise.
14345         * modules/send (Depends-on): Likewise.
14346         * modules/sendto (Depends-on): Likewise.
14347         * modules/setsockopt (Depends-on): Likewise.
14348         * modules/shutdown (Depends-on): Likewise.
14349         * modules/socket (Depends-on): Likewise.
14350         * modules/execute (Depends-on): Likewise.
14351         * modules/spawn-pipe (Depends-on): Likewise.
14352         * modules/flock (Depends-on): Likewise.
14353         * modules/fsync (Depends-on): Likewise.
14354         * modules/isapipe (Depends-on): Likewise.
14355         * tests/test-cloexec.c: Include msvc-nothrow.h.
14356         * tests/test-dup-safer.c: Likewise.
14357         * tests/test-dup2.c: Likewise.
14358         * tests/test-dup3.c: Likewise.
14359         * tests/test-fcntl.c: Likewise.
14360         * tests/test-pipe.c: Likewise.
14361         * tests/test-pipe2.c: Likewise.
14362         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
14363         * modules/unistd-safer-tests (Depends-on): Likewise.
14364         * modules/dup2-tests (Depends-on): Likewise.
14365         * modules/dup3-tests (Depends-on): Likewise.
14366         * modules/fcntl-tests (Depends-on): Likewise.
14367         * modules/pipe-posix-tests (Depends-on): Likewise.
14368         * modules/pipe2-tests (Depends-on): Likewise.
14369
14370 2011-09-23  Bruno Haible  <bruno@clisp.org>
14371
14372         dup2: Make code more maintainable.
14373         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
14374         (rpl_dup2): Use it.
14375         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
14376         * modules/dup2 (configure.ac): Invoke it.
14377         Reported by Paul Eggert.
14378
14379 2011-09-23  Bruno Haible  <bruno@clisp.org>
14380
14381         msvc-inval: Fix compilation error.
14382         * lib/msvc-inval.h: Include <excpt.h>.
14383
14384 2011-09-23  Bruno Haible  <bruno@clisp.org>
14385
14386         mkdir: Tweak for MSVC 9.
14387         * lib/sys_stat.in.h: Update comments.
14388         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
14389
14390         Tests for module 'chdir'.
14391         * modules/chdir-tests: New file.
14392         * tests/test-chdir.c: New file.
14393
14394         New module 'chdir'.
14395         * modules/chdir: New file.
14396         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
14397         (chdir): New declaration.
14398         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
14399         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
14400         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
14401         * tests/test-unistd-c++.cc: Check signature of chdir.
14402         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
14403         * modules/chdir-long (Depends-on): Add chdir.
14404         * modules/fchdir (Depends-on): Likewise.
14405         * modules/rename (Depends-on): Likewise.
14406         * modules/savewd (Depends-on): Likewise.
14407
14408         rmdir: Support for mingw, MSVC 9.
14409         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
14410         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
14411
14412         getcwd: Tweak for MSVC 9.
14413         * lib/unistd.in.h: Update comments.
14414         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
14415
14416 2011-09-22  Bruno Haible  <bruno@clisp.org>
14417
14418         strerror_r-posix: Avoid a link error on MSVC.
14419         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
14420         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
14421
14422 2011-09-22  Bruno Haible  <bruno@clisp.org>
14423
14424         select: Avoid link errors on MSVC.
14425         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
14426         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
14427         * modules/pselect (Link): Likewise.
14428         * NEWS: Mention the change.
14429         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
14430         test-select-stdin against $(LIB_SELECT).
14431         * modules/pselect-tests (Makefile.am): Link test-pselect against
14432         $(LIB_SELECT).
14433
14434 2011-09-22  Bruno Haible  <bruno@clisp.org>
14435
14436         select: Avoid compilation error on MSVC.
14437         * lib/select.c: Don't include <stdbool.h>.
14438
14439 2011-09-21  Bruno Haible  <bruno@clisp.org>
14440
14441         Consolidate all uses of PATH_MAX in *.m4 files.
14442         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
14443         macros.
14444         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
14445         and gl_PATHMAX_SNIPPET.
14446         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
14447         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14448         * modules/chdir-long (Files): Add m4/pathmax.m4.
14449         * modules/getcwd (Files): Likewise.
14450
14451 2011-09-21  Bruno Haible  <bruno@clisp.org>
14452
14453         ftruncate: Un-deprecate, concentrate on Win32 support.
14454         * modules/ftruncate (Status, Notice): Remove sections.
14455         (Depends-on): Add largefile.
14456         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
14457         non-mingw platforms.
14458         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
14459         include <io.h>.
14460         * modules/perror-tests (Depends-on): Add ftruncate.
14461         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
14462         'ftruncate' module.
14463
14464 2011-09-21  Bruno Haible  <bruno@clisp.org>
14465
14466         Add dependencies to new dirent related modules.
14467         * modules/opendir (Depends-on): Add closedir.
14468         * modules/getcwd (Depends-on): Add opendir, closedir.
14469         * modules/dirent-safer-tests (Depends-on): Likewise.
14470         * modules/fdopendir-tests (Depends-on): Likewise.
14471         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
14472         * modules/renameat-tests (Depends-on): Likewise.
14473
14474 2011-09-21  Bruno Haible  <bruno@clisp.org>
14475
14476         opendir: Avoid compilation error on mingw.
14477         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
14478         * modules/opendir (Depends-on): Add unistd.
14479
14480 2011-09-21  Bruno Haible  <bruno@clisp.org>
14481
14482         ftruncate tests: Avoid a test failure on mingw.
14483         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
14484
14485 2011-09-21  Bruno Haible  <bruno@clisp.org>
14486
14487         select tests: Avoid test failures on OSF/1 5.1 and mingw.
14488         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
14489         native Windows.
14490
14491 2011-09-21  Bruno Haible  <bruno@clisp.org>
14492
14493         New module 'fdopen'.
14494         * lib/stdio.in.h (fdopen): New declaration.
14495         * lib/fdopen.c: New file.
14496         * m4/fdopen.m4: New file.
14497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
14498         REPLACE_FDOPEN.
14499         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
14500         REPLACE_FDOPEN.
14501         * modules/fdopen: New file.
14502         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
14503         * tests/test-stdio-c++.cc: Check signature of fdopen.
14504         * doc/posix-functions/fdopen.texi: Mention the new module.
14505
14506 2011-09-21  Bruno Haible  <bruno@clisp.org>
14507
14508         unlockpt tests: Avoid test failure on NetBSD 5.1.
14509         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
14510         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
14511
14512 2011-09-21  Bruno Haible  <bruno@clisp.org>
14513
14514         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
14515         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
14516         * tests/test-getlogin_r.c (main): Likewise.
14517
14518 2011-09-20  Bruno Haible  <bruno@clisp.org>
14519
14520         time tests: Don't require pid_t.
14521         * doc/posix-headers/time.texi: Revert last change.
14522         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
14523         * tests/test-time.c: Comment out the check for pid_t.
14524
14525 2011-09-20  Bruno Haible  <bruno@clisp.org>
14526
14527         fsync tests: Avoid a test failure on mingw.
14528         * tests/test-fsync.c (main): Allow a failure with EIO.
14529
14530 2011-09-20  Bruno Haible  <bruno@clisp.org>
14531
14532         euidaccess: Update comments.
14533         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
14534
14535 2011-09-20  Bruno Haible  <bruno@clisp.org>
14536
14537         Ensure EBADF returns for socket functions on mingw.
14538         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
14539         descriptor is invalid.
14540         * lib/bind.c (rpl_bind): Likewise.
14541         * lib/connect.c (rpl_connect): Likewise.
14542         * lib/getpeername.c (rpl_getpeername): Likewise.
14543         * lib/getsockname.c (rpl_getsockname): Likewise.
14544         * lib/getsockopt.c (rpl_getsockopt): Likewise.
14545         * lib/listen.c (rpl_listen): Likewise.
14546         * lib/recv.c (rpl_recv): Likewise.
14547         * lib/recvfrom.c (rpl_recvfrom): Likewise.
14548         * lib/send.c (rpl_send): Likewise.
14549         * lib/sendto.c (rpl_sendto): Likewise.
14550         * lib/setsockopt.c (rpl_setsockopt): Likewise.
14551         * lib/shutdown.c (rpl_shutdown): Likewise.
14552
14553 2011-09-20  Bruno Haible  <bruno@clisp.org>
14554
14555         select tests: EBADF tests.
14556         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
14557         test_bad_fd): New functions.
14558         (test_function): Invoke also test_bad_fd.
14559
14560 2011-09-20  Bruno Haible  <bruno@clisp.org>
14561
14562         Tests for module 'posix_spawn_file_actions_addopen.
14563         * modules/posix_spawn_file_actions_addopen-tests: New file.
14564         * tests/test-posix_spawn_file_actions_addopen.c: New file.
14565
14566         Tests for module 'posix_spawn_file_actions_adddup2'.
14567         * modules/posix_spawn_file_actions_adddup2-tests: New file.
14568         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
14569
14570         Tests for module 'posix_spawn_file_actions_addclose'.
14571         * modules/posix_spawn_file_actions_addclose-tests: New file.
14572         * tests/test-posix_spawn_file_actions_addclose.c: New file.
14573
14574 2011-09-20  Bruno Haible  <bruno@clisp.org>
14575
14576         Tests for module 'unlockpt'.
14577         * modules/unlockpt-tests: New file.
14578         * tests/test-unlockpt.c: New file.
14579         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
14580
14581         Tests for module 'grantpt'.
14582         * modules/grantpt-tests: New file.
14583         * tests/test-grantpt.c: New file.
14584         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
14585
14586 2011-09-20  Bruno Haible  <bruno@clisp.org>
14587
14588         freopen tests: EBADF tests.
14589         * tests/test-freopen.c: Include errno.h, unistd.h.
14590         (main): Add tests for EBADF, commented out for the moment.
14591
14592         fclose tests: EBADF tests.
14593         * tests/test-fclose.c (main): Add tests for EBADF.
14594
14595         fflush tests: EBADF tests.
14596         * tests/test-fflush.c: Include errno.h, macros.h.
14597         (main): Add tests for EBADF.
14598
14599         ftello tests: EBADF tests.
14600         * tests/test-ftello4.sh: New file.
14601         * tests/test-ftello4.c: New file.
14602         * modules/ftello-tests (Files): Add them.
14603         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
14604
14605         fseeko tests: EBADF tests.
14606         * tests/test-fseeko4.sh: New file.
14607         * tests/test-fseeko4.c: New file.
14608         * modules/fseeko-tests (Files): Add them.
14609         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
14610
14611         Tests for function fputc().
14612         * modules/fputc-tests: New file.
14613         * tests/test-fputc.c: New file.
14614         * modules/stdio-tests (Depends-on): Add fputc-tests.
14615
14616         Tests for function fgetc().
14617         * modules/fgetc-tests: New file.
14618         * tests/test-fgetc.c: New file.
14619         * modules/stdio-tests (Depends-on): Add fgetc-tests.
14620
14621         Tests for function fdopen().
14622         * modules/fdopen-tests: New file.
14623         * tests/test-fdopen.c: New file.
14624         * modules/stdio-tests (Depends-on): Add fdopen-tests.
14625
14626         Tests for module 'vdprintf'.
14627         * modules/vdprintf-tests: New file.
14628         * tests/test-vdprintf.c: New file.
14629
14630         Tests for module 'dprintf'.
14631         * modules/dprintf-tests: New file.
14632         * tests/test-dprintf.c: New file.
14633
14634 2011-09-20  Bruno Haible  <bruno@clisp.org>
14635
14636         Tests for module 'ioctl'.
14637         * modules/ioctl-tests: New file.
14638         * tests/test-ioctl.c: New file.
14639
14640 2011-09-20  Bruno Haible  <bruno@clisp.org>
14641
14642         fcntl tests: EBADF tests.
14643         * tests/test-fcntl.c (main): Add more tests for EBADF.
14644
14645 2011-09-20  Bruno Haible  <bruno@clisp.org>
14646
14647         utimensat tests: EBADF tests.
14648         * tests/test-utimensat.c (main): Add tests for EBADF.
14649
14650         renameat tests: EBADF tests.
14651         * tests/test-renameat.c (main): Add tests for EBADF.
14652
14653         mkfifoat tests: EBADF tests.
14654         * tests/test-mkfifoat.c (main): Add tests for EBADF.
14655
14656         readlinkat tests: EBADF tests.
14657         * tests/test-readlinkat.c (main): Add tests for EBADF.
14658
14659         symlinkat tests: EBADF tests.
14660         * tests/test-symlinkat.c (main): Add tests for EBADF.
14661
14662         linkat tests: EBADF tests.
14663         * tests/test-linkat.c (main): Add tests for EBADF.
14664
14665         Tests for module 'faccessat'.
14666         * modules/faccessat-tests: New file.
14667         * tests/test-faccessat.c: New file.
14668
14669         fdopendir tests: EBADF tests.
14670         * tests/test-fdopendir.c (main): Add more tests for EBADF.
14671
14672         openat tests: EBADF tests.
14673         * tests/test-fchownat.c (main): Add tests for EBADF.
14674         * tests/test-fstatat.c (main): Likewise.
14675         * tests/test-mkdirat.c (main): Likewise.
14676         * tests/test-openat.c (main): Likewise.
14677         * tests/test-unlinkat.c (main): Likewise.
14678         * tests/test-fchmodat.c: New file.
14679         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
14680         (Makefile.am): Also run 'test-fchmodat'.
14681
14682 2011-09-20  Bruno Haible  <bruno@clisp.org>
14683
14684         utimens, futimens, fdutimensat tests: EBADF tests.
14685         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
14686
14687         Tests for function fstat().
14688         * modules/fstat-tests: New file.
14689         * tests/test-fstat.c: New file.
14690         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
14691
14692 2011-09-20  Bruno Haible  <bruno@clisp.org>
14693
14694         test-ttyname_r tests: EBADF tests.
14695         * tests/test-ttyname_r.c (main): Add tests for EBADF.
14696
14697         Tests for module 'isatty'.
14698         * modules/isatty-tests: New file.
14699         * tests/test-isatty.c: New file.
14700
14701         Tests for module 'write'.
14702         * modules/write-tests: New file.
14703         * tests/test-write.c: New file.
14704
14705         Tests for module 'read'.
14706         * modules/read-tests: New file.
14707         * tests/test-read.c: New file.
14708
14709         pwrite tests: EBADF tests.
14710         * tests/test-pwrite.c (main): Add tests for EBADF.
14711
14712         pread tests: EBADF tests.
14713         * tests/test-pread.c (main): Add tests for EBADF.
14714
14715         lseek tests: EBADF tests.
14716         * tests/test-lseek.c (main): Add more tests for EBADF.
14717
14718         Tests for module 'ftruncate'.
14719         * modules/ftruncate-tests: New file.
14720         * tests/test-ftruncate.sh: New file.
14721         * tests/test-ftruncate.c: New file.
14722
14723         fsync tests: EBADF tests.
14724         * tests/test-fsync.c (main): Add more tests for EBADF.
14725
14726         fdatasync tests: EBADF tests.
14727         * tests/test-fdatasync.c (main): Add more tests for EBADF.
14728
14729         Tests for module 'fchown'.
14730         * modules/fchown-tests: New file.
14731         * tests/test-fchown.c: New file.
14732
14733         Tests for module 'fchmod'.
14734         * modules/fchmod-tests: New file.
14735         * tests/test-fchmod.c: New file.
14736
14737         fchdir tests: EBADF tests.
14738         * tests/test-fchdir.c (main): Add more tests for EBADF.
14739
14740         dup2 tests: EBADF tests.
14741         * tests/test-dup2.c (main): Add more tests for EBADF.
14742
14743         Tests for module 'dup'.
14744         * modules/dup-tests: New file.
14745         * tests/test-dup.c: New file.
14746
14747         Tests for module 'close'.
14748         * modules/close-tests: New file.
14749         * tests/test-close.c: New file.
14750
14751 2011-09-20  Bruno Haible  <bruno@clisp.org>
14752
14753         Tests for module 'shutdown'.
14754         * modules/shutdown-tests: New file.
14755         * tests/test-shutdown.c: New file.
14756
14757         Tests for module 'setsockopt'.
14758         * modules/setsockopt-tests: New file.
14759         * tests/test-setsockopt.c: New file.
14760
14761         Tests for module 'sendto'.
14762         * modules/sendto-tests: New file.
14763         * tests/test-sendto.c: New file.
14764
14765         Tests for module 'send'.
14766         * modules/send-tests: New file.
14767         * tests/test-send.c: New file.
14768
14769         Tests for module 'recvfrom'.
14770         * modules/recvfrom-tests: New file.
14771         * tests/test-recvfrom.c: New file.
14772
14773         Tests for module 'recv'.
14774         * modules/recv-tests: New file.
14775         * tests/test-recv.c: New file.
14776
14777         Tests for module 'listen'.
14778         * modules/listen-tests: New file.
14779         * tests/test-listen.c: New file.
14780
14781         Tests for module 'getsockopt'.
14782         * modules/getsockopt-tests: New file.
14783         * tests/test-getsockopt.c: New file.
14784
14785         Tests for module 'getsockname'.
14786         * modules/getsockname-tests: New file.
14787         * tests/test-getsockname.c: New file.
14788
14789         Tests for module 'getpeername'.
14790         * modules/getpeername-tests: New file.
14791         * tests/test-getpeername.c: New file.
14792
14793         Tests for module 'connect'.
14794         * modules/connect-tests: New file.
14795         * tests/test-connect.c: New file.
14796
14797         Tests for module 'bind'.
14798         * modules/bind-tests: New file.
14799         * tests/test-bind.c: New file.
14800
14801         accept4 tests: Fix for native Windows.
14802         * tests/test-accept4.c: Include sockets.h.
14803         (main): Invoke gl_sockets_startup.
14804         * modules/accept4-tests (Depends-on): Add sockets.
14805
14806         accept tests: Fix for native Windows.
14807         * tests/test-accept.c: Include sockets.h.
14808         (main): Invoke gl_sockets_startup.
14809         * modules/accept-tests (Depends-on): Add sockets.
14810
14811 2011-09-19  Bruno Haible  <bruno@clisp.org>
14812
14813         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
14814         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
14815         do...while(0).
14816         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
14817         Suggested by Paul Eggert.
14818
14819 2011-09-19  Bruno Haible  <bruno@clisp.org>
14820
14821         sched: Ensure pid_t is defined.
14822         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
14823         not define pid_t.
14824         * lib/sched.in.h: Include <sys/types.h>.
14825         * doc/posix-headers/sched.texi: Mention the pid_t problem.
14826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14827
14828 2011-09-19  Bruno Haible  <bruno@clisp.org>
14829
14830         msvc-inval: Ensure the entire expansion is a single statement.
14831         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
14832         of braces.
14833
14834 2011-09-19  Jim Meyering  <meyering@redhat.com>
14835
14836         tests: use printf, not echo in init.sh's warn_ function
14837         * tests/init.sh (warn_): Use printf, not echo.  The latter would
14838         misbehave when given strings containing a backslash or starting
14839         with e.g., -n.  James Youngman suggested setting IFS.
14840
14841 2011-09-19  Eric Blake  <eblake@redhat.com>
14842
14843         futimens: enhance test
14844         * tests/test-futimens.h (test_futimens): Also check for EBADF on
14845         closed non-negative fd.
14846
14847         date: accept 'hence' as opposite of 'ago'
14848         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
14849         * tests/test-parse-datetime.c (main): Enhance test.
14850         Suggested by Jesse Wilson.
14851
14852 2011-09-19  Jim Meyering  <meyering@redhat.com>
14853
14854         getcwd: don't fail in a deep directory on a system without openat
14855         Before this change, getcwd would fail when called from a directory
14856         of depth PATH_MAX / 3 or greater.  That was due to the fact that
14857         the non-openat implementation used "..", "../..", "../../..", etc.
14858         to access ancestor directories.  With too many, that string would
14859         be longer than PATH_MAX.
14860         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
14861         using gnulib's openat replacement.
14862         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
14863         we're using the replacement function.
14864
14865 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
14866
14867         maint.mk: avoid warnings from perl about missing files
14868         * top/maint.mk (def_sym_regex): Ignore files listed in
14869         $(gl_other_headers_) that do not exist, say because a project
14870         does not use a corresponding module.
14871
14872 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
14873
14874         stat: use pathmax.h only if needed
14875         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
14876         This is better for Emacs, which does not have a mingw port and
14877         therefore can avoid the pathmax module.
14878
14879         utimens: remove dependency on dup2
14880         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
14881         to work around the Linux kernel bug.
14882         * modules/utimens (Depends-on): Remove dup2.
14883
14884 2011-09-18  Bruno Haible  <bruno@clisp.org>
14885
14886         inet_ntop, inet_pton: Look for it also in libresolv.
14887         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
14888         libnsl, search for it in libresolv.
14889         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
14890         Needed on Solaris 7.
14891
14892 2011-09-18  Bruno Haible  <bruno@clisp.org>
14893
14894         accept, accept4 tests: Avoid link error on Solaris.
14895         * modules/accept-tests (Makefile.am): Link test-accept against
14896         $(LIBSOCKET).
14897         * modules/accept4-tests (Makefile.am): Link test-accept4 against
14898         $(LIBSOCKET).
14899
14900         accept4: Avoid link error on Solaris.
14901         * modules/accept4 (Link): New section.
14902
14903         socket functions: Avoid link errors on Solaris.
14904         * modules/accept (Depends-on): Add socketlib.
14905         (Link): New section.
14906         * modules/bind (Depends-on): Add socketlib.
14907         (Link): New section.
14908         * modules/connect (Depends-on): Add socketlib.
14909         (Link): New section.
14910         * modules/getpeername (Depends-on): Add socketlib.
14911         (Link): New section.
14912         * modules/getsockname (Depends-on): Add socketlib.
14913         (Link): New section.
14914         * modules/getsockopt (Depends-on): Add socketlib.
14915         (Link): New section.
14916         * modules/listen (Depends-on): Add socketlib.
14917         (Link): New section.
14918         * modules/recv (Depends-on): Add socketlib.
14919         (Link): New section.
14920         * modules/recvfrom (Depends-on): Add socketlib.
14921         (Link): New section.
14922         * modules/send (Depends-on): Add socketlib.
14923         (Link): New section.
14924         * modules/sendto (Depends-on): Add socketlib.
14925         (Link): New section.
14926         * modules/setsockopt (Depends-on): Add socketlib.
14927         (Link): New section.
14928         * modules/shutdown (Depends-on): Add socketlib.
14929         (Link): New section.
14930         * modules/socket (Depends-on): Add socketlib.
14931         (Link): New section.
14932
14933 2011-09-18  Bruno Haible  <bruno@clisp.org>
14934
14935         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
14936         * tests/test-ptsname.c (main): Terminate the test if it takes longer
14937         than 5 seconds.
14938         * modules/ptsname-tests (configure.ac): Test for alarm.
14939
14940 2011-09-18  Bruno Haible  <bruno@clisp.org>
14941
14942         posix_spawn_file_actions_add*: Fix module dependencies.
14943         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
14944         posix_spawn_file_actions_init.
14945         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
14946         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
14947
14948 2011-09-18  Bruno Haible  <bruno@clisp.org>
14949
14950         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
14951         * tests/test-rename.h (test_rename): Allow error code EEXIST.
14952         * tests/test-renameat.c (main): Likewise.
14953
14954 2011-09-18  Bruno Haible  <bruno@clisp.org>
14955
14956         Tests for module 'accept4'.
14957         * modules/accept4-tests: New file.
14958         * tests/test-accept4.c: New file.
14959
14960 2011-09-18  Bruno Haible  <bruno@clisp.org>
14961
14962         Tests for module 'accept'.
14963         * modules/accept-tests: New file.
14964         * tests/test-accept.c: New file.
14965
14966 2011-09-18  Bruno Haible  <bruno@clisp.org>
14967
14968         dup2: Support for MSVC.
14969         * lib/dup2.c: Include msvc-inval.h.
14970         (rpl_dup2): Handle invalid parameter notifications during dup2 and
14971         _get_osfhandle calls.
14972         * modules/dup2 (Depends-on): Add msvc-inval.
14973         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
14974
14975         New module 'msvc-inval'.
14976         * lib/msvc-inval.h: New file.
14977         * lib/msvc-inval.c: New file.
14978         * m4/msvc-inval.m4: New file.
14979         * modules/msvc-inval: New file.
14980
14981 2011-09-17  Bruno Haible  <bruno@clisp.org>
14982
14983         Tests for module 'pclose'.
14984         * modules/pclose-tests: New file.
14985
14986         New module 'pclose'.
14987         * lib/stdio.in.h (pclose): New declaration.
14988         * lib/pclose.c: New file.
14989         * m4/pclose.m4: New file.
14990         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
14991         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
14992         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
14993         * modules/pclose: New file.
14994         * modules/popen-tests (Depends-on): Add pclose.
14995         * modules/popen-safer-tests (Depends-on): Likewise.
14996         * doc/posix-functions/pclose.texi: Mention the new module.
14997
14998 2011-09-17  Bruno Haible  <bruno@clisp.org>
14999
15000         popen: Support for MSVC.
15001         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
15002         * lib/popen.c (popen): Provide alternate definition for native Windows.
15003         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
15004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
15005         * modules/popen (Depends-on, configure.ac): Update condition.
15006         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
15007         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
15008         fixed.
15009
15010 2011-09-17  Bruno Haible  <bruno@clisp.org>
15011
15012         isnanl, isnand, isnanf: Work around MSVC bug.
15013         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
15014
15015 2011-09-17  Bruno Haible  <bruno@clisp.org>
15016
15017         sys_socket tests: Fix recent mistake.
15018         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
15019
15020 2011-09-17  Bruno Haible  <bruno@clisp.org>
15021
15022         putenv: Support for MSVC.
15023         * modules/putenv (Depends-on): Add environ.
15024         * lib/putenv.c (environ): Disable declaration.
15025         * lib/unistd.in.h: Update comment.
15026
15027 2011-09-17  Bruno Haible  <bruno@clisp.org>
15028
15029         math: Avoid macro redefinition warnings on MSVC.
15030         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
15031         Undefine before redefining.
15032
15033 2011-09-17  Bruno Haible  <bruno@clisp.org>
15034
15035         doc: Mention functions which are declared as macros.
15036         * doc/posix-functions/*[fl].texi: Mention that some functions are
15037         defined as macros with arguments only.
15038
15039 2011-09-17  Bruno Haible  <bruno@clisp.org>
15040
15041         Add dependencies to new dirent related modules.
15042         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
15043         * modules/fts (Depends-on): Likewise.
15044         * modules/glob (Depends-on): Likewise.
15045         * modules/savedir (Depends-on): Likewise.
15046         * modules/scandir (Depends-on): Likewise.
15047         * modules/dirent-safer (Depends-on): Add opendir, closedir.
15048         * modules/fdopendir (Depends-on): Add opendir.
15049
15050 2011-09-17  Bruno Haible  <bruno@clisp.org>
15051
15052         inet_pton: Support for MSVC on Windows Vista or newer.
15053         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
15054         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
15055         HAVE_DECL_INET_PTON is defined.
15056         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
15057         On platforms with <winsock2.h>, test whether inet_pton is declared in
15058         <ws2tcpip.h>. If so, arrange to replace it.
15059         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
15060         REPLACE_INET_PTON.
15061         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
15062         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
15063         (Depends-on, configure.ac): Update condition.
15064         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
15065
15066 2011-09-17  Bruno Haible  <bruno@clisp.org>
15067
15068         inet_ntop: Support for MSVC on Windows Vista or newer.
15069         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
15070         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
15071         HAVE_DECL_INET_NTOP is defined.
15072         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
15073         On platforms with <winsock2.h>, test whether inet_ntop is declared in
15074         <ws2tcpip.h>. If so, arrange to replace it.
15075         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
15076         REPLACE_INET_NTOP.
15077         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
15078         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
15079         (Depends-on, configure.ac): Update condition.
15080         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
15081
15082 2011-09-16  Eric Blake  <eblake@redhat.com>
15083
15084         test-fsync: yet another enhancement
15085         * tests/test-fsync.c (main): Also test behavior on read-only text
15086         file.
15087
15088 2011-09-16  Bruno Haible  <bruno@clisp.org>
15089
15090         Enhance fsync, fdatasync tests.
15091         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
15092         * tests/test-fdatasync.c (main): Likewise.
15093
15094 2011-09-16  Bruno Haible  <bruno@clisp.org>
15095
15096         Support for MSVC compiler: Ensure mode_t gets defined.
15097         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
15098         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15099         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
15100         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
15101         * tests/test-fcntl-h.c: Check that mode_t is defined.
15102         * tests/test-sys_stat.c: Likewise.
15103         * tests/test-sys_types.c: Likewise.
15104         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
15105         * doc/posix-headers/sys_stat.texi: Likewise.
15106         * doc/posix-headers/sys_types.texi: Likewise.
15107
15108 2011-09-16  Bruno Haible  <bruno@clisp.org>
15109
15110         sys_stat: Support for MSVC.
15111         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
15112         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
15113         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
15114         MSVC.
15115
15116 2011-09-16  Bruno Haible  <bruno@clisp.org>
15117
15118         Support for MSVC compiler: Ensure off_t gets defined.
15119         * lib/unistd.in.h: Include <sys/types.h>.
15120         * tests/test-fcntl-h.c: Check that off_t is defined.
15121         * tests/test-sys_stat.c: Likewise.
15122         * tests/test-sys_types.c: Likewise.
15123
15124 2011-09-16  Eric Blake  <eblake@redhat.com>
15125
15126         fdatasync: port to Solaris
15127         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
15128         * modules/fdatasync (Link): Document it.
15129         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
15130
15131         fdatasync: port to MacOS X 10.7
15132         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
15133         declared.
15134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
15135         * modules/unistd (Makefile.am): Substitute it.
15136         * lib/unistd.in.h (fdatasync): Declare on MacOS.
15137         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
15138
15139         fdatasync: minor improvements
15140         * modules/fdatasync (Depends-on): Add condition for fsync.
15141         * lib/fdatasync.c (fdatasync): Add comment.
15142         * tests/test-unistd-c++.cc: Test fdatasync.
15143
15144         unistd: update refs to newer POSIX
15145         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
15146         Suggested by Bruno Haible.
15147
15148         fdatasync: new module
15149         * modules/fsync (Description): Document difference to fdatasync.
15150         * modules/fdatasync: New module.
15151         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
15152         * lib/fdatasync.c (fdatasync): Likewise.
15153         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
15154         defaults.
15155         * modules/unistd (Makefile.am): Set witnesses.
15156         * lib/unistd.in.h (fdatasync): Declare.
15157         * MODULES.html.sh: Document it.
15158         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
15159         * modules/fdatasync-tests: New test.
15160         * tests/test-fdatasync.c: Likewise.
15161
15162 2011-09-16  Eric Blake  <eblake@redhat.com>
15163
15164         test-fsync: enhance tests
15165         * modules/fsync-tests (Depends-on): Add errno, for mingw.
15166         * tests/test-fsync.c (main): Enhance test.
15167
15168 2011-09-15  Bruno Haible  <bruno@clisp.org>
15169
15170         Support for MSVC compiler: Ensure ssize_t gets defined.
15171         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
15172         * doc/posix-headers/stdio.texi: Likewise.
15173         * modules/stdio (Depends-on): Add ssize_t.
15174         * modules/sys_socket (Depends-on): Likewise.
15175         * modules/sys_types (Depends-on): Likewise.
15176         * modules/sys_uio (Depends-on): Likewise.
15177         * modules/unistd (Depends-on): Likewise.
15178         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
15179         * tests/test-sys_types.c: Check that ssize_t is defined.
15180
15181 2011-09-14  Bruno Haible  <bruno@clisp.org>
15182
15183         Avoid using #, the m4 comment starter character, near brackets.
15184         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
15185         delimiter character in sed expressions.
15186         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
15187         Suggested by Eric Blake.
15188
15189         Properly quote AC_CHECK_DECLS' 4th argument.
15190         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
15191         argument.
15192         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15193         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15194         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15195         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15196         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15197         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
15198         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
15199         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
15200         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
15201         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
15202         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
15203         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
15204         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15205         * m4/isinf.m4 (gl_ISINF): Likewise.
15206         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
15207         * m4/readutmp.m4 (gl_READUTMP): Likewise.
15208         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
15209         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15210         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15211         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15212         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15213         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15214         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
15215         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15216         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15217         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15218         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
15219         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
15220         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15221         Reported by Eric Blake.
15222
15223         Properly quote AC_CHECK_DECL's 4th argument.
15224         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
15225         argument.
15226         * m4/argp.m4 (gl_ARGP): Likewise.
15227         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
15228         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
15229         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
15230         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15231         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
15232         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
15233         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
15234         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
15235         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15236         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
15237         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
15238         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
15239         Reported by Eric Blake.
15240
15241 2011-09-14  Eric Blake  <eblake@redhat.com>
15242
15243         opendir: avoid compile warning
15244         * lib/opendir.c (includes): Always include errno.h.
15245         Reported by Tatsuro MATSUOKA.
15246
15247 2011-09-14  Jim Meyering  <meyering@redhat.com>
15248
15249         maint.mk: sc_tight_scope: propagate failure from sub-make
15250         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
15251         Reported by Martin von Gagern.
15252
15253 2011-09-13  Bruno Haible  <bruno@clisp.org>
15254
15255         tempname: Support for MSVC.
15256         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
15257         MSVC.
15258         * modules/tempname (Depends-on): Add fcntl-h.
15259
15260 2011-09-13  Bruno Haible  <bruno@clisp.org>
15261
15262         sys_time: Support for MSVC.
15263         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
15264         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
15265         include <winsock2.h>.
15266         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
15267         function declarations that collide with POSIX.
15268         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
15269         (Makefile.am): Substitute HAVE_WINSOCK2_H.
15270
15271 2011-09-13  Bruno Haible  <bruno@clisp.org>
15272
15273         stat: Support for MSVC.
15274         * lib/stat.c: Include pathmax.h.
15275         * modules/stat (Depends-on): Add pathmax.
15276
15277         pathmax: Support for native Windows.
15278         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
15279
15280 2011-09-12  Bruno Haible  <bruno@clisp.org>
15281
15282         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
15283         * lib/dirent.in.h (struct dirent): New type.
15284         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
15285         DT_WHT): New macros.
15286         (DIR): New type.
15287         (opendir, closedir): Declare only if the module 'opendir' is enabled.
15288         (readdir, rewinddir): New declarations.
15289         * lib/dirent-private.h: New file.
15290         * lib/opendir.c: New file.
15291         * lib/readdir.c: New file.
15292         * lib/rewinddir.c: New file.
15293         * lib/closedir.c: New file.
15294         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
15295         * m4/opendir.m4: New file.
15296         * m4/readdir.m4: New file.
15297         * m4/rewinddir.m4: New file.
15298         * m4/closedir.m4: New file.
15299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
15300         REPLACE_CLOSEDIR here.
15301         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
15302         readdir, rewinddir are declared.
15303         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
15304         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
15305         HAVE_REWINDDIR, HAVE_CLOSEDIR.
15306         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
15307         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
15308         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
15309         * modules/opendir: New file.
15310         * modules/readdir: New file.
15311         * modules/rewinddir: New file.
15312         * modules/closedir: New file.
15313         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
15314         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
15315         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
15316         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
15317         * NEWS: Mention the 'fchdir' change.
15318
15319 2011-09-11  Bruno Haible  <bruno@clisp.org>
15320
15321         asm-underscore.m4: Support for MSVC.
15322         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
15323         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
15324
15325 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
15326
15327         Doc about crypt functions.
15328         * doc/posix-functions/crypt.texi: Expand range of glibc versions
15329         needing for _GNU_SOURCE to get crypt.
15330         * doc/posix-functions/encrypt.texi: Likewise.
15331         * doc/posix-functions/setkey.texi: Likewise.
15332
15333 2011-09-11  Bruno Haible  <bruno@clisp.org>
15334
15335         doc: Update regarding MSVC 9.
15336         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
15337         tested".
15338         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15339         * doc/posix-headers/*.texi: Likewise.
15340         * doc/pastposix-functions/*.texi: Likewise.
15341         * doc/glibc-functions/*.texi: Likewise.
15342         * doc/glibc-headers/*.texi: Likewise.
15343
15344 2011-09-11  Bruno Haible  <bruno@clisp.org>
15345
15346         unistd et al.: Don't assume <unistd.h> exists.
15347         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
15348         does not exist.
15349         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
15350         exist. But include <stdlib.h>.
15351         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
15352         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
15353         symlink() does not exist.
15354         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
15355         include <io.h> instead.
15356         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
15357         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
15358         include <direct.h> instead.
15359         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15360         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
15361         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
15362         <io.h> instead.
15363         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
15364         correctly if the system does not have hard links.
15365         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
15366         <direct.h> instead.
15367         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
15368         it when looking for function declarations.
15369         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
15370         <direct.h> and <io.h> instead.
15371         * doc/posix-headers/unistd.texi: More details about MSVC problem.
15372
15373 2011-09-11  Bruno Haible  <bruno@clisp.org>
15374
15375         strcase: Support for MSVC.
15376         * modules/strcase (Status, Notice): Remove obsoletion mark.
15377         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
15378         * doc/posix-functions/strncasecmp.texi: Likewise.
15379
15380         strings: Don't assume <strings.h> exists.
15381         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
15382         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
15383         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
15384         * doc/posix-headers/strings.texi: Mention the MSVC problem.
15385
15386 2011-09-11  Bruno Haible  <bruno@clisp.org>
15387
15388         dirent: Don't assume <dirent.h> exists.
15389         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
15390         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
15391         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15392         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
15393
15394 2011-09-11  Bruno Haible  <bruno@clisp.org>
15395
15396         Fix wint_t on MSVC.
15397         * lib/wchar.in.h (wint_t): On MSVC, override it.
15398         * lib/wctype.in.h (wint_t): Likewise.
15399         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
15400         MSVC.
15401         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
15402         * doc/posix-headers/wctype.texi: Likewise.
15403
15404 2011-09-11  Bruno Haible  <bruno@clisp.org>
15405
15406         sys_types: Fix typo.
15407         * lib/sys_types.in.h: Fix typo in comment.
15408         Reported by Paul Eggert.
15409
15410         Support for MSVC compiler: Ensure size_t gets defined.
15411         * modules/strings (Depends-on): Add 'sys_types'.
15412         * modules/sys_uio (Depends-on): Likewise.
15413         * lib/sys_uio.in.h: Update comment.
15414
15415         C++ tests for module 'sys_types'.
15416         * modules/sys_types-c++-tests: New file.
15417         * tests/test-sys_types-c++.cc: New file.
15418
15419         Tests for module 'sys_types'.
15420         * modules/sys_types-tests: New file.
15421         * tests/test-sys_types.c: New file.
15422
15423         New module 'sys_types'.
15424         * lib/sys_types.in.h: New file.
15425         * m4/sys_types_h.m4: New file.
15426         * modules/sys_types: New file.
15427         * doc/posix-headers/sys_types.texi: Mention the new module and the
15428         size_t problem on MSVC 9.
15429
15430 2011-09-11  Bruno Haible  <bruno@clisp.org>
15431
15432         Support for MSVC compiler: Avoid division by a literal 0.
15433         * lib/math.in.h (NAN): Define through a function call also on MSVC.
15434         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
15435         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
15436         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
15437         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
15438         * tests/infinity.h: New file.
15439         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
15440         on MSVC.
15441         * tests/test-ceilf1.c: Include infinity.h.
15442         (main): Use Infinityf.
15443         * tests/test-ceil1.c: Include infinity.h.
15444         (main): Use Infinityd.
15445         * tests/test-ceill.c: Include infinity.h.
15446         (main): Use Infinityl.
15447         * tests/test-dprintf-posix.c: Include infinity.h.
15448         (test_function): Use Infinityd.
15449         * tests/test-floorf1.c: Include infinity.h.
15450         (main): Use Infinityf.
15451         * tests/test-floor1.c: Include infinity.h.
15452         (main): Use Infinityd.
15453         * tests/test-floorl.c: Include infinity.h.
15454         (main): Use Infinityl.
15455         * tests/test-fprintf-posix.c: Include infinity.h.
15456         (test_function): Use Infinityd.
15457         * tests/test-frexp.c: Include infinity.h.
15458         (main): Use Infinityd.
15459         * tests/test-frexpl.c: Include infinity.h.
15460         (main): Use Infinityl.
15461         * tests/test-isfinite.c: Include infinity.h.
15462         (test_isfinitef): Use Infinityf.
15463         (test_isfinited): Use Infinityd.
15464         (test_isfinitel): Use Infinityl.
15465         * tests/test-isinf.c: Include infinity.h.
15466         (test_isinff): Use Infinityf.
15467         (test_isinfd): Use Infinityd.
15468         (test_isinfl): Use Infinityl.
15469         * tests/test-isnan.c: Include infinity.h.
15470         (test_float): Use Infinityf.
15471         (test_double): Use Infinityd.
15472         (test_long_double): Use Infinityl.
15473         * tests/test-isnanf.h: Include infinity.h.
15474         (main): Use Infinityf.
15475         * tests/test-isnand.h: Include infinity.h.
15476         (main): Use Infinityd.
15477         * tests/test-isnanl.h: Include infinity.h.
15478         (main): Use Infinityl.
15479         * tests/test-ldexpl.c: Include infinity.h.
15480         (main): Use Infinityl.
15481         * tests/test-printf-posix.h: Include infinity.h.
15482         (test_function): Use Infinityd.
15483         * tests/test-roundf1.c: Include infinity.h.
15484         (main): Use Infinityf.
15485         * tests/test-round1.c: Include infinity.h.
15486         (main): Use Infinityd.
15487         * tests/test-roundl.c: Include infinity.h.
15488         (main): Use Infinityl.
15489         * tests/test-signbit.c: Include infinity.h.
15490         (test_signbitf): Use Infinityf.
15491         (test_signbitd): Use Infinityd.
15492         (test_signbitl): Use Infinityl.
15493         * tests/test-snprintf-posix.h: Include infinity.h.
15494         (test_function): Use Infinityd, Infinityl.
15495         * tests/test-sprintf-posix.h: Include infinity.h.
15496         (test_function): Use Infinityd, Infinityl.
15497         * tests/test-truncf1.c: Include infinity.h.
15498         (main): Use Infinityf.
15499         * tests/test-trunc1.c: Include infinity.h.
15500         (main): Use Infinityd.
15501         * tests/test-truncl.c: Include infinity.h.
15502         (main): Use Infinityl.
15503         * tests/test-vasnprintf-posix.c: Include infinity.h.
15504         (test_function): Use Infinityd, Infinityl.
15505         * tests/test-vasprintf-posix.c: Include infinity.h.
15506         (test_function): Use Infinityd, Infinityl.
15507         * modules/ceilf-tests (Files): Add tests/infinity.h.
15508         * modules/ceil-tests (Files): Likewise.
15509         * modules/ceill-tests (Files): Likewise.
15510         * modules/dprintf-posix-tests (Files): Likewise.
15511         * modules/floorf-tests (Files): Likewise.
15512         * modules/floor-tests (Files): Likewise.
15513         * modules/floorl-tests (Files): Likewise.
15514         * modules/fprintf-posix-tests (Files): Likewise.
15515         * modules/frexp-tests (Files): Likewise.
15516         * modules/frexp-nolibm-tests (Files): Likewise.
15517         * modules/frexpl-tests (Files): Likewise.
15518         * modules/frexpl-nolibm-tests (Files): Likewise.
15519         * modules/isfinite-tests (Files): Likewise.
15520         * modules/isinf-tests (Files): Likewise.
15521         * modules/isnan-tests (Files): Likewise.
15522         * modules/isnanf-tests (Files): Likewise.
15523         * modules/isnanf-nolibm-tests (Files): Likewise.
15524         * modules/isnand-tests (Files): Likewise.
15525         * modules/isnand-nolibm-tests (Files): Likewise.
15526         * modules/isnanl-tests (Files): Likewise.
15527         * modules/isnanl-nolibm-tests (Files): Likewise.
15528         * modules/ldexpl-tests (Files): Likewise.
15529         * modules/printf-posix-tests (Files): Likewise.
15530         * modules/roundf-tests (Files): Likewise.
15531         * modules/round-tests (Files): Likewise.
15532         * modules/roundl-tests (Files): Likewise.
15533         * modules/signbit-tests (Files): Likewise.
15534         * modules/snprintf-posix-tests (Files): Likewise.
15535         * modules/sprintf-posix-tests (Files): Likewise.
15536         * modules/truncf-tests (Files): Likewise.
15537         * modules/trunc-tests (Files): Likewise.
15538         * modules/truncl-tests (Files): Likewise.
15539         * modules/vasnprintf-posix-tests (Files): Likewise.
15540         * modules/vasprintf-posix-tests (Files): Likewise.
15541         * modules/vdprintf-posix-tests (Files): Likewise.
15542         * modules/vfprintf-posix-tests (Files): Likewise.
15543         * modules/vprintf-posix-tests (Files): Likewise.
15544         * modules/vsnprintf-posix-tests (Files): Likewise.
15545         * modules/vsprintf-posix-tests (Files): Likewise.
15546         * modules/xprintf-posix-tests (Files): Likewise.
15547
15548 2011-09-11  Bruno Haible  <bruno@clisp.org>
15549
15550         Ensure pid_t gets defined.
15551         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
15552         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15553         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
15554         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15555         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
15556         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15557         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
15558         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15559         * tests/test-fcntl-h.c: Check that pid_t is defined.
15560         * tests/test-sched.c: Likewise.
15561         * tests/test-termios.c: Likewise.
15562         * tests/test-time.c: Likewise.
15563         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
15564         * doc/posix-headers/signal.texi: Likewise.
15565         * doc/posix-headers/sys_types.texi: Likewise.
15566         * doc/posix-headers/time.texi: Likewise.
15567
15568 2011-09-11  Bruno Haible  <bruno@clisp.org>
15569
15570         acl: Fix compilation on Solaris 10 (older version).
15571         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
15572         of ACE_EVERYONE.
15573         * lib/set-mode-acl.c (qset_acl): Likewise.
15574         Reported by Christian Jullien <eligis@orange.fr>.
15575
15576 2011-09-10  Bruno Haible  <bruno@clisp.org>
15577
15578         iconv, unsetenv: Add support for MSVC compiler.
15579         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
15580         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
15581
15582 2011-09-10  Bruno Haible  <bruno@clisp.org>
15583
15584         *printf: Add support for MSVC compiler.
15585         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
15586         handles the exception caused by the %n directive. When cross-compiling,
15587         guess no on native Windows.
15588         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
15589         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
15590         emulate it through vsnprintf.
15591         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
15592         * doc/posix-functions/dprintf.texi: Update documentation regarding
15593         MSVC 9.
15594         * doc/posix-functions/fprintf.texi: Likewise.
15595         * doc/posix-functions/printf.texi: Likewise.
15596         * doc/posix-functions/snprintf.texi: Likewise.
15597         * doc/posix-functions/sprintf.texi: Likewise.
15598         * doc/posix-functions/swprintf.texi: Likewise.
15599         * doc/posix-functions/vdprintf.texi: Likewise.
15600         * doc/posix-functions/vfprintf.texi: Likewise.
15601         * doc/posix-functions/vprintf.texi: Likewise.
15602         * doc/posix-functions/vsnprintf.texi: Likewise.
15603         * doc/posix-functions/vsprintf.texi: Likewise.
15604         * doc/glibc-functions/asprintf.texi: Likewise.
15605         * doc/glibc-functions/obstack_printf.texi: Likewise.
15606         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
15607         * doc/glibc-functions/vasprintf.texi: Likewise.
15608
15609 2011-09-10  Bruno Haible  <bruno@clisp.org>
15610
15611         nocrash: Add support for native Windows.
15612         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
15613
15614 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
15615             Bruno Haible  <bruno@clisp.org>
15616
15617         absolute-header, include-next: Add support for MSVC compiler.
15618         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
15619         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
15620         directory separator in #line directives.
15621         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
15622         recognize also backslash as directory separator in #line directives.
15623
15624 2011-09-08  Jim Meyering  <meyering@redhat.com>
15625
15626         maint.mk: mark the post-release commit log with "maint: " prefix
15627         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
15628         one-line commit-log summary.
15629
15630 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
15631             Bruno Haible  <bruno@clisp.org>
15632
15633         Doc about crypt functions.
15634         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
15635         systems.
15636         * doc/posix-functions/encrypt.texi: Likewise.
15637         * doc/posix-functions/setkey.texi: Likewise.
15638
15639 2011-09-08  Simon Josefsson  <simon@josefsson.org>
15640
15641         * lib/gc.h: Fix copyright header.
15642
15643 2011-09-07  Bruno Haible  <bruno@clisp.org>
15644
15645         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
15646         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
15647         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
15648
15649 2011-09-07  Bruno Haible  <bruno@clisp.org>
15650
15651         openat: Work around compilation error with OSF/1 5.1 DTK cc.
15652         * lib/fopen.c: Use different syntax for include of <stdio.h>.
15653         * lib/freopen.c: Likewise.
15654         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
15655         * lib/lstat.c: Likewise.
15656         * lib/stat.c: Likewise.
15657         * lib/open.c: Use different syntax for include of <fcntl.h>.
15658         * lib/openat.c: Include fcntl.h again, explicitly.
15659
15660 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
15661
15662         parse-datetime: document the newly accepted format
15663         * doc/parse-datetime.texi (Combined date and time of day items):
15664         New section.
15665
15666 2011-09-06  Bruno Haible  <bruno@clisp.org>
15667
15668         acl: Fix a test failure on newer Solaris 10 with ZFS.
15669         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
15670         ENOSYS as no ACL.
15671         Reported by Jim Meyering.
15672
15673 2011-09-06  Bruno Haible  <bruno@clisp.org>
15674
15675         acl: Update for AIX >= 5.3 with NFS.
15676         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
15677         ENOSYS as no ACL.
15678
15679         acl: Fix a test failure on AIX >= 5.3 with NFS.
15680         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
15681         as no ACL.
15682
15683 2011-09-06  Bruno Haible  <bruno@clisp.org>
15684
15685         acl: Fix a test failure on IRIX 6.5 with NFS.
15686         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
15687         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
15688         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
15689         * lib/copy-acl.c (qcopy_acl): Likewise.
15690
15691 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15692
15693         openat: port to AIX 7.1 with large files
15694         AIX 7.1 does a "#define openat open64at" if large files are in use,
15695         so we can't simply #undef openat.  Use the orig_openat trick (similar
15696         to orig_open in lib/open.c) to work around the problem.  Problem
15697         reported by Kevin Brott for GNU tar, in the thread containing
15698         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
15699         * lib/openat.c (__need_system_fcntl_h): Define first.
15700         Include <fcntl.h> and <sys/types.h> before undefining.
15701         (orig_openat) [HAVE_OPENAT]: New inline function.
15702         (openat) [HAVE_OPENAT]: Do not undef.
15703         (rpl_openat): Use orig_openat, not openat.
15704
15705 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15706             Bruno Haible  <bruno@clisp.org>
15707
15708         acl: Avoid errors on NonStop Kernel.
15709         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
15710         ENOTSUP errors.
15711
15712 2011-09-05  Bruno Haible  <bruno@clisp.org>
15713
15714         acl: Clean up Solaris code.
15715         * lib/acl-internal.h: Remove no-op #if.
15716         * lib/file-has-acl.c: Likewise.
15717         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
15718         * lib/copy-acl.c (qcopy_acl): Likewise.
15719
15720 2011-09-05  Bruno Haible  <bruno@clisp.org>
15721
15722         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
15723         binaries built on the original Solaris 10.
15724         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
15725         trivial.
15726
15727 2011-09-05  Bruno Haible  <bruno@clisp.org>
15728
15729         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15730         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
15731         10.
15732         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
15733         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
15734         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
15735         instead of acl_get, facl_get, acl_set, facl_set.
15736
15737 2011-09-05  Bruno Haible  <bruno@clisp.org>
15738
15739         copy-file: Try unit tests on more file systems.
15740         * tests/test-copy-file-1.sh: New file.
15741         * tests/test-copy-file-2.sh: New file.
15742         * modules/copy-file-tests (Files): Add them.
15743         (Makefile.am): Add them to TESTS.
15744
15745         acl: Try unit tests on more file systems.
15746         * tests/test-file-has-acl-1.sh: New file.
15747         * tests/test-file-has-acl-2.sh: New file.
15748         * tests/test-set-mode-acl-1.sh: New file.
15749         * tests/test-set-mode-acl-2.sh: New file.
15750         * tests/test-copy-acl-1.sh: New file.
15751         * tests/test-copy-acl-2.sh: New file.
15752         * modules/acl-tests (Files): Add them.
15753         (Makefile.am): Add them to TESTS.
15754
15755 2011-09-04  Bruno Haible  <bruno@clisp.org>
15756
15757         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
15758         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
15759         10.
15760         (OLD_ALLOW, OLD_DENY): New macros.
15761         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
15762         ACE_ACCESS_ALLOWED_ACE_TYPE.
15763         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
15764         ACE_ACCESS_DENIED_ACE_TYPE.
15765         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
15766         (NEW_ACE_EXECUTE): Fix value.
15767         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
15768         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
15769         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
15770         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
15771         NEW_ACE_SYNCHRONIZE): New macros.
15772         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
15773         instead of acl_fromtext, acl_set, facl_set.
15774         Fixes a coreutils/tests/cp/perm failure.
15775
15776 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
15777
15778         openat: test for fstatat (..., 0) bug
15779         Further testing with tar suggests that fstatat (..., 0)
15780         does not work in general, on AIX 7.1; see
15781         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
15782         So, give up entirely on AIX 7.1's fstatat, and fall back on our
15783         replacement fstatat (which is what older AIX releases were using
15784         anyway).
15785         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
15786         use is now changed to orig_fstatat.  This was probably the right
15787         thing to do anyway.
15788         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
15789         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
15790         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
15791         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
15792         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
15793         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
15794         if the bug is found.
15795
15796         openat: test for fstatat (AT_FDCWD, ..., 0) bug
15797         This tests for another fstatat bug on AIX 7.1:
15798         fstatat (AT_FDCWD, ..., 0) does not work.  See
15799         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
15800         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
15801         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
15802         (rpl_fstatat): Adjust so that it works around either (or both)
15803         bugs if present.
15804         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
15805
15806 2011-09-03  Karl Berry  <karl@gnu.org>
15807
15808         * doc/regex.texi (Character Class Operators): Avoid literal ":"
15809         in index entries.
15810
15811 2011-09-02  Bruno Haible  <bruno@clisp.org>
15812
15813         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
15814         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
15815         values of AR, ARFLAGS, RANLIB.
15816         Reported by John W. Eaton <jwe@gnu.org> for Octave.
15817
15818 2011-09-02  Bruno Haible  <bruno@clisp.org>
15819
15820         Find 'ar' program that fits with --host argument.
15821         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
15822
15823 2011-09-02  Bruno Haible  <bruno@clisp.org>
15824
15825         tests: init.sh: Support any non-GNU diff.
15826         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
15827         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
15828         Solaris 8.
15829
15830 2011-09-02  Bruno Haible  <bruno@clisp.org>
15831
15832         tests: init.sh: work also with any non-GNU diff that supports -u
15833         * tests/init.sh: Relax check for diff -u support.
15834         Rather than checking for GNU diff via --version, simply check
15835         for support for -u itself.  Useful at least on OpenBSD 4.9,
15836         AIX 7.1, IRIX 6.5, and Solaris 10.
15837
15838 2011-09-01  Bruno Haible  <bruno@clisp.org>
15839
15840         strtoimax, strtoumax: Document problem on HP-UX 11.
15841         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
15842         * doc/posix-functions/strtoumax.texi: Likewise.
15843
15844 2011-09-01  Bruno Haible  <bruno@clisp.org>
15845
15846         strtoumax: Avoid link error on OSF/1 with DTK cc.
15847         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
15848         defined as a function.
15849         * modules/strtoumax (Depends-on, configure.ac): Test only whether
15850         strtoumax is defined, not whether it is declared.
15851
15852 2011-09-01  Bruno Haible  <bruno@clisp.org>
15853
15854         strtoimax: Avoid link error on OSF/1 with DTK cc.
15855         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
15856         defined as a function.
15857         * modules/strtoimax (Depends-on, configure.ac): Test only whether
15858         strtoimax is defined, not whether it is declared.
15859
15860 2011-09-01  Bruno Haible  <bruno@clisp.org>
15861
15862         imaxdiv: Avoid link error on OSF/1 with DTK cc.
15863         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
15864         as a function.
15865         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
15866         whether it is declared.
15867
15868 2011-09-01  Bruno Haible  <bruno@clisp.org>
15869
15870         imaxabs: Avoid link error on OSF/1 with DTK cc.
15871         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
15872         as a function.
15873         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
15874         whether it is declared.
15875
15876 2011-09-01  Bruno Haible  <bruno@clisp.org>
15877
15878         Tests for module 'strtoumax'.
15879         * modules/strtoumax-tests: New file.
15880         * tests/test-strtoumax.c: New file.
15881
15882         Tests for module 'strtoimax'.
15883         * modules/strtoimax-tests: New file.
15884         * tests/test-strtoimax.c: New file.
15885
15886         Tests for module 'imaxdiv'.
15887         * modules/imaxdiv-tests: New file.
15888         * tests/test-imaxdiv.c: New file.
15889
15890         Tests for module 'imaxabs'.
15891         * modules/imaxabs-tests: New file.
15892         * tests/test-imaxabs.c: New file.
15893
15894 2011-09-01  Bruno Haible  <bruno@clisp.org>
15895
15896         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
15897         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
15898         pthread_create.
15899
15900 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15901
15902         openat: work around AIX 7.1 fstatat issue
15903         This should fix the problem that was not properly fixed
15904         in the previous change, dated 2011-08-30.
15905         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
15906         __need_system_stat_h defined.
15907         (orig_fstatat) [HAVE_FSTATAT]: New function.
15908         (rpl_fstatat): Go back to the old way of doing things,
15909         except call orig_fstatat instead of fstatat.
15910         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
15911         Remove unnecessary check whether fstatat fills in st_size etc.
15912
15913 2011-09-01  Bruno Haible  <bruno@clisp.org>
15914
15915         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
15916         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
15917         just include the system's header.
15918
15919 2011-08-31  Jim Meyering  <meyering@redhat.com>
15920
15921         tests: avoid spurious assertion failure in test-float.c on ppc64
15922         * tests/test-float.c (test_long_double): Comment out an assertion,
15923         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
15924         with gcc-4.4.4.
15925
15926         maint: indent with spaces, not TABs
15927         I need to get in the habit of running gnulib's "make check".
15928         Both of these would have been caught.
15929         * m4/largefile.m4: Indent with spaces, not TABs.
15930         * lib/parse-datetime.y (iso_8601_time): Likewise.
15931         Spotted by Pádraig Brady.
15932
15933         test-parse-datetime.c: accommodate a relatively strict gcc warning
15934         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
15935         to avoid a warning from gcc's -Werror=missing-declarations.
15936         Insert a few spaces-before-funcall-parenthesis.
15937
15938 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
15939
15940         parse-datetime: accept ISO 8601 date and time rep with "T" separator
15941         The parser now accepts ISO 8601 date-time strings with "T" as the
15942         separator.  It has long parsed dates like "2004-02-29 16:21:42"
15943         with a space between the date and time strings.  Now it also parses
15944         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
15945         variants like "2004-02-29T16:21:42.333-07:00"
15946         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
15947         of day representation using the 'T' separator character.
15948         * doc/parse-datetime.texi (General date syntax): replace use of
15949         deprecated --iso-8601 option with --rfc-3339 in example of date
15950         command output formats that can be parsed.
15951         * tests/test-parse-datetime.c (tm_diff): New function, taken from
15952         lib/parse-datetime.y.
15953         (gmt_offset): New function.
15954         (main): Add additional test cases to validate ISO8601 extended
15955         date and time of day parsing.
15956
15957 2011-08-31  Bruno Haible  <bruno@clisp.org>
15958
15959         freopen: Documentation.
15960         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
15961         name.
15962         Reported by Claudio Bley <claudio.bley@gmail.com>.
15963
15964 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
15965
15966         freopen: Don't crash if the filename argument is NULL.
15967         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
15968         NULL.
15969
15970 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
15971
15972         openat: work around AIX 7.1 fstatat bug
15973         Problem reported by Kevin Brott for GNU tar, in the thread containing
15974         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
15975         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
15976         FSTATAT_ST_SIZE_ETC_BROKEN.
15977         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
15978         rpl_fstatat.
15979         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
15980         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
15981         AC_CHECK_FUNCS_ONCE for fstatat.
15982         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
15983         fchmodat, mkdirat, openat and unlinkat.
15984
15985 2011-08-30  Bruno Haible  <bruno@clisp.org>
15986
15987         Avoid endless recursions if config.h includes some header files.
15988         * lib/fopen.c (__need_FILE): Define already before including config.h.
15989         * lib/freopen.c (__need_FILE): Likewise.
15990         * lib/open.c (__need_system_fcntl_h): Likewise.
15991         * lib/stat.c (__need_system_sys_stat_h): Likewise.
15992         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
15993         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
15994
15995 2011-08-25  Karl Berry  <karl@gnu.org>
15996
15997         * config/srclist.txt (ylwrap): new try.
15998         * build-aux/ylwrap: new file.
15999
16000 2011-08-23  Bruno Haible  <bruno@clisp.org>
16001
16002         tmpdir: Use a good default directory on native Windows.
16003         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
16004         (P_tmpdir): Default to _P_tmpdir on native Windows.
16005         (path_search): On native Windows, try the value returned by GetTempPath
16006         before trying P_tmpdir.
16007         * modules/tmpdir (Depends-on): Add pathmax.
16008         Suggested by John Darrington <john@darrington.wattle.id.au>.
16009
16010 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
16011
16012         doc: fix typo in README-release
16013         * top/README-release: Capitalize first word of a sentence.
16014
16015 2011-08-19  Jim Meyering  <meyering@redhat.com>
16016
16017         fts: do not exhaust memory when processing million-entry directories
16018         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
16019         directory would require about 256*N bytes of memory.  Thus, it was
16020         easy to construct a directory too large to be processed by any of
16021         those tools.  With this change, fts' maximum memory utilization is
16022         now limited to around 30MB.
16023         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
16024         (fts_read): When we've processed the final entry (i.e., when
16025         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
16026         using the parent entry to read any remaining entries.  Dispatch
16027         depending on what fts_build returns:
16028         - NULL+stop, aka failure: stop
16029         - NULL otherwise: move up in the dir hierarchy
16030         - non-NULL: handle this new entry
16031         (fts_build): Declare and use new local, continue_readdir.
16032         Prepare to be called from fts_read, when the entries
16033         from a partially-read directory have just been exhausted.
16034         In that case, we'll skip the opendir and instead use the parent's
16035         fts_dirp and derive dir_fd from that.
16036         Finally, in the readdir loop, if we read max_entries entries,
16037         exit the loop ensuring *not* to call closedir.  This is required
16038         so that fts_dirp can be reused on a subsequent call.
16039         Prompted by Ben England's report of memory exhaustion in find
16040         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
16041
16042         maint: fts: move decl of `dp' down into while loop; split a long line
16043         * lib/fts.c (fts_build): No semantic change.
16044
16045         fts: add/use new struct member, fts_dirp
16046         We are about to use this to manage any directory with
16047         too many entries to read all of them into memory at once.
16048         To do that, we'll need to save the DIR* pointer in each
16049         affected FTSENT struct.
16050         * lib/fts_.h: Include <dirent.h>.
16051         (struct FTSENT) [fts_dirp]: New member.
16052         * lib/fts.c (closedir_and_clear): Define.
16053         Use it in place of closedir so that we are sure to
16054         clear the new fts_dirp member when done with it.
16055         (fts_alloc): Initialize the new member.
16056         (fts_lfree): Free, if needed.
16057
16058         maint: fts: give __opendir2 a new parameter and rename
16059         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
16060         than surreptitiously using sole caller's "dir_fd".
16061         (fts_opendir): Rename from __opendir2.
16062
16063         maint: fts.c: remove __opendir2's now-unused parameter, oflag
16064         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
16065
16066         maint: fts.c: correct off-by-one indentation
16067         * lib/fts.c (fts_build): Correct indentation, change style
16068         of a couple of block comments, and bracing style.
16069
16070         maint: fts.c: move __opendir2 #define "up" out of function body
16071         * lib/fts.c (__opendir2): Move "up".  No semantic change.
16072
16073         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
16074         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
16075         out for a long time and besides was useful only on BSD systems.
16076
16077 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
16078
16079         regex: port to Stratus OpenVOS
16080         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
16081         define to empty, rather than attempting nonportable optimizations.
16082         Problem reported by Paul Green in:
16083         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
16084         and fix suggested by Eric Blake in:
16085         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
16086
16087 2011-08-17  Eric Blake  <eblake@redhat.com>
16088
16089         getcwd: fix test failures on mingw
16090         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
16091         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
16092         test if long directory cannot be created, and allow mingw errno.
16093
16094         getcwd-lgpl: fix m4 to match relaxed test for BSD
16095         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
16096         (gl_FUNC_GETCWD_SIGNATURE): New macro.
16097         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
16098         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
16099         signature problem.
16100
16101         getcwd: fix compilation on mingw64
16102         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
16103         getcwd.
16104         Reported by Marc-André Lureau.
16105
16106         pipe2: silence compiler warning
16107         * lib/pipe2.c (pipe2): Hide label if it is not used.
16108
16109 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
16110
16111         relocatable-prog: fix link error
16112         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
16113         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
16114         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
16115         into modules/relocatable-lib without noticing that
16116         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
16117         also needs to build relocatable.c.
16118
16119 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
16120
16121         getaddrinfo: fix sh typo in gai_strerrorA decl checking
16122         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
16123         shell code: it contained a 'break' that was not in a loop.
16124         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
16125         via a shell-language loop; this may have been true in old Autoconf
16126         versions, but it's not true in Autoconf 2.68.  I found this bug
16127         when testing coreutils git on Solaris 8, whose shell complains
16128         about the syntax error.
16129
16130 2011-08-12  Simon Josefsson  <simon@josefsson.org>
16131
16132         * lib/base64.c: Fix comment to reference RFC 4648.
16133         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
16134         <gvtulder@gmail.com>.
16135
16136 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
16137
16138         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
16139
16140         po/Makefile.in.in: fix make -q problem
16141         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
16142         rule, since there's no file named 'check-macro-version' and its
16143         use as a file breaks make -q.
16144         (all): Don't depend on check-macro-version.
16145         (CHECK_MACRO_VERSION): New macro.
16146         (stamp-po): Use it.
16147
16148         configmake: fix make -q problem
16149         * modules/configmake (configmake.h): Update configmake.h's time stamp
16150         even if the file does not change.  Otherwise, 'make -q' fails.
16151         Problem reported by Simon Josefsson in
16152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
16153
16154 2011-08-11  Jim Meyering  <meyering@redhat.com>
16155
16156         git-version-gen: correct the advice in a comment
16157         * build-aux/git-version-gen: Correct comment.
16158         Don't recommend to list .tarball-version in .gitignore.
16159
16160 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16161
16162         base64: fix off-by-one buffer size bug
16163         Problem and (trivial) fix reported by Gijs van Tulder in
16164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
16165         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
16166         * tests/test-base64.c (main): Catch the bug.
16167
16168 2011-08-10  Eric Blake  <eblake@redhat.com>
16169
16170         closein: correct comments
16171         * lib/closein.c (close_stdin): Improve comments.
16172
16173 2011-08-09  Bruno Haible  <bruno@clisp.org>
16174
16175         More tests for 'fseeko'.
16176         * tests/test-fseeko3.c: New file, from Eric Blake.
16177         * tests/test-fseeko3.sh: New file.
16178         * modules/fseeko-tests (Files): Add them.
16179         (TESTS): Add test-fseeko3.sh.
16180         (check_PROGRAMS): Add test-fseeko3.
16181
16182 2011-08-09  Eric Blake  <eblake@redhat.com>
16183
16184         fseeko: remove unneeded hack
16185         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
16186
16187         fseeko: fix bug on glibc
16188         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
16189         Reported by John W. Eaton.
16190
16191 2011-08-08  Bruno Haible  <bruno@clisp.org>
16192
16193         unictype/base: Fix interoperability with preinstalled libunistring.
16194         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
16195         Reported by Simon Josefsson.
16196
16197 2011-08-08  Bruno Haible  <bruno@clisp.org>
16198
16199         iswblank: Detect declaration correctly.
16200         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
16201         AC_CHECK_DECLS invocation.
16202
16203 2011-08-08  Bruno Haible  <bruno@clisp.org>
16204
16205         tcgetsid: Detect declaration correctly.
16206         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
16207         AC_CHECK_DECLS invocation.
16208         Reported by Simon Josefsson.
16209
16210 2011-08-08  Eric Blake  <eblake@redhat.com>
16211
16212         largefile: fix typo that regressed large file support
16213         * modules/largefile (configure.ac-early): Fix section name.
16214
16215 2011-08-06  Karl Berry  <karl@gnu.org>
16216
16217         * MODULES.html.sh (func_all_files): _Noreturn is no longer
16218         a separate module.
16219
16220 2011-08-05  Simon Josefsson  <simon@josefsson.org>
16221
16222         openat: Fix warnings and commens when building unlinkat.c on Hurd.
16223         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
16224         get prototype for free.
16225
16226 2011-08-04  Bruno Haible  <bruno@clisp.org>
16227
16228         Tests for module 'pathmax'.
16229         * modules/pathmax-tests: New file.
16230         * tests/test-pathmax.c: New file.
16231
16232         canonicalize-lgpl: Support larger filenames on the Hurd.
16233         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
16234         Reported by Paul Eggert.
16235
16236         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
16237         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
16238         * lib/chdir-long.h: Include pathmax.h.
16239         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
16240         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
16241         (PATH_MAX): Remove code that is done by pathmax.h.
16242         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
16243         * lib/tmpfile.c: Add a comment.
16244         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
16245         * modules/chdir-long (Depends-on): Add pathmax.
16246         * modules/getcwd (Depends-on): Add pathmax.
16247         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
16248         is not defined.
16249         * doc/posix-headers/limits.texi: Mention the pathmax module.
16250         * NEWS: Mention the change.
16251
16252 2011-08-02  Bruno Haible  <bruno@clisp.org>
16253
16254         pthread_sigmask: Actually use results of gl_THREADLIB.
16255         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
16256         gl_THREADLIB, not gl_[]THREADLIB.
16257         Reported by Eric Blake.
16258
16259 2011-08-02  Jim Meyering  <meyering@redhat.com>
16260
16261         maint.mk: relax the default _gl_TS_function_match regexp
16262         * top/maint.mk (_gl_TS_function_match): Don't require at least one
16263         space between function name and "(" in an "extern" declaration.
16264         That would fail to match a decl with no space there: extern void foo();
16265
16266 2011-07-31  Iain Nicol  <iain@thenicols.net>
16267
16268         git-version-gen: document that EXTRA_DIST must include .version
16269         * build-aux/git-version-gen: In the how-to-use comment, document
16270         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
16271         will fail when run from an unpacked distribution tarball.
16272
16273 2011-08-01  Bruno Haible  <bruno@clisp.org>
16274
16275         wctype-h: Fix last change.
16276         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
16277         REPLACE_TOWLOWER to 0.
16278         Reported by Sam Steingold <sds@gnu.org>.
16279
16280 2011-07-31  Bruno Haible  <bruno@clisp.org>
16281
16282         frexpl: Update autoconf test.
16283         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
16284         according to changes of 2011-06-20.
16285
16286 2011-07-31  Bruno Haible  <bruno@clisp.org>
16287
16288         sys_utsname: Add support for Minix.
16289         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
16290         <sys/utsname.h>.
16291         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16292         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
16293
16294 2011-07-31  Bruno Haible  <bruno@clisp.org>
16295
16296         strings: Add support for Minix.
16297         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
16298         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
16299         * doc/posix-headers/strings.texi: Document the Minix problem.
16300
16301 2011-07-31  Bruno Haible  <bruno@clisp.org>
16302
16303         wctype-h: Add support for Minix.
16304         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
16305         REPLACE_TOWLOWER.
16306         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
16307         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
16308         REPLACE_ISWCNTRL.
16309
16310 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
16311
16312         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
16313         This is a performance improvement for 64-bit hosts: it causes the
16314         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
16315
16316 2011-07-31  Bruno Haible  <bruno@clisp.org>
16317
16318         stdioext: Add support for Minix.
16319         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
16320         * lib/fpurge.c (fpurge): Likewise.
16321         * lib/freadahead.c (freadahead): Likewise.
16322         * lib/freadable.c (freadable): Likewise.
16323         * lib/freading.c (freading): Likewise.
16324         * lib/freadptr.c (freadptr): Likewise.
16325         * lib/freadseek.c (freadptrinc): Likewise.
16326         * lib/fseeko.c (rpl_fseeko): Likewise.
16327         * lib/fseterr.c (fseterr): Likewise.
16328         * lib/fwritable.c (fwritable): Likewise.
16329         * lib/fwriting.c (fwriting): Likewise.
16330         * lib/fflush.c (clear_ungetc_buffer): Update comment.
16331         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
16332
16333 2011-07-31  Bruno Haible  <bruno@clisp.org>
16334
16335         errno: Port to Minix.
16336         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
16337         ECONNABORTED are defined.
16338         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
16339         GNULIB_defined_ECONNABORTED): New macros.
16340         * lib/strerror-override.h (strerror_override): Test also
16341         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
16342         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
16343         ECONNABORTED.
16344         * doc/posix-headers/errno.texi: Mention the Minix problem.
16345
16346 2011-07-31  Bruno Haible  <bruno@clisp.org>
16347
16348         Work around declaration collisions on Minix.
16349         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
16350         defined, set REPLACE_MBSINIT.
16351         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
16352         defined, set REPLACE_MBRTOWC.
16353         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
16354         set REPLACE_MBRLEN.
16355         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
16356         defined, set REPLACE_MBSRTOWCS.
16357         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
16358         defined, set REPLACE_WCRTOMB.
16359         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
16360         defined, set REPLACE_WCSRTOMBS.
16361
16362 2011-07-31  Bruno Haible  <bruno@clisp.org>
16363
16364         Add support for Minix with ACK compiler.
16365         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
16366         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
16367         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
16368
16369 2011-07-31  Bruno Haible  <bruno@clisp.org>
16370
16371         Documentation about Minix.
16372         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
16373         * doc/glibc-headers/*.texi: Likewise.
16374         * doc/posix-functions/*.texi: Likewise.
16375         * doc/glibc-functions/*.texi: Likewise.
16376
16377 2011-07-31  Bruno Haible  <bruno@clisp.org>
16378
16379         snippet/warn-on-use: Fix indentation.
16380         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
16381
16382 2011-07-25  Jim Meyering  <meyering@redhat.com>
16383
16384         tests: test-update-copyright.sh: remove unnecessary "rm" commands
16385         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
16386         commands.
16387
16388 2011-07-27  Jim Meyering  <meyering@redhat.com>
16389
16390         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
16391         * top/maint.mk (gl_extract_significant_defines_): Now that
16392         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
16393         gnulib/lib/signal.in.h, and now that we recommend to
16394         define-if-undefined those two symbols in application code,
16395         we must filter them out of the "significant" list.
16396         This avoids a "make syntax-check" failure in coreutils.
16397
16398 2011-07-26  Eric Blake  <eblake@redhat.com>
16399
16400         warnings: add comments about previous patch
16401         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
16402         * m4/include_next.m4: Likewise.
16403         * m4/warn-on-use.m4: Likewise.
16404         * m4/warnings.m4: Likewise, and simplify use.
16405         Suggested by Stefano Lattarini.
16406
16407         include-next, warnings: support older autoconf
16408         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
16409         AS_VAR_PUSHDEF in a way that works with older autoconf.
16410         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
16411         Reported by Daniel P. Berrange.
16412
16413 2011-07-25  Bruno Haible  <bruno@clisp.org>
16414
16415         fseek, ftell: Fix doc.
16416         * doc/posix-functions/fseek.texi: Reword statement about
16417         AC_SYS_LARGEFILE.
16418         * doc/posix-functions/ftell.texi: Likewise.
16419
16420 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16421             Bruno Haible  <bruno@clisp.org>
16422
16423         Add dependencies to the 'largefile' module.
16424         * modules/fopen (Depends-on): Add 'largefile'.
16425         * modules/freopen (Depends-on): Likewise.
16426         * modules/fseeko (Depends-on): Likewise.
16427         * modules/ftello (Depends-on): Likewise.
16428         * modules/glob (Depends-on): Likewise.
16429         * modules/lseek (Depends-on): Likewise.
16430         * modules/lstat (Depends-on): Likewise.
16431         * modules/mkostemp (Depends-on): Likewise.
16432         * modules/mkostemps (Depends-on): Likewise.
16433         * modules/mkstemp (Depends-on): Likewise.
16434         * modules/mkstemps (Depends-on): Likewise.
16435         * modules/open (Depends-on): Likewise.
16436         * modules/openat (Depends-on): Likewise.
16437         * modules/pread (Depends-on): Likewise.
16438         * modules/pwrite (Depends-on): Likewise.
16439         * modules/scandir (Depends-on): Likewise.
16440         * modules/stat (Depends-on): Likewise.
16441         * modules/tmpfile (Depends-on): Likewise.
16442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
16443         since the containing module now depends on the largefile module.
16444         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
16445         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
16446         off_t is fixed by gnulib.
16447         * doc/posix-functions/freopen.texi: Likewise.
16448         * doc/posix-functions/fseeko.texi: Likewise.
16449         * doc/posix-functions/fstatat.texi: Likewise.
16450         * doc/posix-functions/ftello.texi: Likewise.
16451         * doc/posix-functions/glob.texi: Likewise.
16452         * doc/posix-functions/lseek.texi: Likewise.
16453         * doc/posix-functions/lstat.texi: Likewise.
16454         * doc/posix-functions/mkstemp.texi: Likewise.
16455         * doc/posix-functions/open.texi: Likewise.
16456         * doc/posix-functions/openat.texi: Likewise.
16457         * doc/posix-functions/pread.texi: Likewise.
16458         * doc/posix-functions/pwrite.texi: Likewise.
16459         * doc/posix-functions/scandir.texi: Likewise.
16460         * doc/posix-functions/stat.texi: Likewise.
16461         * doc/posix-functions/tmpfile.texi: Likewise.
16462         * doc/glibc-functions/mkostemp.texi: Likewise.
16463         * doc/glibc-functions/mkostemps.texi: Likewise.
16464         * doc/glibc-functions/mkstemps.texi: Likewise.
16465
16466 2011-07-25  Bruno Haible  <bruno@clisp.org>
16467
16468         fcntl: Move AC_LIBOBJ invocation to module description.
16469         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
16470         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
16471
16472         fcntl: Remove call-in from fchdir.m4.
16473         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
16474         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
16475
16476         dup3: Remove potential call-in from fchdir.m4.
16477         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
16478         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
16479
16480         dup2: Move AC_LIBOBJ invocation to module description.
16481         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
16482         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
16483         Don't invoke AC_LIBOBJ.
16484         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
16485
16486         dup2: Remove call-in from fchdir.m4.
16487         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
16488         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
16489
16490         fclose: Move AC_LIBOBJ invocation to module description.
16491         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
16492         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
16493         to 1.
16494         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
16495
16496         fclose: Remove call-in from close.m4.
16497         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
16498         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
16499
16500         close: Move AC_LIBOBJ invocation to module description.
16501         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
16502         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
16503         1.
16504         * modules/close (configure.ac): Invoke AC_LIBOBJ.
16505
16506         close: Remove call-in from fchdir.m4.
16507         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
16508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
16509
16510         open: Move AC_LIBOBJ invocation to module description.
16511         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
16512         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
16513         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
16514
16515         open: Remove call-in from fchdir.m4.
16516         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
16517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
16518
16519         fchdir: Start to remove gl_REPLACE_* idiom.
16520         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
16521         (gl_FUNC_FCHDIR): Invoke it.
16522
16523 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16524
16525         * lib/ftell.c (ftell): Comment out cast.
16526
16527         close: use gl_REPLACE_FCLOSE only if defined
16528         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
16529         is defined.  The close module doesn't depend on the fclose module
16530         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
16531         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
16532         I reproduced the problem with "./gnulib-tool --test close sys_socket".
16533
16534 2011-07-24  Jim Meyering  <meyering@redhat.com>
16535
16536         test-select.h: avoid warning when using gcc's -Wmissing-declarations
16537         * tests/test-select.h (test_function): Declare as "static".
16538
16539 2011-07-24  Bruno Haible  <bruno@clisp.org>
16540
16541         doc: Mention the effects of AC_SYS_LARGEFILE.
16542         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
16543         on this function.
16544         * doc/posix-functions/aio_error.texi: Likewise.
16545         * doc/posix-functions/aio_fsync.texi: Likewise.
16546         * doc/posix-functions/aio_read.texi: Likewise.
16547         * doc/posix-functions/aio_return.texi: Likewise.
16548         * doc/posix-functions/aio_suspend.texi: Likewise.
16549         * doc/posix-functions/aio_write.texi: Likewise.
16550         * doc/posix-functions/fgetpos.texi: Likewise.
16551         * doc/posix-functions/fopen.texi: Likewise.
16552         * doc/posix-functions/freopen.texi: Likewise.
16553         * doc/posix-functions/fsetpos.texi: Likewise.
16554         * doc/posix-functions/fstatvfs.texi: Likewise.
16555         * doc/posix-functions/ftruncate.texi: Likewise.
16556         * doc/posix-functions/ftw.texi: Likewise.
16557         * doc/posix-functions/getrlimit.texi: Likewise.
16558         * doc/posix-functions/glob.texi: Likewise.
16559         * doc/posix-functions/lio_listio.texi: Likewise.
16560         * doc/posix-functions/lockf.texi: Likewise.
16561         * doc/posix-functions/mkstemp.texi: Likewise.
16562         * doc/posix-functions/mmap.texi: Likewise.
16563         * doc/posix-functions/nftw.texi: Likewise.
16564         * doc/posix-functions/openat.texi: Likewise.
16565         * doc/posix-functions/opendir.texi: Likewise.
16566         * doc/posix-functions/posix_fadvise.texi: Likewise.
16567         * doc/posix-functions/posix_fallocate.texi: Likewise.
16568         * doc/posix-functions/pread.texi: Likewise.
16569         * doc/posix-functions/pwrite.texi: Likewise.
16570         * doc/posix-functions/readdir.texi: Likewise.
16571         * doc/posix-functions/readdir_r.texi: Likewise.
16572         * doc/posix-functions/rewinddir.texi: Likewise.
16573         * doc/posix-functions/scandir.texi: Likewise.
16574         * doc/posix-functions/seekdir.texi: Likewise.
16575         * doc/posix-functions/setrlimit.texi: Likewise.
16576         * doc/posix-functions/statvfs.texi: Likewise.
16577         * doc/posix-functions/telldir.texi: Likewise.
16578         * doc/posix-functions/tmpfile.texi: Likewise.
16579         * doc/posix-functions/truncate.texi: Likewise.
16580         * doc/glibc-functions/fallocate.texi: Likewise.
16581         * doc/glibc-functions/fstatfs.texi: Likewise.
16582         * doc/glibc-functions/fts_children.texi: Likewise.
16583         * doc/glibc-functions/fts_read.texi: Likewise.
16584         * doc/glibc-functions/getdirentries.texi: Likewise.
16585         * doc/glibc-functions/mkostemp.texi: Likewise.
16586         * doc/glibc-functions/mkostemps.texi: Likewise.
16587         * doc/glibc-functions/mkstemps.texi: Likewise.
16588         * doc/glibc-functions/preadv.texi: Likewise.
16589         * doc/glibc-functions/pwritev.texi: Likewise.
16590         * doc/glibc-functions/sendfile.texi: Likewise.
16591         * doc/glibc-functions/statfs.texi: Likewise.
16592
16593 2011-07-24  Bruno Haible  <bruno@clisp.org>
16594
16595         doc: Fix typo.
16596         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
16597
16598 2011-07-24  Bruno Haible  <bruno@clisp.org>
16599
16600         doc: Mention fsusage.
16601         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
16602
16603 2011-07-24  Bruno Haible  <bruno@clisp.org>
16604
16605         doc: Mention new glibc headers and functions.
16606         * doc/glibc-headers/gshadow.texi: New file.
16607         * doc/glibc-functions/endsgent.texi: New file.
16608         * doc/glibc-functions/fgetsgent.texi: New file.
16609         * doc/glibc-functions/fgetsgent_r.texi: New file.
16610         * doc/glibc-functions/getsgent.texi: New file.
16611         * doc/glibc-functions/getsgent_r.texi: New file.
16612         * doc/glibc-functions/getsgnam.texi: New file.
16613         * doc/glibc-functions/getsgnam_r.texi: New file.
16614         * doc/glibc-functions/putsgent.texi: New file.
16615         * doc/glibc-functions/setsgent.texi: New file.
16616         * doc/glibc-functions/sgetsgent.texi: New file.
16617         * doc/glibc-functions/sgetsgent_r.texi: New file.
16618         * doc/glibc-functions/malloc_info.texi: New file.
16619         * doc/glibc-functions/preadv.texi: New file.
16620         * doc/glibc-functions/pwritev.texi: New file.
16621         * doc/glibc-functions/register_printf_modifier.texi: New file.
16622         * doc/glibc-functions/register_printf_specifier.texi: New file.
16623         * doc/glibc-functions/register_printf_type.texi: New file.
16624         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
16625         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
16626         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
16627         * doc/glibc-functions/pthread_getname_np.texi: New file.
16628         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
16629         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
16630         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
16631         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
16632         * doc/glibc-functions/pthread_setname_np.texi: New file.
16633         * doc/glibc-functions/pthread_sigqueue.texi: New file.
16634         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
16635         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
16636         * doc/glibc-functions/qsort_r.texi: New file.
16637         * doc/glibc-functions/quick_exit.texi: New file.
16638         * doc/glibc-functions/syncfs.texi: New file.
16639         * doc/gnulib.texi: Include them.
16640         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
16641         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
16642         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
16643         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
16644         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
16645         * doc/glibc-functions/execvpe.texi: Likewise.
16646
16647 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16648
16649         ftell: don't include <unistd.h>
16650         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
16651         guaranteed to define off_t, and the ftell module depends on the
16652         stdio module.
16653
16654         ftell: do not assume wraparound signed arithmetic
16655         * lib/ftell.c: Include <limits.h>.
16656         (ftell): Don't assume wraparound signed arithmetic.
16657
16658 2011-07-24  Bruno Haible  <bruno@clisp.org>
16659
16660         close: No longer depend on module 'fclose'.
16661         * modules/close (Depends-on): Remove fclose.
16662         * NEWS: Mention the change.
16663         Suggested by Sam Steingold <sds@gnu.org>.
16664
16665 2011-07-24  Bruno Haible  <bruno@clisp.org>
16666
16667         fsusage: Enable large volume support on AIX >= 5.2.
16668         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
16669         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
16670         instead of STAT_STATVFS.
16671         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
16672
16673         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
16674         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
16675         f_blocks field only on MacOS X.
16676
16677         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
16678         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
16679         * modules/fsusage (Depends-on): Add largefile.
16680
16681 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
16682
16683         * README: Modernize discussion of signed integers.
16684         Assuming overflow wraparound is no longer safe.
16685         Mention ones' complement and signed magnitude.
16686
16687 2011-07-22  Bruno Haible  <bruno@clisp.org>
16688
16689         select tests, pselect tests: Refactor.
16690         * tests/test-select.h: New file, extracted from tests/test-select.c.
16691         (select_fn): New type.
16692         (test, do_select, do_select_nowait, do_select_wait, test_tty,
16693         test_connect_first, test_accept_first, test_pair, test_socket_pair,
16694         test_pipe): Add my_select argument.
16695         (test_function): Renamed from main. Add my_select argument.
16696         * tests/test-select.c: Move most code to tests/test-select.h. Include
16697         test-select.h.
16698         * modules/select-tests (Files): Add tests/test-select.h.
16699         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
16700         (my_select, main): New functions.
16701         * modules/pselect-tests (Files): Add tests/test-select.h,
16702         tests/macros.h, tests/signature.h.
16703         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
16704         (configure.ac): Check for <sys/wait.h>.
16705
16706 2011-07-22  Bruno Haible  <bruno@clisp.org>
16707
16708         sys_select tests: Check the signature of FD_*.
16709         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
16710         signature tests from here...
16711         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
16712         here.
16713         * modules/sys_select-tests (Files): Add tests/signature.h.
16714
16715 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
16716
16717         largefile: new module, replacing large-inode
16718         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
16719         * MODULES.html.sh: Add largefile, remove large-inode.
16720         * modules/largefile, m4/largefile.m4: New files.
16721         * modules/large-inode, m4/large-inode.m4: Remove.
16722
16723         fsusage: port to MacOS X 10.7 with 4 TiB file systems
16724         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
16725         implementations that use only 32 bits to count blocks.
16726         On typical hosts with 1024-byte blocks, this fails with file
16727         systems as small as 4 TiB.  Problem reported by Herb Wartens
16728         <http://debbugs.gnu.org/9140> and this should also fix a similar
16729         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
16730
16731         large-inode: New module
16732         * MODULES.html.sh: Add it.
16733         * modules/large-inode, m4/large-inode.m4: New files.
16734
16735         extensions: Enable extensions on MacOS X 10.5 and later.
16736         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
16737
16738 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
16739
16740         file-has-acl: use acl_extended_file_nofollow if available
16741         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
16742         (acl_extended_file): New macro.
16743         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
16744         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
16745
16746 2011-07-21  Bruno Haible  <bruno@clisp.org>
16747
16748         Declare system functions in a way that works with C++.
16749         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
16750         declare fdopendir as extern "C".
16751         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
16752         declare frexpl as extern "C".
16753         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
16754         declare gai_strerror as extern "C".
16755         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
16756         programs, declare gai_strerror as extern "C".
16757         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
16758         declare getlogin_r as extern "C".
16759         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
16760         as extern "C".
16761         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
16762         declare ldexpl as extern "C".
16763         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
16764         as extern "C".
16765         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
16766         program, declare getmntinfo as extern "C".
16767         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
16768         stpncpy as extern "C".
16769         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
16770         program, declare __xpg_strerror_r as extern "C".
16771         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
16772         strndup as extern "C".
16773         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
16774         declare memset and bzero as extern "C".
16775         Reported by Sam Steingold <sds@gnu.org>.
16776
16777 2011-07-12  Jim Meyering  <meyering@redhat.com>
16778
16779         maint.mk: prohibit inclusion of "verify.h" without use
16780         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
16781
16782 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16783
16784         timer-time: A new module to check for timer_settime()
16785         * m4/timer_time.m4: Check for the posix function.
16786         * modules/timer-time: Add the new module.
16787         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
16788         Mention it.
16789
16790 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
16791             Bruno Haible  <bruno@clisp.org>
16792
16793         pthread_sigmask: assume POSIX threads if --avoid=threadlib
16794         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
16795         not defined, assume POSIX threads and look for pthread_sigmask in
16796         $LIBS, without changing $CPPFLAGS.
16797
16798 2011-07-19  Bruno Haible  <bruno@clisp.org>
16799
16800         strstr: Update cross-compilation guess.
16801         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
16802         CPUs, guess no, in view of glibc
16803         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
16804         Suggested by Eric Blake. Reported by Reuben Thomas.
16805
16806 2011-07-19  Pádraig Brady  <P@draigBrady.com>
16807
16808         getopt-gnu: suppress core dumps from detection code
16809         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
16810         to suppress core dumps that may well occur on glibc systems.
16811         * modules/getopt-gnu: Depend on nocrash.
16812
16813 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
16814
16815         pthread_sigmask: ensure usleep is declared
16816         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
16817         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
16818
16819 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16820
16821         doc: Document NonStop portability issues.
16822         * doc/posix-functions/sigaction.texi (sigaction):
16823         * doc/posix-headers/signal.texi (signal.h):
16824         Document NonStop.  See Joachim Schmitz in
16825         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
16826
16827 2011-07-15  Bruno Haible  <bruno@clisp.org>
16828
16829         ffsl, ffsll: Avoid unportable behaviour.
16830         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
16831
16832 2011-07-15  Bruno Haible  <bruno@clisp.org>
16833
16834         ffs: More tests.
16835         * tests/test-ffs.c (NBITS): New macro.
16836         (main): Add more tests.
16837         * tests/test-ffsl.c (NBITS): New macro.
16838         (main): Add more tests.
16839         * tests/test-ffsll.c (NBITS): New macro.
16840         (main): Add more tests.
16841
16842 2011-07-15  Eric Blake  <eblake@redhat.com>
16843
16844         ffsl, ffsll: new modules
16845         * modules/ffsl: New file.
16846         * modules/ffsll: Likewise.
16847         * m4/ffsl.m4: Likewise.
16848         * m4/ffsll.m4: Likewise.
16849         * lib/ffsl.c: Likewise.
16850         * lib/ffsl.h: Likewise.
16851         * lib/ffsll.c: Likewise.
16852         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
16853         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
16854         * modules/string (Makefile.am): Substitute witnesses.
16855         * lib/strings.in.h (ffsl, ffsll): Declare.
16856         * modules/ffsl-tests: New test file.
16857         * modules/ffsll-tests: Likewise.
16858         * tests/test-ffsl.c: Likewise.
16859         * tests/test-ffsll.c: Likewise.
16860         * MODULES.html.sh (Integer arithmetic functions): Mention it.
16861         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
16862         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
16863
16864         ffs: fix m4 prerequisite
16865         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
16866
16867         ffs: avoid undefined behavior
16868         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
16869         * tests/test-ffs.c (naive, main): Avoid signed shifts.
16870         Reported by Bruno Haible.
16871
16872 2011-07-12  Bruno Haible  <bruno@clisp.org>
16873
16874         pthread_sigmask: Rely on module 'threadlib'.
16875         * modules/pthread_sigmask (Depends-on): Add threadlib.
16876         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
16877         is defined.
16878
16879 2011-07-12  Bruno Haible  <bruno@clisp.org>
16880
16881         regex: Depend on module 'strcase'.
16882         * modules/regex (Depends-on): Add strcase, for strcasecmp().
16883
16884 2011-07-12  Jim Meyering  <meyering@redhat.com>
16885
16886         warn-on-use: fix typo in file name
16887         * modules/snippet/warn-on-use (Files): Correct file name:
16888         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
16889
16890 2011-07-12  Bruno Haible  <bruno@clisp.org>
16891
16892         strings: Document module.
16893         * doc/posix-headers/strings.texi: Mention module 'strings'.
16894
16895 2011-07-12  Bruno Haible  <bruno@clisp.org>
16896
16897         Rename module '_Noreturn' to 'snippet/_Noreturn'.
16898         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
16899         (Files, Makefile.am): Update.
16900         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
16901         * modules/stdlib (Depends-on): Update.
16902
16903 2011-07-12  Bruno Haible  <bruno@clisp.org>
16904
16905         * NEWS: Mention the changes.
16906
16907         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
16908         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
16909         (Files, Makefile.am): Update.
16910         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
16911         * modules/arpa_inet (Depends-on): Update.
16912         * modules/ctype (Depends-on): Update.
16913         * modules/dirent (Depends-on): Update.
16914         * modules/fcntl-h (Depends-on): Update.
16915         * modules/glob (Depends-on): Update.
16916         * modules/iconv-h (Depends-on): Update.
16917         * modules/inttypes-incomplete (Depends-on): Update.
16918         * modules/langinfo (Depends-on): Update.
16919         * modules/locale (Depends-on): Update.
16920         * modules/math (Depends-on): Update.
16921         * modules/netdb (Depends-on): Update.
16922         * modules/poll-h (Depends-on): Update.
16923         * modules/pty (Depends-on): Update.
16924         * modules/search (Depends-on): Update.
16925         * modules/signal (Depends-on): Update.
16926         * modules/spawn (Depends-on): Update.
16927         * modules/stdio (Depends-on): Update.
16928         * modules/stdlib (Depends-on): Update.
16929         * modules/string (Depends-on): Update.
16930         * modules/strings (Depends-on): Update.
16931         * modules/sys_file (Depends-on): Update.
16932         * modules/sys_ioctl (Depends-on): Update.
16933         * modules/sys_select (Depends-on): Update.
16934         * modules/sys_socket (Depends-on): Update.
16935         * modules/sys_stat (Depends-on): Update.
16936         * modules/sys_time (Depends-on): Update.
16937         * modules/sys_times (Depends-on): Update.
16938         * modules/sys_utsname (Depends-on): Update.
16939         * modules/sys_wait (Depends-on): Update.
16940         * modules/termios (Depends-on): Update.
16941         * modules/time (Depends-on): Update.
16942         * modules/unistd (Depends-on): Update.
16943         * modules/wchar (Depends-on): Update.
16944         * modules/wctype-h (Depends-on): Update.
16945         * MODULES.html.sh (Support for building libraries and executables):
16946         Update.
16947
16948         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
16949         * modules/snippet/unused-parameter: Renamed from
16950         modules/unused-parameter.
16951         (Files, Makefile.am): Update.
16952         * build-aux/snippet/unused-parameter.h: Renamed from
16953         build-aux/unused-parameter.h.
16954         * modules/selinux-h (Depends-on): Update.
16955         * modules/unistr/base (Depends-on): Update.
16956         * MODULES.html.sh (Core language properties): Update.
16957
16958         Rename module 'link-warning' to 'snippet/link-warning'.
16959         * modules/snippet/link-warning: Renamed from modules/link-warning.
16960         (Files, Makefile.am): Update.
16961         * build-aux/snippet/link-warning.h: Renamed from
16962         build-aux/link-warning.h.
16963         * MODULES.html.sh (Support for building libraries and executables):
16964         Update.
16965
16966         Rename module 'c++defs' to 'snippet/c++defs'.
16967         * modules/snippet/c++defs: Renamed from modules/c++defs.
16968         (Files, Makefile.am): Update.
16969         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
16970         * modules/arpa_inet (Depends-on): Update.
16971         * modules/ctype (Depends-on): Update.
16972         * modules/dirent (Depends-on): Update.
16973         * modules/fcntl-h (Depends-on): Update.
16974         * modules/glob (Depends-on): Update.
16975         * modules/iconv-h (Depends-on): Update.
16976         * modules/langinfo (Depends-on): Update.
16977         * modules/locale (Depends-on): Update.
16978         * modules/math (Depends-on): Update.
16979         * modules/netdb (Depends-on): Update.
16980         * modules/poll-h (Depends-on): Update.
16981         * modules/pty (Depends-on): Update.
16982         * modules/search (Depends-on): Update.
16983         * modules/signal (Depends-on): Update.
16984         * modules/spawn (Depends-on): Update.
16985         * modules/stdio (Depends-on): Update.
16986         * modules/stdlib (Depends-on): Update.
16987         * modules/string (Depends-on): Update.
16988         * modules/strings (Depends-on): Update.
16989         * modules/sys_ioctl (Depends-on): Update.
16990         * modules/sys_select (Depends-on): Update.
16991         * modules/sys_socket (Depends-on): Update.
16992         * modules/sys_stat (Depends-on): Update.
16993         * modules/sys_time (Depends-on): Update.
16994         * modules/sys_wait (Depends-on): Update.
16995         * modules/termios (Depends-on): Update.
16996         * modules/time (Depends-on): Update.
16997         * modules/unistd (Depends-on): Update.
16998         * modules/wchar (Depends-on): Update.
16999         * modules/wctype-h (Depends-on): Update.
17000
17001         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
17002         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
17003         (Files, Makefile.am): Update.
17004         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
17005         * modules/argv-iter (Depends-on): Update.
17006         * modules/arpa_inet (Depends-on): Update.
17007         * modules/dirent (Depends-on): Update.
17008         * modules/fcntl-h (Depends-on): Update.
17009         * modules/fnmatch (Depends-on): Update.
17010         * modules/getopt-posix (Depends-on): Update.
17011         * modules/glob (Depends-on): Update.
17012         * modules/iconv-h (Depends-on): Update.
17013         * modules/inttypes-incomplete (Depends-on): Update.
17014         * modules/locale (Depends-on): Update.
17015         * modules/math (Depends-on): Update.
17016         * modules/netdb (Depends-on): Update.
17017         * modules/search (Depends-on): Update.
17018         * modules/signal (Depends-on): Update.
17019         * modules/spawn (Depends-on): Update.
17020         * modules/stdio (Depends-on): Update.
17021         * modules/stdlib (Depends-on): Update.
17022         * modules/string (Depends-on): Update.
17023         * modules/strings (Depends-on): Update.
17024         * modules/sys_socket (Depends-on): Update.
17025         * modules/sys_stat (Depends-on): Update.
17026         * modules/sys_time (Depends-on): Update.
17027         * modules/sys_times (Depends-on): Update.
17028         * modules/sys_utsname (Depends-on): Update.
17029         * modules/time (Depends-on): Update.
17030         * modules/unistd (Depends-on): Update.
17031         * modules/wchar (Depends-on): Update.
17032         * MODULES.html.sh (Support for building libraries and executables):
17033         Update.
17034
17035 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
17036
17037         Improvements on _Noreturn and related modules.
17038
17039         modules/_Exit-tests: test _Noreturn too
17040         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
17041         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
17042         (main): Use them.
17043
17044         stdnoreturn, stdnoreturn-tests: remove modules
17045         They're not needed here and a bit premature for use elsewhere.  See
17046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
17047         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
17048         * tests/test-stdnoreturn.c: Remove files.
17049         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
17050         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
17051         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
17052         and using noreturn.
17053         * modules/openat, modules/sigpipe-die, modules/xalloc:
17054         * modules/xmemdup0, modules/xstrtol:
17055         Remove dependency on stdnoreturn.
17056
17057         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
17058         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
17059         Reparenthesize to avoid GCC warning.
17060         Support Microsoft's syntax.
17061         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
17062
17063         _Noreturn-tests: remove module
17064         * modules/_Noreturn-tests: Remove.
17065         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
17066         * tests/test-_Noreturn.c: Remove.
17067         * tests/test-stdnoreturn.c: Merge from the old
17068         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
17069
17070 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
17071
17072         _Noreturn, stdnoreturn, and related modules.
17073
17074         * top/maint.mk: Adjust to new noreturn support.
17075         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
17076         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
17077
17078         xalloc: use stdnoreturn.h
17079         * lib/xalloc.h: Include <stdnoreturn.h>.
17080         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17081         * modules/xalloc (Depends-on): Add stdnoreturn.
17082
17083         xstrtol: use stdnoreturn.h
17084         * lib/xstrtol.h: Include <stdnoreturn.h>.
17085         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17086         * modules/xstrtol (Depends-on): Add stdnoreturn.
17087
17088         xmemdup0: use stdnoreturn.h
17089         * lib/xmemdup0.h: Include <stdnoreturn.h>.
17090         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17091         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
17092
17093         sigpipe-die: use stdnoreturn.h
17094         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
17095         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17096         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
17097
17098         openat: use stdnoreturn.h
17099         * lib/openat.h: Include <stdnoreturn.h>.
17100         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
17101         * modules/openat (Depends-on): Add stdnoreturn.
17102
17103         * lib/openat-die.c (openat_save_fail): Modernize comment.
17104
17105         * lib/xalloc-die.c (xalloc_die): Modernize comment.
17106
17107         * lib/glthread/thread.h: Modernize comment.
17108
17109         obstack: use _Noreturn
17110         * lib/obstack.c (__attribute__): Remove macro.
17111         (print_and_abort): Use _Noreturn.
17112
17113         c-stack: use _Noreturn
17114         * lib/c-stack.c (die, overflow_handler, segv_handler):
17115         Use _Noreturn rather than __attribute__((noreturn)).
17116
17117         argmatch-tests, exclude_tests: use _Noreturn
17118         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
17119         Remove.
17120         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
17121
17122         stdlib: use _Noreturn
17123         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
17124         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
17125         * modules/stdlib (Depends-on): Add _Noreturn.
17126         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
17127
17128         stdnoreturn-tests: new module
17129         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
17130
17131         stdnoreturn: new module
17132         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
17133         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
17134
17135         _Noreturn-tests: new module
17136         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
17137
17138         _Noreturn: new module
17139         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
17140         New section, mentioning it.
17141         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
17142
17143         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
17144
17145 2011-07-11  Eric Blake  <eblake@redhat.com>
17146
17147         ffs: new module
17148         * modules/ffs: New file.
17149         * m4/ffs.m4: Likewise.
17150         * lib/ffs.c: Likewise.
17151         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
17152         * modules/strings (Makefile.am): Substitute witness.
17153         (Depends-on): Add c++defs.
17154         * lib/strings.in.h (ffs): Declare.
17155         * modules/ffs-tests: New test file.
17156         * tests/test-ffs.c: Test new module.
17157         * MODULES.html.sh (Integer arithmetic functions): Mention it.
17158         * doc/posix-functions/ffs.texi (ffs): Likewise.
17159
17160         regex: avoid compiler warning
17161         * lib/regex.c (includes): Include <strings.h>, for use of
17162         strcasecmp in regcomp.c.
17163         Reported by Joachim Schmitz.
17164
17165 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
17166
17167         stdint: respect system's intmax_t if INTMAX_MAX
17168         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
17169         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
17170         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
17171         long but int64_t is long long, and where we will clash with the
17172         system intmax_t if we override it.  See
17173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
17174         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
17175         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
17176         similarly for UINTMAX_C.
17177
17178 2011-07-08  Bruno Haible  <bruno@clisp.org>
17179
17180         pthread_sigmask tests: Avoid a compiler warning.
17181         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
17182         non-zero.
17183
17184         sigprocmask tests: A better way to avoid a compiler warning.
17185         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
17186         (main): Complain if system() returns non-zero.
17187         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
17188
17189 2011-07-08  Bruno Haible  <bruno@clisp.org>
17190
17191         pthread_sigmask: Work around IRIX bug.
17192         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
17193         bug.
17194         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
17195         there may be unblocked pending signals.
17196         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
17197
17198 2011-07-08  Bruno Haible  <bruno@clisp.org>
17199
17200         pthread_sigmask: Work around Cygwin bug.
17201         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
17202         bug.
17203         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
17204         the system's pthread_sigmask function.
17205         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
17206
17207 2011-07-08  Bruno Haible  <bruno@clisp.org>
17208
17209         pthread_sigmask: Work around bug in single-threaded implementation.
17210         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
17211         FreeBSD, HP-UX, Solaris bug.
17212         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
17213         * lib/pthread_sigmask.c: Include <stddef.h>.
17214         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
17215         the system's pthread_sigmask function.
17216         * modules/pthread_sigmask (configure.ac): Invoke
17217         gl_PREREQ_PTHREAD_SIGMASK.
17218         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
17219         HP-UX, Solaris.
17220
17221 2011-07-08  Eric Blake  <eblake@redhat.com>
17222
17223         test-sigprocmask: avoid compiler warning
17224         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
17225         * tests/test-sigprocmask.c (main): Use it to silence warning.
17226         Reported by Jim Meyering.
17227
17228         test-snprintf: avoid compiler warning
17229         * tests/test-snprintf.c (main): Avoid shadowed declaration.
17230         * tests/test-vsnprintf.c (main): Likewise.
17231         Reported by Jim Meyering.
17232
17233 2011-07-08  Bruno Haible  <bruno@clisp.org>
17234
17235         Tests for module 'pthread_sigmask'.
17236         * modules/pthread_sigmask-tests: New file.
17237         * tests/test-pthread_sigmask1.c: New file, based on
17238         tests/test-sigprocmask.c.
17239         * tests/test-pthread_sigmask2.c: New file.
17240
17241 2011-07-08  Jim Meyering  <meyering@redhat.com>
17242
17243         test-getopt.h: avoid warning about an unused variable
17244         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
17245
17246 2011-07-07  Jim Meyering  <meyering@redhat.com>
17247
17248         maint: reduce list of files exempt from sc_prohibit_leading_TABs
17249         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
17250         now that it no longer contains leading TABs.
17251         Remove unused "url=FIXME" statement.
17252
17253 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17254
17255         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
17256         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17257         When gl_THREADLIB is not in use, assume that the POSIX sematics
17258         are desired.  This is better for Emacs, which uses POSIX semantics
17259         on GNUish and/or POSIXish platforms, and does not use threads at
17260         all otherwise.
17261
17262         pthread_sigmask: fix typo when testing for libraries
17263         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17264         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
17265
17266 2011-07-08  Eric Blake  <eblake@redhat.com>
17267
17268         fts: introduce FTS_NOATIME
17269         * lib/fts_.h (FTS_NOATIME): New bit flag.
17270         (FTS_OPTIONMASK): Adjust.
17271         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
17272         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
17273
17274 2011-07-08  Bruno Haible  <bruno@clisp.org>
17275
17276         Tests for module 'thread'.
17277         * modules/thread-tests: New file.
17278         * tests/test-thread_self.c: New file.
17279         * tests/test-thread_create.cc: New file.
17280
17281 2011-07-08  Bruno Haible  <bruno@clisp.org>
17282
17283         thread: Avoid gcc warnings when using gl_thread_self().
17284         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
17285         'void *'.
17286         (gl_thread_self_pointer): Update.
17287
17288 2011-07-07  Bruno Haible  <bruno@clisp.org>
17289
17290         signal-c++-tests: Check declaration of pthread_sigmask.
17291         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
17292         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
17293         $(LIB_PTHREAD_SIGMASK).
17294
17295 2011-07-07  Bruno Haible  <bruno@clisp.org>
17296
17297         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
17298         * lib/signal.in.h (pthread_sigmask): Override if
17299         REPLACE_PTHREAD_SIGMASK is 1.
17300         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17301         REPLACE_PTHREAD_SIGMASK.
17302         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
17303         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
17304         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
17305         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17306         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
17307
17308 2011-07-07  Bruno Haible  <bruno@clisp.org>
17309
17310         pthread_sigmask: Ensure declaration in <signal.h>.
17311         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
17312         include <pthread.h>.
17313         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
17314         problem.
17315
17316 2011-07-07  Bruno Haible  <bruno@clisp.org>
17317
17318         pthread_sigmask: Document the module.
17319         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
17320
17321 2011-07-07  Bruno Haible  <bruno@clisp.org>
17322
17323         pthread_sigmask: Follow gnulib conventions.
17324         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
17325         gl_PTHREAD_SIGMASK.
17326         * modules/pthread_sigmask (configure.ac): Update.
17327
17328 2011-07-07  Bruno Haible  <bruno@clisp.org>
17329
17330         pthread_sigmask: Make declaration C++ safe.
17331         * lib/signal.in.h: In two special conditions, just do an #include_next.
17332         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17333         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
17334         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
17335         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
17336         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
17337         not REPLACE_PTHREAD_MASK.
17338         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
17339         not REPLACE_PTHREAD_MASK.
17340         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
17341
17342 2011-07-07  Bruno Haible  <bruno@clisp.org>
17343
17344         pthread_sigmask: Fix return value.
17345         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
17346         * lib/pthread_sigmask.c: New file.
17347         * modules/pthread_sigmask (Files): Add it.
17348         (configure.ac): Invoke AC_LIBOBJ.
17349
17350 2011-07-07  Eric Blake  <eblake@redhat.com>
17351
17352         getopt: more portable argv creation
17353         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
17354         const, use char arrays rather than strings.
17355         Suggested by Paul Eggert.
17356
17357 2011-07-07  Bruno Haible  <bruno@clisp.org>
17358
17359         Tests for module 'sigprocmask'.
17360         * modules/sigprocmask-tests: New file.
17361         * tests/test-sigprocmask.c: New file.
17362
17363 2011-07-07  Bruno Haible  <bruno@clisp.org>
17364
17365         float tests: Tweak.
17366         * tests/test-float.c (main): Tweak skip message.
17367
17368 2011-07-07  Eric Blake  <eblake@redhat.com>
17369
17370         getopt: avoid compiler warning during configure
17371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
17372         assigning string literals to non-const pointer.
17373
17374         getopt-gnu: avoid crash in glibc getopt
17375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
17376         * tests/test-getopt.h (test_getopt): Enhance test.
17377         * tests/test-getopt_long.h (test_getopt_long): Likewise.
17378         * doc/posix-functions/getopt.texi (getopt): Document it.
17379         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
17380         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
17381         Likewise.
17382
17383 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
17384
17385         getopt: handle W; without long options in getopt [BZ #12922]
17386         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
17387         but no long options are defined, just return 'W'.
17388
17389 2011-07-07  Bruno Haible  <bruno@clisp.org>
17390
17391         Avoid literal tabs.
17392         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
17393         variable containing a tab instead of a literal tab.
17394         Reported by Jim Meyering.
17395
17396 2011-07-07  Bruno Haible  <bruno@clisp.org>
17397
17398         Comments.
17399         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
17400
17401 2011-07-06  Bruno Haible  <bruno@clisp.org>
17402
17403         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
17404         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
17405         <winsock2.h>.
17406         (rpl_fd_isset, FD_ISSET): New definitions, copied from
17407         lib/sys_socket.in.h.
17408         (close, gethostname): Hide declarations from <winsock2.h>.
17409         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17410         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
17411         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
17412         (select): Don't override if gnulib's <sys/select.h> was already
17413         included.
17414         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
17415         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
17416         setsockopt, shutdown, select): Tweak indentation.
17417
17418 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17419
17420         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
17421         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
17422         in an application that does not use the sys_select module.
17423
17424 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
17425
17426         poll: do not return 0 on timeout=-1
17427         * lib/poll.c: Loop with yield if no events occurred.
17428
17429 2011-07-06  Eric Blake  <eblake@redhat.com>
17430
17431         pthread_sigmask: always replace when not using pthread
17432         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
17433         replacement when using some threading other than pthread.  Fix
17434         logic bug.
17435
17436 2011-07-06  Bruno Haible  <bruno@clisp.org>
17437
17438         Comments.
17439         * m4/printf.m4: Update comments about mingw.
17440
17441 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17442
17443         sys_select: define sigset_t more portably
17444         * lib/sys_select.in.h: Always include <sys/types.h>, since
17445         we now need sigset_t and mingw defines it there.
17446         Include <signal.h> before split inclusion guard, to avoid
17447         mishaps on Solaris, whose <signal.h> eventually includes us.
17448         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
17449         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
17450         which come from ...
17451         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
17452         gl_CHECK_TYPE_SIGSET_T.
17453         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
17454         does the real work.
17455         * modules/sys_select (Depends-on): Add 'signal'.
17456
17457         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
17458         Suggested by Bruno Haible.
17459
17460         pselect: Use pthread_sigmask, not sigprocmask.
17461         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
17462         multithreaded apps better than sigprocmask does.
17463         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
17464         sigprocmask directly.
17465
17466 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17467
17468         * lib/pselect.c (pselect): Use plain name, without "rpl_".
17469         Don't #undef,  since we don't need any underlying pselect.
17470         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
17471         (Depends-on): Add select.
17472         (Link): Add $(LIBSOCKET).
17473         These changes suggested by Bruno Haible.
17474
17475         pselect: document better
17476         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17477         * doc/posix-functions/pselect.texi (pselect): Document new module.
17478
17479         pthread_sigmask: new module
17480         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
17481         * doc/posix-functions/pthread_sigmask.texi: Document new module.
17482         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
17483         This is done only as a macro; I don't know how well that'll
17484         work for C++.  Move <sys/types.h> include before the include_next,
17485         to avoid mishap on Solaris.
17486         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
17487         * modules/signal (Makefile.am): Substitute the check's results.
17488         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
17489
17490         test-pselect: new module
17491         * modules/pselect-tests, tests/test-pselect.c: New files.
17492         * tests/test-select.c, tests/test-sys_select-c++.cc:
17493         If TEST_PSELECT is defined, test pselect instead of testing select.
17494
17495         * tests/test-sys_select.c (sigset_t): Test for it, too.
17496         Suggested by Bruno Haible.
17497
17498 2011-07-05  Eric Blake  <eblake@redhat.com>
17499
17500         snprintf: guarantee %1$d, for libintl
17501         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
17502         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
17503         * doc/posix-functions/snprintf.texi (snprintf): Update.
17504         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17505         * tests/test-snprintf.c (main): Enhance test.
17506         * tests/test-vsnprintf.c (main): Likewise.
17507
17508 2011-07-05  Jim Meyering  <meyering@redhat.com>
17509
17510         maint: exempt stdio-read.c and stdio-write.c from the cppi check
17511         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
17512         per Bruno's request, to accommodate this idiom (no space after "#")
17513         even when the function is inside an #if block:
17514         char *
17515         gets (char *s)
17516         #undef gets
17517         {
17518           ...
17519         }
17520
17521 2011-07-04  Jim Meyering  <meyering@redhat.com>
17522
17523         maint: indent with spaces, not TABs, and add a rule to check this
17524         * tests/test-userspec.c: Indent with spaces, not TABs.
17525         * tests/test-argp.c: Likewise.
17526         * tests/test-c-stack2.sh: Likewise.
17527         * tests/test-parse-duration.sh: Likewise
17528         * m4/strtod.m4: Likewise.
17529         * m4/alloca.m4: Likewise.
17530         * m4/pselect.m4: Likewise.
17531         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
17532
17533 2011-07-03  Jim Meyering  <meyering@redhat.com>
17534
17535         maint.mk: correct omissions in prohibit_argmatch_without_use check
17536         This rule would mistakenly report that argmatch.h is included without
17537         use even when both the argmatch and invalid_arg macro were used.
17538         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
17539         of argmatch and invalid_arg.
17540
17541 2011-07-03  Bruno Haible  <bruno@clisp.org>
17542
17543         Comments about EINTR.
17544         * lib/safe-read.h: Explain the purpose of this module.
17545         * lib/safe-write.h: Likewise.
17546         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
17547         module.
17548         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
17549         module.
17550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17551
17552 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
17553
17554         xnanosleep: Rewrite to use new dtotimespec module.
17555         It has the conversion code that used to be in xnanosleep.
17556         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
17557         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
17558         (TIME_T_MAX): Remove.
17559         (xnanosleep): Rewrite in terms of dtotimespec.
17560         * modules/xnanosleep (Depends-on): Add dtotimespec.
17561         Remove intprops, stdbool.
17562
17563         timespec-add, timespec-sub: new modules
17564         * lib/timespec.h (timespec_add, timespec_sub): New decls.
17565         * lib/timespec-add.c, lib/timespec-sub.c:
17566         * modules/timespec-add, modules/timespec-sub: New files.
17567
17568         dtotimespec: new module
17569         * lib/timespec.h (dtotimespec): New decl.
17570         * lib/dtotimespec.c, modules/dtotimespec: New files.
17571
17572         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
17573
17574         pselect: new module
17575         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
17576         (pselect): New decls.
17577         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
17578         since the standard pselect decl uses 'restrict'.
17579         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
17580         HAVE_PSELECT, REPLACE_PSELECT.
17581         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
17582         HAVE_PSELECT, REPLACE_PSELECT.
17583         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
17584
17585         sys_select: don't depend on sys_socket
17586         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
17587         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
17588         This fix works on GNU and GNU-like platforms, but has not been tested
17589         on native Windows.
17590         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
17591         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
17592         gl_HEADER_SYS_SOCKET.
17593         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
17594         gl_PREREQ_SYS_H_WINSOCK2.
17595
17596 2011-06-29  Eric Blake  <eblake@redhat.com>
17597
17598         pipe2: fix C89 compile problem
17599         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
17600         Reported by Bruno Haible.
17601
17602         pipe, pipe2: don't corrupt fd on error
17603         * lib/pipe.c (pipe): Leave fd unchanged on error.
17604         * lib/pipe2.c (pipe2): Likewise.
17605         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
17606         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
17607
17608 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
17609
17610         mmap-anon: do not use regular expressions inadvertently
17611         * m4/mmap-anon.m4: Remove trailing period from strings sought
17612         in the output.
17613
17614 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
17615
17616         nanosleep: fix integer overflow problem
17617         * lib/nanosleep.c (my_usleep): Don't assume signed integer
17618         arithmetic wraps around on overflow.
17619
17620         nanosleep: simplify carrying
17621         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
17622         first call to the underyling nanosleep, not for the last one.
17623         This doesn't fix any bugs, but it simplifies the computation of
17624         the remaining delay.  Found while auditing integer overflow issues.
17625
17626         dup2: remove test for existence of fcntl
17627         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
17628         "#if HAVE_FCNTL", in the configure-time test program.
17629         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
17630         and therefore speeds up "configure" a bit.  Found while
17631         adding the dup2 module to Emacs.
17632
17633 2011-06-24  Eric Blake  <eblake@redhat.com>
17634
17635         maint.mk: enhance useless header checks
17636         * top/maint.mk (_sc_header_without_use): Check both include
17637         styles.
17638         (sc_prohibit_assert_without_use)
17639         (sc_prohibit_close_stream_without_use)
17640         (sc_prohibit_getopt_without_use)
17641         (sc_prohibit_quotearg_without_use)
17642         (sc_prohibit_quote_without_use)
17643         (sc_prohibit_long_options_without_use)
17644         (sc_prohibit_inttostr_without_use)
17645         (sc_prohibit_ignore_value_without_use)
17646         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
17647         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
17648         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
17649         (sc_prohibit_hash_pjw_without_use)
17650         (sc_prohibit_safe_read_without_use)
17651         (sc_prohibit_argmatch_without_use)
17652         (sc_prohibit_canonicalize_without_use)
17653         (sc_prohibit_root_dev_ino_without_use)
17654         (sc_prohibit_openat_without_use)
17655         (sc_prohibit_c_ctype_without_use)
17656         (sc_prohibit_signal_without_use)
17657         (sc_prohibit_stdio--_without_use)
17658         (sc_prohibit_stdio-safer_without_use)
17659         (sc_prohibit_strings_without_use)
17660         (sc_prohibit_intprops_without_use)
17661         (sc_prohibit_stddef_without_use)
17662         (sc_prohibit_xfreopen_without_use): Update clients.
17663
17664 2011-06-24  Jim Meyering  <meyering@redhat.com>
17665
17666         syntax-check: keep one maint.mk rule in sync with its header
17667         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
17668         of the bug Eric has just fixed, with today's commit 25e4c2ec.
17669         I prefer to avoid temporary files here, so use <(...), but that
17670         is not supported by /bin/sh, so...
17671         (SHELL): Define to /bin/bash.
17672
17673 2011-06-24  Eric Blake  <eblake@redhat.com>
17674
17675         maint.mk: update sc_prohibit_intprops_without_use
17676         * top/maint.mk (_intprops_names): Match recent changes.
17677
17678 2011-06-24  Bruno Haible  <bruno@clisp.org>
17679
17680         strerror-override: No-op tweak.
17681         * lib/strerror-override.h (strerror_override): Reorder conditions,
17682         for consistency with lib/strerror-override.c.
17683
17684 2011-06-23  Eric Blake  <eblake@redhat.com>
17685
17686         maint.mk: test further PATH_MAX issues
17687         * top/maint.mk (sc_prohibit_path_max_array): Rename...
17688         (sc_prohibit_path_max_allocation): ...and also test alloca.
17689         Suggested by Jim Meyering.
17690
17691 2011-06-22  Eric Blake  <eblake@redhat.com>
17692
17693         maint.mk: add syntax-check to avoid char[PATH_MAX]
17694         * top/maint.mk (sc_prohibit_path_max_array): New rule.
17695
17696         stat: be robust to PATH_MAX definition
17697         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
17698         * modules/stat (Depends-on): Add verify.
17699
17700         link: work around IRIX bug
17701         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
17702         * lib/link.c (rpl_link): Work around it.
17703         * tests/test-link.h (test_link): Enhance test.
17704         * doc/posix-functions/link.texi (link): Document the bug.
17705
17706         getopt: silence clang warning
17707         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
17708         dereference.
17709         Reported by Gustavo Martin Domato.
17710
17711 2011-06-22  Jim Meyering  <meyering@redhat.com>
17712
17713         bootstrap: do not insert a blank line into each .gitignore file
17714         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
17715
17716 2011-06-21  Eric Blake  <eblake@redhat.com>
17717
17718         perror: test for output mismatch
17719         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
17720         perror on IRIX.
17721
17722         strerror_r: fix OpenBSD behavior on out-of-range
17723         * lib/strerror_r.c (strerror_r): Always use maximal string.
17724         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17725
17726         strerror_r: fix OpenBSD behavior on 0
17727         * lib/strerror-override.c (strerror_override): Also override 0
17728         when needed.
17729         * lib/strerror-override.h (strerror_override): Likewise.
17730         * lib/strerror.c (strerror): Simplify, now that 0 override is done
17731         earlier.
17732         * lib/strerror_r.c (strerror_r): Likewise.
17733         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
17734         behavior...
17735         (gl_FUNC_STRERROR_0): ...into new macro.
17736         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
17737         is overridden.
17738         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
17739         * modules/strerror-override (Files): Add strerror.m4.
17740         (configure.ac): Also provide override for 0 when needed.
17741         * doc/posix-functions/strerror.texi (strerror): Document this.
17742         * doc/posix-functions/perror.texi (perror): Likewise.
17743
17744         perror: adjust array size
17745         * modules/perror (Depends-on): Add strerror-override.
17746         * lib/perror.c (perror): Use it to avoid magic number.
17747
17748         strerror-override: reduce size
17749         * lib/strerror-override.c (strerror_override): Use fewer lines.
17750
17751 2011-06-20  Bruno Haible  <bruno@clisp.org>
17752
17753         pathmax: Ensure correct value for PATH_MAX on HP-UX.
17754         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
17755
17756 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
17757
17758         alloca: port to compilers that can optimize like GCC 4.6.0
17759         * lib/alloca.c (find_stack_direction): New signature, taken from
17760         Autoconf git.  This works with GCC 4.6.0.  This code should never
17761         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
17762         be used with other compilers that optimize as well as GCC 4.6.0 does.
17763         (alloca): Adjust to new signature.
17764         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
17765         New macro, which patches Autoconf in a similar way.
17766
17767         c-stack: stop worrying about stack direction
17768         * lib/c-stack.c (find_stack_direction): Remove.
17769         (segv_handler): Don't worry about stack direction growth, as it's
17770         too much of a pain to configure this correctly, given how compilers
17771         are optimizing-away our stack-growth detection code.  Instead, assume
17772         that any access to just before or just after the stack is OK.
17773         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
17774         Don't require AC_FUNC_ALLOCA; no longer needed.
17775
17776 2011-06-20  Eric Blake  <eblake@redhat.com>
17777
17778         test-stat: don't allocate PATH_MAX bytes
17779         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
17780         PATH_MAX-sized buffer.
17781         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
17782         * modules/stat-tests (Depends-on): Likewise.
17783         * tests/test-fstatat.c (includes): Drop pathmax.h.
17784         * tests/test-stat.c (includes): Likewise.
17785         Reported by Bruno Haible.
17786
17787 2011-06-20  Bruno Haible  <bruno@clisp.org>
17788
17789         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
17790         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
17791         * lib/float.c: New file.
17792         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
17793         REPLACE_FLOAT_LDBL.
17794         * modules/float (Files): Add lib/float.c.
17795         (configure.ac): Invoke AC_LIBOBJ.
17796         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
17797
17798 2011-06-20  Bruno Haible  <bruno@clisp.org>
17799
17800         Tests for module 'float'.
17801         * modules/float-tests: New file.
17802         * tests/test-float.c: New file.
17803
17804 2011-06-19  Bruno Haible  <bruno@clisp.org>
17805
17806         isinf: Coding style.
17807         * lib/isinf.c: Use GNU coding style.
17808
17809 2011-06-19  Bruno Haible  <bruno@clisp.org>
17810
17811         linkat test: Avoid test failure on AIX 7.1.
17812         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
17813         * tests/test-link.h (test_link): Likewise.
17814
17815 2011-06-19  Bruno Haible  <bruno@clisp.org>
17816
17817         pread test: Avoid test failure on OpenBSD 4.9.
17818         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
17819
17820 2011-06-19  Bruno Haible  <bruno@clisp.org>
17821
17822         sprintf-posix: Fix test failure on AIX 7.1.
17823         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
17824         * doc/posix-functions/dprintf.texi: Mention limited precision problem
17825         on AIX.
17826         * doc/posix-functions/fprintf.texi: Likewise.
17827         * doc/posix-functions/printf.texi: Likewise.
17828         * doc/posix-functions/snprintf.texi: Likewise.
17829         * doc/posix-functions/sprintf.texi: Likewise.
17830         * doc/posix-functions/vdprintf.texi: Likewise.
17831         * doc/posix-functions/vfprintf.texi: Likewise.
17832         * doc/posix-functions/vprintf.texi: Likewise.
17833         * doc/posix-functions/vsnprintf.texi: Likewise.
17834         * doc/posix-functions/vsprintf.texi: Likewise.
17835
17836 2011-06-19  Bruno Haible  <bruno@clisp.org>
17837
17838         roundl-ieee: Fix test failure on AIX 7.1.
17839         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
17840         * doc/posix-functions/roundl.texi: Mention problem with negative
17841         arguments.
17842
17843 2011-06-19  Bruno Haible  <bruno@clisp.org>
17844
17845         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17846         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
17847         * doc/posix-functions/round.texi: Mention problem with negative
17848         arguments.
17849         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
17850
17851 2011-06-19  Bruno Haible  <bruno@clisp.org>
17852
17853         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
17854         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
17855         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
17856         * doc/posix-functions/roundf.texi: Mention problem with negative
17857         arguments.
17858         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
17859
17860 2011-06-19  Bruno Haible  <bruno@clisp.org>
17861
17862         ceilf-ieee: Work around bug on MacOS X 10.5.
17863         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
17864
17865         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
17866         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
17867         IEEE compliant, avoid compiler optimizations.
17868         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
17869         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
17870         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
17871         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
17872         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17873         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17874         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17875         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
17876         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
17877         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
17878
17879 2011-06-19  Bruno Haible  <bruno@clisp.org>
17880
17881         ceilf-ieee: Work around bug on AIX 7.1.
17882         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
17883         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
17884
17885 2011-06-19  Bruno Haible  <bruno@clisp.org>
17886
17887         ceil-ieee: Work around bug on AIX 7.1.
17888         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
17889         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
17890
17891 2011-06-18  Bruno Haible  <bruno@clisp.org>
17892
17893         fsync test: Avoid test failure on MacOS X and AIX.
17894         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
17895         EINVAL.
17896
17897 2011-06-18  Bruno Haible  <bruno@clisp.org>
17898
17899         openat, fdopendir tests: Fix link errors.
17900         * modules/openat-tests (Depends-on): Add progname.
17901         * modules/fdopendir-tests (Depends-on): Likewise.
17902         * tests/test-fchownat.c: Include progname.h.
17903         (main): Call set_program_name.
17904         * tests/test-fstatat.c: Include progname.h.
17905         (main): Call set_program_name.
17906         * tests/test-mkdirat.c: Include progname.h.
17907         (main): Call set_program_name.
17908         * tests/test-openat.c: Include progname.h.
17909         (main): Call set_program_name.
17910         * tests/test-unlinkat.c: Include progname.h.
17911         (main): Call set_program_name.
17912         * tests/test-fdopendir.c: Include progname.h.
17913         (main): Call set_program_name.
17914
17915 2011-06-18  Bruno Haible  <bruno@clisp.org>
17916
17917         Doc update.
17918         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
17919         HP-UX.
17920         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
17921
17922 2011-06-18  Bruno Haible  <bruno@clisp.org>
17923
17924         getcwd tests: Avoid compilation error on HP-UX 11.31.
17925         * modules/getcwd-tests (Depends-on): Add pathmax.
17926         * tests/test-getcwd.c: Include pathmax.h.
17927
17928 2011-06-18  Bruno Haible  <bruno@clisp.org>
17929
17930         isfinite, isinf: Fix link error on AIX 6 and 7.
17931         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
17932         needed, also test the macro with a 'float' argument.
17933         * m4/isinf.m4 (gl_ISINF): Likewise.
17934
17935 2011-06-18  Bruno Haible  <bruno@clisp.org>
17936
17937         getloadavg: Don't clobber LIBS. Regression from previous commit.
17938         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
17939         AC_CHECK_LIB from here...
17940         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
17941         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
17942         gl_func_getloadavg_done.
17943         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17944
17945 2011-06-18  Bruno Haible  <bruno@clisp.org>
17946
17947         clean-temp: Improve documentation.
17948         * lib/clean-temp.h: Explain better how to use this module.
17949         Reported by John Darrington <john@darrington.wattle.id.au>.
17950
17951 2011-06-17  Bruno Haible  <bruno@clisp.org>
17952
17953         pread, pwrite: Avoid cc warning on AIX.
17954         * lib/unistd.in.h (pread): Undefine before defining as a macro.
17955         (pwrite): Likewise.
17956
17957 2011-06-17  Bruno Haible  <bruno@clisp.org>
17958
17959         spawn-pipe tests: Fix link error.
17960         * tests/test-spawn-pipe-child.c: Undefine fprintf.
17961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17962
17963 2011-06-17  Bruno Haible  <bruno@clisp.org>
17964
17965         Tests: Remove unnecessary dependency.
17966         * modules/canonicalize-tests (Depends-on): Remove progname.
17967         * modules/chown-tests (Depends-on): Likewise.
17968         * modules/dirname-tests (Depends-on): Likewise.
17969         * modules/fdopendir-tests (Depends-on): Likewise.
17970         * modules/fdutimensat-tests (Depends-on): Likewise.
17971         * modules/hash-tests (Depends-on): Likewise.
17972         * modules/lchown-tests (Depends-on): Likewise.
17973         * modules/linkat-tests (Depends-on): Likewise.
17974         * modules/renameat-tests (Depends-on): Likewise.
17975         * modules/spawn-pipe-tests (Depends-on): Likewise.
17976         * modules/utimensat-tests (Depends-on): Likewise.
17977
17978 2011-06-17  Bruno Haible  <bruno@clisp.org>
17979
17980         spawn-pipe tests: Fix link error.
17981         * tests/test-spawn-pipe-child.c: Undefine fflush.
17982
17983 2011-06-17  Bruno Haible  <bruno@clisp.org>
17984
17985         Fix tests link errors.
17986         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
17987         * modules/chown-tests (Makefile.am): Don't link test-chown with
17988         LIBINTL.
17989         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
17990         LIBINTL.
17991         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
17992         LIBINTL.
17993         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
17994         LIBINTL.
17995
17996 2011-06-16  Bruno Haible  <bruno@clisp.org>
17997
17998         crypto/gc-sha1: Fix recent regression.
17999         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
18000         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
18001
18002         crypto/gc-md5: Fix recent regression.
18003         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
18004
18005         crypto/gc-md4: Fix recent regression.
18006         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
18007         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
18008
18009         crypto/gc-arctwo: Fix recent regression.
18010         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
18011         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
18012
18013         crypto/gc-rijndael: Fix recent regression.
18014         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
18015         (configure.ac): Invoke AC_LIBOBJ here.
18016         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
18017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18018
18019         crypto/gc-hmac-sha1: Fix recent regression.
18020         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
18021         (configure.ac): Invoke AC_LIBOBJ here.
18022         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
18023         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18024
18025         crypto/gc-hmac-md5: Fix recent regression.
18026         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
18027         (configure.ac): Invoke AC_LIBOBJ here.
18028         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
18029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18030
18031         crypto/gc-des: Fix recent regression.
18032         * modules/crypto/gc-des (Files): Remove m4/des.m4.
18033         (configure.ac): Invoke AC_LIBOBJ here.
18034         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
18035         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18036
18037         crypto/gc-arcfour: Fix recent regression.
18038         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
18039         (configure.ac): Invoke AC_LIBOBJ here.
18040         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
18041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18042
18043 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
18044
18045         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
18046         After the 2011-05-21 change, this macro requires
18047         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
18048         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
18049
18050 2011-06-16  Bruno Haible  <bruno@clisp.org>
18051
18052         fprintftime: Move AC_LIBOBJ invocations to module description.
18053         * m4/fprintftime.m4: Remove file.
18054         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
18055         (configure.ac): Remove gl_FPRINTFTIME call.
18056         (Makefile.am): Augment lib_SOURCES.
18057         Reported by Jim Meyering.
18058
18059 2011-06-16  Bruno Haible  <bruno@clisp.org>
18060
18061         tmpfile-safer: Finish 2011-05-23 commit.
18062         * m4/stdio-safer.m4: Really remove file.
18063         Reported by Jim Meyering.
18064
18065 2011-06-16  Bruno Haible  <bruno@clisp.org>
18066
18067         syntax-check: Fix typo.
18068         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
18069         printf-posix.m4.
18070         Reported by Jim Meyering.
18071
18072 2011-06-13  Jim Meyering  <meyering@redhat.com>
18073
18074         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
18075         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
18076
18077 2011-05-23  Bruno Haible  <bruno@clisp.org>
18078
18079         yesno: Move AC_LIBOBJ invocations to module description.
18080         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
18081         * modules/yesno (Makefile.am): Augment lib_SOURCES.
18082
18083 2011-05-23  Bruno Haible  <bruno@clisp.org>
18084
18085         xstrtol: Move AC_LIBOBJ invocations to module description.
18086         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
18087         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
18088
18089 2011-05-23  Bruno Haible  <bruno@clisp.org>
18090
18091         xstrtold: Move AC_LIBOBJ invocations to module description.
18092         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
18093         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
18094
18095 2011-05-23  Bruno Haible  <bruno@clisp.org>
18096
18097         xstrtod: Move AC_LIBOBJ invocations to module description.
18098         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
18099         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
18100
18101 2011-05-23  Bruno Haible  <bruno@clisp.org>
18102
18103         xnanosleep: Move AC_LIBOBJ invocations to module description.
18104         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
18105         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
18106
18107 2011-05-23  Bruno Haible  <bruno@clisp.org>
18108
18109         xgetcwd: Move AC_LIBOBJ invocations to module description.
18110         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
18111         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
18112
18113 2011-05-23  Bruno Haible  <bruno@clisp.org>
18114
18115         xalloc: Move AC_LIBOBJ invocations to module description.
18116         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
18117         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
18118
18119 2011-05-23  Bruno Haible  <bruno@clisp.org>
18120
18121         write-any-file: Move AC_LIBOBJ invocations to module description.
18122         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
18123         invocation.
18124         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
18125
18126 2011-05-23  Bruno Haible  <bruno@clisp.org>
18127
18128         utimens: Move AC_LIBOBJ invocations to module description.
18129         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
18130         * modules/utimens (Makefile.am): Augment lib_SOURCES.
18131
18132 2011-05-23  Bruno Haible  <bruno@clisp.org>
18133
18134         utimecmp: Move AC_LIBOBJ invocations to module description.
18135         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
18136         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
18137
18138 2011-05-23  Bruno Haible  <bruno@clisp.org>
18139
18140         userspec: Move AC_LIBOBJ invocations to module description.
18141         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
18142         * modules/userspec (Makefile.am): Augment lib_SOURCES.
18143
18144 2011-05-23  Bruno Haible  <bruno@clisp.org>
18145
18146         unlinkdir: Move AC_LIBOBJ invocations to module description.
18147         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
18148         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
18149
18150 2011-05-23  Bruno Haible  <bruno@clisp.org>
18151
18152         unistd-safer: Move AC_LIBOBJ invocations to module description.
18153         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
18154         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
18155
18156 2011-05-23  Bruno Haible  <bruno@clisp.org>
18157
18158         tempname: Move AC_LIBOBJ invocations to module description.
18159         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
18160         * modules/tempname (Makefile.am): Augment lib_SOURCES.
18161
18162 2011-05-23  Bruno Haible  <bruno@clisp.org>
18163
18164         strftime: Move AC_LIBOBJ invocations to module description.
18165         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
18166         * modules/strftime (Makefile.am): Augment lib_SOURCES.
18167
18168 2011-05-23  Bruno Haible  <bruno@clisp.org>
18169
18170         stdlib-safer: Move AC_LIBOBJ invocations to module description.
18171         * m4/stdlib-safer.m4: Remove file.
18172         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
18173         (configure.ac): Remove gl_STDLIB_SAFER call.
18174         (Makefile.am): Augment lib_SOURCES.
18175
18176 2011-05-23  Bruno Haible  <bruno@clisp.org>
18177
18178         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
18179         * m4/stdio-safer.m4: Remove file.
18180         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
18181         (configure.ac): Remove gl_TMPFILE_SAFER call.
18182         (Makefile.am): Augment lib_SOURCES.
18183
18184 2011-05-23  Bruno Haible  <bruno@clisp.org>
18185
18186         popen-safer: Move AC_LIBOBJ invocations to module description.
18187         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
18188         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
18189         (configure.ac): Remove gl_POPEN_SAFER call.
18190         (Makefile.am): Augment lib_SOURCES.
18191
18192 2011-05-23  Bruno Haible  <bruno@clisp.org>
18193
18194         freopen-safer: Move AC_LIBOBJ invocations to module description.
18195         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
18196         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
18197         (configure.ac): Remove gl_FREOPEN_SAFER call.
18198         (Makefile.am): Augment lib_SOURCES.
18199
18200 2011-05-23  Bruno Haible  <bruno@clisp.org>
18201
18202         fopen-safer: Move AC_LIBOBJ invocations to module description.
18203         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
18204         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
18205         (configure.ac): Remove gl_FOPEN_SAFER call.
18206         (Makefile.am): Augment lib_SOURCES.
18207
18208 2011-05-23  Bruno Haible  <bruno@clisp.org>
18209
18210         crypto/sha512: Move AC_LIBOBJ invocations to module description.
18211         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
18212         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
18213
18214 2011-05-23  Bruno Haible  <bruno@clisp.org>
18215
18216         crypto/sha256: Move AC_LIBOBJ invocations to module description.
18217         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
18218         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
18219
18220 2011-05-23  Bruno Haible  <bruno@clisp.org>
18221
18222         crypto/sha1: Move AC_LIBOBJ invocations to module description.
18223         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
18224         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
18225
18226 2011-05-23  Bruno Haible  <bruno@clisp.org>
18227
18228         settime: Move AC_LIBOBJ invocations to module description.
18229         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
18230         * modules/settime (Makefile.am): Augment lib_SOURCES.
18231
18232 2011-05-23  Bruno Haible  <bruno@clisp.org>
18233
18234         savedir: Move AC_LIBOBJ invocations to module description.
18235         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
18236         * modules/savedir (Makefile.am): Augment lib_SOURCES.
18237
18238 2011-05-23  Bruno Haible  <bruno@clisp.org>
18239
18240         save-cwd: Move AC_LIBOBJ invocations to module description.
18241         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
18242         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
18243
18244 2011-05-23  Bruno Haible  <bruno@clisp.org>
18245
18246         same: Move AC_LIBOBJ invocations to module description.
18247         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
18248         * modules/same (Makefile.am): Augment lib_SOURCES.
18249
18250 2011-05-23  Bruno Haible  <bruno@clisp.org>
18251
18252         safe-write: Move AC_LIBOBJ invocations to module description.
18253         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
18254         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
18255         instead of gl_SAFE_WRITE.
18256         (Makefile.am): Augment lib_SOURCES.
18257
18258 2011-05-23  Bruno Haible  <bruno@clisp.org>
18259
18260         safe-read: Move AC_LIBOBJ invocations to module description.
18261         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
18262         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
18263         of gl_SAFE_READ.
18264         (Makefile.am): Augment lib_SOURCES.
18265
18266 2011-05-23  Bruno Haible  <bruno@clisp.org>
18267
18268         safe-alloc: Move AC_LIBOBJ invocations to module description.
18269         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
18270         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
18271
18272 2011-05-23  Bruno Haible  <bruno@clisp.org>
18273
18274         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
18275         * m4/rijndael.m4: Remove file.
18276         * modules/crypto/rijndael (Files): Remove it.
18277         (configure.ac): Remove gl_RIJNDAEL call.
18278         (Makefile.am): Augment lib_SOURCES.
18279
18280 2011-05-23  Bruno Haible  <bruno@clisp.org>
18281
18282         readtokens: Move AC_LIBOBJ invocations to module description.
18283         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
18284         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
18285
18286 2011-05-23  Bruno Haible  <bruno@clisp.org>
18287
18288         read-file: Move AC_LIBOBJ invocations to module description.
18289         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
18290         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
18291         of gl_FUNC_READ_FILE.
18292         (Makefile.am): Augment lib_SOURCES.
18293
18294 2011-05-23  Bruno Haible  <bruno@clisp.org>
18295
18296         quotearg: Move AC_LIBOBJ invocations to module description.
18297         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
18298         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
18299
18300 2011-05-23  Bruno Haible  <bruno@clisp.org>
18301
18302         quote: Move AC_LIBOBJ invocations to module description.
18303         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
18304         * modules/quote (Makefile.am): Augment lib_SOURCES.
18305
18306 2011-05-23  Bruno Haible  <bruno@clisp.org>
18307
18308         posixver: Move AC_LIBOBJ invocations to module description.
18309         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
18310         * modules/posixver (Makefile.am): Augment lib_SOURCES.
18311
18312 2011-05-23  Bruno Haible  <bruno@clisp.org>
18313
18314         posixtm: Move AC_LIBOBJ invocations to module description.
18315         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
18316         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
18317
18318 2011-05-23  Bruno Haible  <bruno@clisp.org>
18319
18320         physmem: Move AC_LIBOBJ invocations to module description.
18321         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
18322         * modules/physmem (Makefile.am): Augment lib_SOURCES.
18323
18324 2011-05-23  Bruno Haible  <bruno@clisp.org>
18325
18326         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
18327         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
18328         invocation.
18329         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
18330
18331 2011-05-23  Bruno Haible  <bruno@clisp.org>
18332
18333         mpsort: Move AC_LIBOBJ invocations to module description.
18334         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
18335         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
18336
18337 2011-05-23  Bruno Haible  <bruno@clisp.org>
18338
18339         modechange: Move AC_LIBOBJ invocations to module description.
18340         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
18341         * modules/modechange (Makefile.am): Augment lib_SOURCES.
18342
18343 2011-05-23  Bruno Haible  <bruno@clisp.org>
18344
18345         mkdir-p: Move AC_LIBOBJ invocations to module description.
18346         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
18347         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
18348
18349 2011-05-23  Bruno Haible  <bruno@clisp.org>
18350
18351         mkancesdirs: Move AC_LIBOBJ invocations to module description.
18352         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
18353         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
18354
18355 2011-05-23  Bruno Haible  <bruno@clisp.org>
18356
18357         mgetgroups: Move AC_LIBOBJ invocations to module description.
18358         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
18359         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
18360
18361 2011-05-23  Bruno Haible  <bruno@clisp.org>
18362
18363         memxor: Move AC_LIBOBJ invocations to module description.
18364         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
18365         * modules/memxor (Makefile.am): Augment lib_SOURCES.
18366
18367 2011-05-23  Bruno Haible  <bruno@clisp.org>
18368
18369         memcoll: Move AC_LIBOBJ invocations to module description.
18370         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
18371         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
18372
18373 2011-05-23  Bruno Haible  <bruno@clisp.org>
18374
18375         memcasecmp: Move AC_LIBOBJ invocations to module description.
18376         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
18377         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
18378
18379 2011-05-23  Bruno Haible  <bruno@clisp.org>
18380
18381         crypto/md5: Move AC_LIBOBJ invocations to module description.
18382         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
18383         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
18384
18385 2011-05-23  Bruno Haible  <bruno@clisp.org>
18386
18387         crypto/md4: Move AC_LIBOBJ invocations to module description.
18388         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
18389         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
18390
18391 2011-05-23  Bruno Haible  <bruno@clisp.org>
18392
18393         crypto/md2: Move AC_LIBOBJ invocations to module description.
18394         * m4/md2.m4: Remove file.
18395         * modules/crypto/md2 (Files): Remove it.
18396         (configure.ac): Remove gl_MD2 call.
18397         (Makefile.am): Augment lib_SOURCES.
18398
18399 2011-05-23  Bruno Haible  <bruno@clisp.org>
18400
18401         long-options: Move AC_LIBOBJ invocations to module description.
18402         * m4/long-options.m4: Remove file.
18403         * modules/long-options (Files): Remove it.
18404         (configure.ac): Remove gl_LONG_OPTIONS call.
18405         (Makefile.am): Augment lib_SOURCES.
18406
18407 2011-05-23  Bruno Haible  <bruno@clisp.org>
18408
18409         i-ring: Move AC_LIBOBJ invocations to module description.
18410         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
18411         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
18412
18413 2011-05-23  Bruno Haible  <bruno@clisp.org>
18414
18415         idcache: Move AC_LIBOBJ invocations to module description.
18416         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
18417         * modules/idcache (Makefile.am): Augment lib_SOURCES.
18418
18419 2011-05-23  Bruno Haible  <bruno@clisp.org>
18420
18421         human: Move AC_LIBOBJ invocations to module description.
18422         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
18423         * modules/human (Makefile.am): Augment lib_SOURCES.
18424
18425 2011-05-23  Bruno Haible  <bruno@clisp.org>
18426
18427         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
18428         * m4/hmac-sha1.m4: Remove file.
18429         * modules/crypto/hmac-sha1 (Files): Remove it.
18430         (configure.ac): Remove gl_HMAC_SHA1 call.
18431         (Makefile.am): Augment lib_SOURCES.
18432
18433 2011-05-23  Bruno Haible  <bruno@clisp.org>
18434
18435         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
18436         * m4/hmac-md5.m4: Remove file.
18437         * modules/crypto/hmac-md5 (Files): Remove it.
18438         (configure.ac): Remove gl_HMAC_MD5 call.
18439         (Makefile.am): Augment lib_SOURCES.
18440
18441 2011-05-23  Bruno Haible  <bruno@clisp.org>
18442
18443         hash: Move AC_LIBOBJ invocations to module description.
18444         * m4/hash.m4: Remove file.
18445         * modules/hash (Files): Remove it.
18446         (configure.ac): Remove gl_HASH call.
18447         (Makefile.am): Augment lib_SOURCES.
18448
18449 2011-05-23  Bruno Haible  <bruno@clisp.org>
18450
18451         hard-locale: Move AC_LIBOBJ invocations to module description.
18452         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
18453         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
18454
18455 2011-05-23  Bruno Haible  <bruno@clisp.org>
18456
18457         getugroups: Move AC_LIBOBJ invocations to module description.
18458         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
18459         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
18460
18461 2011-05-23  Bruno Haible  <bruno@clisp.org>
18462
18463         gettime: Move AC_LIBOBJ invocations to module description.
18464         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
18465         * modules/gettime (Makefile.am): Augment lib_SOURCES.
18466
18467 2011-05-23  Bruno Haible  <bruno@clisp.org>
18468
18469         getndelim2: Move AC_LIBOBJ invocations to module description.
18470         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
18471         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
18472
18473 2011-05-23  Bruno Haible  <bruno@clisp.org>
18474
18475         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
18476         * m4/gc-pbkdf2-sha1.m4: Remove file.
18477         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
18478         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
18479         (Makefile.am): Augment lib_SOURCES.
18480
18481 2011-05-23  Bruno Haible  <bruno@clisp.org>
18482
18483         fts: Move AC_LIBOBJ invocations to module description.
18484         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
18485         * modules/fts (configure.ac): ... to here.
18486
18487 2011-05-23  Bruno Haible  <bruno@clisp.org>
18488
18489         file-type: Move AC_LIBOBJ invocations to module description.
18490         * m4/file-type.m4: Remove file.
18491         * modules/file-type (Files): Remove it.
18492         (configure.ac): Remove gl_FILE_TYPE call.
18493         (Makefile.am): Augment lib_SOURCES.
18494
18495 2011-05-23  Bruno Haible  <bruno@clisp.org>
18496
18497         filenamecat*: Respect rules for use of AC_LIBOBJ.
18498         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
18499         Remove AC_LIBOBJ invocation.
18500         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
18501         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
18502
18503 2011-05-23  Bruno Haible  <bruno@clisp.org>
18504
18505         filemode: Move AC_LIBOBJ invocations to module description.
18506         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
18507         * modules/filemode (Makefile.am): Augment lib_SOURCES.
18508
18509 2011-05-23  Bruno Haible  <bruno@clisp.org>
18510
18511         openat-safer: Move AC_LIBOBJ invocations to module description.
18512         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
18513         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
18514
18515 2011-05-23  Bruno Haible  <bruno@clisp.org>
18516
18517         fcntl-safer: Move AC_LIBOBJ invocations to module description.
18518         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
18519         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
18520
18521 2011-05-23  Bruno Haible  <bruno@clisp.org>
18522
18523         exclude: Move AC_LIBOBJ invocations to module description.
18524         * m4/exclude.m4: Remove file.
18525         * modules/exclude (Files): Remove it.
18526         (configure.ac): Remove gl_EXCLUDE call.
18527         (Makefile.am): Augment lib_SOURCES.
18528
18529 2011-05-23  Bruno Haible  <bruno@clisp.org>
18530
18531         dirname*: Respect rules for use of AC_LIBOBJ.
18532         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
18533         invocations.
18534         * modules/dirname (Makefile.am): Augment lib_SOURCES.
18535         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
18536
18537 2011-05-23  Bruno Haible  <bruno@clisp.org>
18538
18539         dirent-safer: Move AC_LIBOBJ invocations to module description.
18540         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
18541         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
18542
18543 2011-05-23  Bruno Haible  <bruno@clisp.org>
18544
18545         crypto/des: Move AC_LIBOBJ invocations to module description.
18546         * m4/des.m4: Remove file.
18547         * modules/crypto/des (Files): Remove it.
18548         (configure.ac): Remove gl_DES call.
18549         (Makefile.am): Augment lib_SOURCES.
18550
18551 2011-05-23  Bruno Haible  <bruno@clisp.org>
18552
18553         cycle-check: Move AC_LIBOBJ invocations to module description.
18554         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
18555         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
18556
18557 2011-05-23  Bruno Haible  <bruno@clisp.org>
18558
18559         c-strtold: Move AC_LIBOBJ invocations to module description.
18560         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
18561         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
18562
18563 2011-05-23  Bruno Haible  <bruno@clisp.org>
18564
18565         c-strtod: Move AC_LIBOBJ invocations to module description.
18566         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
18567         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
18568
18569 2011-05-23  Bruno Haible  <bruno@clisp.org>
18570
18571         crc: Move AC_LIBOBJ invocations to module description.
18572         * m4/crc.m4: Remove file.
18573         * modules/crc (Files): Remove it.
18574         (configure.ac): Remove gl_CRC call.
18575         (Makefile.am): Augment lib_SOURCES.
18576
18577 2011-05-23  Bruno Haible  <bruno@clisp.org>
18578
18579         close-stream: Move AC_LIBOBJ invocations to module description.
18580         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
18581         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
18582
18583 2011-05-23  Bruno Haible  <bruno@clisp.org>
18584
18585         closeout: Move AC_LIBOBJ invocations to module description.
18586         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
18587         * modules/closeout (Makefile.am): Augment lib_SOURCES.
18588
18589 2011-05-23  Bruno Haible  <bruno@clisp.org>
18590
18591         closein: Move AC_LIBOBJ invocations to module description.
18592         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
18593         * modules/closein (Makefile.am): Augment lib_SOURCES.
18594
18595 2011-05-23  Bruno Haible  <bruno@clisp.org>
18596
18597         cloexec: Move AC_LIBOBJ invocations to module description.
18598         * m4/cloexec.m4: Remove file.
18599         * modules/cloexec (Files): Remove it.
18600         (configure.ac): Remove gl_CLOEXEC call.
18601         (Makefile.am): Augment lib_SOURCES.
18602
18603 2011-05-23  Bruno Haible  <bruno@clisp.org>
18604
18605         check-version: Move AC_LIBOBJ invocations to module description.
18606         * m4/check-version.m4: Remove file.
18607         * modules/check-version (Files): Remove it.
18608         (configure.ac): Remove gl_CHECK_VERSION call.
18609         (Makefile.am): Augment lib_SOURCES.
18610
18611 2011-05-23  Bruno Haible  <bruno@clisp.org>
18612
18613         chdir-safer: Move AC_LIBOBJ invocations to module description.
18614         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
18615         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
18616
18617 2011-05-23  Bruno Haible  <bruno@clisp.org>
18618
18619         canonicalize: Move AC_LIBOBJ invocations to module description.
18620         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
18621         AC_LIBOBJ invocation.
18622         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
18623
18624 2011-05-23  Bruno Haible  <bruno@clisp.org>
18625
18626         canon-host: Move AC_LIBOBJ invocations to module description.
18627         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
18628         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
18629         instead of gl_CANON_HOST.
18630         (Makefile.am): Augment lib_SOURCES.
18631
18632 2011-05-23  Bruno Haible  <bruno@clisp.org>
18633
18634         backupfile: Move AC_LIBOBJ invocations to module description.
18635         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
18636         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
18637
18638 2011-05-23  Bruno Haible  <bruno@clisp.org>
18639
18640         argmatch: Move AC_LIBOBJ invocations to module description.
18641         * m4/argmatch.m4: Remove file.
18642         * modules/argmatch (Files): Remove it.
18643         (configure.ac): Remove gl_ARGMATCH call.
18644         (Makefile.am): Augment lib_SOURCES.
18645
18646 2011-05-23  Bruno Haible  <bruno@clisp.org>
18647
18648         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
18649         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
18650         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
18651
18652 2011-05-23  Bruno Haible  <bruno@clisp.org>
18653
18654         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
18655         * m4/arcfour.m4: Remove file.
18656         * modules/crypto/arcfour (Files): Remove it.
18657         (configure.ac): Remove gl_ARCFOUR call.
18658         (Makefile.am): Augment lib_SOURCES.
18659
18660 2011-05-22  Bruno Haible  <bruno@clisp.org>
18661
18662         write: Move AC_LIBOBJ invocations to module description.
18663         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
18664         * modules/write (configure.ac): ... to here.
18665
18666 2011-05-22  Bruno Haible  <bruno@clisp.org>
18667
18668         wmemset: Move AC_LIBOBJ invocations to module description.
18669         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
18670         here...
18671         * modules/wmemset (configure.ac): ... to here.
18672
18673 2011-05-22  Bruno Haible  <bruno@clisp.org>
18674
18675         wmemmove: Move AC_LIBOBJ invocations to module description.
18676         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
18677         here...
18678         * modules/wmemmove (configure.ac): ... to here.
18679
18680 2011-05-22  Bruno Haible  <bruno@clisp.org>
18681
18682         wmemcpy: Move AC_LIBOBJ invocations to module description.
18683         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
18684         here...
18685         * modules/wmemcpy (configure.ac): ... to here.
18686
18687 2011-05-22  Bruno Haible  <bruno@clisp.org>
18688
18689         wmemcmp: Move AC_LIBOBJ invocations to module description.
18690         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
18691         here...
18692         * modules/wmemcmp (configure.ac): ... to here.
18693
18694 2011-05-22  Bruno Haible  <bruno@clisp.org>
18695
18696         wmemchr: Move AC_LIBOBJ invocations to module description.
18697         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
18698         here...
18699         * modules/wmemchr (configure.ac): ... to here.
18700
18701 2011-05-22  Bruno Haible  <bruno@clisp.org>
18702
18703         wcswidth: Move AC_LIBOBJ invocations to module description.
18704         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
18705         here...
18706         * modules/wcswidth (configure.ac): ... to here.
18707
18708 2011-05-22  Bruno Haible  <bruno@clisp.org>
18709
18710         wcwidth: Respect rules for use of AC_LIBOBJ.
18711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
18712         invocation from here...
18713         * modules/wcwidth (configure.ac): ... to here.
18714         (Depends-on): Update conditions.
18715
18716 2011-05-22  Bruno Haible  <bruno@clisp.org>
18717
18718         wctype: Move AC_LIBOBJ invocations to module description.
18719         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
18720         invocation from here...
18721         * modules/wctype (configure.ac): ... to here.
18722         (Depends-on): Update conditions.
18723
18724 2011-05-22  Bruno Haible  <bruno@clisp.org>
18725
18726         wctrans: Move AC_LIBOBJ invocations to module description.
18727         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
18728         invocation from here...
18729         * modules/wctrans (configure.ac): ... to here.
18730
18731 2011-05-22  Bruno Haible  <bruno@clisp.org>
18732
18733         wctomb: Move AC_LIBOBJ invocations to module description.
18734         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
18735         invocations from here...
18736         * modules/wctomb (configure.ac): ... to here.
18737
18738 2011-05-22  Bruno Haible  <bruno@clisp.org>
18739
18740         wctob: Move AC_LIBOBJ invocations to module description.
18741         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
18742         gl_PREREQ_WCTOB invocations from here...
18743         * modules/wctob (configure.ac): ... to here.
18744         (Depends-on): Update conditions.
18745
18746 2011-05-22  Bruno Haible  <bruno@clisp.org>
18747
18748         wcsxfrm: Move AC_LIBOBJ invocations to module description.
18749         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
18750         here...
18751         * modules/wcsxfrm (configure.ac): ... to here.
18752
18753 2011-05-22  Bruno Haible  <bruno@clisp.org>
18754
18755         wcstok: Move AC_LIBOBJ invocations to module description.
18756         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
18757         * modules/wcstok (configure.ac): ... to here.
18758
18759 2011-05-22  Bruno Haible  <bruno@clisp.org>
18760
18761         wcsstr: Move AC_LIBOBJ invocations to module description.
18762         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
18763         * modules/wcsstr (configure.ac): ... to here.
18764
18765 2011-05-22  Bruno Haible  <bruno@clisp.org>
18766
18767         wcsspn: Move AC_LIBOBJ invocations to module description.
18768         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
18769         * modules/wcsspn (configure.ac): ... to here.
18770
18771 2011-05-22  Bruno Haible  <bruno@clisp.org>
18772
18773         wcsrtombs: Move AC_LIBOBJ invocations to module description.
18774         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
18775         gl_PREREQ_WCSRTOMBS invocations from here...
18776         * modules/wcsrtombs (configure.ac): ... to here.
18777
18778 2011-05-22  Bruno Haible  <bruno@clisp.org>
18779
18780         wcsrchr: Move AC_LIBOBJ invocations to module description.
18781         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
18782         here...
18783         * modules/wcsrchr (configure.ac): ... to here.
18784
18785 2011-05-22  Bruno Haible  <bruno@clisp.org>
18786
18787         wcspbrk: Move AC_LIBOBJ invocations to module description.
18788         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
18789         here...
18790         * modules/wcspbrk (configure.ac): ... to here.
18791
18792 2011-05-22  Bruno Haible  <bruno@clisp.org>
18793
18794         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
18795         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
18796         gl_PREREQ_WCSNRTOMBS invocations from here...
18797         * modules/wcsnrtombs (configure.ac): ... to here.
18798
18799 2011-05-22  Bruno Haible  <bruno@clisp.org>
18800
18801         wcsnlen: Move AC_LIBOBJ invocations to module description.
18802         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
18803         here...
18804         * modules/wcsnlen (configure.ac): ... to here.
18805
18806 2011-05-22  Bruno Haible  <bruno@clisp.org>
18807
18808         wcsncpy: Move AC_LIBOBJ invocations to module description.
18809         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
18810         here...
18811         * modules/wcsncpy (configure.ac): ... to here.
18812
18813 2011-05-22  Bruno Haible  <bruno@clisp.org>
18814
18815         wcsncmp: Move AC_LIBOBJ invocations to module description.
18816         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
18817         here...
18818         * modules/wcsncmp (configure.ac): ... to here.
18819
18820 2011-05-22  Bruno Haible  <bruno@clisp.org>
18821
18822         wcsncat: Move AC_LIBOBJ invocations to module description.
18823         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
18824         here...
18825         * modules/wcsncat (configure.ac): ... to here.
18826
18827 2011-05-22  Bruno Haible  <bruno@clisp.org>
18828
18829         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
18830         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
18831         from here...
18832         * modules/wcsncasecmp (configure.ac): ... to here.
18833
18834 2011-05-22  Bruno Haible  <bruno@clisp.org>
18835
18836         wcslen: Move AC_LIBOBJ invocations to module description.
18837         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
18838         * modules/wcslen (configure.ac): ... to here.
18839
18840 2011-05-22  Bruno Haible  <bruno@clisp.org>
18841
18842         wcsdup: Move AC_LIBOBJ invocations to module description.
18843         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
18844         * modules/wcsdup (configure.ac): ... to here.
18845
18846 2011-05-22  Bruno Haible  <bruno@clisp.org>
18847
18848         wcscspn: Move AC_LIBOBJ invocations to module description.
18849         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
18850         here...
18851         * modules/wcscspn (configure.ac): ... to here.
18852
18853 2011-05-22  Bruno Haible  <bruno@clisp.org>
18854
18855         wcscpy: Move AC_LIBOBJ invocations to module description.
18856         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
18857         * modules/wcscpy (configure.ac): ... to here.
18858
18859 2011-05-22  Bruno Haible  <bruno@clisp.org>
18860
18861         wcscoll: Move AC_LIBOBJ invocations to module description.
18862         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
18863         here...
18864         * modules/wcscoll (configure.ac): ... to here.
18865
18866 2011-05-22  Bruno Haible  <bruno@clisp.org>
18867
18868         wcscmp: Move AC_LIBOBJ invocations to module description.
18869         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
18870         * modules/wcscmp (configure.ac): ... to here.
18871
18872 2011-05-22  Bruno Haible  <bruno@clisp.org>
18873
18874         wcschr: Move AC_LIBOBJ invocations to module description.
18875         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
18876         * modules/wcschr (configure.ac): ... to here.
18877
18878 2011-05-22  Bruno Haible  <bruno@clisp.org>
18879
18880         wcscat: Move AC_LIBOBJ invocations to module description.
18881         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
18882         * modules/wcscat (configure.ac): ... to here.
18883
18884 2011-05-22  Bruno Haible  <bruno@clisp.org>
18885
18886         wcscasecmp: Move AC_LIBOBJ invocations to module description.
18887         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
18888         here...
18889         * modules/wcscasecmp (configure.ac): ... to here.
18890
18891 2011-05-22  Bruno Haible  <bruno@clisp.org>
18892
18893         wcrtomb: Move AC_LIBOBJ invocations to module description.
18894         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
18895         invocations from here...
18896         * modules/wcrtomb (configure.ac): ... to here.
18897
18898 2011-05-22  Bruno Haible  <bruno@clisp.org>
18899
18900         wcpncpy: Move AC_LIBOBJ invocations to module description.
18901         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
18902         here...
18903         * modules/wcpncpy (configure.ac): ... to here.
18904
18905 2011-05-22  Bruno Haible  <bruno@clisp.org>
18906
18907         wcpcpy: Move AC_LIBOBJ invocations to module description.
18908         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
18909         * modules/wcpcpy (configure.ac): ... to here.
18910
18911 2011-05-22  Bruno Haible  <bruno@clisp.org>
18912
18913         waitpid: Move AC_LIBOBJ invocations to module description.
18914         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
18915         invocation from here...
18916         * modules/waitpid (configure.ac): ... to here.
18917
18918 2011-05-22  Bruno Haible  <bruno@clisp.org>
18919
18920         utimensat: Move AC_LIBOBJ invocations to module description.
18921         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
18922         here...
18923         * modules/utimensat (configure.ac): ... to here.
18924
18925 2011-05-22  Bruno Haible  <bruno@clisp.org>
18926
18927         usleep: Move AC_LIBOBJ invocations to module description.
18928         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
18929         here...
18930         * modules/usleep (configure.ac): ... to here.
18931
18932 2011-05-22  Bruno Haible  <bruno@clisp.org>
18933
18934         unlockpt: Move AC_LIBOBJ invocations to module description.
18935         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
18936         gl_PREREQ_UNLOCKPT invocations from here...
18937         * modules/unlockpt (configure.ac): ... to here.
18938
18939 2011-05-22  Bruno Haible  <bruno@clisp.org>
18940
18941         unlink: Respect rules for use of AC_LIBOBJ.
18942         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
18943         * modules/unlink (configure.ac): ... to here.
18944
18945 2011-05-22  Bruno Haible  <bruno@clisp.org>
18946
18947         uname: Move AC_LIBOBJ invocations to module description.
18948         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
18949         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
18950         here...
18951         * modules/uname (configure.ac): ... to here.
18952
18953 2011-05-22  Bruno Haible  <bruno@clisp.org>
18954
18955         ttyname_r: Move AC_LIBOBJ invocations to module description.
18956         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
18957         gl_PREREQ_TTYNAME_R invocations from here...
18958         * modules/ttyname_r (configure.ac): ... to here.
18959
18960 2011-05-22  Bruno Haible  <bruno@clisp.org>
18961
18962         tsearch: Move AC_LIBOBJ invocations to module description.
18963         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
18964         invocations from here...
18965         * modules/tsearch (configure.ac): ... to here.
18966
18967 2011-05-22  Bruno Haible  <bruno@clisp.org>
18968
18969         towctrans: Move AC_LIBOBJ invocations to module description.
18970         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
18971         AC_LIBOBJ invocation from here...
18972         * modules/towctrans (configure.ac): ... to here.
18973
18974 2011-05-22  Bruno Haible  <bruno@clisp.org>
18975
18976         tmpfile: Move AC_LIBOBJ invocations to module description.
18977         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
18978         invocations from here...
18979         * modules/tmpfile (configure.ac): ... to here.
18980
18981 2011-05-22  Bruno Haible  <bruno@clisp.org>
18982
18983         times: Move AC_LIBOBJ invocations to module description.
18984         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
18985         * modules/times (configure.ac): ... to here.
18986
18987 2011-05-22  Bruno Haible  <bruno@clisp.org>
18988
18989         time_r: Move AC_LIBOBJ invocations to module description.
18990         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
18991         invocations from here...
18992         * modules/time_r (configure.ac): ... to here.
18993
18994 2011-05-22  Bruno Haible  <bruno@clisp.org>
18995
18996         timegm: Move AC_LIBOBJ invocations to module description.
18997         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
18998         invocations from here...
18999         * modules/timegm (configure.ac): ... to here.
19000
19001 2011-05-22  Bruno Haible  <bruno@clisp.org>
19002
19003         tcgetsid: Move AC_LIBOBJ invocations to module description.
19004         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
19005         and gl_PREREQ_TCGETSID invocations from here...
19006         * modules/tcgetsid (configure.ac): ... to here.
19007         (Depends-on): Update conditions.
19008
19009 2011-05-22  Bruno Haible  <bruno@clisp.org>
19010
19011         symlinkat: Move AC_LIBOBJ invocations to module description.
19012         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
19013         here...
19014         * modules/symlinkat (configure.ac): ... to here.
19015
19016 2011-05-22  Bruno Haible  <bruno@clisp.org>
19017
19018         symlink: Move AC_LIBOBJ invocations to module description.
19019         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
19020         here...
19021         * modules/symlink (configure.ac): ... to here.
19022
19023 2011-05-22  Bruno Haible  <bruno@clisp.org>
19024
19025         strverscmp: Move AC_LIBOBJ invocations to module description.
19026         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
19027         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
19028         from here...
19029         * modules/strverscmp (configure.ac): ... to here.
19030
19031 2011-05-22  Bruno Haible  <bruno@clisp.org>
19032
19033         strtok_r: Move AC_LIBOBJ invocations to module description.
19034         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
19035         and gl_PREREQ_STRTOK_R invocations from here...
19036         * modules/strtok_r (configure.ac): ... to here.
19037         (Depends-on): Update conditions.
19038
19039 2011-05-22  Bruno Haible  <bruno@clisp.org>
19040
19041         strtoumax: Move AC_LIBOBJ invocations to module description.
19042         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
19043         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
19044         from here...
19045         * modules/strtoumax (configure.ac): ... to here.
19046
19047 2011-05-22  Bruno Haible  <bruno@clisp.org>
19048
19049         strtoimax: Move AC_LIBOBJ invocations to module description.
19050         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
19051         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
19052         from here...
19053         * modules/strtoimax (configure.ac): ... to here.
19054
19055 2011-05-22  Bruno Haible  <bruno@clisp.org>
19056
19057         strtoull: Move AC_LIBOBJ invocations to module description.
19058         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
19059         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
19060         from here...
19061         * modules/strtoull (configure.ac): ... to here.
19062
19063 2011-05-22  Bruno Haible  <bruno@clisp.org>
19064
19065         strtoll: Move AC_LIBOBJ invocations to module description.
19066         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
19067         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
19068         here...
19069         * modules/strtoll (configure.ac): ... to here.
19070
19071 2011-05-22  Bruno Haible  <bruno@clisp.org>
19072
19073         strtoul: Move AC_LIBOBJ invocations to module description.
19074         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
19075         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
19076         * modules/strtoul (configure.ac): ... to here.
19077
19078 2011-05-22  Bruno Haible  <bruno@clisp.org>
19079
19080         strtol: Move AC_LIBOBJ invocations to module description.
19081         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
19082         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
19083         * modules/strtol (configure.ac): ... to here.
19084
19085 2011-05-22  Bruno Haible  <bruno@clisp.org>
19086
19087         strtod: Move AC_LIBOBJ invocations to module description.
19088         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
19089         invocations from here...
19090         * modules/strtod (configure.ac): ... to here.
19091
19092 2011-05-22  Bruno Haible  <bruno@clisp.org>
19093
19094         strstr*: Move AC_LIBOBJ invocations to module description.
19095         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
19096         invocations from here...
19097         * modules/strstr-simple (configure.ac): ... to here.
19098         * modules/strstr (configure.ac): ... and here.
19099
19100 2011-05-22  Bruno Haible  <bruno@clisp.org>
19101
19102         strsignal: Move AC_LIBOBJ invocations to module description.
19103         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
19104         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
19105         * modules/strsignal (configure.ac): ... to here.
19106         (Depends-on): Update conditions.
19107
19108 2011-05-22  Bruno Haible  <bruno@clisp.org>
19109
19110         strsep: Move AC_LIBOBJ invocations to module description.
19111         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
19112         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
19113         here...
19114         * modules/strsep (configure.ac): ... to here.
19115
19116 2011-05-22  Bruno Haible  <bruno@clisp.org>
19117
19118         strptime: Move AC_LIBOBJ invocations to module description.
19119         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
19120         gl_PREREQ_STRPTIME invocations from here...
19121         * modules/strptime (configure.ac): ... to here.
19122
19123 2011-05-22  Bruno Haible  <bruno@clisp.org>
19124
19125         strpbrk: Move AC_LIBOBJ invocations to module description.
19126         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
19127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
19128         here...
19129         * modules/strpbrk (configure.ac): ... to here.
19130
19131 2011-05-22  Bruno Haible  <bruno@clisp.org>
19132
19133         strnlen: Move AC_LIBOBJ invocations to module description.
19134         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
19135         invocations from here...
19136         * modules/strnlen (configure.ac): ... to here.
19137
19138 2011-05-22  Bruno Haible  <bruno@clisp.org>
19139
19140         strndup: Move AC_LIBOBJ invocations to module description.
19141         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
19142         invocations from here...
19143         * modules/strndup (configure.ac): ... to here.
19144         (Depends-on): Update conditions.
19145
19146 2011-05-22  Bruno Haible  <bruno@clisp.org>
19147
19148         strncat: Move AC_LIBOBJ invocations to module description.
19149         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
19150         invocations from here...
19151         * modules/strncat (configure.ac): ... to here.
19152
19153 2011-05-22  Bruno Haible  <bruno@clisp.org>
19154
19155         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
19156         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
19157         invocations from here...
19158         * modules/strdup (configure.ac): ... to here.
19159         * modules/strdup-posix (configure.ac): ... and here.
19160
19161 2011-05-22  Bruno Haible  <bruno@clisp.org>
19162
19163         strcspn: Move AC_LIBOBJ invocations to module description.
19164         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
19165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
19166         here...
19167         * modules/strcspn (configure.ac): ... to here.
19168
19169 2011-05-22  Bruno Haible  <bruno@clisp.org>
19170
19171         strchrnul: Move AC_LIBOBJ invocations to module description.
19172         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
19173         gl_PREREQ_STRCHRNUL invocations from here...
19174         * modules/strchrnul (configure.ac): ... to here.
19175
19176 2011-05-22  Bruno Haible  <bruno@clisp.org>
19177
19178         strcasestr*: Move AC_LIBOBJ invocations to module description.
19179         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19180         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
19181         * modules/strcasestr-simple (configure.ac): ... to here.
19182         * modules/strcasestr (configure.ac): ... and here.
19183
19184 2011-05-22  Bruno Haible  <bruno@clisp.org>
19185
19186         strcase: Move AC_LIBOBJ invocations to module description.
19187         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
19188         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
19189         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
19190         gl_PREREQ_STRNCASECMP invocations from here...
19191         * modules/strcase (configure.ac): ... to here.
19192
19193 2011-05-22  Bruno Haible  <bruno@clisp.org>
19194
19195         stpncpy: Move AC_LIBOBJ invocations to module description.
19196         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
19197         here...
19198         * modules/stpncpy (configure.ac): ... to here.
19199
19200 2011-05-22  Bruno Haible  <bruno@clisp.org>
19201
19202         stpcpy: Move AC_LIBOBJ invocations to module description.
19203         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
19204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
19205         here...
19206         * modules/stpcpy (configure.ac): ... to here.
19207
19208 2011-05-21  Bruno Haible  <bruno@clisp.org>
19209
19210         stat: Move AC_LIBOBJ invocations to module description.
19211         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
19212         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
19213         here...
19214         * modules/stat (configure.ac): ... to here.
19215
19216 2011-05-21  Bruno Haible  <bruno@clisp.org>
19217
19218         sleep: Move AC_LIBOBJ invocations to module description.
19219         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
19220         * modules/sleep (configure.ac): ... to here.
19221
19222 2011-05-21  Bruno Haible  <bruno@clisp.org>
19223
19224         signbit: Move AC_LIBOBJ invocations to module description.
19225         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
19226         * modules/signbit (configure.ac): ... to here.
19227
19228 2011-05-21  Bruno Haible  <bruno@clisp.org>
19229
19230         sigprocmask: Move AC_LIBOBJ invocations to module description.
19231         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
19232         gl_PREREQ_SIGPROMASK invocations from here...
19233         * modules/sigprocmask (configure.ac): ... to here.
19234
19235 2011-05-21  Bruno Haible  <bruno@clisp.org>
19236
19237         sigaction: Move AC_LIBOBJ invocations to module description.
19238         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
19239         gl_PREREQ_SIGACTION invocations from here...
19240         * modules/sigaction (configure.ac): ... to here.
19241
19242 2011-05-21  Bruno Haible  <bruno@clisp.org>
19243
19244         sig2str: Move AC_LIBOBJ invocations to module description.
19245         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
19246         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
19247         here...
19248         * modules/sig2str (configure.ac): ... to here.
19249
19250 2011-05-21  Bruno Haible  <bruno@clisp.org>
19251
19252         setlocale: Move AC_LIBOBJ invocations to module description.
19253         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
19254         gl_PREREQ_SETLOCALE invocations from here...
19255         * modules/setlocale (configure.ac): ... to here.
19256
19257 2011-05-21  Bruno Haible  <bruno@clisp.org>
19258
19259         unsetenv: Move AC_LIBOBJ invocations to module description.
19260         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
19261         and gl_PREREQ_UNSETENV invocations from here...
19262         * modules/unsetenv (configure.ac): ... to here.
19263         (Depends-on): Update.
19264
19265 2011-05-21  Bruno Haible  <bruno@clisp.org>
19266
19267         setenv: Move AC_LIBOBJ invocations to module description.
19268         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
19269         here...
19270         * modules/setenv (configure.ac): ... to here.
19271
19272 2011-05-21  Bruno Haible  <bruno@clisp.org>
19273
19274         selinux-h: Move AC_LIBOBJ invocations to module description.
19275         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
19276         AC_LIBOBJ invocation from here...
19277         * modules/selinux-h (configure.ac): ... to here.
19278
19279 2011-05-21  Bruno Haible  <bruno@clisp.org>
19280
19281         select: Respect rules for use of AC_LIBOBJ.
19282         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
19283         here...
19284         * modules/select (configure.ac): ... to here.
19285
19286 2011-05-21  Bruno Haible  <bruno@clisp.org>
19287
19288         scandir: Move AC_LIBOBJ invocations to module description.
19289         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
19290         invocations from here...
19291         * modules/scandir (configure.ac): ... to here.
19292
19293 2011-05-21  Bruno Haible  <bruno@clisp.org>
19294
19295         rpmatch: Move AC_LIBOBJ invocations to module description.
19296         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
19297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
19298         here...
19299         * modules/rpmatch (configure.ac): ... to here.
19300
19301 2011-05-21  Bruno Haible  <bruno@clisp.org>
19302
19303         rmdir: Respect rules for use of AC_LIBOBJ.
19304         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
19305         * modules/rmdir (configure.ac): ... to here.
19306
19307 2011-05-21  Bruno Haible  <bruno@clisp.org>
19308
19309         renameat: Move AC_LIBOBJ invocations to module description.
19310         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
19311         here...
19312         * modules/renameat (configure.ac): ... to here.
19313
19314 2011-05-21  Bruno Haible  <bruno@clisp.org>
19315
19316         rename: Respect rules for use of AC_LIBOBJ.
19317         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
19318         here...
19319         * modules/rename (configure.ac): ... to here.
19320
19321 2011-05-21  Bruno Haible  <bruno@clisp.org>
19322
19323         remove: Move AC_LIBOBJ invocations to module description.
19324         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
19325         here...
19326         * modules/remove (configure.ac): ... to here.
19327
19328 2011-05-21  Bruno Haible  <bruno@clisp.org>
19329
19330         relocatable-lib: Move AC_LIBOBJ invocations to module description.
19331         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
19332         macro.
19333         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
19334         * modules/relocatable-lib (configure.ac): ... to here.
19335         * modules/relocatable-prog-wrapper (configure.ac): Invoke
19336         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
19337
19338 2011-05-21  Bruno Haible  <bruno@clisp.org>
19339
19340         relocatable-prog: Move AC_LIBOBJ invocations to module description.
19341         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
19342         here...
19343         * modules/relocatable-prog (configure.ac): ... to here.
19344
19345 2011-05-21  Bruno Haible  <bruno@clisp.org>
19346
19347         regex: Move AC_LIBOBJ invocations to module description.
19348         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
19349         invocations from here...
19350         * modules/regex (configure.ac): ... to here.
19351
19352 2011-05-21  Bruno Haible  <bruno@clisp.org>
19353
19354         realloc-*: Move AC_LIBOBJ invocations to module description.
19355         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
19356         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
19357         AC_LIBOBJ invocations from here...
19358         * modules/realloc-gnu (configure.ac): ... to here.
19359         * modules/realloc-posix (configure.ac): ... and here.
19360
19361 2011-05-21  Bruno Haible  <bruno@clisp.org>
19362
19363         readutmp: Move AC_LIBOBJ invocations to module description.
19364         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
19365         * modules/readutmp (configure.ac): ... to here.
19366
19367 2011-05-21  Bruno Haible  <bruno@clisp.org>
19368
19369         readlinkat: Move AC_LIBOBJ invocations to module description.
19370         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
19371         here...
19372         * modules/readlinkat (configure.ac): ... to here.
19373
19374 2011-05-21  Bruno Haible  <bruno@clisp.org>
19375
19376         readlink: Move AC_LIBOBJ invocations to module description.
19377         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
19378         gl_PREREQ_READLINK invocations from here...
19379         * modules/readlink (configure.ac): ... to here.
19380
19381 2011-05-21  Bruno Haible  <bruno@clisp.org>
19382
19383         readline: Move AC_LIBOBJ invocations to module description.
19384         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
19385         gl_PREREQ_READLINE invocations from here...
19386         * modules/readline (configure.ac): ... to here.
19387
19388 2011-05-21  Bruno Haible  <bruno@clisp.org>
19389
19390         read: Move AC_LIBOBJ invocations to module description.
19391         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
19392         * modules/read (configure.ac): ... to here.
19393
19394 2011-05-21  Bruno Haible  <bruno@clisp.org>
19395
19396         rawmemchr: Move AC_LIBOBJ invocations to module description.
19397         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
19398         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
19399         from here...
19400         * modules/rawmemchr (configure.ac): ... to here.
19401
19402 2011-05-21  Bruno Haible  <bruno@clisp.org>
19403
19404         random_r: Move AC_LIBOBJ invocations to module description.
19405         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
19406         gl_PREREQ_RANDOM_R invocations from here...
19407         * modules/random_r (configure.ac): ... to here.
19408
19409 2011-05-21  Bruno Haible  <bruno@clisp.org>
19410
19411         pwrite: Move AC_LIBOBJ invocations to module description.
19412         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
19413         * modules/pwrite (configure.ac): ... to here.
19414
19415 2011-05-21  Bruno Haible  <bruno@clisp.org>
19416
19417         putenv: Move AC_LIBOBJ invocations to module description.
19418         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
19419         * modules/putenv (configure.ac): ... to here.
19420
19421 2011-05-21  Bruno Haible  <bruno@clisp.org>
19422
19423         login_tty: Move AC_LIBOBJ invocations to module description.
19424         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
19425         * modules/login_tty (configure.ac): ... to here.
19426
19427 2011-05-21  Bruno Haible  <bruno@clisp.org>
19428
19429         openpty: Move AC_LIBOBJ invocations to module description.
19430         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
19431         * modules/openpty (configure.ac): ... to here.
19432
19433 2011-05-21  Bruno Haible  <bruno@clisp.org>
19434
19435         forkpty: Move AC_LIBOBJ invocations to module description.
19436         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
19437         * modules/forkpty (configure.ac): ... to here.
19438
19439 2011-05-21  Bruno Haible  <bruno@clisp.org>
19440
19441         ptsname: Move AC_LIBOBJ invocations to module description.
19442         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
19443         invocations from here...
19444         * modules/ptsname (configure.ac): ... to here.
19445
19446 2011-05-21  Bruno Haible  <bruno@clisp.org>
19447
19448         pread: Move AC_LIBOBJ invocations to module description.
19449         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
19450         * modules/pread (configure.ac): ... to here.
19451
19452 2011-05-21  Bruno Haible  <bruno@clisp.org>
19453
19454         posix_spawn*: Move AC_LIBOBJ invocations to module description.
19455         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
19456         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
19457         * modules/posix_spawn (configure.ac): ... to here.
19458         * modules/posix_spawnp (configure.ac): ... and here.
19459
19460 2011-05-21  Bruno Haible  <bruno@clisp.org>
19461
19462         popen: Move AC_LIBOBJ invocations to module description.
19463         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
19464         invocations from here...
19465         * modules/popen (configure.ac): ... to here.
19466
19467 2011-05-21  Bruno Haible  <bruno@clisp.org>
19468
19469         poll: Move AC_LIBOBJ invocations to module description.
19470         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
19471         invocations from here...
19472         * modules/poll (configure.ac): ... to here.
19473
19474 2011-05-21  Bruno Haible  <bruno@clisp.org>
19475
19476         pipe-posix: Move AC_LIBOBJ invocations to module description.
19477         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
19478         * modules/pipe-posix (configure.ac): ... to here.
19479
19480 2011-05-21  Bruno Haible  <bruno@clisp.org>
19481
19482         openat: Respect rules for use of AC_LIBOBJ.
19483         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
19484         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19485         * modules/openat (configure.ac): ... to here.
19486
19487 2011-05-21  Bruno Haible  <bruno@clisp.org>
19488
19489         obstack-printf*: Move AC_LIBOBJ invocations to module description.
19490         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
19491         invocation from here...
19492         * modules/obstack-printf (configure.ac): ... to here.
19493         * modules/obstack-printf-posix (configure.ac): ... and here.
19494
19495 2011-05-21  Bruno Haible  <bruno@clisp.org>
19496
19497         nl_langinfo: Move AC_LIBOBJ invocations to module description.
19498         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
19499         from here...
19500         * modules/nl_langinfo (configure.ac): ... to here.
19501
19502 2011-05-21  Bruno Haible  <bruno@clisp.org>
19503
19504         nanosleep: Move AC_LIBOBJ invocations to module description.
19505         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
19506         gl_PREREQ_NANOSLEEP invocations from here...
19507         * modules/nanosleep (configure.ac): ... to here.
19508
19509 2011-05-21  Bruno Haible  <bruno@clisp.org>
19510
19511         mountlist: Move AC_LIBOBJ invocations to module description.
19512         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
19513         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
19514         * modules/mountlist (configure.ac): ... to here.
19515
19516 2011-05-21  Bruno Haible  <bruno@clisp.org>
19517
19518         mktime: Respect rules for use of AC_LIBOBJ.
19519         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
19520         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
19521         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
19522         (gl_FUNC_MKTIME_INTERNAL): ... and here...
19523         * modules/mktime (configure.ac): ... to here.
19524         * modules/mktime-internal (configure.ac): ... and here.
19525         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
19526
19527 2011-05-21  Bruno Haible  <bruno@clisp.org>
19528
19529         mkstemps: Move AC_LIBOBJ invocations to module description.
19530         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
19531         here...
19532         * modules/mkstemps (configure.ac): ... to here.
19533
19534 2011-05-21  Bruno Haible  <bruno@clisp.org>
19535
19536         mkstemp: Move AC_LIBOBJ invocations to module description.
19537         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
19538         gl_PREREQ_MKSTEMP invocations from here...
19539         * modules/mkstemp (configure.ac): ... to here.
19540
19541 2011-05-21  Bruno Haible  <bruno@clisp.org>
19542
19543         mkostemps: Move AC_LIBOBJ invocations to module description.
19544         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
19545         here...
19546         * modules/mkostemps (configure.ac): ... to here.
19547
19548 2011-05-21  Bruno Haible  <bruno@clisp.org>
19549
19550         mkostemp: Move AC_LIBOBJ invocations to module description.
19551         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
19552         gl_PREREQ_MKOSTEMP invocations from here...
19553         * modules/mkostemp (configure.ac): ... to here.
19554
19555 2011-05-21  Bruno Haible  <bruno@clisp.org>
19556
19557         mknod: Move AC_LIBOBJ invocations to module description.
19558         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
19559         * modules/mknod (configure.ac): ... to here.
19560
19561 2011-05-21  Bruno Haible  <bruno@clisp.org>
19562
19563         mkfifoat: Move AC_LIBOBJ invocations to module description.
19564         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
19565         here...
19566         * modules/mkfifoat (configure.ac): ... to here.
19567
19568 2011-05-21  Bruno Haible  <bruno@clisp.org>
19569
19570         mkfifo: Respect rules for use of AC_LIBOBJ.
19571         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
19572         here...
19573         * modules/mkfifo (configure.ac): ... to here.
19574
19575 2011-05-21  Bruno Haible  <bruno@clisp.org>
19576
19577         mkdtemp: Move AC_LIBOBJ invocations to module description.
19578         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
19579         invocations from here...
19580         * modules/mkdtemp (configure.ac): ... to here.
19581
19582 2011-05-21  Bruno Haible  <bruno@clisp.org>
19583
19584         mkdir: Move AC_LIBOBJ invocations to module description.
19585         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
19586         * modules/mkdir (configure.ac): ... to here.
19587
19588 2011-05-21  Bruno Haible  <bruno@clisp.org>
19589
19590         memset: Move AC_LIBOBJ invocations to module description.
19591         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
19592         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
19593         here...
19594         * modules/memset (configure.ac): ... to here.
19595
19596 2011-05-21  Bruno Haible  <bruno@clisp.org>
19597
19598         memrchr: Move AC_LIBOBJ invocations to module description.
19599         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
19600         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
19601         here...
19602         * modules/memrchr (configure.ac): ... to here.
19603
19604 2011-05-21  Bruno Haible  <bruno@clisp.org>
19605
19606         mempcpy: Move AC_LIBOBJ invocations to module description.
19607         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
19608         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
19609         here...
19610         * modules/mempcpy (configure.ac): ... to here.
19611
19612 2011-05-21  Bruno Haible  <bruno@clisp.org>
19613
19614         memmove: Move AC_LIBOBJ invocations to module description.
19615         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
19616         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
19617         here...
19618         * modules/memmove (configure.ac): ... to here.
19619
19620 2011-05-21  Bruno Haible  <bruno@clisp.org>
19621
19622         memmem*: Move AC_LIBOBJ invocations to module description.
19623         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
19624         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
19625         here...
19626         (gl_FUNC_MEMMEM): ... and here...
19627         * modules/memmem-simple (configure.ac): ... to here.
19628         * modules/memmem (configure.ac): ... and here.
19629
19630 2011-05-21  Bruno Haible  <bruno@clisp.org>
19631
19632         memcpy: Move AC_LIBOBJ invocations to module description.
19633         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
19634         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
19635         here...
19636         * modules/memcpy (configure.ac): ... to here.
19637
19638 2011-05-21  Bruno Haible  <bruno@clisp.org>
19639
19640         memcmp: Simplify autoconf macro.
19641         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
19642         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
19643         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
19644
19645 2011-05-21  Bruno Haible  <bruno@clisp.org>
19646
19647         memcmp: Move AC_LIBOBJ invocations to module description.
19648         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
19649         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
19650         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
19651         * modules/memcmp (configure.ac): ... to here.
19652         (Depends-on): Update conditions.
19653
19654 2011-05-21  Bruno Haible  <bruno@clisp.org>
19655
19656         memchr: Respect rules for use of AC_LIBOBJ.
19657         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
19658         invocations from here...
19659         * modules/memchr (configure.ac): ... to here.
19660
19661 2011-05-21  Bruno Haible  <bruno@clisp.org>
19662
19663         mbtowc: Move AC_LIBOBJ invocations to module description.
19664         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
19665         invocations from here...
19666         * modules/mbtowc (configure.ac): ... to here.
19667
19668 2011-05-21  Bruno Haible  <bruno@clisp.org>
19669
19670         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
19671         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
19672         gl_PREREQ_MBSRTOWCS invocations from here...
19673         * modules/mbsrtowcs (configure.ac): ... to here.
19674
19675 2011-05-21  Bruno Haible  <bruno@clisp.org>
19676
19677         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
19678         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
19679         gl_PREREQ_MBSNRTOWCS invocations from here...
19680         * modules/mbsnrtowcs (configure.ac): ... to here.
19681
19682 2011-05-21  Bruno Haible  <bruno@clisp.org>
19683
19684         mbsinit: Move AC_LIBOBJ invocations to module description.
19685         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
19686         invocations from here...
19687         * modules/mbsinit (configure.ac): ... to here.
19688
19689 2011-05-21  Bruno Haible  <bruno@clisp.org>
19690
19691         mbrlen: Move AC_LIBOBJ invocations to module description.
19692         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
19693         invocations from here...
19694         * modules/mbrlen (configure.ac): ... to here.
19695
19696 2011-05-21  Bruno Haible  <bruno@clisp.org>
19697
19698         mbrtowc: Respect rules for use of AC_LIBOBJ.
19699         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
19700         invocations from here...
19701         * modules/mbrtowc (configure.ac): ... to here.
19702
19703 2011-05-21  Bruno Haible  <bruno@clisp.org>
19704
19705         malloc-*: Move AC_LIBOBJ invocations to module description.
19706         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
19707         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
19708         AC_LIBOBJ invocations from here...
19709         * modules/malloc-gnu (configure.ac): ... to here.
19710         * modules/malloc-posix (configure.ac): ... and here.
19711
19712 2011-05-21  Bruno Haible  <bruno@clisp.org>
19713
19714         lstat, openat: Respect rules for use of AC_LIBOBJ.
19715         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
19716         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
19717         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
19718         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
19719         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
19720         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
19721         here.
19722         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
19723
19724 2011-05-21  Bruno Haible  <bruno@clisp.org>
19725
19726         lseek: Move AC_LIBOBJ invocations to module description.
19727         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
19728         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
19729         * modules/lseek (configure.ac): ... to here.
19730
19731 2011-05-21  Bruno Haible  <bruno@clisp.org>
19732
19733         linkat: Move AC_LIBOBJ invocations to module description.
19734         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
19735         here...
19736         * modules/linkat (configure.ac): ... to here.
19737
19738 2011-05-21  Bruno Haible  <bruno@clisp.org>
19739
19740         link: Respect rules for use of AC_LIBOBJ.
19741         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
19742         * modules/link (configure.ac): ... to here.
19743
19744 2011-05-21  Bruno Haible  <bruno@clisp.org>
19745
19746         lchown: Move AC_LIBOBJ invocations to module description.
19747         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
19748         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
19749         * modules/lchown (configure.ac): ... to here.
19750
19751 2011-05-21  Bruno Haible  <bruno@clisp.org>
19752
19753         iswctype: Move AC_LIBOBJ invocations to module description.
19754         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
19755         here...
19756         * modules/iswctype (configure.ac): ... to here.
19757
19758 2011-05-21  Bruno Haible  <bruno@clisp.org>
19759
19760         iswblank: Move AC_LIBOBJ invocations to module description.
19761         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
19762         here...
19763         * modules/iswblank (configure.ac): ... to here.
19764
19765 2011-05-21  Bruno Haible  <bruno@clisp.org>
19766
19767         atanl: Move AC_LIBOBJ invocations to module description.
19768         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
19769         * modules/atanl (configure.ac): ... to here.
19770
19771 2011-05-21  Bruno Haible  <bruno@clisp.org>
19772
19773         acosl: Move AC_LIBOBJ invocations to module description.
19774         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
19775         * modules/acosl (configure.ac): ... to here.
19776
19777 2011-05-21  Bruno Haible  <bruno@clisp.org>
19778
19779         asinl: Respect rules for use of AC_LIBOBJ.
19780         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
19781         * modules/asinl (configure.ac): ... to here.
19782
19783 2011-05-21  Bruno Haible  <bruno@clisp.org>
19784
19785         tanl: Move AC_LIBOBJ invocations to module description.
19786         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
19787         * modules/tanl (configure.ac): ... to here.
19788
19789 2011-05-21  Bruno Haible  <bruno@clisp.org>
19790
19791         cosl: Move AC_LIBOBJ invocations to module description.
19792         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
19793         * modules/cosl (configure.ac): ... to here.
19794
19795 2011-05-21  Bruno Haible  <bruno@clisp.org>
19796
19797         sinl: Move AC_LIBOBJ invocations to module description.
19798         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
19799         * modules/sinl (configure.ac): ... to here.
19800
19801 2011-05-21  Bruno Haible  <bruno@clisp.org>
19802
19803         logl: Move AC_LIBOBJ invocations to module description.
19804         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
19805         * modules/logl (configure.ac): ... to here.
19806
19807 2011-05-21  Bruno Haible  <bruno@clisp.org>
19808
19809         expl: Move AC_LIBOBJ invocations to module description.
19810         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
19811         * modules/expl (configure.ac): ... to here.
19812
19813 2011-05-21  Bruno Haible  <bruno@clisp.org>
19814
19815         roundl: Move AC_LIBOBJ invocations to module description.
19816         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
19817         * modules/roundl (configure.ac): ... to here.
19818
19819 2011-05-21  Bruno Haible  <bruno@clisp.org>
19820
19821         round: Move AC_LIBOBJ invocations to module description.
19822         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
19823         * modules/round (configure.ac): ... to here.
19824
19825 2011-05-21  Bruno Haible  <bruno@clisp.org>
19826
19827         roundf: Move AC_LIBOBJ invocations to module description.
19828         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
19829         * modules/roundf (configure.ac): ... to here.
19830
19831 2011-05-21  Bruno Haible  <bruno@clisp.org>
19832
19833         truncl: Move AC_LIBOBJ invocations to module description.
19834         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
19835         * modules/truncl (configure.ac): ... to here.
19836
19837 2011-05-21  Bruno Haible  <bruno@clisp.org>
19838
19839         trunc: Move AC_LIBOBJ invocations to module description.
19840         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
19841         * modules/trunc (configure.ac): ... to here.
19842
19843 2011-05-21  Bruno Haible  <bruno@clisp.org>
19844
19845         truncf: Move AC_LIBOBJ invocations to module description.
19846         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
19847         * modules/truncf (configure.ac): ... to here.
19848
19849 2011-05-21  Bruno Haible  <bruno@clisp.org>
19850
19851         ceill: Move AC_LIBOBJ invocations to module description.
19852         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
19853         * modules/ceill (configure.ac): ... to here.
19854
19855 2011-05-21  Bruno Haible  <bruno@clisp.org>
19856
19857         ceil: Move AC_LIBOBJ invocations to module description.
19858         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
19859         * modules/ceil (configure.ac): ... to here.
19860
19861 2011-05-21  Bruno Haible  <bruno@clisp.org>
19862
19863         ceilf: Move AC_LIBOBJ invocations to module description.
19864         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
19865         * modules/ceilf (configure.ac): ... to here.
19866
19867 2011-05-21  Bruno Haible  <bruno@clisp.org>
19868
19869         floorl: Respect rules for use of AC_LIBOBJ.
19870         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
19871         * modules/floorl (configure.ac): ... to here.
19872
19873 2011-05-21  Bruno Haible  <bruno@clisp.org>
19874
19875         floor: Respect rules for use of AC_LIBOBJ.
19876         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
19877         * modules/floor (configure.ac): ... to here.
19878
19879 2011-05-21  Bruno Haible  <bruno@clisp.org>
19880
19881         floorf: Move AC_LIBOBJ invocations to module description.
19882         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
19883         * modules/floorf (configure.ac): ... to here.
19884
19885 2011-05-20  Bruno Haible  <bruno@clisp.org>
19886
19887         sqrtl: Respect rules for use of AC_LIBOBJ.
19888         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
19889         * modules/sqrtl (configure.ac): ... to here.
19890
19891 2011-05-20  Bruno Haible  <bruno@clisp.org>
19892
19893         ldexpl: Respect rules for use of AC_LIBOBJ.
19894         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
19895         * modules/ldexpl (configure.ac): ... to here.
19896
19897 2011-05-20  Bruno Haible  <bruno@clisp.org>
19898
19899         frexpl*: Respect rules for use of AC_LIBOBJ.
19900         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
19901         invocation from here...
19902         * modules/frexpl (configure.ac): ... to here.
19903         * modules/frexpl-nolibm (configure.ac): ... and here.
19904
19905 2011-05-20  Bruno Haible  <bruno@clisp.org>
19906
19907         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
19908         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
19909         invocation from here...
19910         * modules/frexp (configure.ac): ... to here.
19911         * modules/frexp-nolibm (configure.ac): ... and here.
19912
19913 2011-05-20  Bruno Haible  <bruno@clisp.org>
19914
19915         isnan: Respect rules for use of AC_LIBOBJ.
19916         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
19917         invocations here.
19918         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
19919         REPLACE_ISNAN.
19920         * modules/isnand (configure.ac): Likewise.
19921         * modules/isnanl (configure.ac): Likewise.
19922
19923 2011-05-20  Bruno Haible  <bruno@clisp.org>
19924
19925         isnanl*: Respect rules for use of AC_LIBOBJ.
19926         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
19927         invocation from here...
19928         * modules/isnanl (configure.ac): ... to here.
19929         * modules/isnanl-nolibm (configure.ac): ... and here.
19930
19931 2011-05-20  Bruno Haible  <bruno@clisp.org>
19932
19933         isnand*: Move AC_LIBOBJ invocations to module description.
19934         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
19935         invocation from here...
19936         * modules/isnand (configure.ac): ... to here.
19937         * modules/isnand-nolibm (configure.ac): ... and here.
19938
19939 2011-05-20  Bruno Haible  <bruno@clisp.org>
19940
19941         isnanf*: Move AC_LIBOBJ invocations to module description.
19942         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
19943         invocation from here...
19944         * modules/isnanf (configure.ac): ... to here.
19945         * modules/isnanf-nolibm (configure.ac): ... and here.
19946
19947 2011-05-20  Bruno Haible  <bruno@clisp.org>
19948
19949         isnan*: Separate the AC_LIBOBJ invocations.
19950         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
19951         AC_LIBOBJ invocation.
19952         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
19953         here.
19954         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
19955         AC_LIBOBJ invocation.
19956         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
19957         here.
19958         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
19959         AC_LIBOBJ invocation.
19960         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
19961         here.
19962         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
19963
19964 2011-05-08  Bruno Haible  <bruno@clisp.org>
19965
19966         isinf: Move AC_LIBOBJ invocations to module description.
19967         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
19968         * modules/isinf (configure.ac): ... to here.
19969
19970 2011-05-08  Bruno Haible  <bruno@clisp.org>
19971
19972         isfinite: Move AC_LIBOBJ invocations to module description.
19973         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
19974         * modules/isfinite (configure.ac): ... to here.
19975
19976 2011-05-08  Bruno Haible  <bruno@clisp.org>
19977
19978         isblank: Move AC_LIBOBJ invocations to module description.
19979         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
19980         here...
19981         * modules/isblank (configure.ac): ... to here.
19982
19983 2011-05-08  Bruno Haible  <bruno@clisp.org>
19984
19985         isapipe: Move AC_LIBOBJ invocations to module description.
19986         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
19987         gl_PREREQ_ISAPIPE invocations from here...
19988         * modules/isapipe (configure.ac): ... to here.
19989         (Depends-on): Update condition.
19990
19991 2011-05-08  Bruno Haible  <bruno@clisp.org>
19992
19993         ioctl: Move AC_LIBOBJ invocations to module description.
19994         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
19995         invocations from here...
19996         * modules/ioctl (configure.ac): ... to here.
19997         (Depends-on): Update condition.
19998
19999 2011-05-08  Bruno Haible  <bruno@clisp.org>
20000
20001         imaxdiv: Move AC_LIBOBJ invocations to module description.
20002         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
20003         invocations from here...
20004         * modules/imaxdiv (configure.ac): ... to here.
20005
20006 2011-05-08  Bruno Haible  <bruno@clisp.org>
20007
20008         imaxabs: Move AC_LIBOBJ invocations to module description.
20009         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
20010         invocations from here...
20011         * modules/imaxabs (configure.ac): ... to here.
20012
20013 2011-05-08  Bruno Haible  <bruno@clisp.org>
20014
20015         getaddrinfo: Move AC_LIBOBJ invocations to module description.
20016         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
20017         AC_LIBOBJ invocations from here...
20018         * modules/getaddrinfo (configure.ac): ... to here.
20019         (Depends-on): Add conditions.
20020
20021 2011-05-08  Bruno Haible  <bruno@clisp.org>
20022
20023         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
20024         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
20025         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
20026         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
20027         (gl_PREREQ_INET_PTON): ... from here.
20028         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
20029         gl_PREREQ_INET_PTON here.
20030         (Depends-on): Update condition.
20031
20032 2011-05-08  Bruno Haible  <bruno@clisp.org>
20033
20034         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
20035         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
20036         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
20037         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
20038         (gl_PREREQ_INET_NTOP): ... from here.
20039         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
20040         gl_PREREQ_INET_NTOP here.
20041         (Depends-on): Update condition.
20042
20043 2011-05-08  Bruno Haible  <bruno@clisp.org>
20044
20045         iconv_open: Move AC_LIBOBJ invocations to module description.
20046         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
20047         AC_LIBOBJ invocations from here...
20048         * modules/iconv_open (configure.ac): ... to here.
20049
20050 2011-05-08  Bruno Haible  <bruno@clisp.org>
20051
20052         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
20053         If module 'iconv_open' is among the main modules and module
20054         'iconv_open-utf' is among the tests dependencies, then
20055         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
20056         return the special iconv_t values. Therefore iconv() and iconv_close()
20057         must support these special iconv_t values, already in lib, not only in
20058         tests.
20059         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
20060         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
20061         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
20062         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
20063         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
20064         (Depends-on): Add the dependencies of iconv_open-utf.
20065         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
20066         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
20067         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
20068
20069 2011-05-08  Bruno Haible  <bruno@clisp.org>
20070
20071         group-member: Move AC_LIBOBJ invocations to module description.
20072         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
20073         gl_PREREQ_GROUP_MEMBER invocations from here...
20074         * modules/group-member (configure.ac): ... to here.
20075
20076 2011-05-08  Bruno Haible  <bruno@clisp.org>
20077
20078         grantpt: Move AC_LIBOBJ invocations to module description.
20079         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
20080         invocations from here...
20081         * modules/grantpt (configure.ac): ... to here.
20082
20083 2011-05-08  Bruno Haible  <bruno@clisp.org>
20084
20085         glob: Move AC_LIBOBJ invocations to module description.
20086         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
20087         from here...
20088         * modules/glob (configure.ac): ... to here.
20089
20090 2011-05-08  Bruno Haible  <bruno@clisp.org>
20091
20092         getusershell: Move AC_LIBOBJ invocations to module description.
20093         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
20094         Move AC_LIBOBJ invocation from here...
20095         * modules/getusershell (configure.ac): ... to here.
20096         (Depends-on): Update condition.
20097
20098 2011-05-08  Bruno Haible  <bruno@clisp.org>
20099
20100         gettimeofday: Move AC_LIBOBJ invocations to module description.
20101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20102         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
20103         gl_PREREQ_GETTIMEOFDAY invocations from here...
20104         * modules/gettimeofday (configure.ac): ... to here.
20105
20106 2011-05-08  Bruno Haible  <bruno@clisp.org>
20107
20108         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
20109         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
20110         just gl_FUNC_TZSET.
20111         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
20112         (gl_FUNC_TZSET_CLOBBER): Remove actions.
20113         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
20114         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
20115
20116 2011-05-08  Bruno Haible  <bruno@clisp.org>
20117
20118         getsubopt: Move AC_LIBOBJ invocations to module description.
20119         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
20120         gl_PREREQ_GETSUBOPT invocations from here...
20121         * modules/getsubopt (configure.ac): ... to here.
20122
20123 2011-05-08  Bruno Haible  <bruno@clisp.org>
20124
20125         getpass-gnu: Move AC_LIBOBJ invocations to module description.
20126         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
20127         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
20128         * modules/getpass-gnu (configure.ac): ... to here.
20129
20130 2011-05-08  Bruno Haible  <bruno@clisp.org>
20131
20132         getpass: Move AC_LIBOBJ invocations to module description.
20133         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
20134         gl_PREREQ_GETPASS invocations from here...
20135         * modules/getpass (configure.ac): ... to here.
20136
20137 2011-05-08  Bruno Haible  <bruno@clisp.org>
20138
20139         getpagesize: Move AC_LIBOBJ invocations to module description.
20140         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
20141         from here...
20142         * modules/getpagesize (configure.ac): ... to here.
20143
20144 2011-05-08  Bruno Haible  <bruno@clisp.org>
20145
20146         getopt: Move AC_LIBOBJ invocations to module description.
20147         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
20148         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
20149         invocations from here...
20150         * modules/getopt-gnu (configure.ac): ... to here.
20151         * modules/getopt-posix (configure.ac): ... and here.
20152         (Depends-on): Update condition.
20153
20154 2011-05-08  Bruno Haible  <bruno@clisp.org>
20155
20156         getopt, argp: Respect rules for use of AC_LIBOBJ.
20157         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
20158         (gl_REPLACE_GETOPT_ALWAYS): New macro.
20159         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
20160         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
20161
20162 2011-05-08  Bruno Haible  <bruno@clisp.org>
20163
20164         getlogin_r: Move AC_LIBOBJ invocations to module description.
20165         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
20166         gl_PREREQ_GETLOGIN_R invocations from here...
20167         * modules/getlogin_r (configure.ac): ... to here.
20168
20169 2011-05-08  Bruno Haible  <bruno@clisp.org>
20170
20171         getlogin: Move AC_LIBOBJ invocations to module description.
20172         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
20173         here...
20174         * modules/getlogin (configure.ac): ... to here.
20175
20176 2011-05-08  Bruno Haible  <bruno@clisp.org>
20177
20178         getloadavg: Move AC_LIBOBJ invocations to module description.
20179         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
20180         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
20181         * modules/getloadavg (configure.ac): ... to here.
20182
20183 2011-05-08  Bruno Haible  <bruno@clisp.org>
20184
20185         gethrxtime: Move AC_LIBOBJ invocations to module description.
20186         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
20187         LIB_GETHRXTIME from here...
20188         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
20189         invocations from here...
20190         * modules/gethrxtime (configure.ac): ... to here.
20191
20192 2011-05-08  Bruno Haible  <bruno@clisp.org>
20193
20194         gethostname: Move AC_LIBOBJ invocations to module description.
20195         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
20196         gl_PREREQ_GETHOSTNAME invocations from here...
20197         * modules/gethostname (configure.ac): ... to here.
20198
20199 2011-05-08  Bruno Haible  <bruno@clisp.org>
20200
20201         getgroups: Move AC_LIBOBJ invocations to module description.
20202         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
20203         here...
20204         * modules/getgroups (configure.ac): ... to here.
20205
20206 2011-05-08  Bruno Haible  <bruno@clisp.org>
20207
20208         getdtablesize: Move AC_LIBOBJ invocations to module description.
20209         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
20210         invocation from here...
20211         * modules/getdtablesize (configure.ac): ... to here.
20212
20213 2011-05-08  Bruno Haible  <bruno@clisp.org>
20214
20215         getdomainname: Move AC_LIBOBJ invocations to module description.
20216         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
20217         gl_PREREQ_GETDOMAINNAME invocations from here...
20218         * modules/getdomainname (configure.ac): ... to here.
20219
20220 2011-05-08  Bruno Haible  <bruno@clisp.org>
20221
20222         getline: Move AC_LIBOBJ invocations to module description.
20223         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
20224         invocations from here...
20225         * modules/getline (configure.ac): ... to here.
20226
20227 2011-05-08  Bruno Haible  <bruno@clisp.org>
20228
20229         getline: Simplify.
20230         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
20231         It's already handled through the module dependency.
20232
20233 2011-05-08  Bruno Haible  <bruno@clisp.org>
20234
20235         getdelim: Move AC_LIBOBJ invocations to module description.
20236         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
20237         and gl_PREREQ_GETDELIM invocations from here...
20238         * modules/getdelim (configure.ac): ... to here.
20239         (Depends-on): Fix condition.
20240
20241 2011-05-08  Bruno Haible  <bruno@clisp.org>
20242
20243         getcwd: Move AC_LIBOBJ invocations to module description.
20244         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
20245         invocations from here...
20246         * modules/getcwd (configure.ac): ... to here.
20247
20248 2011-05-08  Bruno Haible  <bruno@clisp.org>
20249
20250         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
20251         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
20252         here...
20253         * modules/getcwd-lgpl (configure.ac): ... to here.
20254
20255 2011-05-07  Bruno Haible  <bruno@clisp.org>
20256
20257         crypto/gc: Move AC_LIBOBJ invocations to module description.
20258         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
20259         * modules/crypto/gc (configure.ac): ... to here.
20260
20261 2011-05-07  Bruno Haible  <bruno@clisp.org>
20262
20263         fwriting: Move AC_LIBOBJ invocations to module description.
20264         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
20265         here...
20266         * modules/fwriting (configure.ac): ... to here.
20267
20268 2011-05-07  Bruno Haible  <bruno@clisp.org>
20269
20270         fwritable: Move AC_LIBOBJ invocations to module description.
20271         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
20272         here...
20273         * modules/fwritable (configure.ac): ... to here.
20274
20275 2011-05-07  Bruno Haible  <bruno@clisp.org>
20276
20277         futimens: Move AC_LIBOBJ invocations to module description.
20278         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
20279         here...
20280         * modules/futimens (configure.ac): ... to here.
20281
20282 2011-05-07  Bruno Haible  <bruno@clisp.org>
20283
20284         ftruncate: Move AC_LIBOBJ invocations to module description.
20285         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
20286         gl_PREREQ_FTRUNCATE invocations from here...
20287         * modules/ftruncate (configure.ac): ... to here.
20288
20289 2011-05-07  Bruno Haible  <bruno@clisp.org>
20290
20291         fsync: Move AC_LIBOBJ invocations to module description.
20292         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
20293         invocations from here...
20294         * modules/fsync (configure.ac): ... to here.
20295
20296 2011-05-07  Bruno Haible  <bruno@clisp.org>
20297
20298         fsusage: Move AC_LIBOBJ invocations to module description.
20299         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
20300         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
20301         * modules/fsusage (configure.ac): ... to here.
20302
20303 2011-05-07  Bruno Haible  <bruno@clisp.org>
20304
20305         freopen: Move AC_LIBOBJ invocations to module description.
20306         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
20307         invocations from here...
20308         * modules/freopen (configure.ac): ... to here.
20309
20310 2011-05-07  Bruno Haible  <bruno@clisp.org>
20311
20312         free: Move AC_LIBOBJ invocations to module description.
20313         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
20314         invocations from here...
20315         * modules/free (configure.ac): ... to here.
20316
20317 2011-05-07  Bruno Haible  <bruno@clisp.org>
20318
20319         freadable: Move AC_LIBOBJ invocations to module description.
20320         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
20321         here...
20322         * modules/freadable (configure.ac): ... to here.
20323
20324 2011-05-07  Bruno Haible  <bruno@clisp.org>
20325
20326         fpurge: Move AC_LIBOBJ invocations to module description.
20327         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
20328         invocations from here...
20329         * modules/fpurge (configure.ac): ... to here.
20330
20331 2011-05-07  Bruno Haible  <bruno@clisp.org>
20332
20333         fpending: Move AC_LIBOBJ invocations to module description.
20334         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
20335         gl_FUNC_FPENDING.
20336         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
20337         invocations from here...
20338         * modules/fpending (configure.ac): ... to here.
20339
20340 2011-05-07  Bruno Haible  <bruno@clisp.org>
20341
20342         fopen: Move AC_LIBOBJ invocations to module description.
20343         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
20344         invocations from here...
20345         * modules/fopen (configure.ac): ... to here.
20346
20347 2011-05-07  Bruno Haible  <bruno@clisp.org>
20348
20349         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
20350         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
20351         gl_FUNC_FNMATCH_POSIX.
20352         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
20353         invocations from here...
20354         * modules/fnmatch (configure.ac): ... to here.
20355         * modules/fnmatch-gnu (configure.ac): ... and here.
20356
20357 2011-05-07  Bruno Haible  <bruno@clisp.org>
20358
20359         flock: Move AC_LIBOBJ invocations to module description.
20360         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
20361         invocations from here...
20362         * modules/flock (configure.ac): ... to here.
20363
20364 2011-05-07  Bruno Haible  <bruno@clisp.org>
20365
20366         fileblocks: Move AC_LIBOBJ invocations to module description.
20367         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
20368         gl_PREREQ_FILEBLOCKS invocations from here...
20369         * modules/fileblocks (configure.ac): ... to here.
20370
20371 2011-05-06  Bruno Haible  <bruno@clisp.org>
20372
20373         fflush: Move AC_LIBOBJ invocations to module description.
20374         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
20375         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
20376         invocations from here...
20377         * modules/fflush (configure.ac): ... to here.
20378
20379 2011-05-06  Bruno Haible  <bruno@clisp.org>
20380
20381         fdopendir: Move AC_LIBOBJ invocations to module description.
20382         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
20383         here...
20384         * modules/fdopendir (configure.ac): ... to here.
20385         (Depends-on): Improve conditions.
20386
20387 2011-05-06  Bruno Haible  <bruno@clisp.org>
20388
20389         _Exit: Move AC_LIBOBJ invocations to module description.
20390         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
20391         invocations from here...
20392         * modules/_Exit (configure.ac): ... to here.
20393
20394 2011-05-21  Bruno Haible  <bruno@clisp.org>
20395
20396         euidaccess: Respect rules for use of AC_LIBOBJ.
20397         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
20398         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
20399         from here...
20400         * modules/euidaccess (configure.ac): ... to here.
20401
20402 2011-05-06  Bruno Haible  <bruno@clisp.org>
20403
20404         error: Move AC_LIBOBJ invocations to module description.
20405         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
20406         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
20407         invocations from here...
20408         * modules/error (configure.ac): ... to here.
20409
20410 2011-05-06  Bruno Haible  <bruno@clisp.org>
20411
20412         duplocale: Move AC_LIBOBJ invocations to module description.
20413         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
20414         gl_PREREQ_DUPLOCALE invocations from here...
20415         * modules/duplocale (configure.ac): ... to here.
20416
20417 2011-05-05  Bruno Haible  <bruno@clisp.org>
20418
20419         dirfd: Move AC_LIBOBJ invocations to module description.
20420         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
20421         gl_FUNC_DIRFD.
20422         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
20423         here...
20424         * modules/dirfd (configure.ac): ... to here.
20425         (Depends-on): Fix condition.
20426
20427 2011-05-05  Bruno Haible  <bruno@clisp.org>
20428
20429         chown: Respect rules for use of AC_LIBOBJ.
20430         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
20431         * modules/chown (configure.ac): ... to here.
20432
20433 2011-05-05  Bruno Haible  <bruno@clisp.org>
20434
20435         chdir-long: Move AC_LIBOBJ invocations to module description.
20436         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
20437         gl_PREREQ_CHDIR_LONG invocations from here...
20438         * modules/chdir-long (configure.ac): ... to here.
20439
20440 2011-05-05  Bruno Haible  <bruno@clisp.org>
20441
20442         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
20443         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
20444         from here...
20445         * modules/canonicalize-lgpl (configure.ac): ... to here.
20446
20447 2011-05-05  Bruno Haible  <bruno@clisp.org>
20448
20449         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
20450         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
20451         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
20452         REPLACE_CALLOC.
20453         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
20454         * modules/calloc-gnu (configure.ac): Likewise.
20455
20456 2011-05-05  Bruno Haible  <bruno@clisp.org>
20457
20458         btowc: Move AC_LIBOBJ invocations to module description.
20459         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
20460         invocations from here...
20461         * modules/btowc (configure.ac): ... to here.
20462
20463 2011-05-21  Bruno Haible  <bruno@clisp.org>
20464
20465         atexit: Move AC_LIBOBJ invocations to module description.
20466         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
20467         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
20468         here...
20469         * modules/atexit (configure.ac): ... to here.
20470
20471 2011-05-05  Bruno Haible  <bruno@clisp.org>
20472
20473         atoll: Move AC_LIBOBJ invocations to module description.
20474         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
20475         invocations from here...
20476         * modules/atoll (configure.ac): ... to here.
20477
20478 2011-05-05  Bruno Haible  <bruno@clisp.org>
20479
20480         argz: Move AC_LIBOBJ invocations to module description.
20481         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
20482         * modules/argz (configure.ac): ... to here.
20483
20484 2011-05-05  Bruno Haible  <bruno@clisp.org>
20485
20486         alphasort: Move AC_LIBOBJ invocations to module description.
20487         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
20488         gl_PREREQ_ALPHASORT invocations from here...
20489         * modules/alphasort (configure.ac): ... to here.
20490
20491 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
20492
20493         verify: new macro verify_expr; verify_true deprecated
20494         * NEWS: Mention this.
20495         * doc/verify.texi (Compile-time Assertions): Document this.
20496         * lib/verify.h (verify_true): Deprecate.
20497         (verify_expr): New macro.
20498         * tests/test-verify.c (function): Test verify_expr.
20499
20500 2011-06-14  Jim Meyering  <meyering@redhat.com>
20501
20502         init.sh: give more portable redirection-related advice in a comment
20503         * tests/init.sh (stderr_fileno_): Update the advice in comments.
20504         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
20505         for lots of discussion.  Stefano Lattarini suggested the solution
20506         of putting "9>&2" after the command.  Reported by Bruno Haible.
20507
20508 2011-06-13  Bruno Haible  <bruno@clisp.org>
20509
20510         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
20511         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
20512         'none'.
20513
20514 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
20515
20516         ftoastr: use strtof only if HAVE_STRTOF
20517         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
20518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
20519         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
20520         * modules/ftoastr (configure.ac): Check for strtof.
20521
20522 2011-06-13  Bruno Haible  <bruno@clisp.org>
20523
20524         gnulib-tool: Addendum to 2011-06-08 commit.
20525         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
20526         and --witness-c-macro have been given, augment AM_CPPFLAGS.
20527
20528 2011-06-13  Bruno Haible  <bruno@clisp.org>
20529
20530         fseeko: Provide a non-inline replacement of fseek().
20531         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
20532         * modules/fseeko (Depends-on): Add fseek.
20533         * modules/fseek (License): Change to LGPLv2+.
20534
20535 2011-06-13  Bruno Haible  <bruno@clisp.org>
20536
20537         ftello: Provide a non-inline replacement of ftell().
20538         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
20539         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
20540         not have ftello() (such as on mingw).
20541         * modules/ftello (Depends-on): Add ftell.
20542         * modules/ftell (License): Change to LGPLv2+.
20543
20544 2011-05-07  Bruno Haible  <bruno@clisp.org>
20545
20546         ftell: Move AC_LIBOBJ invocations to module description.
20547         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
20548         * modules/ftell (configure.ac): ... to here.
20549
20550 2011-05-07  Bruno Haible  <bruno@clisp.org>
20551
20552         ftello: Respect rules for use of AC_LIBOBJ.
20553         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
20554         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
20555         here...
20556         * modules/ftello (configure.ac): ... to here.
20557
20558 2011-05-07  Bruno Haible  <bruno@clisp.org>
20559
20560         fseeko: Simplify.
20561         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
20562         (gl_FUNC_FSEEKO): Inline it here.
20563
20564 2011-05-07  Bruno Haible  <bruno@clisp.org>
20565
20566         fseek: Move AC_LIBOBJ invocations to module description.
20567         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
20568         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
20569         * modules/fseek (configure.ac): ... to here.
20570
20571 2011-05-07  Bruno Haible  <bruno@clisp.org>
20572
20573         fseek: Respect rules for use of AC_LIBOBJ.
20574         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
20575         here...
20576         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
20577
20578 2011-05-07  Bruno Haible  <bruno@clisp.org>
20579
20580         fseeko: Respect rules for use of AC_LIBOBJ.
20581         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
20582         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
20583         here...
20584         * modules/fseeko (configure.ac): ... to here.
20585
20586 2011-06-13  Bruno Haible  <bruno@clisp.org>
20587
20588         gnulib-tool: Allow comments in the 'Depends-on' section.
20589         * doc/gnulib.texi (Module description): Mention comment syntax in the
20590         Depends-on section.
20591         * gnulib-tool (func_get_dependencies): Filter out comment lines.
20592
20593 2011-06-13  Bruno Haible  <bruno@clisp.org>
20594
20595         file-set.h: guard __attibute__ use, now that it's not always defined
20596         * lib/file-set.h (record_file): Use __attribute__ only with compiler
20597         versions that support it.  This fixes a coreutils build failure with
20598         the vendor cc on HP-UX 11.31.
20599
20600 2011-06-12  Bruno Haible  <bruno@clisp.org>
20601
20602         acl: Add support for HP-UX >= 11.11 JFS ACLs.
20603         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
20604         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
20605         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
20606         (acl, aclsort): New declarations.
20607         (aclv_nontrivial): New declaration.
20608         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
20609         (file_has_acl): Read also the second kind of HP-UX ACLs.
20610         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
20611         kind of HP-UX ACLs if the first kind fails.
20612         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
20613         second kind of HP-UX ACLs.
20614         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
20615         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
20616         agree.
20617         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20618         hpuxjfs.
20619         Handle hpuxjfs.
20620         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
20621         hpuxjfs.
20622         Handle hpuxjfs.
20623         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20624         (func_test_same_acls): Use both lsacl and getacl.
20625         Handle hpuxjfs.
20626         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
20627         (func_test_same_acls): Use both lsacl and getacl.
20628         Handle hpuxjfs.
20629
20630 2011-06-12  Bruno Haible  <bruno@clisp.org>
20631
20632         acl: Complete the 2010-08-10 fix.
20633         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
20634         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
20635         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
20636         explicitly.
20637         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
20638         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
20639
20640 2011-06-12  Bruno Haible  <bruno@clisp.org>
20641
20642         spawn-pipe tests: Comments.
20643         * tests/test-spawn-pipe-child.c (main): Update comment.
20644         Reported by James Youngman <jay@gnu.org>.
20645
20646 2011-06-11  James Youngman  <jay@gnu.org>
20647
20648         New module 'stat-size'.
20649         * modules/stat-size: New module.  Provides macros for accessing
20650         file size information in instances of struct stat.  Depends on the
20651         fileblocks module because it calls st_blocks.
20652         * lib/stat-size.h: New file, adapted from coreutils' system.h.
20653         * doc/gnulib.texi: Include stat-size.texi.
20654         * doc/stat-size.texi: Documentation for this module.
20655         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
20656         * m4/fileblocks.m4: Mention that stat-size depends on the call to
20657         AC_STRUCT_ST_BLOCKS.
20658
20659 2011-06-09  Bruno Haible  <bruno@clisp.org>
20660
20661         thread: Support pthreads-win32.
20662         * lib/glthread/thread.h (gl_thread_self): Define differently on
20663         pthreads-win32.
20664         (gl_null_thread): New declaration.
20665         (gl_thread_self_pointer): New macro.
20666         * lib/glthread/thread.c (gl_null_thread): New constant.
20667         * tests/test-lock.c: Use gl_thread_self_pointer instead of
20668         gl_thread_self.
20669         * tests/test-tls.c: Likewise.
20670         Suggested by Paul Eggert. Reported by Eric Blake.
20671
20672 2011-06-09  Bruno Haible  <bruno@clisp.org>
20673
20674         thread: Fix confusion between NULL and 0.
20675         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
20676         Reported by Paul Eggert.
20677
20678 2011-06-09  Bruno Haible  <bruno@clisp.org>
20679
20680         spawn-pipe tests: Avoid test failure on HP-UX 11.
20681         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
20682         is closed.
20683
20684 2011-06-09  Bruno Haible  <bruno@clisp.org>
20685
20686         acl tests: Fix compilation error on HP-UX 11.
20687         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
20688
20689 2011-06-09  Bruno Haible  <bruno@clisp.org>
20690
20691         rmdir: Avoid test failure on HP-UX 10.20.
20692         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
20693         EEXIST.
20694
20695 2011-06-08  Eric Blake  <eblake@redhat.com>
20696
20697         perror: fix test on mingw
20698         * modules/perror-tests (Depends-on): Add dup2.
20699
20700         strerror_r-posix: fix on MacOS
20701         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
20702         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
20703         logic bug.
20704         * lib/strerror_r.c (strerror_r): Fix the bug.
20705         * lib/strerror.c (strerror): Likewise.
20706         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20707         problem.
20708         * doc/posix-functions/strerror.texi (strerror): Likewise.
20709         * doc/posix-functions/perror.texi (perror): Likewise.
20710         * tests/test-strerror.c (main): Enhance test.
20711         * tests/test-strerror_r.c (main): Likewise.
20712
20713 2011-06-08  Bruno Haible  <bruno@clisp.org>
20714
20715         gnulib-tool: Better isolation between different gnulib-tool invocations.
20716         * gnulib-tool: New option --witness-c-macro.
20717         (witness_c_macro): New variable.
20718         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
20719         AM_CPPFLAGS define it as a C macro.
20720         (func_emit_tests_Makefile_am): Likewise.
20721         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
20722         read it from there.
20723         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
20724         m4_define, not AC_DEFUN.
20725         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
20726         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
20727         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
20728         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
20729         s|...|...|, to substitute the values of the GNULIB_* module indicator
20730         variables.
20731         * modules/dirent (Makefile.am): Likewise.
20732         * modules/fcntl-h (Makefile.am): Likewise.
20733         * modules/iconv-h (Makefile.am): Likewise.
20734         * modules/langinfo (Makefile.am): Likewise.
20735         * modules/locale (Makefile.am): Likewise.
20736         * modules/math (Makefile.am): Likewise.
20737         * modules/netdb (Makefile.am): Likewise.
20738         * modules/poll-h (Makefile.am): Likewise.
20739         * modules/pty (Makefile.am): Likewise.
20740         * modules/search (Makefile.am): Likewise.
20741         * modules/signal (Makefile.am): Likewise.
20742         * modules/spawn (Makefile.am): Likewise.
20743         * modules/stdio (Makefile.am): Likewise.
20744         * modules/stdlib (Makefile.am): Likewise.
20745         * modules/string (Makefile.am): Likewise.
20746         * modules/sys_ioctl (Makefile.am): Likewise.
20747         * modules/sys_select (Makefile.am): Likewise.
20748         * modules/sys_socket (Makefile.am): Likewise.
20749         * modules/sys_stat (Makefile.am): Likewise.
20750         * modules/sys_times (Makefile.am): Likewise.
20751         * modules/sys_utsname (Makefile.am): Likewise.
20752         * modules/sys_wait (Makefile.am): Likewise.
20753         * modules/termios (Makefile.am): Likewise.
20754         * modules/time (Makefile.am): Likewise.
20755         * modules/unistd (Makefile.am): Likewise.
20756         * modules/wchar (Makefile.am): Likewise.
20757
20758 2011-06-08  Eric Blake  <eblake@redhat.com>
20759
20760         strerror: simplify replacement
20761         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
20762         * modules/strerror (configure.ac): No prereqs needed here...
20763         * modules/strerror-override (configure.ac): ...but this needs it.
20764         (Files): Add file for needed prereq macro.
20765
20766 2011-06-08  Bruno Haible  <bruno@clisp.org>
20767
20768         strerror_r-posix: Tweaks.
20769         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
20770         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
20771         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
20772         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
20773         (gl_FUNC_STRERROR_R): ... to here.
20774         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
20775
20776 2011-06-07  Eric Blake  <eblake@redhat.com>
20777
20778         perror: document fixed bugs
20779         * doc/posix-functions/perror.texi (perror): Document recent
20780         patches.
20781
20782 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
20783
20784         stat-time: get_stat_birthtime failure is better-defined
20785         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
20786         return a timestamp whose tv_sec and tv_nsec values are both -1.
20787         Previously, the spec said only that the tv_nsec value was negative.
20788         This upward-compatible change simplifies GNU tar a bit.
20789
20790 2011-06-07  Eric Blake  <eblake@redhat.com>
20791
20792         strerror_r-posix: work around cygwin 1.7.9
20793         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
20794         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
20795         bug without replacing strerror_r.
20796         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
20797         strerror_r is buggy, but without requiring strerror_r compilation.
20798         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
20799
20800         test-perror: relax test to ignore cygwin bug
20801         * tests/test-perror2.c (main): Relax test on requiring detection
20802         of stream errors, and use unbuffered stream.
20803         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
20804         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
20805         * doc/posix-functions/fputc.texi (fputc): Likewise.
20806         * doc/posix-functions/fputs.texi (fputs): Likewise.
20807         * doc/posix-functions/fputws.texi (fputws): Likewise.
20808         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
20809         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
20810         * doc/posix-functions/getopt.texi (getopt): Likewise.
20811         * doc/posix-functions/perror.texi (perror): Likewise.
20812         * doc/posix-functions/printf.texi (printf): Likewise.
20813         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
20814         * doc/posix-functions/psignal.texi (psignal): Likewise.
20815         * doc/posix-functions/putc.texi (putc): Likewise.
20816         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
20817         Likewise.
20818         * doc/posix-functions/putchar.texi (putchar): Likewise.
20819         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
20820         Likewise.
20821         * doc/posix-functions/puts.texi (puts): Likewise.
20822         * doc/posix-functions/putwc.texi (putwc): Likewise.
20823         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
20824         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
20825         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
20826         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
20827         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
20828         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
20829         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
20830         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
20831
20832 2011-05-22  Bruno Haible  <bruno@clisp.org>
20833
20834         strerror: Move AC_LIBOBJ invocations to module description.
20835         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
20836         gl_PREREQ_STRERROR invocations from here...
20837         * modules/strerror (configure.ac): ... to here.
20838
20839 2011-05-21  Bruno Haible  <bruno@clisp.org>
20840
20841         perror: Use common idiom.
20842         * modules/perror (configure.ac): Reorder statements.
20843
20844 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20845
20846         tests: fix usage message in 'mktempd_'
20847         * tests/init.sh (mktempd_): In the usage message, use literal
20848         'mktempd_', not '$ME' (which is even undefined), as the name of
20849         the subroutine.
20850
20851 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
20852
20853         tests init: new function 'fatal_', for hard errors
20854         Before this patch, the only way offered by tests/init.sh to
20855         properly signal a hard error was the `framework_failure_'
20856         function.  But the error message issued by that function,
20857         as its name would suggest, refers to a set-up failure in the
20858         testsuite, while hard errors can obviously also be due to
20859         other reasons.  The best way to fix this inconsistency is to
20860         introduce a new function with a more general error message.
20861         * tests/init.sh (fatal_): New function.
20862
20863 2011-06-06  Eric Blake  <eblake@redhat.com>
20864
20865         canonicalize-lgpl: use common idiom
20866         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
20867         over newer POSIX -Rf.
20868         Reported by Bruno Haible.
20869
20870         canonicalize-lgpl: work around AIX realpath bug
20871         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
20872         * doc/posix-functions/realpath.texi (realpath): Document it.
20873         Reported by Bruno Haible.
20874
20875         strerror: work around FreeBSD bug
20876         * lib/strerror.c (strerror): Special case 0.
20877         Reported by Bruno Haible.
20878
20879         strerror-override: avoid bloating errno module
20880         * modules/errno (Files, configure.ac): Move replacement strings...
20881         * modules/strerror-override: ...to new module.
20882         * modules/strerror (Depends-on): Add strerror-override.
20883         * modules/strerror_r-posix (Depends-on): Likewise.
20884         * MODULES.html.sh: Document new module.
20885         Reported by Bruno Haible.
20886
20887 2011-06-06  Bruno Haible  <bruno@clisp.org>
20888
20889         spawn-pipe tests: Rename program.
20890         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
20891         * tests/test-spawn-pipe-child.c: Update comment.
20892         * tests/test-spawn-pipe.sh: Update.
20893         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
20894
20895         spawn-pipe tests: Link the child program only against libc.
20896         * tests/test-spawn-pipe-child.c: New file, extracted from
20897         tests/test-spawn-pipe.c.
20898         (main): Expect only one argument.
20899         (is_open): New function, copied from tests/test-pipe.c.
20900         * tests/test-spawn-pipe.c: Don't include <errno.h>.
20901         (child_main): Remove function.
20902         (test_pipe): Pass only one argument to the child program.
20903         (main): Remove child process code. Expect the child program's name as
20904         first argument.
20905         * tests/test-spawn-pipe.sh: Pass the child program's name as first
20906         argument.
20907         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
20908         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
20909         test-spawn-pipe-child against no libraries.
20910
20911 2011-06-06  Bruno Haible  <bruno@clisp.org>
20912
20913         careadlinkat: Avoid mismatch between ssize_t and int.
20914         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
20915         * lib/careadlinkat.c (careadlinkatcwd): Define always.
20916
20917 2011-06-06  Jim Meyering  <meyering@redhat.com>
20918
20919         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
20920         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
20921         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
20922
20923 2011-06-05  Bruno Haible  <bruno@clisp.org>
20924
20925         ansi-c++-opt: Interoperability with libtool.
20926         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
20927         set the variable to "no", not to ":".
20928         * NEWS: Mention the change.
20929
20930 2011-06-05  Bruno Haible  <bruno@clisp.org>
20931
20932         acl: Fix test failure on AIX 7.
20933         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
20934         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
20935
20936 2011-06-05  Bruno Haible  <bruno@clisp.org>
20937
20938         pipe-filter-ii: Fix test failure on AIX and IRIX.
20939         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
20940         with EAGAIN, retry with a smaller buffer size.
20941
20942 2011-06-05  Bruno Haible  <bruno@clisp.org>
20943
20944         localename: Fix link dependencies.
20945         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
20946         * modules/localename-tests (Makefile.am): Link test-localename with
20947         $(LIBTHREAD).
20948
20949 2011-06-05  Bruno Haible  <bruno@clisp.org>
20950
20951         error: Avoid gcc warning.
20952         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
20953
20954 2011-06-05  Bruno Haible  <bruno@clisp.org>
20955
20956         unsetenv: Avoid gcc warning.
20957         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
20958
20959 2011-06-05  Bruno Haible  <bruno@clisp.org>
20960
20961         setenv: Avoid gcc warning.
20962         * lib/setenv.c (setenv): Provide declaration if system lacks it.
20963
20964 2011-06-05  Bruno Haible  <bruno@clisp.org>
20965
20966         sys_select: Ensure memset is declared also on AIX 7.
20967         * lib/sys_select.in.h: Include <string.h> also on AIX.
20968         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
20969         self-contained also on AIX 7.1.
20970
20971 2011-06-04  Jim Meyering  <meyering@redhat.com>
20972
20973         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
20974         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
20975         function name, "error".
20976         (_gl_translatable_diag_func_re): New configurable variable.
20977
20978 2011-06-04  Bruno Haible  <bruno@clisp.org>
20979
20980         getopt: Avoid gcc warning.
20981         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
20982
20983 2011-06-04  Bruno Haible  <bruno@clisp.org>
20984
20985         strerror_r: Fix comments.
20986         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
20987         commit.
20988
20989 2011-06-04  Bruno Haible  <bruno@clisp.org>
20990
20991         perror: Fix compilation error.
20992         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
20993         Undefine fprintf, not sprintf.
20994         * modules/perror (Depends-on): Remove intprops, verify.
20995
20996 2011-06-04  Bruno Haible  <bruno@clisp.org>
20997
20998         setlocale: Enable replacement on Cygwin 1.5.
20999         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
21000         Cygwin 1.5.x.
21001         * doc/posix-functions/setlocale.texi: Mention that the problem with the
21002         LC_CTYPE category also exists on Cygwin 1.5.x.
21003
21004 2011-06-04  Bruno Haible  <bruno@clisp.org>
21005
21006         strerror-override: Don't disable symbol renamings.
21007         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
21008         * lib/strerror-override.c: Include config.h.
21009         (strerror_override): Don't undefine.
21010
21011 2011-06-03  Bruno Haible  <bruno@clisp.org>
21012
21013         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
21014         * lib/localename.h: Update copyright header.
21015         * lib/localename.c: Likewise.
21016         * lib/relocatable.h: Likewise.
21017         * lib/relocatable.c: Likewise.
21018
21019 2011-06-02  Bruno Haible  <bruno@clisp.org>
21020
21021         doc: Fix a module name.
21022         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
21023
21024 2011-06-02  Bruno Haible  <bruno@clisp.org>
21025
21026         pipe2: Remove dependency on 'nonblocking' module.
21027         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
21028         O_NONBLOCK is defined by gnulib.
21029         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
21030         is zero.
21031         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
21032         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
21033         defined by gnulib.
21034         (get_nonblocking_flag): New function.
21035         (main): Test O_NONBLOCK flag only if it is nonzero.
21036         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
21037
21038 2011-06-03  Jim Meyering  <meyering@redhat.com>
21039
21040         maint: three new prohibit-header-without-use rules
21041         Prohibit use of cloexec.h, posixver.h, same.h without use.
21042         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
21043         (sc_prohibit_posixver_without_use): Likewise.
21044         (sc_prohibit_same_without_use): Likewise.
21045
21046 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
21047
21048         allocator: 'die' routine is now given requested size
21049         * lib/allocator.h (struct allocator.die): New size arg.
21050         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
21051         If the actual problem is an ssize_t limitation, not a size_t or
21052         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
21053
21054 2011-06-01  Eric Blake  <eblake@redhat.com>
21055
21056         strerror: drop strerror_r dependency
21057         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
21058         * lib/strerror-override.c (strerror_override): ...to new file.
21059         * lib/strerror-override.h: Add prototype.
21060         * lib/strerror-impl.h: Delete.
21061         * lib/strerror.c (strerror): New implementation.
21062         * modules/errno (Files): Add new files.
21063         (configure.ac): Compile new file as appropriate.
21064         * modules/strerror (Files): Drop unused file.
21065         (Depends-on): Drop strerror_r-posix.
21066         * MODULES.html.sh: Document strerror_r-posix.
21067         Requested by Sam Steingold.
21068
21069         perror: call strerror_r directly
21070         * modules/perror (Files): Drop strerror-impl.h.
21071         * lib/perror.c (perror): Use our own stack buffer, rather than
21072         calling a wrapper that uses static storage.
21073         * doc/posix-functions/perror.texi (perror): Document a limitation
21074         of our replacement.
21075
21076         strerror_r: fix includes for FreeBSD
21077         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
21078         since we use abort on some platforms.
21079         Reported by Matthias Bolte.
21080
21081 2011-05-31  Bruno Haible  <bruno@clisp.org>
21082
21083         Fix link errors in tests: openat-die uses gettext-h.
21084         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
21085         against $(LIBINTL).
21086         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
21087         against $(LIBINTL).
21088         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
21089         $(LIBINTL).
21090         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
21091         against $(LIBINTL).
21092         * modules/linkat-tests (Makefile.am): Link test-linkat against
21093         $(LIBINTL).
21094         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
21095         $(LIBINTL).
21096         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
21097         against $(LIBINTL).
21098         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
21099         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
21100         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
21101         $(LIBINTL).
21102         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
21103         $(LIBINTL).
21104         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
21105         $(LIBINTL).
21106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21107
21108 2011-05-31  Bruno Haible  <bruno@clisp.org>
21109
21110         Fix link errors in tests: wait-process uses gettext-h.
21111         * modules/nonblocking-pipe-tests (Makefile.am): Set
21112         test_nonblocking_pipe_main_LDADD.
21113         * modules/nonblocking-socket-tests (Makefile.am): Link
21114         test-nonblocking-socket-main against $(LIBINTL).
21115         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21116
21117 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
21118
21119         assert-h: work around 'verify' incompatibility
21120         * lib/verify.h: Use @...@ directives, not ifdef.
21121         * modules/assert-h (assert.h): Implement the directives.
21122         (assert.h): Substitute the symbol-prefix more consistently.
21123
21124 2011-05-29  Jim Meyering  <meyering@redhat.com>
21125
21126         trim: remove three superfluous assignments
21127         * lib/trim.c (trim2): Remove three superfluous assignments
21128         and correct brace positioning.
21129
21130 2011-05-29  Bruno Haible  <bruno@clisp.org>
21131
21132         wctype-h: Avoid namespace pollution on Solaris 2.6.
21133         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
21134         identifiers.
21135         * doc/posix-headers/wctype.texi: Mention the problem.
21136         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21137
21138 2011-05-28  Jim Meyering  <meyering@redhat.com>
21139
21140         parse-datetime.y: accommodate -Wstrict-overflow
21141         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
21142         placate -Wstrict-overflow.
21143
21144         trim: avoid a warning from -O2 -Wstrict-overflow
21145         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
21146
21147 2011-05-29  Bruno Haible  <bruno@clisp.org>
21148
21149         gnulib-tool: Fix bug in yesterday's commit.
21150         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
21151         twice.
21152
21153 2011-05-29  Bruno Haible  <bruno@clisp.org>
21154
21155         Allow multiple gnulib generated include files to be combined.
21156         * gnulib-tool (func_compute_include_guard_prefix): New function.
21157         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
21158         ${gl_include_guard_prefix} references.
21159         (func_import, func_create_testdir): Invoke
21160         func_compute_include_guard_prefix.
21161         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
21162         * lib/ctype.in.h: Likewise.
21163         * lib/dirent.in.h: Likewise.
21164         * lib/errno.in.h: Likewise.
21165         * lib/fcntl.in.h: Likewise.
21166         * lib/float.in.h: Likewise.
21167         * lib/getopt.in.h: Likewise.
21168         * lib/iconv.in.h: Likewise.
21169         * lib/langinfo.in.h: Likewise.
21170         * lib/locale.in.h: Likewise.
21171         * lib/math.in.h: Likewise.
21172         * lib/netdb.in.h: Likewise.
21173         * lib/netinet_in.in.h: Likewise.
21174         * lib/poll.in.h: Likewise.
21175         * lib/pthread.in.h: Likewise.
21176         * lib/pty.in.h: Likewise.
21177         * lib/sched.in.h: Likewise.
21178         * lib/se-selinux.in.h: Likewise.
21179         * lib/search.in.h: Likewise.
21180         * lib/signal.in.h: Likewise.
21181         * lib/spawn.in.h: Likewise.
21182         * lib/stdarg.in.h: Likewise.
21183         * lib/stddef.in.h: Likewise.
21184         * lib/stdint.in.h: Likewise.
21185         * lib/stdio.in.h: Likewise.
21186         * lib/stdlib.in.h: Likewise.
21187         * lib/string.in.h: Likewise.
21188         * lib/strings.in.h: Likewise.
21189         * lib/sys_file.in.h: Likewise.
21190         * lib/sys_ioctl.in.h: Likewise.
21191         * lib/sys_select.in.h: Likewise.
21192         * lib/sys_socket.in.h: Likewise.
21193         * lib/sys_stat.in.h: Likewise.
21194         * lib/sys_time.in.h: Likewise.
21195         * lib/sys_times.in.h: Likewise.
21196         * lib/sys_uio.in.h: Likewise.
21197         * lib/sys_utsname.in.h: Likewise.
21198         * lib/sys_wait.in.h: Likewise.
21199         * lib/sysexits.in.h: Likewise.
21200         * lib/termios.in.h: Likewise.
21201         * lib/time.in.h: Likewise.
21202         * lib/unistd.in.h: Likewise.
21203         * lib/wchar.in.h: Likewise.
21204         * lib/wctype.in.h: Likewise.
21205         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
21206         * modules/ctype (Makefile.am): Likewise.
21207         * modules/dirent (Makefile.am): Likewise.
21208         * modules/errno (Makefile.am): Likewise.
21209         * modules/fcntl-h (Makefile.am): Likewise.
21210         * modules/float (Makefile.am): Likewise.
21211         * modules/getopt-posix (Makefile.am): Likewise.
21212         * modules/iconv-h (Makefile.am): Likewise.
21213         * modules/langinfo (Makefile.am): Likewise.
21214         * modules/locale (Makefile.am): Likewise.
21215         * modules/math (Makefile.am): Likewise.
21216         * modules/netdb (Makefile.am): Likewise.
21217         * modules/netinet_in (Makefile.am): Likewise.
21218         * modules/poll-h (Makefile.am): Likewise.
21219         * modules/pthread (Makefile.am): Likewise.
21220         * modules/pty (Makefile.am): Likewise.
21221         * modules/sched (Makefile.am): Likewise.
21222         * modules/search (Makefile.am): Likewise.
21223         * modules/selinux-h (Makefile.am): Likewise.
21224         * modules/signal (Makefile.am): Likewise.
21225         * modules/spawn (Makefile.am): Likewise.
21226         * modules/stdarg (Makefile.am): Likewise.
21227         * modules/stddef (Makefile.am): Likewise.
21228         * modules/stdint (Makefile.am): Likewise.
21229         * modules/stdio (Makefile.am): Likewise.
21230         * modules/stdlib (Makefile.am): Likewise.
21231         * modules/string (Makefile.am): Likewise.
21232         * modules/strings (Makefile.am): Likewise.
21233         * modules/sys_file (Makefile.am): Likewise.
21234         * modules/sys_ioctl (Makefile.am): Likewise.
21235         * modules/sys_select (Makefile.am): Likewise.
21236         * modules/sys_socket (Makefile.am): Likewise.
21237         * modules/sys_stat (Makefile.am): Likewise.
21238         * modules/sys_time (Makefile.am): Likewise.
21239         * modules/sys_times (Makefile.am): Likewise.
21240         * modules/sys_uio (Makefile.am): Likewise.
21241         * modules/sys_utsname (Makefile.am): Likewise.
21242         * modules/sys_wait (Makefile.am): Likewise.
21243         * modules/sysexits (Makefile.am): Likewise.
21244         * modules/termios (Makefile.am): Likewise.
21245         * modules/time (Makefile.am): Likewise.
21246         * modules/unistd (Makefile.am): Likewise.
21247         * modules/wchar (Makefile.am): Likewise.
21248         * modules/wctype-h (Makefile.am): Likewise.
21249         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
21250
21251 2011-05-29  Bruno Haible  <bruno@clisp.org>
21252
21253         assert-h: Allow multiple gnulib generated replacements to coexist.
21254         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
21255
21256 2011-05-29  Bruno Haible  <bruno@clisp.org>
21257
21258         argp: Allow coexistence with strerror_r-posix module.
21259         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
21260         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
21261         by gnulib's <string.h> replacement), assume it has the POSIX signature,
21262         not the glibc signature.
21263
21264 2011-05-28  Bruno Haible  <bruno@clisp.org>
21265
21266         gnulib-tool: Alternative structure of testdirs, similar to --import.
21267         * gnulib-tool: New option --single-configure.
21268         (func_usage): Document it.
21269         (single_configure): New variable.
21270         (func_modules_transitive_closure_separately,
21271         func_modules_transitive_closure_separately,
21272         func_determine_use_libtests, func_modules_add_dummy_separately,
21273         func_modules_to_filelist_separately): New functions, extracted from
21274         func_import.
21275         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
21276         (func_import): Use the new functions.
21277         (func_create_testdir): Set final_modules. Handle $single_configure =
21278         true case.
21279
21280 2011-05-28  Bruno Haible  <bruno@clisp.org>
21281
21282         getloadavg: Remove an unreliable safety check.
21283         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
21284         getloadavg.c is in place.
21285         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
21286         Reported by Sam Steingold <sds@gnu.org>.
21287
21288 2011-05-28  Bruno Haible  <bruno@clisp.org>
21289
21290         doc: Cleanup yet another file produced by texinfo.tex.
21291         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
21292
21293 2011-05-28  Bruno Haible  <bruno@clisp.org>
21294
21295         Finish the conditional dependencies mechanism.
21296         * gnulib-tool: New option --no-conditional-dependencies.
21297         (func_usage): Document it. Don't mark --conditional-dependencies as
21298         experimental.
21299         (cond_dependencies): The possible values can now be true, false, empty.
21300         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
21301         (func_import): Store setting in gnulib-cache.m4 and read it from there.
21302         * doc/gnulib-tool.texi (Conditional dependencies): New section.
21303
21304 2011-05-28  Bruno Haible  <bruno@clisp.org>
21305
21306         doc: Use a recent texinfo.tex.
21307         * doc/Makefile (tex_opts): New variable.
21308         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
21309
21310 2011-05-28  Jim Meyering  <meyering@redhat.com>
21311
21312         intprops.h: adjust comment to match code change
21313         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
21314         only once, it *may* have side effects.  Also fix an unrelated typo.
21315         (_GL_INT_SIGNED): Likewise.
21316
21317 2011-05-26  Simon Josefsson  <simon@josefsson.org>
21318
21319         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
21320
21321 2011-05-26  Bruno Haible  <bruno@clisp.org>
21322
21323         mbsrchr: Avoid collision with system function on Interix.
21324         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
21325         Reported by Markus Duft <mduft@gentoo.org>.
21326
21327 2011-05-15  James Youngman  <jay@gnu.org>
21328
21329         getopt: for ambiguous options, enumerate the possibilities.
21330         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
21331         the ambiguous options when an ambiguous prefix is given. This was
21332         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
21333         glibc change was
21334         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
21335
21336 2011-05-25  Eric Blake  <eblake@redhat.com>
21337
21338         getcwd: work around mingw bug
21339         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
21340         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21341         Reported by Matthias Bolte.
21342
21343 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
21344
21345         test-intprops: disable -Wtype-limits diagnostics
21346         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
21347         diagnostics.  Otherwise, the integer overflow macros generate many
21348         diagnostics.  Reported by Jim Meyering in
21349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21350
21351         intprops: shorten, to pacify gcc -Woverlength-strings
21352         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
21353         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
21354         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
21355         likely to run afoul of C compiler limits for string constant lengths.
21356         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
21357
21358 2011-05-24  Eric Blake  <eblake@redhat.com>
21359
21360         docs: document recently fixed glibc printf bug
21361         * doc/posix-functions/fprintf.texi (fprintf): Document it.
21362         * doc/posix-functions/printf.texi (printf): Likewise.
21363         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
21364         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
21365
21366         closein-tests: convert to init.sh
21367         * modules/closein-tests (Files): Add init.sh
21368         * tests/test-closein.sh Use it.
21369
21370         yesno-tests: convert to init.sh
21371         * modules/yesno-tests (Files): Add init.sh.
21372         * tests/test-yesno.sh: Use it.
21373
21374         atexit-tests: ensure reliable exit status
21375         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
21376         Reported by Bruno Haible.
21377
21378 2011-05-24  Bruno Haible  <bruno@clisp.org>
21379
21380         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
21381         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
21382         gl_PREREQ_STRERROR_R invocations from here...
21383         * modules/strerror_r-posix (configure.ac): ... to here.
21384
21385 2011-05-24  Eric Blake  <eblake@redhat.com>
21386
21387         strerror_r: fix missing header
21388         * lib/strerror_r.c: Avoid compiler warning about snprintf.
21389
21390         strerror_r: fix AIX test failures
21391         * lib/strerror_r.c (strerror_r): Convert silent truncation to
21392         ERANGE failure.
21393
21394         strerror_r: fix Solaris test failures
21395         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
21396         failures.
21397         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21398
21399         strerror_r: enforce POSIX recommendations
21400         * lib/strerror_r.c (safe_copy): New helper method.
21401         (strerror_r): Guarantee a non-empty string.
21402         * tests/test-strerror_r.c (main): Enhance tests to incorporate
21403         recent POSIX rulings and to match our strerror guarantees.
21404         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
21405
21406 2011-05-24  Jim Meyering  <meyering@redhat.com>
21407
21408         test-perror2.c: avoid warning about unused variable
21409         * tests/test-perror2.c (main): Remove declaration of unused "fp".
21410
21411 2011-05-24  Eric Blake  <eblake@redhat.com>
21412
21413         perror: avoid spurious test failure on HP-UX
21414         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
21415
21416         tests: fix logic bug in init.sh
21417         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
21418         shell.
21419
21420 2011-05-24  Jim Meyering  <meyering@redhat.com>
21421
21422         utimensat: do not reference an out-of-scope buffer
21423         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
21424         declared in an inner scope, yet "times" would be dereferenced outside
21425         the scope in which "ts" was valid.
21426         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
21427         of ts[2] "out/up", so that the use of aliased "times" (via
21428         "times = ts;") does not end up referencing an out-of-scope "ts"
21429
21430         opendir-safer.c: don't clobber errno; don't close negative FD
21431         * lib/opendir-safer.c (opendir_safer):
21432         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
21433         file descriptor, and more importantly, don't clobber the
21434         offending errno value with EINVAL.  Before, upon failure
21435         of dup_safer, we would pass the negative file descriptor to
21436         fdopendir, which would clobber errno.
21437
21438 2011-05-23  Bruno Haible  <bruno@clisp.org>
21439
21440         idcache: Fix module description.
21441         * modules/idcache (Include): Set to "idcache.h".
21442
21443 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
21444
21445         gnulib-tool: fix portability problem with MacOS sed
21446         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
21447         before the "}".  Problem reported by Leo in
21448         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
21449         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
21450         sed_extract_condition1, sed_extract_condition2.
21451
21452 2011-05-23  Bruno Haible  <bruno@clisp.org>
21453
21454         hash: Simplify autoconf macro.
21455         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
21456
21457 2011-05-23  Bruno Haible  <bruno@clisp.org>
21458
21459         getugroups: Fix module description.
21460         * modules/getugroups (Include): Set to "getugroups.h".
21461
21462 2011-05-23  Bruno Haible  <bruno@clisp.org>
21463
21464         linkat: Simplify autoconf macro.
21465         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
21466
21467 2011-05-23  Bruno Haible  <bruno@clisp.org>
21468             Eric Blake  <eblake@redhat.com>
21469
21470         linkat, renameat: Update dependencies.
21471         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
21472         * modules/linkat (Depends-on): Likewise. Remove also readlink,
21473         symlinkat.
21474
21475 2011-05-23  Jim Meyering  <meyering@redhat.com>
21476
21477         maint.mk: more tight_scope improvements
21478         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
21479         (_gl_TS_headers): Define only in if-0'd block.
21480         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
21481         sometimes we must *not* use it.  Adjust uses accordingly.
21482         (sc_tight_scope): Use much simpler grep-based test to determine
21483         whether we skip this rule.
21484
21485         maint.mk: generalize/improve the tight-scope rule
21486         * top/maint.mk: Emit a warning when the test is skipped.
21487         (_gl_TS_dir): Add $(srcdir)/ prefix.
21488         (_gl_TS_function_match): Simplify, rather than trying
21489         to enumerate common types.  Otherwise, it would fail to match an
21490         "extern unsigned char const *" declaration in idutils.
21491         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
21492         a way to support use of that type of macro.
21493         (_gl_TS_var_match): Simplify regexp.
21494         (_gl_TS_obj_files): New configurable variable.
21495         (_gl_TS_headers): Likewise.
21496
21497 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
21498
21499         verify: fix bug when gnulib <assert.h> is also included
21500         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
21501         is defined, not if _GL_STATIC_ASSERT_H is not defined.
21502         Perhaps there's a better way, but this fixes the immediate problem.
21503         Problem reported by Bruno Haible in
21504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
21505
21506 2011-05-22  Bruno Haible  <bruno@clisp.org>
21507
21508         xgetcwd: Simplify autoconf macro.
21509         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
21510
21511 2011-05-22  Bruno Haible  <bruno@clisp.org>
21512
21513         New module 'mktime-internal'.
21514         * modules/mktime-internal: New file.
21515         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
21516         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
21517         mktime_internal as a C macro if libc has __mktime_internal.
21518         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
21519         conditions.
21520         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
21521
21522 2011-05-22  Bruno Haible  <bruno@clisp.org>
21523
21524         timegm: Correct mktime replacement statements.
21525         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
21526         defining mktime as a C macro. This completes a 2009-07-28 commit.
21527
21528 2011-05-22  Bruno Haible  <bruno@clisp.org>
21529
21530         timegm: Simplify autoconf macro.
21531         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
21532
21533 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
21534
21535         clock-time: change to LGPLv2+.
21536         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
21537         BSD-like but we have no mark for that; this is good enough for now.
21538
21539 2011-05-21  Bruno Haible  <bruno@clisp.org>
21540
21541         strerror_r: Fix comments.
21542         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
21543
21544 2011-05-21  Bruno Haible  <bruno@clisp.org>
21545
21546         relocatable-prog-wrapper: Fix possible link error.
21547         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
21548         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
21549         (gl_FUNC_SETENV): ... to here.
21550         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
21551         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
21552
21553 2011-05-21  Bruno Haible  <bruno@clisp.org>
21554
21555         relocatable-prog-wrapper: Assume strerror() exists.
21556         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
21557         m4/strerror.m4.
21558         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
21559         * lib/relocwrapper.c: Remove mention of strerror module.
21560         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
21561         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
21562         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
21563         C macro.
21564
21565 2011-05-21  Bruno Haible  <bruno@clisp.org>
21566
21567         select: Simplify replacement idiom.
21568         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
21569         Win32 platforms.
21570         * lib/sys_select.in.h (select): Simplify accordingly.
21571         * modules/select (Depends-on): Likewise.
21572
21573 2011-05-21  Bruno Haible  <bruno@clisp.org>
21574
21575         mkdir-p: Simplify autoconf macro.
21576         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
21577         gl_FUNC_LCHOWN.
21578
21579 2011-05-21  Eric Blake  <eblake@redhat.com>
21580
21581         strerror_r: avoid clobbering strerror on cygwin
21582         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
21583         fall back instead to sys_errlist.
21584         * modules/strerror (configure.ac): Add witness.
21585         * tests/test-strerror_r.c (main): Enhance test.
21586         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21587         * tests/test-perror2.c (main): Free memory before exit.
21588
21589 2011-05-21  Bruno Haible  <bruno@clisp.org>
21590
21591         mkdtemp: Use gnulib naming conventions.
21592         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
21593         * modules/mkdtemp (configure.ac): Update.
21594
21595 2011-05-20  Eric Blake  <eblake@redhat.com>
21596
21597         strerror_r: avoid corrupting errno on Solaris
21598         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
21599         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
21600
21601         strerror_r: avoid compiler warning
21602         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
21603
21604         strerror_r: simplify AIX code
21605         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
21606
21607         test-perror: avoid spurious failure on FreeBSD
21608         * modules/perror-tests (Depends-on): Add strerror, now that
21609         strerror_r no longer pulls it in.
21610
21611 2011-05-20  Bruno Haible  <bruno@clisp.org>
21612
21613         strerror_r-posix: Remove unused dependencies.
21614         * modules/strerror_r-posix (Depends-on): Remove strerror.
21615         Reported by Eric Blake.
21616
21617 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
21618
21619         intprops: remove assumption about A|B representation
21620         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
21621         is a valid integer if both A and B are.  Although this is true for
21622         all known practical hosts, the C standard doesn't guarantee it,
21623         and the code need not assume it.  Also, this change may work around
21624         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
21625         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
21626
21627 2011-05-20  Eric Blake  <eblake@redhat.com>
21628
21629         perror: work around FreeBSD bug
21630         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
21631         is broken.  Move AC_LIBOBJ...
21632         * modules/perror (configure.ac): Here.
21633         * doc/posix-functions/perror.texi (perror): Document this.
21634         * tests/test-perror2.c (main): Enhance test.
21635
21636         test-perror: check for strerror interactions
21637         * tests/macros.h (STREQ): Add macro.
21638         * modules/perror-tests (Files): Add second test.
21639         * tests/test-perror2.c (main): New file.
21640         * doc/posix-functions/perror.texi (perror): Document glibc bug.
21641
21642         test-perror: rewrite to use init script
21643         * modules/perror-tests (Files): Add init.sh.
21644         * tests/test-perror.sh: Use temporary directory.
21645
21646 2011-05-20  Jim Meyering  <meyering@redhat.com>
21647
21648         maint: replace misused "a" with "an"
21649         * doc/intprops.texi: "a integer"
21650         * doc/regex.texi: "a explanation"
21651         * lib/alignof.h: "a object"
21652         * lib/argmatch.h: "a explanation"
21653         * lib/argp-help.c: "a option" and "a OPTION_DOC"
21654         * lib/stdint.in.h: "a integer"
21655         * lib/userspec.c: "a owner"
21656         * doc/gnulib.texi: Fix "a idea", and reword.
21657
21658 2011-05-19  Jim Meyering  <meyering@redhat.com>
21659
21660         maint: correct misuse of "a" and "an"
21661         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
21662         * lib/argp-help.c: "an docum...": s/an/a/
21663         * lib/argp-parse.c: "An vector": s/An/A/
21664         * lib/execute.c: "an native": s/an/a/
21665         * lib/spawn-pipe.c: Likewise.
21666         * lib/gc.h: "an Gc_rc": s/an/a/
21667         * lib/unigbrk.in.h: "an grapheme": s/an/a/
21668         * lib/fts.c: "an stat.st_dev": s/an/a/
21669
21670 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21671
21672         intprops-tests: work around HP-UX 11.23 cc bug with constants
21673         * tests/test-intprops.c (VERIFY): New macro.
21674         (main): Use it, instead of verify, to work around the compiler bug; see
21675         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21676
21677         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
21678         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
21679         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
21680         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
21681         (_GL_REMAINDER_OVERFLOW): Use it.
21682
21683         intprops-tests: revert unsigned part of previous change
21684         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
21685         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
21686         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
21687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
21688
21689 2011-05-19  Bruno Haible  <bruno@clisp.org>
21690
21691         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
21692         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
21693         strerror_r() returned without filling the buffer.
21694         Reported by Eric Blake.
21695
21696 2011-05-19  Eric Blake  <eblake@redhat.com>
21697
21698         strerror_r: guarantee unchanged errno
21699         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
21700         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
21701         failure.
21702         * tests/test-strerror_r.c (main): Enhance test.
21703
21704 2011-05-19  Bruno Haible  <bruno@clisp.org>
21705
21706         strerror_r: Reorder #if blocks.
21707         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
21708         for consistency with the previous commit.
21709
21710 2011-05-19  Bruno Haible  <bruno@clisp.org>
21711
21712         perror: Avoid clobbering the strerror buffer when possible.
21713         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
21714         * lib/strerror.c: Include it.
21715         * modules/strerror (Files): Add lib/strerror-impl.h.
21716         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
21717         (my_strerror): New function, defined through lib/strerror-impl.h.
21718         (perror): Use it instead of strerror.
21719         * modules/perror (Files): Add lib/strerror-impl.h.
21720         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
21721
21722 2011-05-19  Eric Blake  <eblake@redhat.com>
21723
21724         strerror_r: fix on newer cygwin
21725         * lib/strerror_r.c (strerror_r): Cygwin now has
21726         __xpg_strerror_r, use it.
21727
21728 2011-05-19  Bruno Haible  <bruno@clisp.org>
21729
21730         strerror_r: Avoid clobbering the strerror buffer when possible.
21731         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
21732         (sys_nerr, sys_errlist): New declarations.
21733         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
21734         HP-UX, native Win32, IRIX, and 32-bit Solaris.
21735         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
21736
21737 2011-05-19  Bruno Haible  <bruno@clisp.org>
21738
21739         strerror_r: Fix test failure on mingw.
21740         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
21741         EXTEND_STRERROR_R.
21742         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
21743         macros from errno.in.h instead.
21744
21745 2011-05-19  Eric Blake  <eblake@redhat.com>
21746
21747         strerror: relax test for Solaris
21748         * tests/test-strerror.c (main): Permit Solaris behavior.
21749         * tests/test-strerror_r.c (main): Likewise.
21750
21751         strerror: enforce POSIX ruling on strerror(0)
21752         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
21753         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
21754         * lib/strerror_r.c (rpl_strerror_r): Work around it.
21755         * doc/posix-functions/strerror.texi (strerror): Document it.
21756         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
21757         * tests/test-strerror.c (main): Strengthen test.
21758         * tests/test-strerror_r.c (main): Likewise.
21759
21760 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
21761
21762         intprop-tests: port to older and more-pedantic compilers
21763         * modules/intprops-tests (Files): Add tests/macros.h.
21764         * tests/test-intprops.c: Include macros.h.
21765         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
21766         it's no longer documented to expand to an integer constant expression.
21767         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
21768         argument is floating point, as it's no longer documented to expand
21769         to an integer constant expression in that case.
21770         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
21771         compiler bugs reported by Bruno Haible.  See
21772         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21773         (U0, U1): New constants, to work around the same bugs.  Also,
21774         in tests, use e.g., "(unsigned int) 39" rather than "39u".
21775
21776         intprops: work around C compiler bugs
21777         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
21778         bug in Sun C 5.11 2010/08/13 and other compilers; see
21779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
21780
21781         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
21782         * doc/intprops.texi (Integer Type Determination): Fix
21783         documentation for TYPE_IS_INTEGER: it returns an constant
21784         expression, not an integer constant expression.  Fix doc for
21785         TYPE_SIGNED: it returns an integer constant expression only if its
21786         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
21787         hardly worth documented that way....)
21788
21789 2011-05-18  Bruno Haible  <bruno@clisp.org>
21790
21791         strerror_r: Avoid clobbering the strerror buffer when possible.
21792         * lib/strerror_r.c (strerror_r): Merge the three implementations.
21793         Handle gnulib defined errno values here. When strerror() returns NULL
21794         or an empty string, return EINVAL.
21795         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
21796         gnulib defined errno values here.
21797         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
21798
21799 2011-05-18  Eric Blake  <eblake@redhat.com>
21800
21801         fnmatch: avoid compiler warning
21802         * lib/fnmatch_loop.c (FCT): Use correct type.
21803         Reported by Matthias Bolte.
21804
21805 2011-05-13  Jim Meyering  <meyering@redhat.com>
21806
21807         maint.mk: three new prohibit_<HDR>_without_use rules
21808         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
21809         (sc_prohibit_stdio-safer_without_use): Likewise.
21810         (sc_prohibit_xfreopen_without_use): Likewise.
21811
21812 2011-05-17  Jim Meyering  <meyering@redhat.com>
21813
21814         announce-gen: fail if the NEWS delta is empty
21815         If there's nothing noteworthy in NEWS, then either you forgot
21816         or you shouldn't be releasing.
21817         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
21818
21819 2011-05-17  Pádraig Brady <P@draigBrady.com>
21820
21821         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
21822         reserved symbols starting with double underscore from the check.
21823
21824 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
21825
21826         intprops: add doc
21827         * doc/intprops.texi: New file, documenting intprops.
21828         * doc/gnulib.texi (Particular Modules): Include it.
21829
21830         verify: add doc to gnulib manual and fix example
21831         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
21832         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
21833         (Compile-time Assertions): Fix example so it can't overflow.
21834
21835 2011-05-17  Jim Meyering  <meyering@redhat.com>
21836
21837         warnings.m4: don't usurp save_CPPFLAGS variable name
21838         * m4/warnings.m4: Prefix local temporary variable name with gl_.
21839
21840         doc: fix typo
21841         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
21842
21843 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21844             Bruno Haible  <bruno@clisp.org>
21845
21846         doc: Tweak recent change.
21847         * README (Portability guidelines): Tweak new text.
21848         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
21849         Interix 6.1.
21850
21851 2011-05-16  Eric Blake  <eblake@redhat.com>
21852
21853         inttypes: avoid autoconf warning
21854         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
21855         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21856
21857 2011-05-16  Sam Steingold <sds@gnu.org>
21858         and Eric Blake  <eblake@redhat.com>
21859
21860         vc-list-files: accept multiple directory operands
21861         * build-aux/vc-list-files: Iterate over all remaining operands.
21862
21863 2011-05-16  Bruno Haible  <bruno@clisp.org>
21864
21865         Fix confusion regarding deprecated modules.
21866         * modules/calloc (Status, Notice): Mark module as deprecated, not
21867         obsolete.
21868         * modules/fnmatch-posix (Status, Notice): Likewise.
21869         * modules/getdate (Status, Notice): Likewise.
21870         * modules/getopt (Status, Notice): Likewise.
21871         * modules/malloc (Status, Notice): Likewise.
21872         * modules/pipe (Status, Notice): Likewise.
21873         * modules/realloc (Status, Notice): Likewise.
21874         * modules/rename-dest-slash (Status, Notice): Likewise.
21875         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
21876         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
21877         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
21878         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
21879         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
21880
21881 2011-05-16  Bruno Haible  <bruno@clisp.org>
21882
21883         doc: List the target platforms.
21884         * doc/gnulib-intro.texi (Target Platforms): New section.
21885         * doc/gnulib.texi (Introduction): Update menu.
21886         * README (Portability guidelines): Refer to the new section. Update
21887         statement about oldest supported environment. Remove rationale why
21888         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
21889         unportable C89 function.
21890         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
21891         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
21892
21893 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
21894
21895         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
21896
21897 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
21898
21899         intprops-tests: new module
21900         * modules/intprops-tests, tests/test-intprops.c: New files.
21901
21902         intprops: add safe, portable integer overflow checking
21903         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
21904         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
21905         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
21906         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
21907         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
21908         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
21909         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
21910         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
21911         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
21912         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
21913         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
21914
21915 2011-05-12  James Youngman  <jay@gnu.org>
21916
21917         Add a test for glibc's Bugzilla bug #12378.
21918         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
21919         doesn't allow the literal matching of a lone "[" (which is
21920         required by POSIX).
21921         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
21922
21923 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
21924
21925         Sync glibc change fixing Bugzilla bug #12378.
21926         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
21927         beginning and fall back to matching as normal character if the
21928         string ends before the matching ']' is found.  This is what POSIX
21929         requires.
21930
21931 2011-05-13  Eric Blake  <eblake@redhat.com>
21932
21933         getcwd-lgpl: relax test for FreeBSD
21934         * doc/posix-functions/getcwd.texi (getcwd): Document portability
21935         issue.
21936         * tests/test-getcwd-lgpl.c (main): Relax test.
21937         Reported by Matthias Bolte.
21938
21939 2011-05-11  Eric Blake  <eblake@redhat.com>
21940
21941         test-fflush: silence compiler warning
21942         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
21943
21944 2011-05-11  Bruno Haible  <bruno@clisp.org>
21945
21946         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
21947         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
21948         * modules/canonicalize (Depends-on): Add 'nocrash'.
21949         * modules/canonicalize-lgpl (Depends-on): Likewise.
21950         * doc/posix-functions/realpath.texi: Update platforms list.
21951         Reported by Ryan Schmidt <ryandesign@macports.org>.
21952
21953 2011-05-11  Bruno Haible  <bruno@clisp.org>
21954
21955         group-member: Declare function in <unistd.h>.
21956         * lib/unistd.in.h (group_member): New declaration.
21957         * lib/group-member.h: Remove file.
21958         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
21959         * tests/test-unistd-c++.cc: Check signature of group_member.
21960         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
21961         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
21962         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
21963         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
21964         HAVE_GROUP_MEMBER.
21965         * modules/group-member (Files): Remove lib/group-member.h.
21966         (Depends-on): Add unistd. Specify conditions.
21967         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
21968         (Include): Change to <unistd.h>.
21969         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
21970         HAVE_GROUP_MEMBER.
21971         * NEWS: Mention the change.
21972         * lib/euidaccess.c: Don't include group-member.h.
21973
21974 2011-05-11  Bruno Haible  <bruno@clisp.org>
21975
21976         group-member: Document module.
21977         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
21978         module.
21979
21980 2011-05-11  Bruno Haible  <bruno@clisp.org>
21981
21982         fclose: Fix mistake earlier today.
21983         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
21984
21985 2011-05-11  Eric Blake  <eblake@redhat.com>
21986
21987         fclose: preserve fflush errors
21988         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
21989         Reported by Jim Meyering.
21990
21991         bootstrap: support a prereq of 'rpcgen -' on RHEL5
21992         * build-aux/bootstrap (check_versions): When no specific version
21993         is required, merely check that the app produces an exit status
21994         that indicates its existence.
21995
21996         maint.mk: drop redundant check
21997         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
21998         the same but better.
21999
22000 2011-05-11  Bruno Haible  <bruno@clisp.org>
22001
22002         fclose: Fix possible link error.
22003         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
22004         unregister_shadow_fd. Improve comments.
22005         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
22006         Eric Blake.
22007
22008 2011-05-11  Jim Meyering  <meyering@redhat.com>
22009
22010         maint.mk: improve "can not" detection and generalize rule name
22011         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
22012         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
22013         Use the same technique as in sc_prohibit_doubled_word, so that
22014         we recognize "can not" also when the words are separated by a newline.
22015         Suggested by Eric Blake.
22016         (perl_filename_lineno_text_): Define.  Factored out of...
22017         (prohibit_doubled_word_): ...here.  Use the new definition.
22018         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
22019         (prohibit_undesirable_word_seq_RE_): New overridable variable.
22020         (ignore_undesirable_word_sequence_RE_): New overridable variable.
22021
22022 2011-05-10  Eric Blake  <eblake@redhat.com>
22023
22024         fclose: avoid double close race when possible
22025         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
22026         all but WINDOWS_SOCKETS.
22027
22028 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
22029
22030         openat: correct new comment
22031         * lib/openat-proc.c (openat_proc_name): Correct the comment.
22032
22033 2011-05-10  Jim Meyering  <meyering@redhat.com>
22034
22035         openat: add comments
22036         * lib/openat-proc.c (openat_proc_name): Add comments,
22037         mostly from Eric Blake.
22038
22039 2011-05-09  Eric Blake  <eblake@redhat.com>
22040
22041         openat: reduce syscalls in first probe of /proc
22042         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
22043         be a directory.  Simplify the probe for .. bugs.
22044         * modules/openat (Depends-on): Drop same-inode.
22045         Reported by Bastien ROUCARIES.
22046
22047 2011-05-09  Jim Meyering  <meyering@redhat.com>
22048
22049         maint.mk: change semantics/name of tight_scope variables
22050         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
22051         Rename variables to align with semantics that make them more useful.
22052
22053         maint.mk: tweak new rule's name not to impinge
22054         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
22055         (sc_tight_scope): Use new rule name rather than $@-0.
22056
22057         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
22058         * top/maint.mk (sc_tight_scope): New rule.
22059         (sc_tight_scope-0): New rule, ifdef'd out.
22060         (_gl_TS_dir): Default.
22061         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
22062         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
22063
22064 2011-05-09  Simon Josefsson  <simon@josefsson.org>
22065
22066         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
22067         Haible <bruno@clisp.org>.
22068
22069 2011-05-08  Bruno Haible  <bruno@clisp.org>
22070
22071         Comments.
22072         * m4/isnanf.m4: Add comment.
22073         * m4/isnanl.m4: Likewise.
22074
22075 2011-05-08  Bruno Haible  <bruno@clisp.org>
22076
22077         glob: Remove obsolete macro.
22078         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
22079
22080 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
22081
22082         intprops: Sun C 5.11 supports __typeof__
22083         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
22084         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
22085         which is new.
22086         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
22087
22088         intprops: switch to usual gnulib indenting and naming
22089         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
22090         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
22091
22092         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
22093
22094 2011-05-08  Jim Meyering  <meyering@redhat.com>
22095
22096         maint.mk: suppress "Entering/Leaving directory" diag in announcement
22097         * top/maint.mk (release-prep): Use make's --no-print-directory
22098         option when generating the announcement.  This eliminates the
22099         pesky "make[2]: Entering/Leaving directory" diagnostics in the
22100         generated announcement template.
22101
22102 2011-05-08  Bruno Haible  <bruno@clisp.org>
22103
22104         tzset: Fix gettimeofday wrapper on Solaris 2.6.
22105         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
22106         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
22107
22108 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
22109
22110         ignore-value, verify: Omit include files from lib_SOURCES.
22111         * modules/ignore-value, modules/verify (Makefile.am):
22112         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
22113         that leads Automake to duplicate use of am__objects_... variables
22114         in Makefile.in.  See
22115         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
22116
22117 2011-05-07  Bruno Haible  <bruno@clisp.org>
22118
22119         fclose: Simplify autoconf macro.
22120         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
22121         defined.
22122
22123 2011-05-07  Bruno Haible  <bruno@clisp.org>
22124
22125         canonicalize-lgpl: Fix autoconf macro ordering bug.
22126         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
22127         gl_STDLIB_H_DEFAULTS.
22128
22129 2011-05-06  Eric Blake  <eblake@redhat.com>
22130
22131         maintainer-makefile: make sc_po_check easier to tune
22132         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
22133         to probe for strings, such as an alternate location for gnulib.
22134
22135         fclose: guarantee behavior on seekable stdin
22136         * modules/fclose (Depends-on): Add fflush.
22137         * doc/posix-functions/fclose.texi (fclose): Document this.
22138         * tests/test-fclose.c (main): Make test for this unconditional.
22139
22140 2011-05-06  Bruno Haible  <bruno@clisp.org>
22141
22142         fflush, fpurge: Relicense under LGPLv2+.
22143         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
22144         * modules/fpurge (License): Likewise.
22145         With permission from Eric Blake and Jim Meyering.
22146         Suggested by Eric Blake.
22147
22148 2011-05-06  Karl Berry  <karl@gnu.org>
22149
22150         * MODULES.html.sh (func_all_modules): remove exit.
22151
22152 2011-05-06  Jim Meyering  <meyering@redhat.com>
22153
22154         maint.mk: use info-gnu@ as the default only for a stable release
22155         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
22156         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
22157         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
22158         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
22159
22160 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
22161
22162         assert-h: new module, which supports C1X-style static_assert
22163         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
22164         * lib/verify.h: Revamp so that this can be copied into assert.h,
22165         while retaining the ability to use it standalone as before.
22166         Rename private identifiers so as not to encroach on the
22167         standard C namespace, since this is now used by assert.h.
22168         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
22169         the old verify_true.
22170         (_GL_VERIFY_TRUE): New macro, with much of the contents of
22171         the old verify_true.  Use _GL_VERIFY_TYPE.
22172         (_GL_VERIFY): New macro, with much of the contents of the old verify.
22173         (static_assert): New macro, if _GL_STATIC_ASSERT_H
22174         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
22175         defined when this file is copied into the replacement assert.h.
22176         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
22177         and _Static_assert is not built in.
22178         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
22179         defined, and use the new macros mentioned above.
22180         * doc/posix-headers/assert.texi: Document this.
22181
22182 2011-05-05  Bruno Haible  <bruno@clisp.org>
22183
22184         fclose, fflush: Respect rules for use of AC_LIBOBJ.
22185         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
22186         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
22187         gl_REPLACE_FCLOSE here.
22188         * modules/fflush (Depends-on): Remove fclose.
22189         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
22190         combination with module 'fclose'.
22191
22192 2011-05-05  Bruno Haible  <bruno@clisp.org>
22193
22194         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
22195         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
22196         gl_FUNC_FFLUSH.
22197         (gl_FUNC_FFLUSH): Use it.
22198         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
22199         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
22200         gl_REPLACE_FSEEKO here.
22201
22202 2011-05-05  Bruno Haible  <bruno@clisp.org>
22203
22204         tzset: Relicense under LGPL.
22205         * modules/tzset (License): Change to LGPL.
22206         No agreement needed; it's a no-op.
22207
22208         strtoimax, strtoumax: Relicense under LGPL.
22209         * modules/strtoimax (License): Change to LGPL.
22210         * modules/strtoumax (License): Likewise.
22211         With permission from Jim Meyering, Paul Eggert:
22212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
22213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
22214
22215         getgroups: Relicense under LGPL.
22216         * modules/getgroups (License): Change to LGPL.
22217         With permission from Jim Meyering, Paul Eggert, Eric Blake:
22218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22221
22222         nanosleep: Relicense under LGPL.
22223         * modules/nanosleep (License): Change to LGPL.
22224         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
22225         Haible:
22226         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
22227         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
22228         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22230
22231         futimens: Relicense under LGPL.
22232         * modules/futimens (License): Change to LGPL.
22233         With permission from Eric Blake:
22234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22235
22236         fflush: Relicense under LGPL.
22237         * modules/fflush (License): Change to LGPL.
22238         With permission from Eric Blake, Bruno Haible, Jim Meyering:
22239         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
22240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
22241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
22242
22243         tmpfile: Relicense under LGPL.
22244         * modules/tmpfile (License): Change to LGPL.
22245         With permission from Ben Pfaff:
22246         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22247
22248         isfinite: Relicense under LGPL.
22249         * modules/isfinite (License): Change to LGPL.
22250         With permission from Ben Pfaff, Bruno Haible:
22251         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
22252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
22253
22254         acosl..tanl: Relicense under LGPL.
22255         * modules/acosl (License): Change to LGPL.
22256         * modules/asinl (License): Likewise.
22257         * modules/atanl (License): Likewise.
22258         * modules/cosl (License): Likewise.
22259         * modules/expl (License): Likewise.
22260         * modules/logl (License): Likewise.
22261         * modules/sinl (License): Likewise.
22262         * modules/sqrtl (License): Likewise.
22263         * modules/tanl (License): Likewise.
22264         Source code originally from glibc and Paolo Bonzini. Agreements:
22265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
22266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
22267
22268 2011-05-05  Bruno Haible  <bruno@clisp.org>
22269
22270         signal: Define sighandler_t.
22271         * lib/signal.in.h (sighandler_t): New type.
22272         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
22273         whether sighandler_t is defined.
22274         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
22275         * modules/signal (Depends-on): Add extensions.
22276         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
22277         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
22278         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
22279
22280 2011-05-05  Eric Blake  <eblake@redhat.com>
22281
22282         maint: remove useless REPLACE_*_H macros
22283         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
22284         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
22285         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
22286         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
22287         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
22288         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
22289         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
22290         * m4/btowc.m4: Update callers.
22291         * m4/dirfd.m4: Likewise.
22292         * m4/duplocale.m4: Likewise.
22293         * m4/fchdir.m4: Likewise.
22294         * m4/fdopendir.m4: Likewise.
22295         * m4/inet_ntop.m4: Likewise.
22296         * m4/inet_pton.m4: Likewise.
22297         * m4/ioctl.m4: Likewise.
22298         * m4/mbrlen.m4: Likewise.
22299         * m4/mbrtowc.m4: Likewise.
22300         * m4/mbsinit.m4: Likewise.
22301         * m4/mbsnrtowcs.m4: Likewise.
22302         * m4/mbsrtowcs.m4: Likewise.
22303         * m4/poll.m4: Likewise.
22304         * m4/setlocale.m4: Likewise.
22305         * m4/wcrtomb.m4: Likewise.
22306         * m4/wcsnrtombs.m4: Likewise.
22307         * m4/wcsrtombs.m4: Likewise.
22308         * m4/wctob.m4: Likewise.
22309         * m4/wcwidth.m4: Likewise.
22310         * modules/posix_spawn: Likewise.
22311         * modules/posix_spawn_file_actions_addclose: Likewise.
22312         * modules/posix_spawn_file_actions_adddup2: Likewise.
22313         * modules/posix_spawn_file_actions_addopen: Likewise.
22314         * modules/posix_spawn_file_actions_destroy: Likewise.
22315         * modules/posix_spawn_file_actions_init: Likewise.
22316         * modules/posix_spawnattr_destroy: Likewise.
22317         * modules/posix_spawnattr_getflags: Likewise.
22318         * modules/posix_spawnattr_getpgroup: Likewise.
22319         * modules/posix_spawnattr_getschedparam: Likewise.
22320         * modules/posix_spawnattr_getschedpolicy: Likewise.
22321         * modules/posix_spawnattr_getsigdefault: Likewise.
22322         * modules/posix_spawnattr_getsigmask: Likewise.
22323         * modules/posix_spawnattr_init: Likewise.
22324         * modules/posix_spawnattr_setflags: Likewise.
22325         * modules/posix_spawnattr_setpgroup: Likewise.
22326         * modules/posix_spawnattr_setschedparam: Likewise.
22327         * modules/posix_spawnattr_setschedpolicy: Likewise.
22328         * modules/posix_spawnattr_setsigdefault: Likewise.
22329         * modules/posix_spawnattr_setsigmask: Likewise.
22330         * modules/posix_spawnp: Likewise.
22331
22332 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
22333
22334         Add option to do-release-commit-and-tag to specify branch.
22335         * build-aux/do-release-commit-and-tag: Add --branch.
22336
22337 2011-05-03  Bruno Haible  <bruno@clisp.org>
22338
22339         Avoid unnecessary compilation units, through conditional dependencies.
22340         * modules/accept (Depends-on): Add conditions to the dependencies.
22341         * modules/acosl (Depends-on): Likewise.
22342         * modules/argz (Depends-on): Likewise.
22343         * modules/asinl (Depends-on): Likewise.
22344         * modules/atanl (Depends-on): Likewise.
22345         * modules/atoll (Depends-on): Likewise.
22346         * modules/bind (Depends-on): Likewise.
22347         * modules/btowc (Depends-on): Likewise.
22348         * modules/canonicalize-lgpl (Depends-on): Likewise.
22349         * modules/ceil (Depends-on): Likewise.
22350         * modules/ceilf (Depends-on): Likewise.
22351         * modules/ceill (Depends-on): Likewise.
22352         * modules/chdir-long (Depends-on): Likewise.
22353         * modules/chown (Depends-on): Likewise.
22354         * modules/close (Depends-on): Likewise.
22355         * modules/connect (Depends-on): Likewise.
22356         * modules/cosl (Depends-on): Likewise.
22357         * modules/dirfd (Depends-on): Likewise.
22358         * modules/dprintf (Depends-on): Likewise.
22359         * modules/dprintf-posix (Depends-on): Likewise.
22360         * modules/error (Depends-on): Likewise.
22361         * modules/euidaccess (Depends-on): Likewise.
22362         * modules/expl (Depends-on): Likewise.
22363         * modules/faccessat (Depends-on): Likewise.
22364         * modules/fchdir (Depends-on): Likewise.
22365         * modules/fclose (Depends-on): Likewise.
22366         * modules/fcntl (Depends-on): Likewise.
22367         * modules/fdopendir (Depends-on): Likewise.
22368         * modules/fflush (Depends-on): Likewise.
22369         * modules/floor (Depends-on): Likewise.
22370         * modules/floorf (Depends-on): Likewise.
22371         * modules/floorl (Depends-on): Likewise.
22372         * modules/fnmatch (Depends-on): Likewise.
22373         * modules/fopen (Depends-on): Likewise.
22374         * modules/fprintf-posix (Depends-on): Likewise.
22375         * modules/frexp (Depends-on): Likewise.
22376         * modules/frexp-nolibm (Depends-on): Likewise.
22377         * modules/frexpl (Depends-on): Likewise.
22378         * modules/frexpl-nolibm (Depends-on): Likewise.
22379         * modules/fseek (Depends-on): Likewise.
22380         * modules/fsusage (Depends-on): Likewise.
22381         * modules/ftell (Depends-on): Likewise.
22382         * modules/ftello (Depends-on): Likewise.
22383         * modules/futimens (Depends-on): Likewise.
22384         * modules/getcwd (Depends-on): Likewise.
22385         * modules/getcwd-lgpl (Depends-on): Likewise.
22386         * modules/getdelim (Depends-on): Likewise.
22387         * modules/getdomainname (Depends-on): Likewise.
22388         * modules/getgroups (Depends-on): Likewise.
22389         * modules/gethostname (Depends-on): Likewise.
22390         * modules/getline (Depends-on): Likewise.
22391         * modules/getlogin_r (Depends-on): Likewise.
22392         * modules/getopt-posix (Depends-on): Likewise.
22393         * modules/getpeername (Depends-on): Likewise.
22394         * modules/getsockname (Depends-on): Likewise.
22395         * modules/getsockopt (Depends-on): Likewise.
22396         * modules/getsubopt (Depends-on): Likewise.
22397         * modules/getusershell (Depends-on): Likewise.
22398         * modules/glob (Depends-on): Likewise.
22399         * modules/grantpt (Depends-on): Likewise.
22400         * modules/iconv_open (Depends-on): Likewise.
22401         * modules/iconv_open-utf (Depends-on): Likewise.
22402         * modules/inet_ntop (Depends-on): Likewise.
22403         * modules/inet_pton (Depends-on): Likewise.
22404         * modules/ioctl (Depends-on): Likewise.
22405         * modules/isapipe (Depends-on): Likewise.
22406         * modules/isfinite (Depends-on): Likewise.
22407         * modules/isinf (Depends-on): Likewise.
22408         * modules/lchown (Depends-on): Likewise.
22409         * modules/ldexpl (Depends-on): Likewise.
22410         * modules/link (Depends-on): Likewise.
22411         * modules/linkat (Depends-on): Likewise.
22412         * modules/listen (Depends-on): Likewise.
22413         * modules/logl (Depends-on): Likewise.
22414         * modules/lstat (Depends-on): Likewise.
22415         * modules/mbrlen (Depends-on): Likewise.
22416         * modules/mbrtowc (Depends-on): Likewise.
22417         * modules/mbsinit (Depends-on): Likewise.
22418         * modules/mbsnrtowcs (Depends-on): Likewise.
22419         * modules/mbsrtowcs (Depends-on): Likewise.
22420         * modules/mbtowc (Depends-on): Likewise.
22421         * modules/memcmp (Depends-on): Likewise.
22422         * modules/mkdir (Depends-on): Likewise.
22423         * modules/mkdtemp (Depends-on): Likewise.
22424         * modules/mkfifo (Depends-on): Likewise.
22425         * modules/mkfifoat (Depends-on): Likewise.
22426         * modules/mknod (Depends-on): Likewise.
22427         * modules/mkostemp (Depends-on): Likewise.
22428         * modules/mkostemps (Depends-on): Likewise.
22429         * modules/mkstemp (Depends-on): Likewise.
22430         * modules/mkstemps (Depends-on): Likewise.
22431         * modules/mktime (Depends-on): Likewise.
22432         * modules/nanosleep (Depends-on): Likewise.
22433         * modules/open (Depends-on): Likewise.
22434         * modules/openat (Depends-on): Likewise.
22435         * modules/perror (Depends-on): Likewise.
22436         * modules/poll (Depends-on): Likewise.
22437         * modules/popen (Depends-on): Likewise.
22438         * modules/posix_spawn (Depends-on): Likewise.
22439         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
22440         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
22441         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
22442         * modules/posix_spawnp (Depends-on): Likewise.
22443         * modules/pread (Depends-on): Likewise.
22444         * modules/printf-posix (Depends-on): Likewise.
22445         * modules/ptsname (Depends-on): Likewise.
22446         * modules/putenv (Depends-on): Likewise.
22447         * modules/pwrite (Depends-on): Likewise.
22448         * modules/readline (Depends-on): Likewise.
22449         * modules/readlink (Depends-on): Likewise.
22450         * modules/readlinkat (Depends-on): Likewise.
22451         * modules/recv (Depends-on): Likewise.
22452         * modules/recvfrom (Depends-on): Likewise.
22453         * modules/regex (Depends-on): Likewise.
22454         * modules/remove (Depends-on): Likewise.
22455         * modules/rename (Depends-on): Likewise.
22456         * modules/renameat (Depends-on): Likewise.
22457         * modules/rmdir (Depends-on): Likewise.
22458         * modules/round (Depends-on): Likewise.
22459         * modules/roundf (Depends-on): Likewise.
22460         * modules/roundl (Depends-on): Likewise.
22461         * modules/rpmatch (Depends-on): Likewise.
22462         * modules/select (Depends-on): Likewise.
22463         * modules/send (Depends-on): Likewise.
22464         * modules/sendto (Depends-on): Likewise.
22465         * modules/setenv (Depends-on): Likewise.
22466         * modules/setlocale (Depends-on): Likewise.
22467         * modules/setsockopt (Depends-on): Likewise.
22468         * modules/shutdown (Depends-on): Likewise.
22469         * modules/sigaction (Depends-on): Likewise.
22470         * modules/signbit (Depends-on): Likewise.
22471         * modules/sigprocmask (Depends-on): Likewise.
22472         * modules/sinl (Depends-on): Likewise.
22473         * modules/sleep (Depends-on): Likewise.
22474         * modules/snprintf (Depends-on): Likewise.
22475         * modules/snprintf-posix (Depends-on): Likewise.
22476         * modules/socket (Depends-on): Likewise.
22477         * modules/sprintf-posix (Depends-on): Likewise.
22478         * modules/sqrtl (Depends-on): Likewise.
22479         * modules/stat (Depends-on): Likewise.
22480         * modules/strchrnul (Depends-on): Likewise.
22481         * modules/strdup-posix (Depends-on): Likewise.
22482         * modules/strerror (Depends-on): Likewise.
22483         * modules/strerror_r-posix (Depends-on): Likewise.
22484         * modules/strndup (Depends-on): Likewise.
22485         * modules/strnlen (Depends-on): Likewise.
22486         * modules/strptime (Depends-on): Likewise.
22487         * modules/strsep (Depends-on): Likewise.
22488         * modules/strsignal (Depends-on): Likewise.
22489         * modules/strstr-simple (Depends-on): Likewise.
22490         * modules/strtod (Depends-on): Likewise.
22491         * modules/strtoimax (Depends-on): Likewise.
22492         * modules/strtok_r (Depends-on): Likewise.
22493         * modules/strtoumax (Depends-on): Likewise.
22494         * modules/symlink (Depends-on): Likewise.
22495         * modules/symlinkat (Depends-on): Likewise.
22496         * modules/tanl (Depends-on): Likewise.
22497         * modules/tcgetsid (Depends-on): Likewise.
22498         * modules/tmpfile (Depends-on): Likewise.
22499         * modules/trunc (Depends-on): Likewise.
22500         * modules/truncf (Depends-on): Likewise.
22501         * modules/truncl (Depends-on): Likewise.
22502         * modules/uname (Depends-on): Likewise.
22503         * modules/unlink (Depends-on): Likewise.
22504         * modules/unlockpt (Depends-on): Likewise.
22505         * modules/unsetenv (Depends-on): Likewise.
22506         * modules/usleep (Depends-on): Likewise.
22507         * modules/utimensat (Depends-on): Likewise.
22508         * modules/vasprintf (Depends-on): Likewise.
22509         * modules/vdprintf (Depends-on): Likewise.
22510         * modules/vdprintf-posix (Depends-on): Likewise.
22511         * modules/vfprintf-posix (Depends-on): Likewise.
22512         * modules/vprintf-posix (Depends-on): Likewise.
22513         * modules/vsnprintf (Depends-on): Likewise.
22514         * modules/vsnprintf-posix (Depends-on): Likewise.
22515         * modules/vsprintf-posix (Depends-on): Likewise.
22516         * modules/wcrtomb (Depends-on): Likewise.
22517         * modules/wcscasecmp (Depends-on): Likewise.
22518         * modules/wcscspn (Depends-on): Likewise.
22519         * modules/wcsdup (Depends-on): Likewise.
22520         * modules/wcsncasecmp (Depends-on): Likewise.
22521         * modules/wcsnrtombs (Depends-on): Likewise.
22522         * modules/wcspbrk (Depends-on): Likewise.
22523         * modules/wcsrtombs (Depends-on): Likewise.
22524         * modules/wcsspn (Depends-on): Likewise.
22525         * modules/wcsstr (Depends-on): Likewise.
22526         * modules/wcstok (Depends-on): Likewise.
22527         * modules/wcswidth (Depends-on): Likewise.
22528         * modules/wctob (Depends-on): Likewise.
22529         * modules/wctomb (Depends-on): Likewise.
22530         * modules/wctype (Depends-on): Likewise.
22531         * modules/wcwidth (Depends-on): Likewise.
22532         * modules/write (Depends-on): Likewise.
22533
22534 2011-05-03  Bruno Haible  <bruno@clisp.org>
22535
22536         Support for conditional dependencies.
22537         * doc/gnulib.texi (Module description): Document the syntax of
22538         conditional dependencies.
22539         * gnulib-tool: New option --conditional-dependencies.
22540         (func_usage): Document it.
22541         (cond_dependencies): New variable.
22542         (func_get_automake_snippet_conditional,
22543         func_get_automake_snippet_unconditional): New functions, extracted from
22544         func_get_automake_snippet.
22545         (func_get_automake_snippet): Use them.
22546         (sed_first_32_chars): New variable.
22547         (func_module_shellfunc_name): New function.
22548         (func_module_shellvar_name): New function.
22549         (func_module_conditional_name): New function.
22550         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
22551         func_cond_module_condition): New functions.
22552         (func_modules_transitive_closure): Add support for conditional
22553         dependencies.
22554         (func_emit_lib_Makefile_am): For a conditional module, enclose the
22555         conditional automake snippet in an automake conditional.
22556         (func_emit_autoconf_snippets): Emit shell functions that contain the
22557         code for conditional modules.
22558         (func_import, func_create_testdir): Update specification.
22559
22560 2011-05-03  Eric Blake  <eblake@redhat.com>
22561
22562         test-getaddrinfo: report error information
22563         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
22564
22565 2011-05-03  Jim Meyering  <meyering@redhat.com>
22566
22567         bootstrap: avoid build failure when $GZIP is set
22568         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
22569         program name.  If defined at all, it is supposed to list gzip options.
22570         Reported by Alan Curry in http://debbugs.gnu.org/8609
22571
22572 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
22573
22574         readme-release: new module with release instructions
22575         * modules/readme-release: New module.
22576         * top/README-release: New file, from coreutils, grep, diffutils.
22577         * MODULES.html.sh (Support for maintaining and releasing): Add it.
22578
22579 2011-05-02  Eric Blake  <eblake@redhat.com>
22580
22581         fflush: also replace fclose when fixing fflush
22582         * modules/fflush (Depends-on): Add fclose.
22583         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
22584         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
22585         memstreams with no backing fd.
22586         * doc/posix-functions/fclose.texi (fclose): Document the use of
22587         fflush module to fix the bug.
22588         * tests/test-fclose.c (main): Relax test when fclose is used in
22589         isolation.
22590
22591         fclose: add some tests
22592         * modules/fclose-tests: New test module.
22593         * tests/test-fclose.c: New file.
22594         * doc/posix-functions/fclose.texi (fclose): Document the bug.
22595
22596         fclose: reduced dependencies
22597         * modules/fclose (Depends-on): Switch from fflush/fseeko to
22598         simpler lseek.
22599         * lib/fclose.c (rpl_fclose): Likewise.
22600         Reported by Simon Josefsson.
22601
22602         exit: drop remaining clients
22603         * modules/argmatch (Depends-on): Replace exit with stdlib.
22604         * modules/copy-file (Depends-on): Likewise.
22605         * modules/execute (Depends-on): Likewise.
22606         * modules/exitfail (Depends-on): Likewise.
22607         * modules/obstack (Depends-on): Likewise.
22608         * modules/pagealign_alloc (Depends-on): Likewise.
22609         * modules/pipe-filter-gi (Depends-on): Likewise.
22610         * modules/pipe-filter-ii (Depends-on): Likewise.
22611         * modules/savewd (Depends-on): Likewise.
22612         * modules/spawn-pipe (Depends-on): Likewise.
22613         * modules/wait-process (Depends-on): Likewise.
22614         * modules/xsetenv (Depends-on): Likewise.
22615         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
22616         * modules/git-merge-changelog (Depends-on): Likewise.
22617         * modules/long-options (Depends-on): Likewise.
22618         * modules/pt_chown (Depends-on): Likewise.
22619         * modules/sysexits (Depends-on): Likewise.
22620
22621         freading: relax license from LGPLv3+ to LGPLv2+
22622         * modules/freading (License): Relax LGPL version.
22623
22624 2011-05-02  Bruno Haible  <bruno@clisp.org>
22625
22626         fchdir: Remove unused dependencies.
22627         * modules/fchdir (Depends-on): Remove include_next.
22628
22629 2011-05-02  Bruno Haible  <bruno@clisp.org>
22630
22631         gnulib-tool: Refactor.
22632         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
22633         from func_emit_autoconf_snippets.
22634         (func_emit_autoconf_snippets): Use it.
22635
22636 2011-05-02  Simon Josefsson  <simon@josefsson.org>
22637
22638         * NEWS: Document removal of 'exit'.
22639         * modules/exit: Remove file.
22640
22641 2011-05-01  Bruno Haible  <bruno@clisp.org>
22642
22643         Update DEPENDENCIES.
22644         * DEPENDENCIES (gettext): Recommend the newest release.
22645         Reported by Simon Josefsson.
22646
22647 2011-05-01  Bruno Haible  <bruno@clisp.org>
22648
22649         gnulib-tool: Reduce code duplication.
22650         * gnulib-tool (func_emit_autoconf_snippets): New function.
22651         (func_import, func_create_testdir): Use it.
22652
22653 2011-04-30  Eric Blake  <eblake@redhat.com>
22654
22655         fclose: don't fail on non-seekable input stream
22656         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
22657         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
22658         since fflush is allowed to fail in that case.
22659
22660 2011-04-30  Bruno Haible  <bruno@clisp.org>
22661
22662         dup3: cleanup
22663         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
22664
22665 2011-04-30  Bruno Haible  <bruno@clisp.org>
22666
22667         netdb: Make it work in C++ mode.
22668         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
22669         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
22670         module.
22671         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
22672         gl_MODULE_INDICATOR_FOR_TESTS.
22673         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
22674         * modules/netdb-c++-tests: New file.
22675         * tests/test-netdb-c++.cc: New file.
22676
22677 2011-04-30  Bruno Haible  <bruno@clisp.org>
22678
22679         New modules 'vfscanf', 'vscanf'.
22680         * modules/vfscanf: New file.
22681         * modules/vscanf: New file.
22682         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
22683         here.
22684         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
22685         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
22686
22687 2011-04-30  Bruno Haible  <bruno@clisp.org>
22688
22689         passfd: Add comments.
22690         * lib/passfd.c: Add comments about platforms.
22691
22692 2011-04-30  Bruno Haible  <bruno@clisp.org>
22693
22694         sys_uio: Make <sys/uio.h> self-contained.
22695         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
22696         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
22697
22698 2011-04-30  Bruno Haible  <bruno@clisp.org>
22699
22700         sys_socket: Ensure 'struct iovec' definition.
22701         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
22702         <sys/socket.h>.
22703         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
22704
22705 2011-04-30  Bruno Haible  <bruno@clisp.org>
22706
22707         sys_uio: Protect definition of 'struct iovec'.
22708         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
22709         it as a C struct.
22710
22711 2011-04-30  Bruno Haible  <bruno@clisp.org>
22712
22713         manywarnings: fix indentation
22714         * m4/manywarnings.m4: Indent by 2 spaces consistently.
22715
22716 2011-04-30  Pádraig Brady <P@draigBrady.com>
22717
22718         manywarnings: add -Wno-missing-field-initializers if needed.
22719         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
22720         option if it's needed to allow initialization with { 0, }
22721
22722 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
22723
22724         announce-gen: cosmetic improvement
22725         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
22726
22727 2011-04-29  Jim Meyering  <meyering@redhat.com>
22728
22729         vc-list-files: indent with spaces, not TABs
22730         * build-aux/vc-list-files: Convert leading TABs to spaces,
22731         to match the style of most other files in gnulib.
22732
22733         announce-gen: indent with spaces, not TABs
22734         * build-aux/announce-gen: Convert all TABs to spaces, to match
22735         the style of most other files in gnulib.
22736
22737 2011-04-29  Eric Blake  <eblake@redhat.com>
22738
22739         quotearg: avoid uninitialized variable use
22740         * lib/quotearg.c (quoting_options_from_style): Initialize
22741         remaining fields, and ensure that custom styles are only used via
22742         quoting_options rather than quoting_style.
22743
22744 2011-04-29  Jim Meyering  <meyering@redhat.com>
22745
22746         maint.mk: remove unused VC-tag variable
22747         * top/maint.mk (VC-tag): Remove unused variable.
22748
22749 2011-04-29  Bruno Haible  <bruno@clisp.org>
22750
22751         netdb: fix gai_strerror replacements
22752         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
22753         * modules/netdb: Substitute it.
22754
22755 2011-04-29  Jim Meyering  <meyering@redhat.com>
22756
22757         test-getcwd.c: avoid new set-but-not-used warning
22758         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
22759         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
22760         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
22761         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
22762
22763         test-hash.c: avoid a new shadowing warning
22764         * tests/test-hash.c (main): Don't shadow "dup".
22765
22766 2011-04-28  Eric Blake  <eblake@redhat.com>
22767
22768         getaddrinfo: fix gai_strerror signature
22769         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
22770         and work around mingw with UNICODE defined.
22771         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
22772         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
22773         * modules/netdb (Makefile.am): Substitute it.
22774         * lib/netdb.in.h (gai_strerror): Declare replacement.
22775         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
22776         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
22777         the fix.
22778
22779         getsockopt: avoid compiler warning
22780         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
22781         Reported by Matthias Bolte.
22782
22783         tests: drop unused link dependency
22784         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
22785         * modules/dirent-safer-tests (Makefile.am): Likewise.
22786         * modules/fdopendir-tests (Makefile.am): Likewise.
22787         * modules/mkfifoat-tests (Makefile.am): Likewise.
22788         * modules/openat-safer-tests (Makefile.am): Likewise.
22789         * modules/openat-tests (Makefile.am): Likewise.
22790         * modules/readlinkat-tests (Makefile.am): Likewise.
22791         * modules/symlinkat-tests (Makefile.am): Likewise.
22792         * modules/linkat-tests (Makefile.am): Likewise.
22793         (Depends-on): Switch to filenamecat-lgpl.
22794         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
22795         LIBINTL.
22796         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
22797         * tests/test-linkat.c (main): Don't require xalloc.
22798
22799         hash, mgetgroups: drop xalloc dependency
22800         * lib/hash.c (includes): Adjust includes.
22801         * lib/mgetgroups.c (includes): Likewise.
22802         (xgetgroups): Move...
22803         * lib/xgetgroups.c: ...to new file.
22804         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
22805         * modules/xgetgroups: New file, split from...
22806         * modules/mgetgroups: ...here.
22807         (Depends-on): Add xalloc-oversized.
22808         * modules/hash (Depends-on): Likewise.
22809         * modules/hash-tests (Depends-on): Drop xalloc.
22810         (test_hash_LDADD): Drop unused library.
22811         * tests/test-hash.c (main): Break xalloc dependency.
22812         (includes): Drop unused include.
22813
22814         xalloc-oversized: new module
22815         * modules/xalloc-oversized: New module.
22816         * modules/xalloc (Depends-on): Add it.
22817         * lib/xalloc.h (xalloc_oversized): Move...
22818         * lib/xalloc-oversized.h: ...into new file.
22819
22820         utimecmp: drop dependency on xmalloc
22821         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
22822         due to memory pressure.
22823         * modules/utimecmp (Depends-on): Drop xalloc.
22824
22825 2011-04-27  Eric Blake  <eblake@redhat.com>
22826
22827         getcwd: fix mingw bugs
22828         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
22829         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
22830         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
22831
22832 2011-04-27  Bruno Haible  <bruno@clisp.org>
22833
22834         mkstemps: Ensure declaration on MacOS X 10.5.
22835         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
22836         * doc/glibc-functions/mkstemps.texi: Document header file problem on
22837         MacOS X.
22838
22839 2011-04-27  Bruno Haible  <bruno@clisp.org>
22840
22841         mkstemp: More documentation.
22842         * doc/posix-functions/mkstemp.texi: Document header file problem on
22843         MacOS X.
22844
22845 2011-04-27  Bruno Haible  <bruno@clisp.org>
22846
22847         mkstemp: Tweak configure message when cross-compiling.
22848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
22849         result as a guess.
22850
22851 2011-04-27  Bruno Haible  <bruno@clisp.org>
22852
22853         clean-temp: Clarify what it does.
22854         * lib/clean-temp.h: Add more comments.
22855         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
22856         module.
22857         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
22858         * doc/glibc-functions/mkstemps.texi: Likewise.
22859         * doc/glibc-functions/mkostemps.texi: Likewise.
22860
22861 2011-04-27  Eric Blake  <eblake@redhat.com>
22862
22863         fchdir: avoid extra chdir and fix test
22864         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
22865         getcwd-lgpl.
22866         * lib/fchdir.c (get_name): Any absolute name will do; it does not
22867         have to be canonical.
22868         (canonicalize_file_name): Drop unused macro.
22869         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
22870
22871         filenamecat-lgpl: fix licence
22872         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
22873         when it was first created.
22874
22875         linkat, renameat: add missing dependency
22876         * modules/linkat (Depends-on): Require getcwd-lgpl.
22877         * modules/renameat (Depends-on): Likewise.
22878
22879         tests: reduce dependencies
22880         * tests/test-linkat.c (main): Use lighter-weight getcwd.
22881         * tests/test-renameat.c (main): Likewise.
22882         * modules/linkat-tests (Depends-on): Relax dependency.
22883         * modules/renameat-tests (Depends-on): Likewise.
22884         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
22885         dependency explicit.
22886
22887         save-cwd: reduce default dependency
22888         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
22889         * lib/save-cwd.c: Update comments.
22890         * NEWS: Document the semantic change.
22891
22892         getcwd: enhance tests
22893         * tests/test-getcwd-lgpl.c: New file, taken from...
22894         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
22895         repeat long path stress tests from m4 probe.
22896         * modules/getcwd-lgpl-tests: New module.
22897         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
22898         * m4/getcwd-abort-bug.m4: Update comment.
22899         * m4/getcwd-path-max.m4: Likewise.
22900
22901         getcwd-lgpl: new module
22902         * modules/getcwd-lgpl: New module.
22903         * lib/getcwd-lgpl.c: New file.
22904         * doc/posix-functions/getcwd.texi (getcwd): Document it.
22905         * MODULES.html.sh (lacking POSIX:2008): Likewise.
22906         * modules/getcwd (configure.ac): Set C witness.
22907         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
22908
22909         getcwd: tweak comments
22910         * m4/getcwd-abort-bug.m4: Fix comments.
22911         * m4/getcwd-path-max.m4: Likewise.
22912         * m4/getcwd.m4: Likewise.
22913
22914 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22915         and Eric Blake  <eblake@redhat.com>
22916
22917         mkstemp: replace if system version uses wrong permissions
22918         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
22919         read/write mode bits set in file created by mkstemp.
22920         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
22921
22922 2011-04-27  Eric Blake  <eblake@redhat.com>
22923
22924         passfd: avoid compiler warning
22925         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
22926         Reported by Laine Stump.
22927
22928 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
22929
22930         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
22931         required by the NetBSD (and perhaps other 4.4BSD derived) join.
22932
22933 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
22934         and Eric Blake  <eblake@redhat.com>
22935
22936         mkstemp: mention clean-temp module
22937         * lib/mkstemp.c: Add comment.
22938         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
22939
22940 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
22941
22942         inttypes: also provide default values for 32-bit tests
22943         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
22944         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
22945
22946 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
22947
22948         strtoumax: remove dependency on strtoimax
22949         This is like the strtoull change of yesterday.
22950         * modules/strtoumax (Files): Add lib/strtoimax.c.
22951         (Depends-on): Remove strtoimax and add verify.
22952
22953         inttypes-incomplete: new module
22954         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
22955         all but the PRI* and SCN* parts of gl_INTTYPES_H.
22956         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
22957         of gl_INTTYPES_H.
22958         (gl_INTTYPES_H): Rewrite in terms of these new macros.
22959         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
22960         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
22961         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
22962         * modules/strtoumax, modules/xstrtol (Depends-on):
22963         Depend on inttypes-incomplete, not inttypes.
22964         * modules/inttypes-incomplete: New module, containing the contents
22965         of the old modules/inttypes module, except that the Files: section
22966         omits m4/inttypes-pri.m4, and the configure.ac section invokes
22967         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
22968         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
22969         (Depends-on): Depend only on inttypes-incomplete.
22970         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
22971
22972         inttypes: omit now-redundant strtoimax and strtoumax work
22973         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
22974         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
22975
22976         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
22977         This supports apps that need pointers to strtoimax and strtoumax,
22978         and ports to HP-UX 11.00 64.bit, which has macros that expand to
22979         nonexistent functions.  See
22980         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
22981         et seq.
22982         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
22983         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
22984         a macro.
22985         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22986
22987 2011-04-25  Simon Josefsson  <simon@josefsson.org>
22988
22989         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
22990
22991 2011-04-25  Bruno Haible  <bruno@clisp.org>
22992
22993         strtol, strtoul: Mark modules as obsolete.
22994         * modules/strtol (Status, Notice): New sections.
22995         * modules/strtoul (Status, Notice): New sections.
22996
22997 2011-04-25  Bruno Haible  <bruno@clisp.org>
22998
22999         strtod: Remove check for strtod, unless supporting old platforms.
23000         * modules/strtod-obsolete: New file.
23001         * m4/strtod-obsolete.m4: New file.
23002         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
23003         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
23004         * modules/strtod (Depends-on): Add strtod-obsolete.
23005         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
23006
23007 2011-04-25  Bruno Haible  <bruno@clisp.org>
23008
23009         strcase: Make module obsolete.
23010         * modules/strcase (Status, Notice): New sections.
23011
23012 2011-04-25  Bruno Haible  <bruno@clisp.org>
23013
23014         dup2: Remove check for dup2, unless supporting old obsolete platforms.
23015         * modules/dup2-obsolete: New file.
23016         * m4/dup2-obsolete.m4: New file.
23017         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
23018         gl_FUNC_DUP2_OBSOLETE is not also defined.
23019         * modules/dup2 (Depends-on): Add dup2-obsolete.
23020         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
23021
23022 2011-04-25  Bruno Haible  <bruno@clisp.org>
23023
23024         strnlen: Avoid memchr related link error on old obsolete platforms.
23025         * modules/memchr-obsolete: New file.
23026         * m4/memchr-obsolete.m4: New file.
23027         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
23028         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
23029         * modules/memchr (Depends-on): Add memchr-obsolete.
23030         * modules/strnlen (Depends-on): Likewise.
23031         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
23032
23033 2011-04-25  Jim Meyering  <meyering@redhat.com>
23034
23035         maint.mk: makefile_at_at_check extend and clean up
23036         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
23037         in addition to */Makefile.am.
23038         Exempt legitimate uses of @VAR@ notation, e.g.,
23039         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
23040         Remove obsolete coreutils-specific comment.
23041         Prompted by discussion here:
23042         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
23043
23044 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
23045
23046         strtoul: remove dependency on strtol
23047         This is so that 'configure' need not check for strtol merely because
23048         the application needs strtoul.
23049         * modules/strtoul (Files): Add lib/strtol.c.
23050         (Depends-on): Remove strtol.
23051
23052         strtoull: remove dependency on strtoul
23053         This is like the strtoll change.
23054         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
23055         (Depends-on): Remove strtoul.
23056
23057         strtoll: remove dependency on strtol
23058         This is so that 'configure' need not check for strtol merely because
23059         the application needs strtoll.
23060         * modules/strtoll (Files): Add lib/strtol.c.
23061         (Depends-on): Remove strtol.
23062
23063 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23064
23065         inttypes: Move some configure check to module 'imaxdiv'.
23066         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
23067         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
23068         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
23069
23070 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23071
23072         inttypes: Move some configure check to module 'imaxabs'.
23073         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
23074         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
23075         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
23076
23077 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23078
23079         inttypes: Remove configure tests that are not needed since 2009-12-31.
23080         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
23081         gl_cv_header_working_inttypes_h.
23082
23083 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
23084
23085         * modules/strnlen (Depends-on): Remove memchr.
23086         The strnlen implementation doesn't need the memchr module's fixes; see
23087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
23088
23089         strtol: remove dependency on wchar
23090         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
23091         * modules/strtol (Depends-on): Remove wchar.
23092
23093 2011-04-21  Eric Blake  <eblake@redhat.com>
23094
23095         passfd: fix test regression on Linux
23096         * modules/passfd-tests (configure.ac): Correct socketpair check.
23097
23098         passfd: speed up configure and drop unused code
23099         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
23100         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
23101         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
23102         Instead of probing at configure for unix_scm_rights_bsd44_way,
23103         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
23104         check to a struct member probe.
23105         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
23106         (sendfd, recvfd): Update preprocessor checks.
23107         * modules/passfd (Files): Reflect rename, and drop unused file.
23108         (Depends-on): Drop unused dependency.
23109
23110         passfd: allow compilation on mingw
23111         * modules/sys_socket (Depends-on): Add sys_uio.
23112         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
23113         iovec and a minimal struct msghdr.
23114         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
23115         * tests/test-sys_socket.c (main): Enhance test.
23116         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
23117         guaranteed to provide what we need.
23118         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
23119         * modules/passfd-tests (Depends-on): Add sys_wait.
23120         * tests/test-passfd.c (main): Skip test on mingw, for now.
23121         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
23122         partial 'struct msghdr' implementation.
23123
23124         sys_uio: new module
23125         * modules/sys_uio: New module.
23126         * modules/sys_uio-tests: Likewise.
23127         * lib/sys_uio.in.h: New file.
23128         * m4/sys_uio_h.m4: Likewise.
23129         * tests/test-sys_uio.c: Likewise.
23130         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
23131         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
23132
23133 2011-04-20  Jim Meyering  <meyering@redhat.com>
23134
23135         useless-if-before-free: avoid false-positive
23136         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
23137         disjunct so that it too requires a terminating ";".  Without that,
23138         this script would identify as useless one statement from gcc that
23139         was not:
23140           if (aligned_ptr)
23141             free (((void **) aligned_ptr) [-1]);
23142
23143 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
23144
23145         doc: update users.txt.
23146         * users.txt: Add barcode.
23147
23148 2011-04-19  Bruno Haible  <bruno@clisp.org>
23149
23150         ioctl: Remove link dependency on native Windows.
23151         * lib/fd-hook.h: Renamed from lib/close-hook.h.
23152         (gl_close_fn, gl_ioctl_fn): New types.
23153         (struct fd_hook): Renamed from struct close_hook. Change type of
23154         private_close_fn field. Add private_ioctl_fn field.
23155         (close_hook_fn): Add parameter for primary close method.
23156         (execute_close_hooks, execute_all_close_hooks): Likewise.
23157         (ioctl_hook_fn): New type.
23158         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
23159         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23160         argument.
23161         (unregister_fd_hook): Renamed from unregister_close_hook.
23162         * lib/fd-hook.c: Renamed from lib/close-hook.c.
23163         Don't include <unistd.h>.
23164         (close): Remove undef.
23165         (anchor): Update.
23166         (execute_close_hooks): Add argument for primary close method.
23167         (execute_all_close_hooks): Likewise.
23168         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
23169         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
23170         argument. Allow each argument to be NULL.
23171         (unregister_fd_hook): Renamed from unregister_close_hook.
23172         * lib/close.c (rpl_close): Pass 'close' function pointer to
23173         execute_all_close_hooks.
23174         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
23175         (primary_ioctl): New function.
23176         (ioctl): Don't call ioctlsocket here. Instead, call
23177         execute_all_ioctl_hooks.
23178         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
23179         close method.
23180         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
23181         (fd_sockets_hook): Renamed from close_sockets_hook.
23182         (gl_sockets_startup, gl_sockets_cleanup): Update.
23183         * modules/fd-hook: Renamed from modules/close-hook. Update.
23184         * modules/close (Depends-on): Add fd-hook, remove close-hook.
23185         * modules/sockets (Depends-on): Likewise.
23186         * modules/ioctl (Depends-on): Add fd-hook.
23187         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
23188         GNULIB_SOCKET.
23189
23190 2011-04-19  Bruno Haible  <bruno@clisp.org>
23191
23192         Move the support of O_NONBLOCK in open() to the 'open' module.
23193         * modules/nonblocking (Depends-on): Remove 'open'.
23194         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
23195         gl_cv_have_open_O_NONBLOCK.
23196         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
23197         O_NONBLOCK support.
23198         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
23199
23200 2011-04-17  Bruno Haible  <bruno@clisp.org>
23201
23202         pipe2: Simplify code.
23203         * lib/pipe2.c (pipe2): Reduce code duplication.
23204
23205 2011-04-17  Bruno Haible  <bruno@clisp.org>
23206
23207         nonblocking: Add comment.
23208         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
23209
23210 2011-04-17  Bruno Haible  <bruno@clisp.org>
23211
23212         nonblocking: Add tests for sockets.
23213         * tests/test-nonblocking-socket.sh: New file.
23214         * tests/test-nonblocking-socket-main.c: New file.
23215         * tests/test-nonblocking-socket-child.c: New file.
23216         * tests/test-nonblocking-socket.h: New file.
23217         * tests/socket-server.h: New file.
23218         * tests/socket-client.h: New file.
23219         * modules/nonblocking-socket-tests: New file.
23220         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
23221
23222 2011-04-17  Bruno Haible  <bruno@clisp.org>
23223
23224         nonblocking: Add tests for pipes.
23225         * tests/test-nonblocking-pipe.sh: New file.
23226         * tests/test-nonblocking-pipe-main.c: New file.
23227         * tests/test-nonblocking-pipe-child.c: New file.
23228         * tests/test-nonblocking-pipe.h: New file.
23229         * tests/test-nonblocking-writer.h: New file.
23230         * tests/test-nonblocking-reader.h: New file.
23231         * tests/test-nonblocking-misc.h: New file.
23232         * modules/nonblocking-pipe-tests: New file.
23233         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
23234
23235 2011-04-16  Bruno Haible  <bruno@clisp.org>
23236
23237         gettext: Clarify the needed programmer actions.
23238         * modules/gettext (Notice): New field.
23239         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23240
23241 2011-04-16  Bruno Haible  <bruno@clisp.org>
23242
23243         strchrnul: Tweak last commit.
23244         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
23245         bug.
23246         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
23247         as in _GL_FUNCDECL_SYS.
23248         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
23249         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
23250
23251 2011-04-15  Eric Blake  <eblake@redhat.com>
23252
23253         strchrnul: work around cygwin bug
23254         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
23255         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
23256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
23257         * modules/string (Makefile.am): Substitute it.
23258         * lib/string.in.h (strchrnul): Use it.
23259
23260 2011-04-15  Bruno Haible  <bruno@clisp.org>
23261
23262         Don't require lib/stdio-write.c when only module 'stdio' is used.
23263         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
23264         invocation.
23265         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
23266
23267 2011-04-14  Bruno Haible  <bruno@clisp.org>
23268
23269         Support non-blocking pipe I/O in read() on native Windows.
23270         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
23271         (read): New declaration.
23272         * lib/read.c: New file.
23273         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
23274         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
23275         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
23276         vscanf): New declarations.
23277         * lib/stdio-read.c: New file.
23278         * m4/read.m4: New file.
23279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
23280         REPLACE_READ.
23281         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
23282         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23283         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
23284         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
23285         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
23286         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23287         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23288         * modules/read: New file.
23289         * modules/nonblocking (Files): Add lib/stdio-read.c.
23290         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
23291         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
23292         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
23293         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
23294         * modules/pread (Depends-on): Add read.
23295         * modules/safe-read (Depends-on): Likewise.
23296         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
23297         gets, scanf, vfscanf, vscanf): Verify signatures.
23298         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
23299         problem with non-blocking pipes.
23300         * doc/posix-functions/fgetc.texi: Likewise.
23301         * doc/posix-functions/fgets.texi: Likewise.
23302         * doc/posix-functions/fread.texi: Likewise.
23303         * doc/posix-functions/fscanf.texi: Likewise.
23304         * doc/posix-functions/getc.texi: Likewise.
23305         * doc/posix-functions/getchar.texi: Likewise.
23306         * doc/posix-functions/gets.texi: Likewise.
23307         * doc/posix-functions/scanf.texi: Likewise.
23308         * doc/posix-functions/vfscanf.texi: Likewise.
23309         * doc/posix-functions/vscanf.texi: Likewise.
23310
23311 2011-04-14  Bruno Haible  <bruno@clisp.org>
23312
23313         Support non-blocking pipe I/O in write() on native Windows.
23314         * lib/write.c (rpl_write): Split a write request that failed merely
23315         because the byte count was larger than the pipe buffer's size.
23316         * doc/posix-functions/write.texi: Mention the problem with large byte
23317         counts.
23318
23319 2011-04-14  Bruno Haible  <bruno@clisp.org>
23320
23321         wchar: Ensure that wchar_t gets defined on uClibc.
23322         * lib/wchar.in.h: On uClibc, include <stddef.h>.
23323         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
23324
23325 2011-04-13  Bruno Haible  <bruno@clisp.org>
23326
23327         safe-write, full-read: Avoid unnecessary compilation units.
23328         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
23329         (Depends-on): Remove safe-read. Add ssize_t.
23330         * modules/full-read (Files): Add lib/full-write.c.
23331         (Depends-on): Add full-write.
23332
23333 2011-04-13  Bruno Haible  <bruno@clisp.org>
23334
23335         Support non-blocking pipe I/O and SIGPIPE in pwrite().
23336         * modules/pwrite (Depends-on): Add 'write'.
23337
23338 2011-04-13  Bruno Haible  <bruno@clisp.org>
23339
23340         Support non-blocking pipe I/O in write() on native Windows.
23341         * lib/unistd.in.h (write): Enable replacement also if
23342         GNULIB_UNISTD_H_NONBLOCKING is 1.
23343         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
23344         (rpl_write): When failing to write on a non-blocking pipe, change
23345         errno from ENOSPC to EAGAIN.
23346         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
23347         putchar, puts, vfprintf, vprintf): Enable replacement also if
23348         GNULIB_STDIO_H_NONBLOCKING is 1.
23349         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
23350         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
23351         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
23352         CALL_WITH_SIGPIPE_EMULATION.
23353         (CALL_WITH_SIGPIPE_EMULATION): Use them.
23354         * m4/nonblocking.m4: New file.
23355         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
23356         for non-blocking I/O support.
23357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23358         GNULIB_UNISTD_H_NONBLOCKING.
23359         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
23360         required for non-blocking I/O support.
23361         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
23362         * modules/nonblocking (Files): Add m4/nonblocking.m4,
23363         lib/stdio-write.c, m4/asm-underscore.m4.
23364         (Depends-on): Add stdio, unistd.
23365         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
23366         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
23367         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
23368         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
23369         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
23370         problem with non-blocking pipes.
23371         * doc/posix-functions/fputc.texi: Likewise.
23372         * doc/posix-functions/fputs.texi: Likewise.
23373         * doc/posix-functions/fwrite.texi: Likewise.
23374         * doc/posix-functions/printf.texi: Likewise.
23375         * doc/posix-functions/putc.texi: Likewise.
23376         * doc/posix-functions/putchar.texi: Likewise.
23377         * doc/posix-functions/puts.texi: Likewise.
23378         * doc/posix-functions/vfprintf.texi: Likewise.
23379         * doc/posix-functions/vprintf.texi: Likewise.
23380         * doc/posix-functions/write.texi: Likewise.
23381
23382 2011-04-10  Jim Meyering  <meyering@redhat.com>
23383
23384         maint.mk: prohibit doubled words
23385         Detect them also when they're separated by a newline.
23386         There are 3 ways to customize it:
23387           - disable the test on a per file basis, as usual with rules using
23388             $(VC_LIST_EXCEPT)
23389           - replace the default doubled-word-selecting regexp (affects all files)
23390           - ignore a particular file-vs-doubled-word match
23391         I nearly used that last one to ignore the "is is" match in
23392         coreutils' NEWS file, since the text was "ls -is is ..."
23393         To do that, I would have added this line to cfg.mk:
23394           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
23395         but it would have ignored any "is is" match in NEWS.
23396         Low probability, but still...
23397         Instead, I changed the text, slightly:
23398           -  ls -is is now consistent with ls -lis in ignoring values returned
23399           +  "ls -is" is now consistent with ls -lis in ignoring values returned
23400         * top/maint.mk (prohibit_double_word_RE_): Provide default.
23401         (prohibit_doubled_word_): Define.
23402         (sc_prohibit_doubled_word): New rule.
23403         (sc_prohibit_the_the): Remove.  Subsumed by the above.
23404
23405 2011-04-10  Jim Meyering  <meyering@redhat.com>
23406
23407         maint: fix doubled-word typo in comment
23408         * m4/gethostname.m4: s/is is/it is/
23409         * m4/getdomainname.m4: Likewise.
23410
23411 2011-04-10  Jim Meyering  <meyering@redhat.com>
23412
23413         maint: remove doubled word: s/it it/it/
23414         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
23415
23416 2011-04-10  Jim Meyering  <meyering@redhat.com>
23417
23418         maint.mk: remove useless semicolon and backslash
23419         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
23420         semicolon and backslash.
23421
23422 2011-04-10  Bruno Haible  <bruno@clisp.org>
23423
23424         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
23425         * modules/stdint-tests (Depends-on): Add wchar.
23426
23427 2011-04-10  Jim Meyering  <meyering@redhat.com>
23428
23429         maint: remove doubled words in comments, e.g., s/a a/a/
23430         * lib/strptime.c (day_of_the_week): s/the the/the/
23431         * tests/test-chown.h (test_chown): s/a a/a/
23432
23433         test-chown.h: correct a cast
23434         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
23435         when the destination is a stat.st_gid.
23436
23437 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
23438
23439         getaddrinfo: Fix test for sa_len member.
23440         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
23441         include <sys/types.h> before <sys/socket.h>.
23442
23443 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23444
23445         maint: change "can not" to "cannot"
23446         * doc/posix-functions/iconv.texi (iconv): This one crossed line
23447         boundaries.
23448
23449 2011-04-09  Jim Meyering  <meyering@redhat.com>
23450
23451         maint: change "a a" to "a"
23452         * tests/test-lchown.h (test_lchown): s/a a/a/
23453
23454         maint.mk: prohibit \<the the\>
23455         * top/maint.mk (sc_prohibit_the_the): New rule.
23456
23457         maint: fix "the the" in comment
23458         * lib/count-one-bits.h: s/the the/the/
23459
23460         maint: change "can not" to "cannot"
23461         But do not change the occurrences in maintain.texi or in
23462         build-aux/po/Makefile.in.in, which I presume comes from gettext.
23463         * doc/gnulib-tool.texi: s/can not/cannot/
23464         * doc/posix-functions/accept.texi (accept): Likewise.
23465         * doc/posix-functions/socket.texi (socket): Likewise.
23466         * lib/mbrtowc.c: Likewise.
23467
23468         maint.mk: prohibit use of "can not"
23469         * top/maint.mk (sc_prohibit_can_not): New rule.
23470         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
23471
23472 2011-04-09  Bruno Haible  <bruno@clisp.org>
23473
23474         careadlinkat: Guard against misuse of careadlinkatcwd.
23475         * lib/careadlinkat.c: Include <stdlib.h>.
23476         (careadlinkatcwd): Check that the fd argument is as expected.
23477
23478 2011-04-09  Bruno Haible  <bruno@clisp.org>
23479
23480         careadlinkat: Use common coding style.
23481         * lib/careadlinkat.c: Move gnulib includes after system includes.
23482
23483 2011-04-09  Bruno Haible  <bruno@clisp.org>
23484
23485         careadlinkat: Clarify specification.
23486         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
23487         (careadlinkatcwd): Add comment.
23488         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
23489
23490 2011-04-09  Bruno Haible  <bruno@clisp.org>
23491
23492         areadlinkat: Avoid link error on many platforms.
23493         * modules/areadlinkat (Depends-on): Add areadlink.
23494
23495 2011-04-09  Bruno Haible  <bruno@clisp.org>
23496
23497         allocator, careadlinkat: Fix double-inclusion guard.
23498         * lib/allocator.h: Fix double-inclusion guard.
23499         * lib/careadlinkat.h: Likewise.
23500
23501 2011-04-09  Bruno Haible  <bruno@clisp.org>
23502
23503         relocatable-prog-wrapper: Update after module 'areadlink' changed.
23504         * lib/relocwrapper.c: Update dependencies hierarchy.
23505         * build-aux/install-reloc: Update list of files to be compiled.
23506         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
23507         lib/allocator.[hc].
23508
23509 2011-04-08  Eric Blake  <eblake@redhat.com>
23510
23511         strftime: silence gnulib-tool warning
23512         * modules/strftime-tests (Depends-on): Drop automatic dependency.
23513
23514 2011-04-08  Bruno Haible  <bruno@clisp.org>
23515
23516         verify: Fix syntax error with GCC 4.6 in C++ mode.
23517         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
23518         (HAVE_STATIC_ASSERT): New macro.
23519         (verify_true, verify): Use 'static_assert' if it is supported and
23520         '_Static_assert' is not supported.
23521
23522 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
23523
23524         allocator: New module.
23525         * modules/allocator, lib/allocator.c: New files.
23526         * lib/allocator.h (stdlib_allocator): New decl.
23527         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
23528         Remove.  Do not include <stdlib.h>.
23529         (careadlinkat): Use stdlib_allocator instead of rolling our own.
23530         * modules/careadlinkat (Files): Remove lib/allocator.h.
23531         (Depends-on): Add allocator.
23532
23533         stdlib: let modules use system malloc, realloc
23534         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
23535         if !_GL_USE_STDLIB_ALLOC.
23536         (malloc, realloc): Limit this change to a smaller scope.
23537
23538         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
23539         (malloc, realloc): Don't #undef; no longer needed.
23540         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23541         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23542         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23543         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23544         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23545         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23546         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
23547         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
23548
23549         careadlinkat: rename members to avoid problem
23550         * lib/allocator.h (struct allocator): Rename members from
23551         malloc/realloc to allocate/reallocate, to avoid problems if malloc
23552         and realloc are #define'd.  Reported by Eric Blake in
23553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
23554         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
23555
23556 2011-04-08  Eric Blake  <eblake@redhat.com>
23557
23558         nonblocking: reduce dependency
23559         * tests/test-nonblocking.c: Only test sockets when in use.
23560         * modules/nonblocking-tests (Depends-on): Drop socket.
23561         (Makefile.am): Link even if sockets are not present.
23562         * modules/pipe2-tests (Makefile.am): Likewise.
23563         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
23564
23565         pipe2: fix O_NONBLOCK support on mingw
23566         * modules/pipe2 (Depends-on): Add nonblocking.
23567         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
23568         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
23569         * tests/test-nonblocking.c (main): Likewise.
23570         * modules/pipe2-tests (Makefile.am): Avoid link failure.
23571
23572         fcntl-h: fix O_ACCMODE on cygwin
23573         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
23574         * lib/fcntl.in.h (O_ACCMODE): Fix it.
23575
23576         pipe-filter: drop O_NONBLOCK workarounds
23577         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
23578         * modules/pipe-filter-ii (Depends-on): Likewise.
23579         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
23580
23581         nonblocking: provide O_NONBLOCK for mingw
23582         * modules/nonblocking (Depends-on): Add open.
23583         (configure.ac): Set new witness macro.
23584         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
23585         * modules/fcntl-h (Makefile.am): Substitute it.
23586         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
23587         nonblocking module is in use.
23588         * lib/nonblocking.c: Adjust portability test.
23589         * lib/open.c (open): Don't let native open see gnulib flag.
23590         * tests/test-fcntl-h.c (main): Enhance test.
23591         * tests/test-open.h (test_open): Likewise.
23592         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
23593
23594         careadlinkat: fix compilation error on mingw
23595         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
23596         within struct allocator.
23597
23598 2011-04-06  Eric Blake  <eblake@redhat.com>
23599
23600         binary-io: relicense under LGPLv2+
23601         * modules/binary-io (License): Relax to LGPLv2+.
23602         Requested for libvirt, and required by pipe2.
23603
23604 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
23605
23606         verify: use _Static_assert if available
23607         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
23608         (verify_true, verify): Use it if available.  This generates better
23609         diagnostics with GCC 4.6.0 and later.
23610
23611 2011-04-05  Bruno Haible  <bruno@clisp.org>
23612
23613         Remove leftover generated .h files after config.status changed.
23614
23615         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
23616         GL_GENERATE_ALLOCA_H.
23617         * modules/alloca-opt (Makefile.am): Remove alloca.h if
23618         GL_GENERATE_ALLOCA_H evaluates to false.
23619
23620         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
23621         GL_GENERATE_ARGZ_H.
23622         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
23623         evaluates to false.
23624
23625         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
23626         GL_GENERATE_BYTESWAP_H.
23627         * modules/byteswap (Makefile.am): Remove byteswap.h if
23628         GL_GENERATE_BYTESWAP_H evaluates to false.
23629
23630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
23631         GL_GENERATE_ERRNO_H.
23632         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
23633         evaluates to false.
23634
23635         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
23636         GL_GENERATE_FLOAT_H.
23637         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
23638         evaluates to false.
23639
23640         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
23641         GL_GENERATE_FNMATCH_H.
23642         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
23643         GL_GENERATE_FNMATCH_H evaluates to false.
23644
23645         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
23646         GL_GENERATE_GLOB_H.
23647         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
23648         evaluates to false.
23649
23650         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
23651         automake conditional GL_GENERATE_ICONV_H.
23652         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
23653         evaluates to false.
23654
23655         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
23656         GL_GENERATE_NETINET_IN_H.
23657         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
23658         GL_GENERATE_NETINET_IN_H evaluates to false.
23659
23660         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
23661         conditional GL_GENERATE_PTHREAD_H.
23662         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
23663         * modules/pthread (Makefile.am): Remove pthread.h if
23664         GL_GENERATE_PTHREAD_H evaluates to false.
23665
23666         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
23667         GL_GENERATE_SCHED_H.
23668         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
23669         evaluates to false.
23670
23671         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
23672         conditional GL_GENERATE_SELINUX_CONTEXT_H.
23673         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
23674         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
23675
23676         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
23677         GL_GENERATE_STDARG_H.
23678         * modules/stdarg (Makefile.am): Remove stdarg.h if
23679         GL_GENERATE_STDARG_H evaluates to false.
23680
23681         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
23682         GL_GENERATE_STDBOOL_H.
23683         * modules/stdbool (Makefile.am): Remove stdbool.h if
23684         GL_GENERATE_STDBOOL_H evaluates to false.
23685
23686         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
23687         conditional GL_GENERATE_STDDEF_H.
23688         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
23689         * modules/stddef (Makefile.am): Remove stddef.h if
23690         GL_GENERATE_STDDEF_H evaluates to false.
23691
23692         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
23693         GL_GENERATE_STDINT_H.
23694         * modules/stdint (Makefile.am): Remove stdint.h if
23695         GL_GENERATE_STDINT_H evaluates to false.
23696
23697         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
23698         GL_GENERATE_SYSEXITS_H.
23699         * modules/sysexits (Makefile.am): Remove sysexits.h if
23700         GL_GENERATE_SYSEXITS_H evaluates to false.
23701
23702         Reported by Karl Berry and Ralf Wildenhues.
23703
23704 2011-04-05  Bruno Haible  <bruno@clisp.org>
23705
23706         Ensure to rebuild generated .h files when config.status has changed.
23707         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
23708         config.status.
23709         * modules/ctype (Makefile.am): Likewise.
23710         * modules/dirent (Makefile.am): Likewise.
23711         * modules/errno (Makefile.am): Likewise.
23712         * modules/fcntl-h (Makefile.am): Likewise.
23713         * modules/float (Makefile.am): Likewise.
23714         * modules/getopt-posix (Makefile.am): Likewise.
23715         * modules/glob (Makefile.am): Likewise.
23716         * modules/iconv-h (Makefile.am): Likewise.
23717         * modules/inttypes (Makefile.am): Likewise.
23718         * modules/langinfo (Makefile.am): Likewise.
23719         * modules/locale (Makefile.am): Likewise.
23720         * modules/math (Makefile.am): Likewise.
23721         * modules/netdb (Makefile.am): Likewise.
23722         * modules/netinet_in (Makefile.am): Likewise.
23723         * modules/poll-h (Makefile.am): Likewise.
23724         * modules/pthread (Makefile.am): Likewise.
23725         * modules/pty (Makefile.am): Likewise.
23726         * modules/sched (Makefile.am): Likewise.
23727         * modules/search (Makefile.am): Likewise.
23728         * modules/selinux-h (Makefile.am): Likewise.
23729         * modules/signal (Makefile.am): Likewise.
23730         * modules/spawn (Makefile.am): Likewise.
23731         * modules/stdarg (Makefile.am): Likewise.
23732         * modules/stdbool (Makefile.am): Likewise.
23733         * modules/stddef (Makefile.am): Likewise.
23734         * modules/stdint (Makefile.am): Likewise.
23735         * modules/stdio (Makefile.am): Likewise.
23736         * modules/stdlib (Makefile.am): Likewise.
23737         * modules/string (Makefile.am): Likewise.
23738         * modules/strings (Makefile.am): Likewise.
23739         * modules/sys_file (Makefile.am): Likewise.
23740         * modules/sys_ioctl (Makefile.am): Likewise.
23741         * modules/sys_select (Makefile.am): Likewise.
23742         * modules/sys_socket (Makefile.am): Likewise.
23743         * modules/sys_stat (Makefile.am): Likewise.
23744         * modules/sys_time (Makefile.am): Likewise.
23745         * modules/sys_times (Makefile.am): Likewise.
23746         * modules/sys_utsname (Makefile.am): Likewise.
23747         * modules/sys_wait (Makefile.am): Likewise.
23748         * modules/sysexits (Makefile.am): Likewise.
23749         * modules/termios (Makefile.am): Likewise.
23750         * modules/time (Makefile.am): Likewise.
23751         * modules/unistd (Makefile.am): Likewise.
23752         * modules/wchar (Makefile.am): Likewise.
23753         * modules/wctype-h (Makefile.am): Likewise.
23754         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
23755
23756 2011-04-05  Bruno Haible  <bruno@clisp.org>
23757
23758         pipe2: Relicense under LGPLv2+.
23759         * modules/pipe2 (License): Change to LGPLv2+.
23760         Requested by Eric Blake, for libvirt.
23761
23762 2011-04-05  Bruce Korb  <bkorb@gnu.org>
23763
23764         bootstrap: compute gnulib_extra_files after updating build_aux
23765         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
23766         change build_aux or also supply gnulib_extra_files.  Handle correctly.
23767
23768 2011-04-05  Eric Blake  <eblake@redhat.com>
23769
23770         bootstrap: preserve git whitelist item sorting
23771         * build-aux/bootstrap (sort_patterns): New function.
23772         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
23773
23774 2011-04-05  Simon Josefsson  <simon@josefsson.org>
23775
23776         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
23777         sc_space_tab check.
23778
23779 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
23780
23781         areadlink, areadlinkat: rewrite in terms of careadlinkat
23782         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
23783         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
23784         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
23785         (malloc, realloc): Remove #undefs.
23786         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
23787         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
23788         readlink, ssize_t, stdint, unistd.
23789         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
23790         areadlink, stdint.
23791
23792         careadlinkat: new module
23793         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
23794         * modules/careadlinkat: New files, written by me with
23795         a review and feedback from Ben Pfaff in
23796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
23797
23798 2011-04-01  Bruno Haible  <bruno@clisp.org>
23799
23800         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
23801         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
23802         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
23803         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
23804         Reported by Bruce Korb <bruce.korb@gmail.com>.
23805
23806 2011-04-01  Bruno Haible  <bruno@clisp.org>
23807
23808         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
23809         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
23810         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
23811         * modules/wcpcpy (Depends-on): Add extensions.
23812         * modules/wcpncpy (Depends-on): Likewise.
23813         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
23814         systems.
23815         * doc/posix-functions/wcpncpy.texi: Likewise.
23816         * doc/posix-functions/wcwidth.texi: Likewise.
23817
23818 2011-03-31  Eric Blake  <eblake@redhat.com>
23819
23820         nonblocking: fix mingw test failures
23821         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
23822         non-blocking flag on regular file.
23823         (get_nonblocking_flag): Set errno on invalid fd.
23824         * tests/test-nonblocking.c (main): Avoid test failure on
23825         directories if fchdir is not active.
23826         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
23827
23828 2011-03-31  Bruno Haible  <bruno@clisp.org>
23829
23830         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
23831         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
23832         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
23833         Reported by Simon Josefsson <simon@josefsson.org>.
23834
23835 2011-03-31  Bruno Haible  <bruno@clisp.org>
23836         and Eric Blake  <eblake@redhat.com>
23837
23838         nonblocking: new module
23839         * modules/nonblocking: New module.
23840         * modules/nonblocking-tests: Likewise.
23841         * lib/nonblocking.h: New file.
23842         * lib/nonblocking.c: Likewise.
23843         * tests/test-nonblocking.c: New test.
23844         * lib/ioctl.c (ioctl) [mingw]: Update comment.
23845
23846 2011-03-30  Bruno Haible  <bruno@clisp.org>
23847
23848         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
23849         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
23850         instead of 'printf' format for GCC >= 4.4.
23851         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
23852         (fprintf, printf, vfprintf, vprintf): Declare with
23853         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
23854         the system's vfprintf() function.
23855         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
23856
23857 2011-03-30  Eric Blake  <eblake@redhat.com>
23858
23859         passfd: fix scoping bug
23860         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
23861         before sendmsg/recvmsg.
23862
23863         passfd: standardize coding conventions
23864         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
23865         can be learned at compile time.
23866         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
23867         ifdefs.
23868         (sendfd, recvfd): Follow gnulib code conventions.
23869
23870         passfd: fix incorrect sendmsg arguments
23871         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
23872         incorrect msg_controllen value.
23873         * modules/passfd-tests (Depends-on): Check for alarm.
23874         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
23875         Reported by Bastien ROUCARIES.
23876
23877 2011-03-30  Bruno Haible  <bruno@clisp.org>
23878
23879         c-strcasestr: Relicense under LGPLv2+.
23880         * modules/c-strcasestr (License): Change to LGPLv2+.
23881         Requested by Eric Blake, for libvirt.
23882
23883 2011-03-30  Simon Josefsson  <simon@josefsson.org>
23884
23885         * users.txt: Add libidn2.  Fix libtasn1 link.
23886
23887 2011-03-30  Jim Meyering  <meyering@redhat.com>
23888
23889         tests: readlink* ("",... fails with EINVAL on newer kernels
23890         readlink and readlinkat have typically failed with ENOENT for
23891         the invalid, empty file name,  "".  However, with the advent
23892         of linux-2.6.39, they fail with EINVAL.
23893         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
23894         when operating on the empty file name.
23895         * tests/test-readlink.h (test_readlink): Likewise.
23896
23897 2011-03-29  Bruno Haible  <bruno@clisp.org>
23898
23899         Relicense some modules under LGPLv2+, for libidn2.
23900         * modules/array-mergesort (License): Change to LGPLv2+.
23901         * modules/c-strcaseeq (License): Likewise.
23902         * modules/striconveh (License): Likewise.
23903         * modules/striconveha (License): Likewise.
23904         * modules/uniconv/base (License): Likewise.
23905         * modules/uniconv/u8-conv-from-enc (License): Likewise.
23906         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
23907         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
23908         * modules/unictype/base (License): Likewise.
23909         * modules/unictype/bidiclass-of (License): Likewise.
23910         * modules/unictype/category-M (License): Likewise.
23911         * modules/unictype/category-none (License): Likewise.
23912         * modules/unictype/category-of (License): Likewise.
23913         * modules/unictype/category-test (License): Likewise.
23914         * modules/unictype/category-test-withtable (License): Likewise.
23915         * modules/unictype/combining-class (License): Likewise.
23916         * modules/unictype/joiningtype-of (License): Likewise.
23917         * modules/unictype/scripts (License): Likewise.
23918         * modules/uninorm/base (License): Likewise.
23919         * modules/uninorm/canonical-decomposition (License): Likewise.
23920         * modules/uninorm/composition (License): Likewise.
23921         * modules/uninorm/decompose-internal (License): Likewise.
23922         * modules/uninorm/decomposition-table (License): Likewise.
23923         * modules/uninorm/nfc (License): Likewise.
23924         * modules/uninorm/nfd (License): Likewise.
23925         * modules/uninorm/u32-normalize (License): Likewise.
23926         * modules/unistr/base (License): Likewise.
23927         * modules/unistr/u32-cpy (License): Likewise.
23928         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
23929         * modules/unistr/u32-to-u8 (License): Likewise.
23930         * modules/unistr/u32-uctomb (License): Likewise.
23931         * modules/unistr/u8-check (License): Likewise.
23932         * modules/unistr/u8-mblen (License): Likewise.
23933         * modules/unistr/u8-mbtouc (License): Likewise.
23934         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
23935         * modules/unistr/u8-mbtoucr (License): Likewise.
23936         * modules/unistr/u8-prev (License): Likewise.
23937         * modules/unistr/u8-strlen (License): Likewise.
23938         * modules/unistr/u8-to-u32 (License): Likewise.
23939         * modules/unistr/u8-uctomb (License): Likewise.
23940         * modules/unitypes (License): Likewise.
23941         Requested by Simon Josefsson.
23942
23943 2011-03-29  Simon Josefsson  <simon@josefsson.org>
23944
23945         lib-symbol-visibility: Add a notice.
23946         * modules/lib-symbol-visibility (Notice): New field.
23947
23948 2011-03-29  Bruno Haible  <bruno@clisp.org>
23949
23950         getaddrinfo: Doc fix.
23951         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
23952         section "fixed in Gnulib".
23953
23954 2011-03-28  Simon Josefsson  <simon@josefsson.org>
23955
23956         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
23957         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
23958
23959 2011-03-26  Bruno Haible  <bruno@clisp.org>
23960
23961         unictype/property-byname: Reduce the number of load-time relocations.
23962         * lib/unictype/pr_byname.c: Include <stdlib.h>.
23963         (UC_PROPERTY_INDEX_*): New enumeration values.
23964         (uc_property_byname): Convert an index from the lookup table to an
23965         uc_property_t.
23966         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
23967         values.
23968
23969 2011-03-26  Bruno Haible  <bruno@clisp.org>
23970
23971         unictype/property-byname: Allow omitted word separators and aliases.
23972         * lib/unictype/pr_byname.gperf: Add property names without word
23973         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
23974         for 'space'.
23975
23976 2011-03-26  Bruno Haible  <bruno@clisp.org>
23977
23978         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
23979         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
23980         also hyphens to space.
23981         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
23982         without spaces.
23983         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
23984
23985 2011-03-26  Bruno Haible  <bruno@clisp.org>
23986
23987         unictype/joiningtype-byname: Recognize long names as well.
23988         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
23989         a long name.
23990         * lib/unictype/joiningtype_byname.c: Include <string.h>,
23991         unictype/joiningtype_byname.h.
23992         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
23993         * lib/unictype/joiningtype_byname.gperf: New file.
23994         * modules/unictype/joiningtype-byname (Files): Add
23995         lib/unictype/joiningtype_byname.gperf.
23996         (Depends-on): Add gperf.
23997         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
23998         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
23999         long names.
24000
24001         Tests for module 'unictype/joiningtype-longname'.
24002         * modules/unictype/joiningtype-longname-tests: New file.
24003         * tests/unictype/test-joiningtype_longname.c: New file.
24004
24005         New module 'unictype/joiningtype-longname'.
24006         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
24007         * lib/unictype/joiningtype_longname.c: New file.
24008         * modules/unictype/joiningtype-longname: New file.
24009         * modules/unictype/joiningtype-all (Depends-on): Add
24010         unictype/joiningtype-longname.
24011
24012 2011-03-26  Bruno Haible  <bruno@clisp.org>
24013
24014         unictype/bidiclass-byname: Recognize long names as well.
24015         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
24016         name.
24017         * lib/unictype/bidi_byname.c: Include <string.h>,
24018         unictype/bidi_byname.h.
24019         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
24020         * lib/unictype/bidi_byname.gperf: New file.
24021         * modules/unictype/bidiclass-byname (Files): Add
24022         lib/unictype/bidi_byname.gperf.
24023         (Depends-on): Add gperf.
24024         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
24025         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
24026         long names.
24027
24028         Tests for module 'unictype/bidiclass-longname'.
24029         * modules/unictype/bidiclass-longname-tests: New file.
24030         * tests/unictype/test-bidi_longname.c: New file.
24031
24032         New module 'unictype/bidiclass-longname'.
24033         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
24034         * lib/unictype/bidi_longname.c: New file.
24035         * modules/unictype/bidiclass-longname: New file.
24036         * modules/unictype/bidiclass-all (Depends-on): Add
24037         unictype/bidiclass-longname.
24038
24039 2011-03-26  Bruno Haible  <bruno@clisp.org>
24040
24041         unictype/bidi*: Rename modules.
24042         * modules/unictype/bidiclass-all: Renamed from
24043         modules/unictype/bidicategory-all.
24044         * modules/unictype/bidiclass-name: Renamed from
24045         modules/unictype/bidiclass-name.
24046         (Description): Update.
24047         * modules/unictype/bidiclass-name-tests: Renamed from
24048         modules/unictype/bidicategory-name-tests.
24049         * modules/unictype/bidiclass-byname: Renamed from
24050         modules/unictype/bidicategory-byname.
24051         (Description): Update.
24052         * modules/unictype/bidiclass-byname-tests: Renamed from
24053         modules/unictype/bidicategory-byname-tests.
24054         * modules/unictype/bidiclass-of: Renamed from
24055         modules/unictype/bidicategory-of.
24056         (Description): Update.
24057         * modules/unictype/bidiclass-of-tests: Renamed from
24058         modules/unictype/bidicategory-of-tests.
24059         * modules/unictype/bidiclass-test: Renamed from
24060         modules/unictype/bidicategory-test.
24061         (Description): Update.
24062         * modules/unictype/bidiclass-test-tests: Renamed from
24063         modules/unictype/bidicategory-test-tests.
24064         * modules/unictype/bidicategory-all: New file, a simple redirection.
24065         * modules/unictype/bidicategory-name: Likewise.
24066         * modules/unictype/bidicategory-byname: Likewise.
24067         * modules/unictype/bidicategory-of: Likewise.
24068         * modules/unictype/bidicategory-test: Likewise.
24069         * modules/unictype/property-bidi-* (Dependencies): Update.
24070         * lib/unictype/bidi_*.c: Update comment.
24071
24072 2011-03-26  Bruno Haible  <bruno@clisp.org>
24073
24074         unictype/bidi*: Rename functions, part 2.
24075         * modules/unictype/bidicategory-name (configure.ac): Update required
24076         libunistring version.
24077         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
24078
24079 2011-03-25  Bruno Haible  <bruno@clisp.org>
24080
24081         New module 'unictype/combining-class-all'.
24082         * modules/unictype/combining-class-all: New file.
24083
24084         Tests for module 'unictype/combining-class-byname'.
24085         * modules/unictype/combining-class-byname-tests: New file.
24086         * tests/unictype/test-combiningclass_byname.c: New file.
24087
24088         New module 'unictype/combining-class-byname'.
24089         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
24090         * lib/unictype/combiningclass_byname.c: New file.
24091         * lib/unictype/combiningclass_byname.gperf: New file.
24092         * modules/unictype/combining-class-byname: New file.
24093
24094         Tests for module 'unictype/combining-class-longname'.
24095         * modules/unictype/combining-class-longname-tests: New file.
24096         * tests/unictype/test-combiningclass_longname.c: New file.
24097
24098         New module 'unictype/combining-class-longname'.
24099         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
24100         * lib/unictype/combiningclass_longname.c: New file.
24101         * modules/unictype/combining-class-longname: New file.
24102
24103         Tests for module 'unictype/combining-class-name'.
24104         * modules/unictype/combining-class-name-tests: New file.
24105         * tests/unictype/test-combiningclass_name.c: New file.
24106
24107         New module 'unictype/combining-class-name'.
24108         * lib/unictype.in.h (uc_combining_class_name): New declaration.
24109         * lib/unictype/combiningclass_name.c: New file.
24110         * modules/unictype/combining-class-name: New file.
24111
24112 2011-03-25  Bruno Haible  <bruno@clisp.org>
24113
24114         unictype/combining-class: Rename source files.
24115         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
24116         of unictype/combining.h.
24117         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
24118         Update.
24119         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
24120         * modules/unictype/combining-class (Description): Fix.
24121         (Files, Makefile.am): Update.
24122         * tests/unictype/test-combiningclass.c: Renamed from
24123         tests/unictype/test-combining.c.
24124         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
24125
24126 2011-03-25  Bruno Haible  <bruno@clisp.org>
24127
24128         unictype: Update list of canonical combining classes.
24129         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
24130
24131 2011-03-25  Bruno Haible  <bruno@clisp.org>
24132
24133         unictype/category-byname: Recognize long names as well.
24134         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
24135         a long name.
24136         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
24137         unictype/categ_byname.h.
24138         (UC_CATEGORY_INDEX_*): New enumeration values.
24139         (uc_general_category_byname): Use uc_general_category_lookup and
24140         convert from index to value.
24141         * lib/unictype/categ_byname.gperf: New file.
24142         * modules/unictype/category-byname (Files): Add
24143         lib/unictype/categ_byname.gperf.
24144         (Depends-on): Add gperf.
24145         (Makefile.am): Add rule for generating unictype/categ_byname.h.
24146         * tests/unictype/test-categ_byname.c (main): Test the recognition of
24147         long names.
24148
24149         Tests for module 'unictype/category-longname'.
24150         * modules/unictype/category-longname-tests: New file.
24151         * tests/unictype/test-categ_longname.c: New file.
24152
24153         New module 'unictype/category-longname'.
24154         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
24155         * lib/unictype/categ_longname.c: New file.
24156         * modules/unictype/category-longname: New file.
24157         * modules/unictype/category-all (Depends-on): Add it.
24158
24159 2011-03-25  Bruno Haible  <bruno@clisp.org>
24160
24161         Tests for module 'unictype/category-LC'.
24162         * modules/unictype/category-LC-tests: New file.
24163         * tests/unictype/test-categ_LC.c: New file, automatically generated.
24164
24165         New module 'unictype/category-LC'.
24166         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
24167         (UC_CATEGORY_LC): New declaration.
24168         (UC_CASED_LETTER): New macro.
24169         * lib/gen-uni-tables.c (is_category_LC): New function.
24170         (output_categories): Also handle category LC.
24171         (UC_CATEGORY_MASK_LC): New enumeration value.
24172         (general_category_byname): Also handle category LC.
24173         * lib/unictype/categ_LC.c: New file.
24174         * lib/unictype/categ_LC.h: New file, automatically generated.
24175         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
24176         category LC.
24177         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
24178         * modules/unictype/category-LC: New file.
24179         * modules/unictype/category-byname (Depends-on): Add
24180         unictype/category-LC.
24181         * modules/unictype/category-all (Depends-on): Likewise.
24182
24183 2011-03-25  Eric Blake  <eblake@redhat.com>
24184
24185         xmalloc: revert yesterday's regression
24186         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
24187         realloc's underlying behavior (allowing allocation of zero-size
24188         objects, especially if malloc-gnu is also in use).
24189
24190 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
24191
24192         maint.mk: add missing version to VC-tag
24193         * top/maint.mk: git tag was missing actual tag name; add it.
24194
24195         valgrind: do leak checking, and exit with code 1 on error (not 0)
24196         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
24197         to VALGRIND.
24198
24199 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
24200
24201         posix-modules: say what it does.
24202         * posix-modules: Add a line to the --help output saying what it does.
24203
24204 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
24205
24206         xmalloc: Do not leak if underlying realloc is C99 compatible.
24207         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
24208         This avoids a leak on C99-based systems.  See
24209         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
24210
24211 2011-03-24  Eric Blake  <eblake@redhat.com>
24212
24213         realloc: document portability problem
24214         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
24215         passing 0 size to realloc.
24216
24217 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
24218
24219         doc: update users.txt
24220         * users.txt: Add cvsps, tmpwatch
24221
24222 2011-03-23  Matt Rice  <ratmice@gmail.com>
24223
24224         doc: update users.txt
24225         * users.txt: Add gdb.
24226
24227 2011-03-23  Jim Meyering  <meyering@redhat.com>
24228
24229         doc: update users.txt
24230         Looking through matches up to the following URL (there are still
24231         several more pages), I found several projects that use gnulib:
24232         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
24233         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
24234         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
24235
24236 2011-03-22  Bruno Haible  <bruno@clisp.org>
24237
24238         unictype/bidi*: Rename functions.
24239         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
24240         uc_bidi_class, uc_is_bidi_class): New declarations.
24241         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
24242         uc_bidi_category_byname.
24243         (uc_bidi_category_byname): New function.
24244         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
24245         u_bidi_category_name.
24246         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
24247         (uc_bidi_category_name): New function.
24248         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
24249         uc_bidi_category.
24250         (uc_bidi_category): New function.
24251         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
24252         uc_is_bidi_category. Invoke uc_bidi_class.
24253         (uc_is_bidi_category): New function.
24254         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
24255         instead of uc_bidi_category_byname.
24256         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
24257         instead of uc_bidi_category_name.
24258         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
24259         uc_bidi_category.
24260         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
24261         instead of uc_is_bidi_category.
24262
24263 2011-03-21  Bruno Haible  <bruno@clisp.org>
24264
24265         New module 'unictype/joininggroup-all'.
24266         * modules/unictype/joininggroup-all: New file.
24267
24268         Tests for module 'unictype/joininggroup-of'.
24269         * modules/unictype/joininggroup-of-tests: New file.
24270         * tests/unictype/test-joininggroup_of.c: New file.
24271         * tests/unictype/test-joininggroup_of.h: New file, automatically
24272         generated by gen-uni-tables.
24273
24274         New module 'unictype/joininggroup-of'.
24275         * modules/unictype/joininggroup-of: New file.
24276         * lib/unictype/joininggroup_of.c: New file.
24277         * lib/unictype/joininggroup_of.h: New file, automatically generated by
24278         gen-uni-tables.
24279
24280         Tests for module 'unictype/joininggroup-byname'.
24281         * modules/unictype/joininggroup-byname-tests: New file.
24282         * tests/unictype/test-joininggroup_byname.c: New file.
24283
24284         New module 'unictype/joininggroup-byname'.
24285         * modules/unictype/joininggroup-byname: New file.
24286         * lib/unictype/joininggroup_byname.c: New file.
24287         * lib/unictype/joininggroup_byname.gperf: New file.
24288
24289         Tests for module 'unictype/joininggroup-name'.
24290         * modules/unictype/joininggroup-name-tests: New file.
24291         * tests/unictype/test-joininggroup_name.c: New file.
24292
24293         New module 'unictype/joininggroup-name'.
24294         * modules/unictype/joininggroup-name: New file.
24295         * lib/unictype/joininggroup_name.c: New file.
24296         * lib/unictype/joininggroup_name.h: New file.
24297
24298         New module 'unictype/joiningtype-all'.
24299         * modules/unictype/joiningtype-all: New file.
24300
24301         Tests for module 'unictype/joiningtype-of'.
24302         * modules/unictype/joiningtype-of-tests: New file.
24303         * tests/unictype/test-joiningtype_of.c: New file.
24304         * tests/unictype/test-joiningtype_of.h: New file, automatically
24305         generated by gen-uni-tables.
24306
24307         New module 'unictype/joiningtype-of'.
24308         * modules/unictype/joiningtype-of: New file.
24309         * lib/unictype/joiningtype_of.c: New file.
24310         * lib/unictype/joiningtype_of.h: New file, automatically generated by
24311         gen-uni-tables.
24312
24313         Tests for module 'unictype/joiningtype-byname'.
24314         * modules/unictype/joiningtype-byname-tests: New file.
24315         * tests/unictype/test-joiningtype_byname.c: New file.
24316
24317         New module 'unictype/joiningtype-byname'.
24318         * modules/unictype/joiningtype-byname: New file.
24319         * lib/unictype/joiningtype_byname.c: New file.
24320
24321         Tests for module 'unictype/joiningtype-name'.
24322         * modules/unictype/joiningtype-name-tests: New file.
24323         * tests/unictype/test-joiningtype_name.c: New file.
24324
24325         New module 'unictype/joiningtype-name'.
24326         * modules/unictype/joiningtype-name: New file.
24327         * lib/unictype/joiningtype_name.c: New file.
24328
24329         unictype: Add support for Arabic shaping properties.
24330         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
24331         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
24332         declarations.
24333         (UC_JOINING_GROUP_*): New enumeration values.
24334         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
24335         declarations.
24336         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
24337         (unicode_joining_type): New variable.
24338         (UC_JOINING_GROUP_*): New enumeration values.
24339         (unicode_joining_group): New variable.
24340         (fill_arabicshaping, joining_type_as_c_identifier,
24341         output_joining_type_test, output_joining_type,
24342         joining_group_as_c_identifier, output_joining_group_test,
24343         output_joining_group): New functions.
24344         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
24345         fill_arabicshaping and output_joining_type_test, output_joining_type,
24346         output_joining_group_test, output_joining_group.
24347         Reported by Simon Josefsson.
24348
24349 2011-03-21  Jim Meyering  <meyering@redhat.com>
24350
24351         strftime: fix a bug in yesterday's change
24352         * lib/strftime.c (add): Accommodate width's initial value of -1.
24353         Otherwise, nstrftime would copy uninitialized data into
24354         the result buffer.
24355
24356 2011-03-21  Jim Meyering  <meyering@redhat.com>
24357
24358         tests: add strftime-tests module
24359         * tests/test-strftime.c: New file.
24360         * modules/strftime-tests: New module.
24361
24362 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24363
24364         strftime: don't assume a byte count fits in 'int'
24365         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
24366         found this problem by static analysis, using gcc -Wstrict-overflow
24367         (GCC 4.5.2, x86-64).  This reported an optimization that depended
24368         on an integer overflow having undefined behavior, but it turns out
24369         that the argument is a size, which might not fit in 'int' anyway,
24370
24371 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24372
24373         stdio: don't require ignore_value around fwrite
24374
24375         This patch works around libc bug 11959
24376         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
24377         Without this patch, applications must often write
24378         ignore_value (fwrite (...)) even though the ignore_value is
24379         not helpful here.  It's common to write many objects, using
24380         fwrite/printf/etc., and then use ferror to detect output error.
24381
24382         I considered making this patch optional, but decided against it,
24383         because libc is obviously being inconsistent here: there is no
24384         reason libc should insist that user code must inspect fwrite
24385         return's value without also insisting that it inspect printf's,
24386         putchar's, etc.  If user code wants to have a strict style where
24387         all these functions' values are checked (so that ferror need not
24388         be checked), we could add support for that style in a new gnulib
24389         module, but in the meantime it's better to be consistent and to
24390         support common usage.
24391
24392         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
24393         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
24394         that we are compiling in checking mode, and if not C++, and
24395         if not already wrapping fwrite for some other reason.
24396         (fwrite): #define to rpl_fwrite if the latter is defined.
24397
24398 2011-03-20  Bruno Haible  <bruno@clisp.org>
24399
24400         verror: Fix compilation error introduced on 2011-02-13.
24401         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
24402         instead of __attribute__.
24403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24404
24405 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
24406             Bruno Haible  <bruno@clisp.org>
24407
24408         socklen: do not depend on sys_socket
24409         While trying to modify Emacs to use gnulib's socklen module,
24410         I discovered a circular dependency: socklen depends on sys_socket
24411         and vice versa.  Emacs can use socklen, but it does not need
24412         sys_socket because it has its own substitute for sys/socket.h.
24413         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
24414         gl_TYPE_SOCKLEN_T.
24415         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
24416         gl_PREREQ_SYS_H_SOCKET.
24417         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
24418         gl_PREREQ_SYS_H_SOCKET.
24419         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
24420         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
24421         * modules/socklen (Depends-on): Do not depend on sys_socket.
24422         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
24423
24424 2011-03-20  Jim Meyering  <meyering@redhat.com>
24425
24426         maint.mk: sort file names *after* new transformation
24427         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
24428         prefix would have led to an unwarranted failure in GNU parted.
24429         Sort after that transformation.
24430
24431 2011-03-19  Jim Meyering  <meyering@redhat.com>
24432
24433         maint.mk: fix po-file syntax-check rule
24434         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
24435         Patch by Bruno Haible.
24436
24437 2011-03-19  Bruno Haible  <bruno@clisp.org>
24438
24439         socklen: Update comment.
24440         * m4/socklen.m4: Update comment about platforms.
24441
24442 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24443             Bruno Haible  <bruno@clisp.org>
24444
24445         inet_ntop, inet_pton: Simplify.
24446         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
24447         documented to provide socklen_t and we already depend on sys_socket.
24448         * modules/inet_pton (Depends-on): Likewise.
24449         * lib/arpa_inet.in.h: Adjust comment.
24450
24451 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
24452             Bruno Haible  <bruno@clisp.org>
24453
24454         netdb: Simplify.
24455         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
24456         documented to provide socklen_t and we already depend on sys_socket.
24457         * lib/netdb.in.h: Adjust comment.
24458
24459 2011-03-19  Bruno Haible  <bruno@clisp.org>
24460
24461         sys_socket, netdb: Document problem with socklen_t.
24462         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
24463         platforms.
24464         * doc/posix-headers/netdb.texi: Likewise.
24465
24466 2011-03-18  Eric Blake  <eblake@redhat.com>
24467
24468         maint.mk: let po check work in VPATH build
24469         * top/maint.mk (po_file): Allow cfg.mk override.
24470         (sc_po_check): Allow VPATH use.
24471         Reported by Jiri Denemark.
24472
24473 2011-03-16  Jim Meyering  <meyering@redhat.com>
24474
24475         maint.mk: allow fine-grained syntax-check exclusion via Make variables
24476         Before, you would have had to create one .x-sc_ file per rule in order
24477         to exempt offending files.  Now, you may instead use a Make variable --
24478         usually defined in cfg.mk -- whose name identifies the affected rule.
24479         * top/maint.mk (_sc_excl): Define.
24480         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
24481         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
24482
24483 2011-03-13  Bruno Haible  <bruno@clisp.org>
24484
24485         ignore-value tests: Avoid warnings.
24486         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
24487         empty for gcc < 3.4.
24488
24489 2011-03-13  Bruno Haible  <bruno@clisp.org>
24490
24491         passfd: Fix link error on Solaris.
24492         * modules/passfd (Description): Correct.
24493         (Depends-on): Add socketlib.
24494         (Link): New section.
24495         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
24496
24497 2011-03-13  Bruno Haible  <bruno@clisp.org>
24498
24499         passfd: Fix link error on AIX 5.2.
24500         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
24501
24502 2011-03-13  Bruno Haible  <bruno@clisp.org>
24503
24504         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
24505         * lib/sys_socket.in.h: Include <stddef.h>.
24506         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
24507         CMSG_FIRSTHDR. Remove unused variable.
24508
24509 2011-03-13  Bruno Haible  <bruno@clisp.org>
24510
24511         passfd: Fix compilation error on OpenBSD.
24512         * lib/passfd.c: Include <sys/uio.h>.
24513
24514 2011-03-13  Bruno Haible  <bruno@clisp.org>
24515
24516         passfd test: Fix warnings.
24517         * tests/test-passfd.c: Include <sys/wait.h>.
24518         (main): Fix typo.
24519
24520 2011-03-13  Bruno Haible  <bruno@clisp.org>
24521
24522         passfd module, part 4, tweaks.
24523         * tests/test-passfd.c: Reorder includes.
24524         (main): Fix perror and printf calls.
24525
24526 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24527
24528         passfd module, part 4.
24529         * modules/passfd-tests: New file.
24530         * tests/test-passfd.c: New file.
24531
24532 2011-03-13  Jim Meyering  <meyering@redhat.com>
24533
24534         Makefile: rely on GNU make; derive syntax-check rule names
24535         Rather than requiring that each sc_ rule be listed as a dependent
24536         of "check", use features of GNU make to derive the list.
24537         * Makefile (syntax-check-rules): Define.
24538         (check): Depend on the new variable, not the hard-coded list.
24539
24540 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
24541             Bruno Haible  <bruno@clisp.org>
24542
24543         passfd module, part 3.
24544         * lib/passfd.h (recvfd): Add a flags argument.
24545         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
24546         (recvfd): Add a flags argument.
24547         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
24548         exists.
24549         * modules/passfd (Depends-on): Add cloexec.
24550         Suggested by Eric Blake.
24551
24552 2011-03-13  Bruno Haible  <bruno@clisp.org>
24553
24554         passfd module, part 2, tweaks.
24555         * modules/passfd (Files): Reorder.
24556         (Depends-on): Remove errno.
24557         (Include): Remove <sys/socket.h>, <sys/un.h>.
24558         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
24559         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
24560         specification header. Include <sys/socket.h> always. Don't include
24561         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
24562         (sendfd): Clarify that it sets errno when it fails.
24563         (recvfd): Fix specification.
24564
24565 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24566
24567         passfd module, part 2.
24568         * modules/passfd: New file.
24569         * lib/passfd.h: New file.
24570         * lib/passfd.c: New file.
24571
24572 2011-03-12  Bruno Haible  <bruno@clisp.org>
24573
24574         wcswidth, mbswidth: Avoid integer overflow.
24575         * lib/wcswidth.c: Include <limits.h>.
24576         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
24577         * lib/mbswidth.c: Include <limits.h>.
24578         (mbsnwidth): Avoid 'int' overflow.
24579         Reported by Jim Meyering.
24580
24581 2011-03-12  Bruno Haible  <bruno@clisp.org>
24582
24583         futimens, utimensat: Avoid endless recursion on Solaris 10.
24584         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
24585         Solaris.
24586         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
24587         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
24588
24589 2011-03-11  Jim Meyering  <meyering@redhat.com>
24590
24591         maint.mk: relax a regexp to accommodate other formatting styles
24592         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
24593         between "ngettext" and the following "(".
24594
24595 2011-03-11  Pádraig Brady <P@draigBrady.com>
24596
24597         maint.mk: suppress a false positive warning
24598         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
24599         diagnostics are marked with ngettext.
24600
24601 2011-03-10  Eric Blake  <eblake@redhat.com>
24602
24603         wchar: add explicit dependencies, for Tru64
24604         * modules/mbmemcasecoll (Depends-on): Add wchar.
24605         * modules/mbtowc (Depends-on): Likewise.
24606         * modules/vasnprintf (Depends-on): Likewise.
24607         * modules/unistdio/u-printf-args (Depends-on): Likewise.
24608         * modules/wctomb (Depends-on): Likewise.
24609         Reported by Peter O'Gorman.
24610
24611 2011-03-08  Bruno Haible  <bruno@clisp.org>
24612
24613         passfd module, part 1, tweaks.
24614         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
24615         Improve indentation. Improve AC_MSG_CHECKING messages.
24616         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
24617         gl_SOCKET_FAMILIES.
24618
24619 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
24620
24621         passfd module, part 1.
24622         * m4/afunix.m4: New file.
24623         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
24624         sockets.
24625
24626 2011-03-08  Bruno Haible  <bruno@clisp.org>
24627
24628         regex-quote: New API.
24629         * lib/regex-quote.h: Include <stdbool.h>.
24630         (struct regex_quote_spec): New type.
24631         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24632         New declarations.
24633         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24634         'const struct regex_quote_spec *' argument.
24635         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
24636         (pcre_special): New constant.
24637         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
24638         New functions.
24639         (regex_quote_length, regex_quote_copy, regex_quote): Take a
24640         'const struct regex_quote_spec *' argument.
24641         * modules/regex-quote (Depends-on): Add stdbool.
24642         * tests/test-regex-quote.c (check): Update for new API. Add test for
24643         anchored results.
24644         * NEWS: Mention the API change.
24645         Reported by Reuben Thomas and Eric Blake.
24646
24647 2011-03-06  Bruno Haible  <bruno@clisp.org>
24648
24649         regex-quote: Fix creation of POSIX extended regular expressions.
24650         * lib/regex-quote.c (ere_special): Add grouping and alternation
24651         operators.
24652
24653 2011-03-05  Bruno Haible  <bruno@clisp.org>
24654
24655         doc: Improve doc regarding autopoint vs. gnulib.
24656         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
24657         disable autopoint while running autoreconf.
24658         Suggested by Ralf Wildenhues.
24659
24660 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24661
24662         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
24663         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
24664
24665 2011-03-03  Bruce Korb  <bkorb@gnu.org>
24666
24667         parse-duration: remove xalloc.h dependency
24668         * lib/parse-duration.c (parse_period): handle NULL return from
24669         strdup instead of calling xstrdup().
24670         * modules/parse-duration: remove "xalloc" dependency
24671
24672 2011-03-03  Matthew Booth  <mbooth@redhat.com>
24673
24674         bootstrap: honor m4_base when running aclocal
24675         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
24676
24677 2011-03-02  Jim Meyering  <meyering@redhat.com>
24678
24679         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
24680         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
24681         on request from Matt Booth.
24682
24683 2011-03-01  Eric Blake  <eblake@redhat.com>
24684
24685         test-link: work on Hurd
24686         * tests/test-link.h (test_link): Hurd rejects linking directories
24687         with EISDIR instead of the POSIX-mandated EPERM.
24688
24689 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
24690
24691         stdio: simplify by moving files to printf-posix, sigpipe
24692         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
24693         since this symbol is needed only if printf is replaced.
24694         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
24695         Require gl_ASM_SYMBOL_PREFIX.
24696         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
24697         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
24698         (Depends-on): Add 'raise'.
24699         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
24700         * modules/stdio (Files): Remove lib/stdio-write.c,
24701         m4/asm-underscore.m4.
24702         (Depends-on): Remove 'raise'.
24703
24704         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
24705         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
24706         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
24707         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
24708
24709 2011-02-28  Bruno Haible  <bruno@clisp.org>
24710
24711         localcharset: Assume ANSI C behaviour of free().
24712         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
24713         calling free().
24714         Suggested by Simon Josefsson <simon@josefsson.org>.
24715
24716 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
24717             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
24718             Bruno Haible  <bruno@clisp.org>  (tiny change)
24719
24720         On Cygwin, use /proc file system instead of win32 API.
24721         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
24722         Win32 file names.
24723         (DllMain): Simplify by removing Cygwin specific code.
24724         (find_shared_library_fullname): Use Linux specific implementation also
24725         for Cygwin.
24726         (get_shared_library_fullname): Update accordingly.
24727         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
24728         Win32 file names.
24729         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
24730         Cygwin specific code.
24731
24732 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
24733             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
24734
24735         Fix OpenMP flag detection for various Fortran compilers.
24736         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
24737         OpenMP-conditional compilation construct, to force compile
24738         failure with missing OpenMP flag.
24739         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
24740
24741 2011-02-25  Eric Blake  <eblake@redhat.com>
24742
24743         strstr: expand test coverage
24744         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
24745         compilation.
24746         * tests/test-memmem.c (main): Duplicate tests.
24747         * tests/test-strcasestr.c (main): Likewise.
24748         * tests/test-c-strcasestr.c (main): Likewise.
24749
24750 2011-02-25  Jim Meyering  <meyering@redhat.com>
24751
24752         maint.mk: detect missing-NL-at-EOF, too
24753         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
24754         it also detects when a file lacks a newline at EOF.
24755         (require_exactly_one_NL_at_EOF_): Renamed from
24756         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
24757         since people may well have .x-sc_... file names tied to the
24758         existing name.  Suggested by Eric Blake.
24759
24760 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
24761
24762         dirname: move m4/dos.m4 functionality into lib/dosname.h
24763
24764         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
24765         extracts symbols from it, puts them into config.h; but it's much
24766         easier to use the symbols directly.  filename.h already does this,
24767         but it disagrees with dos.m4 in some respects.  This patch
24768         introduces a different include file dosname.h that packages up
24769         dos.m4, and then later we can work on merging filename.h and
24770         dosname.h.  Applications that need only the easy-to-configure
24771         symbols should consider including dosname.h rather than dirname.h.
24772         * NEWS: Mention incompatible changes.
24773         * m4/dos.m4: Remove.
24774         * lib/dosname.h, modules/dosname: New files.
24775         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
24776         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
24777         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
24778         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
24779         Include dosname.h, not dirname.h.
24780         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
24781         Include dosname.h, for definitions of symbols like ISSLASH
24782         that used to be in config.h.
24783         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
24784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24785         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24786         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24787         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
24788         * modules/rmdir (Files): Likewise.
24789         * modules/stat (Files): Likewise.
24790         * modules/unlink (Files): Likewise.
24791         * modules/dirname-lgpl (Depends-on): Add dosname.
24792         * modules/lstat (Depends-on): Likewise.
24793         * modules/openat (Depends-on): Likewise.
24794         * modules/rmdir (Depends-on): Likewise.
24795         * modules/savewd (Depends-on): Likewise.
24796         * modules/stat (Depends-on): Likewise.
24797         * modules/unlink (Depends-on): Likewise.
24798         * modules/openat (Depends-on): Remove dirname-lgpl.
24799         * modules/savewd (Depends-on): Likewise.
24800         * tests/test-dirname.c: Do not use removed symbols like
24801         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
24802         the remaining symbols, e.g., ISSLASH ('\\').
24803
24804 2011-02-25  Eric Blake  <eblake@redhat.com>
24805
24806         strstr: revert patches that introduced bug and pessimization
24807         * lib/str-two-way.h: Add another reference.
24808         (two_way_short_needle, two_way_long_needle): Revert changes from
24809         2011-02-24; they pessimize search speed.
24810         (critical_factorization): Partially revert changes from
24811         2010-06-22; they violate the requirement that the left half of the
24812         needle be smaller than the period of the needle.
24813
24814 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
24815
24816         filenamecat: remove unnecessary dependency on dirname-lgpl
24817         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
24818         is no direct dependency, just an indirect one via filenamecat-lgpl.
24819
24820         remove: remove unnecessary use of m4/dos.m4
24821         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
24822         * modules/remove (FILES): Remove m4/dos.m4.
24823
24824         * lib/openat-proc.c: Don't include dirname.h; not needed.
24825
24826         backupfile: remove unnecessary use of m4/dos.m4
24827         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
24828         of its symbols are used by the backupfile code.  backupfile.c does
24829         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
24830         for the rare case of programs that want all their backup file
24831         names to live within 8+3 limits, and dos.m4 doesn't address that.
24832         * modules/backupfile (Files): Remove m4/dos.m4.
24833
24834 2011-02-24  Jim Meyering  <meyering@redhat.com>
24835
24836         strstr: fix a bug whereby strstr would mistakenly return NULL
24837         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
24838         in period calculation.
24839         (two_way_long_needle): Likewise.
24840         The original problem was reported by Mike Stump in
24841         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
24842         Ralf Wildenhues provided the short needle and haystack.
24843         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
24844         Add a more involved test to trigger the bug in two_way_long_needle.
24845
24846 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24847
24848         gnulib-tool: remove use of bold display in help screen
24849         * gnulib-tool (func_usage): Do not use bold display anymore in the
24850         help screen.  That was just meant to be a temporary emphasis for a
24851         backward-incompatible change.
24852
24853 2011-02-23  Bruno Haible  <bruno@clisp.org>
24854
24855         Fix misindentation of preprocessor directives.
24856         * lib/argp-namefrob.h: Reindent preprocessor directives.
24857         * lib/getopt_int.h (struct _getopt_data): Likewise.
24858         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
24859         * lib/vasnprintf.c (decode_long_double): Likewise.
24860         * tests/test-argmatch.c: Insert blank lines, for clarity.
24861         * tests/test-exclude.c: Likewise.
24862
24863 2011-02-22  Bruno Haible  <bruno@clisp.org>
24864
24865         ioctl: Fix for MacOS X in 64-bit mode.
24866         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
24867         value.
24868         Suggested by Eric Blake.
24869         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
24870
24871 2011-02-22  Jim Meyering  <meyering@redhat.com>
24872
24873         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
24874         * Makefile (sc_cpp_indent_check): Don't limit the check to files
24875         in lib/.
24876
24877 2011-02-22  Eric Blake  <eblake@redhat.com>
24878
24879         maint: avoid any CDPATH issue
24880         * Makefile (sc_cpp_indent_check): Anchor cd argument.
24881
24882         maint: adjust cpp indentation for my modules, as well
24883         * Makefile (sc_cpp_indent_check): Add my name.
24884         * lib/fbufmode.c: Filter through cppi.
24885         * lib/fpurge.c: Likewise.
24886         * lib/freadable.c: Likewise.
24887         * lib/freading.c: Likewise.
24888         * lib/fwritable.c: Likewise.
24889         * lib/fwriting.c: Likewise.
24890         * lib/sigaction.c: Likewise.
24891
24892 2011-02-22  Jim Meyering  <meyering@redhat.com>
24893
24894         maint: adjust cpp indentation to reflect nesting depth
24895         I.e., in a block of code that begins with an unnested "#if",
24896         put one space between the "#" in column 1 and following token.
24897         For example,
24898         -#include <sys/vfs.h>
24899         +# include <sys/vfs.h>
24900         Do this only in .c files that are part of a module I maintain.
24901         * lib/linkat.c: Filter through cppi.
24902         * lib/nanosleep.c: Likewise.
24903         * lib/openat.c: Likewise.
24904         * lib/openat-die.c: Likewise.
24905         * lib/dup3.c: Likewise.
24906         * lib/fchownat.c: Likewise.
24907         * lib/flock.c: Likewise.
24908         * lib/fsync.c: Likewise.
24909         * lib/fts.c: Likewise.
24910         * lib/getpass.c: Likewise.
24911         * lib/gettimeofday.c: Likewise.
24912         * lib/userspec.c: Likewise.
24913         * Makefile (sc_cpp_indent_check): New rule, to check this.
24914
24915 2011-02-22  Bruno Haible  <bruno@clisp.org>
24916
24917         New module 'wctomb'.
24918         * lib/stdlib.in.h (wctomb): New declaration.
24919         * lib/wctomb.c: New file.
24920         * lib/wctomb-impl.h: New file.
24921         * m4/wctomb.m4: New file.
24922         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
24923         REPLACE_WCTOMB.
24924         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
24925         REPLACE_WCTOMB.
24926         * modules/wctomb: New file.
24927         * tests/test-stdlib-c++.cc: Test signature of wctomb.
24928         * doc/posix-functions/wctomb.texi: Mention the new module.
24929         * modules/wctob (Depends-on): Add wctomb.
24930
24931 2011-02-22  Bruno Haible  <bruno@clisp.org>
24932
24933         New module 'mbtowc'.
24934         * lib/stdlib.in.h (mbtowc): New declaration.
24935         * lib/mbtowc.c: New file.
24936         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
24937         * m4/mbtowc.m4: New file.
24938         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
24939         REPLACE_MBTOWC.
24940         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
24941         REPLACE_MBTOWC.
24942         * modules/mbtowc: New file.
24943         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
24944         * doc/posix-functions/mbtowc.texi: Mention the new module.
24945         * modules/btowc (Depends-on): Add mbtowc.
24946
24947 2011-02-22  Bruno Haible  <bruno@clisp.org>
24948
24949         wcrtomb: Add more tests for native Windows platforms.
24950         * tests/test-wcrtomb-w32-1.sh: New file.
24951         * tests/test-wcrtomb-w32-2.sh: New file.
24952         * tests/test-wcrtomb-w32-3.sh: New file.
24953         * tests/test-wcrtomb-w32-4.sh: New file.
24954         * tests/test-wcrtomb-w32-5.sh: New file.
24955         * tests/test-wcrtomb-w32.c: New file.
24956         * modules/wcrtomb-tests (Files): Add them.
24957         (Makefile.am): Arrange to run these tests.
24958         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
24959         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
24960
24961 2011-02-20  Bruno Haible  <bruno@clisp.org>
24962
24963         wcrtomb: Enhance test.
24964         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
24965
24966 2011-02-20  Bruno Haible  <bruno@clisp.org>
24967
24968         mbrtowc: Tiny optimization.
24969         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
24970
24971 2011-02-20  Jim Meyering  <meyering@redhat.com>
24972
24973         test-exclude.c: remove unmatched #endif
24974         * tests/test-exclude.c: Remove stray #endif, left over from
24975         the change of a week ago.
24976
24977 2011-02-19  Jim Meyering  <meyering@redhat.com>
24978
24979         git-version-gen: skip "-dirty" check when appropriate
24980         * build-aux/git-version-gen: Don't run any git commands when the
24981         version string comes from .tarball-version.  Prior to this, we
24982         would run git update-index --refresh even from a just-unpacked
24983         tarball directory, and that could affect a .git/ directory in a
24984         parent of the build directory.  Reported by Mike Frysinger.
24985
24986 2011-02-19  Bruno Haible  <bruno@clisp.org>
24987
24988         unictype/property-byname: Reduce the size of the 'data' segment.
24989         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
24990
24991 2011-02-19  Bruno Haible  <bruno@clisp.org>
24992
24993         unictype/scripts: Reduce the size of the 'data' segment.
24994         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
24995         '%pic'.
24996         * lib/unictype/scripts_byname.gperf: Regenerated.
24997
24998 2011-02-19  Bruno Haible  <bruno@clisp.org>
24999
25000         stdint: Update documentation.
25001         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
25002
25003 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
25004
25005         stdint: omit redundant check for wchar.h
25006         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
25007         always tests whether wchar.h exists, so remove the now-redundant test.
25008
25009 2011-02-18  Bruno Haible  <bruno@clisp.org>
25010
25011         stdint: Cut dependency to module 'wchar'.
25012         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
25013         include the necessary prerequisites.
25014         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
25015         * modules/stdint (Depends-on): Remove wchar.
25016         (Makefile.am): Substitute HAVE_WCHAR_H.
25017         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
25018
25019 2011-02-18  Eric Blake  <eblake@redhat.com>
25020
25021         longlong: skip, rather than fail, on cross-compilation
25022         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
25023         when cross-compiling; regression from 2011-02-16.
25024
25025 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
25026
25027         * NEWS: Mention 2011-02-08 change to stdlib.
25028
25029 2011-02-17  Bruno Haible  <bruno@clisp.org>
25030
25031         getloadavg: Add comments about platforms.
25032         * m4/getloadavg.m4: Add comment.
25033         * lib/getloadavg.c: Likewise.
25034
25035 2011-02-17  Bruno Haible  <bruno@clisp.org>
25036
25037         getloadavg: Fix link error on Solaris 2.6.
25038         * modules/getloadavg (Link): New section.
25039         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
25040         linking test-getloadavg.
25041         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
25042         getloadavg.
25043
25044 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
25045
25046         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
25047         It was 'int', but this doesn't match the IRIX 6.5 manual.
25048         Suggested by Bruno Haible in
25049         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
25050
25051 2011-02-17  Bruno Haible  <bruno@clisp.org>
25052
25053         havelib: Fix comments.
25054         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
25055         change.
25056
25057 2011-02-17  Bruno Haible  <bruno@clisp.org>
25058
25059         havelib: Update config.rpath.
25060         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
25061
25062 2011-02-17  Bruno Haible  <bruno@clisp.org>
25063
25064         getloadavg test: Add some plausibility checks.
25065         * tests/test-getloadavg.c (check_avg): Print a warning when the value
25066         is improbable.
25067
25068 2011-02-16  Eric Blake  <eblake@redhat.com>
25069
25070         maintainer-makefile: make syntax-check a no-op from tarballs
25071         * top/maint.mk (no-vc-detected): New rule.
25072         (local-checks-available): Use it to avoid hanging if someone tries
25073         'make syntax-check' from a tarball.  Also append to any non-syntax
25074         checks already defined in cfg.mk.
25075
25076 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25077
25078         longlong: tune, particularly for common case of c99
25079
25080         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
25081         or running anything if c99, or if unsigned long long int does not
25082         work.  In either case, we know the answer without further tests.
25083         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
25084         it at most once, and use its results for both long long int and
25085         unsigned long long int.  This is more likely to be efficient in
25086         the common case where the program wants to check for both long
25087         long int and unsigned long long int.
25088         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
25089         since the answer is already known.
25090
25091 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25092
25093         getloadavg: set errno
25094         * lib/getloadavg.c: Set errno when returning -1.  If no other
25095         error number looks appropriate, set it to ENOSYS if the getloadavg
25096         looks like it can't possibly ever work, ENOTSUP otherwise.
25097         Suggested by Bruno Haible in
25098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
25099
25100         getloadavg: trim unused parts and speed up 'configure'
25101         * NEWS: Document this.
25102         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
25103         always compiled if getloadavg is absent.
25104         Move test code to ...
25105         * tests/test-getloadavg.c: New file, containing previous
25106         contents of test from lib/getloadavg.c.  It also contains
25107         suggestions by Bruno Haible in
25108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
25109         * modules/getloadavg-tests: New file.
25110         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
25111         Do tests in the same order as they're needed for getloadavg.c.
25112         Omit setgid-related tests that generate symbols KMEM_GROUP,
25113         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
25114         Do only the tests that are needed to see whether the system has
25115         getloadavg, moving the other tests into ...
25116         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
25117         NLIST_NAME_UNION; nobody should be using it.  Do not define
25118         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
25119         relevant, as the user of this module shouldn't care how getloadavg
25120         is implemented.
25121
25122         getloadavg: omit unused var
25123         * lib/getloadavg.c (getloadavg): Omit unused local variable.
25124
25125 2011-02-15  Jim Meyering  <meyering@redhat.com>
25126
25127         doc: update users.txt
25128         * users.txt: Update iwhd's URL.
25129
25130 2011-02-13  Bruno Haible  <bruno@clisp.org>
25131
25132         Consistent macro naming for macros that use GCC __attribute__.
25133         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
25134         _ATTRIBUTE_NONNULL_.
25135         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
25136         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
25137         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
25138         ATTRIBUTE_DEPRECATED.
25139         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
25140         ATTRIBUTE_NORETURN.
25141         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25142         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25143         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25144         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
25145         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
25146         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
25147         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
25148         ATTRIBUTE_SENTINEL.
25149         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
25150         ATTRIBUTE_RETURN_CHECK.
25151         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
25152         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
25153         ATTRIBUTE_NORETURN.
25154         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
25155         Reported by Paul Eggert.
25156
25157 2011-02-13  Bruno Haible  <bruno@clisp.org>
25158
25159         Don't interfere with a program's definition of __attribute__.
25160         * lib/argp.h (__attribute__): Remove definition.
25161         (_GL_ATTRIBUTE_FORMAT): New macro.
25162         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
25163         * lib/argp-fmtstream.h (__attribute__): Remove definition.
25164         (_GL_ATTRIBUTE_FORMAT): New macro.
25165         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
25166         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
25167         GCC 3 or newer.
25168         * lib/error.h (__attribute__): Remove definition.
25169         (_GL_ATTRIBUTE_FORMAT): New macro.
25170         (error, error_at_line): Use it.
25171         * lib/hash.h (__attribute__): Remove definition.
25172         (ATTRIBUTE_WUR): Update definition. Define always.
25173         * lib/openat.h (__attribute__): Remove definition.
25174         (ATTRIBUTE_NORETURN): Update definition. Define always.
25175         * lib/sigpipe-die.h (__attribute__): Remove definition.
25176         (ATTRIBUTE_NORETURN): Update definition. Define always.
25177         * lib/vasnprintf.h (__attribute__): Remove definition.
25178         (_GL_ATTRIBUTE_FORMAT): New macro.
25179         (asnprintf, vasnprintf): Use it.
25180         * lib/xalloc.h (__attribute__): Remove definition.
25181         (ATTRIBUTE_NORETURN): Update definition. Define always.
25182         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
25183         * lib/xmemdup0.h (__attribute__): Remove definition.
25184         (ATTRIBUTE_NORETURN): Update definition. Define always.
25185         * lib/xprintf.h (__attribute__): Remove definition.
25186         (_GL_ATTRIBUTE_FORMAT): New macro.
25187         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
25188         * lib/xstrtol.h (__attribute__): Remove definition.
25189         (ATTRIBUTE_NORETURN): Update definition. Define always.
25190         * lib/xvasprintf.h (__attribute__): Remove definition.
25191         (_GL_ATTRIBUTE_FORMAT): New macro.
25192         (xasprintf, xvasprintf): Use it.
25193         * tests/test-argmatch.c (__attribute__): Remove definition.
25194         (ATTRIBUTE_NORETURN): Update definition. Define always.
25195         * tests/test-exclude.c (__attribute__): Remove definition.
25196         (ATTRIBUTE_NORETURN): Update definition. Define always.
25197         Reported by Paul Eggert.
25198
25199 2011-02-13  Bruno Haible  <bruno@clisp.org>
25200
25201         mbrtowc: Add more tests for native Windows platforms.
25202         * tests/test-mbrtowc-w32-1.sh: New file.
25203         * tests/test-mbrtowc-w32-2.sh: New file.
25204         * tests/test-mbrtowc-w32-3.sh: New file.
25205         * tests/test-mbrtowc-w32-4.sh: New file.
25206         * tests/test-mbrtowc-w32-5.sh: New file.
25207         * tests/test-mbrtowc-w32.c: New file.
25208         * modules/mbrtowc-tests (Files): Add them.
25209         (Makefile.am): Arrange to run these tests.
25210         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
25211         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
25212
25213 2011-02-13  Bruno Haible  <bruno@clisp.org>
25214
25215         mbrtowc: Work around native Windows bug.
25216         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
25217         guess when no suitable locale for testing was found.
25218         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
25219
25220 2011-02-13  Bruno Haible  <bruno@clisp.org>
25221
25222         mbsinit: Work around mingw bug.
25223         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
25224         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
25225         Windows.
25226         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
25227
25228 2011-02-13  Bruno Haible  <bruno@clisp.org>
25229
25230         mbsinit: Don't crash for a NULL argument.
25231         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
25232         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
25233
25234 2011-02-13  Bruno Haible  <bruno@clisp.org>
25235
25236         Don't interfere with a program's definition of __attribute__.
25237         * lib/stdio.in.h (__attribute__): Remove definition.
25238         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
25239         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
25240         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
25241         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
25242         * lib/string.in.h (__attribute__): Remove definition.
25243         Reported by Paul Eggert.
25244
25245 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25246
25247         stdlib: don't get in the way of non-GCC __attribute__
25248         See thread starting at
25249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
25250         Revert previous stdlib change, installing the following instead:
25251         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
25252         to get in the way of a non-GCC compiler that supports __attribute__.
25253         (_GL_ATTRIBUTE_RETURN): New macro.
25254         (_Exit): Use it instead of __attribute__.
25255
25256 2011-02-12  Bruno Haible  <bruno@clisp.org>
25257
25258         quotearg test: Avoid test failure on mingw.
25259         * tests/test-quotearg.sh: Convert the locale identifier from native
25260         Windows syntax to Unix syntax.
25261
25262 2011-02-12  Bruno Haible  <bruno@clisp.org>
25263
25264         setlocale: Prefer gnulib's override over libintl's override.
25265         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
25266         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
25267         GNULIB_defined_setlocale is set.
25268
25269 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25270
25271         stdlib: support non-GCC __attribute__
25272
25273         Fix a serious and tricky problem encountered when attempting to
25274         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
25275         5.5, but it crashed due to memory corruption on Solaris 10 with
25276         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
25277         bits that are otherwise zero.  This tagging is optional inside
25278         Emacs but is preferred and is used when __attribute__ ((__aligned
25279         (8))) works, as it does with both recent-enough GCC and with Sun C
25280         5.11.  However, Sun C 5.11 is not GCC and does not #define
25281         __GNUC__ and __GNUC_MINOR__.
25282
25283         When I added the getloadavg module to Emacs, it brought in
25284         stdlib.in.h, which contained this fragment:
25285
25286            #ifndef __attribute__
25287            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
25288            #  define __attribute__(Spec)   /* empty */
25289            # endif
25290            #endif
25291
25292         When files that include <stdlib.h> were compiled with Sun C 5.11,
25293         the above code disabled __attribute__ ((__aligned (8))), which
25294         caused variables to not be properly aligned, which eventually led
25295         to the pointer corruption mentioned above.  (This was a bit hard
25296         to diagnose, unfortunately.)
25297
25298         Several "#define __attribute__(X) /* empty */" code snippets need
25299         to be eradicated from Gnulib to work with non-GCC compilers that
25300         support __attribute__.  The Autoconf way to do this is to test for
25301         each kind of attribute that we want support for, and selectively
25302         enable that in source code.
25303
25304         Fix this problem just for stdlib.h, by adding a test for the
25305         __noreturn__ attribute, and change stdlib.in.h to use that test
25306         when needed.  This technique can be easily generalized to the
25307         other *.in.h files and attributes, and a similar technique can be
25308         used for *.h and *.c files.  This patch is enough to solve the
25309         problem for Emacs + getloadavg, and I thought I'd publish it for
25310         feedback before undertaking further, similar fixes in other
25311         modules.
25312
25313         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
25314         because it's not needed for stdlib.h.  It merely substitutes the
25315         value directly into stdlib.h.  We may well need to #define it, or
25316         similar symbols, for other modules, but it's nice to also have an
25317         option to not #define it for applications like Emacs that do not
25318         need it.
25319
25320         * lib/stdlib.in.h (__attribute__): Do not #define.
25321         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
25322         be defined only if the _Exit module is also used.
25323         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
25324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
25325         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
25326         platforms.
25327         * modules/_Exit (Files): Add m4/attribute.m4.
25328         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
25329         * m4/attribute.m4: New file.
25330
25331 2011-02-12  Bruno Haible  <bruno@clisp.org>
25332
25333         wcsrtombs: Work around bug on native Windows.
25334         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
25335         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
25336         instead of len.
25337         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
25338
25339 2011-02-12  Bruno Haible  <bruno@clisp.org>
25340
25341         mbsrtowcs: Work around bug on native Windows.
25342         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
25343         against mingw bug.
25344         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
25345
25346 2011-02-12  Bruno Haible  <bruno@clisp.org>
25347
25348         Avoid setlocale bugs in tests.
25349         * modules/btowc (Dependencies): Add setlocale.
25350         * modules/c-strcase (Dependencies): Likewise.
25351         * modules/mbmemcasecmp (Dependencies): Likewise.
25352         * modules/mbmemcasecoll (Dependencies): Likewise.
25353         * modules/mbrtowc (Dependencies): Likewise.
25354         * modules/mbscasecmp (Dependencies): Likewise.
25355         * modules/mbscasestr (Dependencies): Likewise.
25356         * modules/mbschr (Dependencies): Likewise.
25357         * modules/mbscspn (Dependencies): Likewise.
25358         * modules/mbsinit (Dependencies): Likewise.
25359         * modules/mbsncasecmp (Dependencies): Likewise.
25360         * modules/mbsnrtowcs (Dependencies): Likewise.
25361         * modules/mbspbrk (Dependencies): Likewise.
25362         * modules/mbspcasecmp (Dependencies): Likewise.
25363         * modules/mbsrchr (Dependencies): Likewise.
25364         * modules/mbsrtowcs (Dependencies): Likewise.
25365         * modules/mbsspn (Dependencies): Likewise.
25366         * modules/mbsstr (Dependencies): Likewise.
25367         * modules/nl_langinfo (Dependencies): Likewise.
25368         * modules/quotearg (Dependencies): Likewise.
25369         * modules/unicase/locale-language (Dependencies): Likewise.
25370         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
25371         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
25372         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
25373         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
25374         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
25375         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
25376         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
25377         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
25378         * modules/vasnprintf-posix (Dependencies): Likewise.
25379         * modules/wcrtomb (Dependencies): Likewise.
25380         * modules/wcsnrtombs (Dependencies): Likewise.
25381         * modules/wcsrtombs (Dependencies): Likewise.
25382
25383 2011-02-12  Bruno Haible  <bruno@clisp.org>
25384
25385         setlocale: Workaround native Windows bug.
25386         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
25387         succeeds but sets LC_CTYPE to "C", report a failure.
25388         * tests/test-setlocale2.sh: New file.
25389         * tests/test-setlocale2.c: New file.
25390         * modules/setlocale-tests (Files): Add the new files.
25391         (Makefile.am): Enable test-setlocale2.sh test.
25392         * doc/posix-functions/setlocale.texi: Mention workaround.
25393
25394 2011-02-11  Bruno Haible  <bruno@clisp.org>
25395
25396         Tests for module 'setlocale'.
25397         * modules/setlocale-tests: New file.
25398         * tests/test-setlocale1.sh: New file.
25399         * tests/test-setlocale1.c: New file.
25400
25401         New module 'setlocale'.
25402         * lib/locale.in.h (setlocale): New declaration.
25403         * lib/setlocale.c: New file, based on
25404         gettext/gettext-runtime/intl/setlocale.c.
25405         * m4/setlocale.m4: New file.
25406         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
25407         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
25408         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
25409         REPLACE_SETLOCALE.
25410         * modules/setlocale: New file.
25411         * tests/test-locale-c++.cc: Test the declaration of setlocale.
25412         * doc/posix-functions/setlocale.texi: Mention the new module.
25413
25414 2011-02-11  Bruno Haible  <bruno@clisp.org>
25415
25416         Prepare for locale dependent tests on mingw.
25417         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
25418         because it has the wrong locale encoding.
25419         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
25420         French_France.1252 instead of "fr".
25421         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
25422         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
25423         because it has the wrong locale encoding.
25424         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
25425         native Windows, try Turkish_Turkey.65001.
25426         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
25427         Chinese_China.54936.
25428
25429         Prepare for locale dependent tests on mingw.
25430         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
25431         differently.
25432         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
25433         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
25434         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25435         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25436
25437 2011-02-11  Eric Blake  <eblake@redhat.com>
25438
25439         strptime: avoid compiler warnings
25440         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
25441         compiler warnings about dead code.
25442         Reported by Daniel P. Berrange.
25443
25444 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
25445
25446         doc: update users.txt
25447         * users.txt: Add rcs.
25448
25449 2011-02-10  John W. Eaton  <jwe@gnu.org>
25450
25451         doc: update users.txt
25452         * users.txt: Add octave.
25453
25454 2011-02-10  Jim Meyering  <meyering@redhat.com>
25455
25456         doc: update users.txt
25457         * users.txt: Add iwhd.
25458
25459 2011-02-09  Bruno Haible  <bruno@clisp.org>
25460
25461         gnulib-tool: Make copyright notice adjustment more robust.
25462         * gnulib-tool (func_import): In sed_transform_main_lib_file,
25463         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
25464         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
25465         License".
25466         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
25467
25468 2011-02-06  Bruno Haible  <bruno@clisp.org>
25469
25470         New module 'towctrans'.
25471         * modules/towctrans: New file.
25472         * lib/wctype.in.h (towctrans): New declaration.
25473         * lib/towctrans.c: New file.
25474         * lib/towctrans-impl.h: New file.
25475         * m4/towctrans.m4: New file.
25476         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
25477         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
25478         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
25479         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
25480         * doc/posix-functions/towctrans.texi: Mention the new module.
25481
25482 2011-02-06  Bruno Haible  <bruno@clisp.org>
25483
25484         New module 'wctrans'.
25485         * modules/wctrans: New file.
25486         * lib/wctype.in.h (wctrans): New declaration.
25487         * lib/wctrans.c: New file.
25488         * lib/wctrans-impl.h: New file.
25489         * m4/wctrans.m4: New file.
25490         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
25491         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
25492         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
25493         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
25494         * doc/posix-functions/wctrans.texi: Mention the new module.
25495
25496 2011-02-06  Bruno Haible  <bruno@clisp.org>
25497
25498         New module 'iswctype'.
25499         * modules/iswctype: New file.
25500         * lib/wctype.in.h (iswctype): New declaration.
25501         * lib/iswctype.c: New file.
25502         * lib/iswctype-impl.h: New file.
25503         * m4/iswctype.m4: New file.
25504         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
25505         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
25506         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
25507         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
25508         * doc/posix-functions/iswctype.texi: Mention the new module and the
25509         HP-UX 11.00 problem.
25510
25511 2011-02-06  Bruno Haible  <bruno@clisp.org>
25512
25513         New module 'wctype'.
25514         * modules/wctype: Change to represent the wctype() substitute.
25515         * lib/wctype.in.h (wctype): New declaration.
25516         * lib/wctype.c: New file.
25517         * lib/wctype-impl.h: New file.
25518         * m4/wctype.m4: New file.
25519         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
25520         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
25521         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
25522         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
25523         * doc/posix-functions/wctype.texi: Mention the new module and the
25524         HP-UX 11.00 problem.
25525
25526 2011-02-06  Bruno Haible  <bruno@clisp.org>
25527
25528         wctype-h: Ensure wctype_t and wctrans_t are defined.
25529         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
25530         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25531         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
25532         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
25533         HAVE_WCTRANS_T.
25534         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
25535
25536 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25537
25538         flock: fix license typo
25539
25540         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
25541         omitted.
25542
25543 2011-02-08  Bruno Haible  <bruno@clisp.org>
25544
25545         Split large sed scripts, for HP-UX sed.
25546         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
25547         to avoid HP-UX limit of 99 commands, in the near future.
25548         * modules/stdlib (Makefile.am): Likewise.
25549         * modules/unistd (Makefile.am): Likewise.
25550         * modules/wchar (Makefile.am): Likewise.
25551         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25552         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
25553         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
25554
25555 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25556             Bruno Haible  <bruno@clisp.org>
25557
25558         stdlib: improve random_r modularization
25559         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
25560         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
25561         you also need the random_r module to get this material right.
25562         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
25563         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
25564         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
25565
25566 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25567
25568         stdlib: don't depend on stdint
25569         * lib/stdlib.in.h: Don't include <stdint.h> merely because
25570         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
25571         be independent of whether stdint.h is needed.
25572         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
25573         here, instead of ...
25574         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
25575         struct random_data should be using the random_r module, not just
25576         the stdlib module (which wouldn't make sense: what package needs
25577         just struct random_data without also needing random_r?).
25578         * modules/stdlib (Depends-on): Remove stdint.
25579
25580         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
25581         See the thread rooted at
25582         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
25583         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
25584         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
25585         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
25586         __VMS)); previously it was always included (via fcntl--.h).
25587         (getloadavg): Do not use c_strtod.  Instead, approximate it by
25588         hand; this is good enough for load averages.  Also, do not use
25589         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
25590         flags directly if available and don't bother otherwise.  (Packages
25591         that need the extra reliability should use the modules that define
25592         these flags on older platforms that lack them.)
25593         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
25594         fcntl-safer.
25595
25596 2011-02-08  Jim Meyering  <meyering@redhat.com>
25597
25598         di-set.h, ino-map.h: add multiple-inclusion guard
25599         Technically, the guard is required only for ino-map.h, due to its
25600         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
25601         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
25602         * lib/ino-map.h: Likewise.
25603
25604 2011-02-06  Bruno Haible  <bruno@clisp.org>
25605
25606         iswblank: Ensure declaration on glibc systems.
25607         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
25608         * modules/iswblank (Dependencies): Add 'extensions'.
25609         * doc/posix-functions/iswblank.texi: Document the glibc problem.
25610
25611 2011-02-06  Bruno Haible  <bruno@clisp.org>
25612
25613         New module 'iswblank'.
25614         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
25615         * modules/iswblank: New file.
25616         * modules/wctype-h (Files): Remove lib/iswblank.c.
25617         (Makefile.am): Substitute GNULIB_ISWBLANK.
25618         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
25619         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
25620         (gl_WCTYPE_H_DEFAULTS): New macro.
25621         (gl_WCTYPE_H): Require it. Remove iswblank related code.
25622         * modules/iswblank-tests: New file.
25623         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
25624         * tests/test-wctype-h.c (main): Remove iswblank tests.
25625         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
25626         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
25627         of 'wctype-h'.
25628         * NEWS: Mention the change.
25629         * modules/mbchar (Depends-on): Add iswblank.
25630
25631 2011-02-08  Bruno Haible  <bruno@clisp.org>
25632
25633         di-set tests: Refactor.
25634         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
25635         unnecessary includes.
25636         (ASSERT): Remove macro.
25637         (main): Make C90 compliant by avoiding variable declaration after
25638         statement.
25639         * modules/di-set-tests (Files): Add tests/macros.h.
25640
25641 2011-02-08  Bruno Haible  <bruno@clisp.org>
25642
25643         ino-map tests: Refactor.
25644         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
25645         unnecessary includes.
25646         (ASSERT): Remove macro.
25647         (main): Make C90 compliant by avoiding variable declaration after
25648         statement.
25649         * modules/ino-map-tests (Files): Add tests/macros.h.
25650
25651 2011-02-08  Jim Meyering  <meyering@redhat.com>
25652
25653         di-set: add "const" to a cast
25654         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
25655         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
25656
25657 2011-02-06  Bruno Haible  <bruno@clisp.org>
25658
25659         Rename module 'wctype' to 'wctype-h'.
25660         * modules/wctype-h: Renamed from modules/wctype.
25661         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
25662         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
25663         (Files, Depends-on, Makefile.am): Update.
25664         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
25665         (Files, Makefile.am): Update.
25666         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
25667         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
25668         * doc/posix-headers/wctype.texi: Update.
25669         * doc/posix-functions/iswalnum.texi: Update.
25670         * doc/posix-functions/iswalpha.texi: Update.
25671         * doc/posix-functions/iswblank.texi: Update.
25672         * doc/posix-functions/iswcntrl.texi: Update.
25673         * doc/posix-functions/iswdigit.texi: Update.
25674         * doc/posix-functions/iswgraph.texi: Update.
25675         * doc/posix-functions/iswlower.texi: Update.
25676         * doc/posix-functions/iswprint.texi: Update.
25677         * doc/posix-functions/iswpunct.texi: Update.
25678         * doc/posix-functions/iswspace.texi: Update.
25679         * doc/posix-functions/iswupper.texi: Update.
25680         * doc/posix-functions/iswxdigit.texi: Update.
25681         * doc/posix-functions/towlower.texi: Update.
25682         * doc/posix-functions/towupper.texi: Update.
25683         * NEWS: Mention the change.
25684         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
25685         * modules/mbchar (Dependencies): Likewise.
25686         * modules/mbswidth (Dependencies): Likewise.
25687         * modules/quotearg (Dependencies): Likewise.
25688         * modules/regex (Dependencies): Likewise.
25689         * modules/wcscasecmp (Dependencies): Likewise.
25690         * modules/wcsncasecmp (Dependencies): Likewise.
25691         * modules/wcwidth (Dependencies): Likewise.
25692
25693 2011-02-06  Bruno Haible  <bruno@clisp.org>
25694
25695         New module 'wcswidth'.
25696         * modules/wcswidth: New file.
25697         * lib/wchar.in.h (wcswidth): New declaration.
25698         * lib/wcswidth.c: New file.
25699         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
25700         * m4/wcswidth.m4: New file.
25701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
25702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
25703         REPLACE_WCSWIDTH.
25704         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
25705         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
25706         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
25707         * doc/posix-functions/wcswidth.texi: Mention the new module.
25708
25709 2011-02-06  Bruno Haible  <bruno@clisp.org>
25710
25711         New module 'wcstok'.
25712         * modules/wcstok: New file.
25713         * lib/wchar.in.h (wcstok): New declaration.
25714         * lib/wcstok.c: New file.
25715         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
25716         * m4/wcstok.m4: New file.
25717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
25718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
25719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
25720         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
25721         * doc/posix-functions/wcstok.texi: Mention the new module.
25722
25723 2011-02-06  Bruno Haible  <bruno@clisp.org>
25724
25725         New module 'wcsstr'.
25726         * modules/wcsstr: New file.
25727         * lib/wchar.in.h (wcsstr): New declaration.
25728         * lib/wcsstr.c: New file.
25729         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
25730         * m4/wcsstr.m4: New file.
25731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
25732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
25733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
25734         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
25735         * doc/posix-functions/wcsstr.texi: Mention the new module.
25736
25737 2011-02-06  Bruno Haible  <bruno@clisp.org>
25738
25739         New module 'wcspbrk'.
25740         * modules/wcspbrk: New file.
25741         * lib/wchar.in.h (wcspbrk): New declaration.
25742         * lib/wcspbrk.c: New file.
25743         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
25744         * m4/wcspbrk.m4: New file.
25745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
25746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
25747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
25748         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
25749         * doc/posix-functions/wcspbrk.texi: Mention the new module.
25750
25751 2011-02-06  Bruno Haible  <bruno@clisp.org>
25752
25753         New module 'wcsspn'.
25754         * modules/wcsspn: New file.
25755         * lib/wchar.in.h (wcsspn): New declaration.
25756         * lib/wcsspn.c: New file.
25757         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
25758         * m4/wcsspn.m4: New file.
25759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
25760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
25761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
25762         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
25763         * doc/posix-functions/wcsspn.texi: Mention the new module.
25764
25765 2011-02-06  Bruno Haible  <bruno@clisp.org>
25766
25767         New module 'wcscspn'.
25768         * modules/wcscspn: New file.
25769         * lib/wchar.in.h (wcscspn): New declaration.
25770         * lib/wcscspn.c: New file.
25771         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
25772         * m4/wcscspn.m4: New file.
25773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
25774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
25775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
25776         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
25777         * doc/posix-functions/wcscspn.texi: Mention the new module.
25778
25779 2011-02-06  Bruno Haible  <bruno@clisp.org>
25780
25781         New module 'wcsrchr'.
25782         * modules/wcsrchr: New file.
25783         * lib/wchar.in.h (wcsrchr): New declaration.
25784         * lib/wcsrchr.c: New file.
25785         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
25786         * m4/wcsrchr.m4: New file.
25787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
25788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
25789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
25790         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
25791         * doc/posix-functions/wcsrchr.texi: Mention the new module.
25792
25793 2011-02-06  Bruno Haible  <bruno@clisp.org>
25794
25795         New module 'wcschr'.
25796         * modules/wcschr: New file.
25797         * lib/wchar.in.h (wcschr): New declaration.
25798         * lib/wcschr.c: New file.
25799         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
25800         * m4/wcschr.m4: New file.
25801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
25802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
25803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
25804         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
25805         * doc/posix-functions/wcschr.texi: Mention the new module.
25806
25807 2011-02-06  Bruno Haible  <bruno@clisp.org>
25808
25809         New module 'wcsdup'.
25810         * modules/wcsdup: New file.
25811         * lib/wchar.in.h (wcsdup): New declaration.
25812         * lib/wcsdup.c: New file.
25813         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
25814         * m4/wcsdup.m4: New file.
25815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
25816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
25817         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
25818         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
25819         * doc/posix-functions/wcsdup.texi: Mention the new module.
25820
25821 2011-02-06  Bruno Haible  <bruno@clisp.org>
25822
25823         New module 'wcsxfrm'.
25824         * modules/wcsxfrm: New file.
25825         * lib/wchar.in.h (wcsxfrm): New declaration.
25826         * lib/wcsxfrm.c: New file.
25827         * lib/wcsxfrm-impl.h: New file.
25828         * m4/wcsxfrm.m4: New file.
25829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
25830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
25831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
25832         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
25833         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
25834
25835 2011-02-06  Bruno Haible  <bruno@clisp.org>
25836
25837         New module 'wcscoll'.
25838         * modules/wcscoll: New file.
25839         * lib/wchar.in.h (wcscoll): New declaration.
25840         * lib/wcscoll.c: New file.
25841         * lib/wcscoll-impl.h: New file.
25842         * m4/wcscoll.m4: New file.
25843         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
25844         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
25845         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
25846         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
25847         * doc/posix-functions/wcscoll.texi: Mention the new module.
25848
25849 2011-02-06  Bruno Haible  <bruno@clisp.org>
25850
25851         New module 'wcsncasecmp'.
25852         * modules/wcsncasecmp: New file.
25853         * lib/wchar.in.h (wcsncasecmp): New declaration.
25854         * lib/wcsncasecmp.c: New file.
25855         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
25856         * m4/wcsncasecmp.m4: New file.
25857         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
25858         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
25859         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
25860         HAVE_WCSNCASECMP.
25861         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
25862         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
25863
25864 2011-02-06  Bruno Haible  <bruno@clisp.org>
25865
25866         New module 'wcscasecmp'.
25867         * modules/wcscasecmp: New file.
25868         * lib/wchar.in.h (wcscasecmp): New declaration.
25869         * lib/wcscasecmp.c: New file.
25870         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
25871         * m4/wcscasecmp.m4: New file.
25872         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
25873         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
25874         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
25875         HAVE_WCSCASECMP.
25876         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
25877         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
25878
25879 2011-02-05  Bruno Haible  <bruno@clisp.org>
25880
25881         New module 'wcsncmp'.
25882         * modules/wcsncmp: New file.
25883         * lib/wchar.in.h (wcsncmp): New declaration.
25884         * lib/wcsncmp.c: New file.
25885         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
25886         * m4/wcsncmp.m4: New file.
25887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
25888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
25889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
25890         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
25891         * doc/posix-functions/wcsncmp.texi: Mention the new module.
25892
25893 2011-02-05  Bruno Haible  <bruno@clisp.org>
25894
25895         New module 'wcscmp'.
25896         * modules/wcscmp: New file.
25897         * lib/wchar.in.h (wcscmp): New declaration.
25898         * lib/wcscmp.c: New file.
25899         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
25900         * m4/wcscmp.m4: New file.
25901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
25902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
25903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
25904         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
25905         * doc/posix-functions/wcscmp.texi: Mention the new module.
25906
25907 2011-02-05  Bruno Haible  <bruno@clisp.org>
25908
25909         New module 'wcsncat'.
25910         * modules/wcsncat: New file.
25911         * lib/wchar.in.h (wcsncat): New declaration.
25912         * lib/wcsncat.c: New file.
25913         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
25914         * m4/wcsncat.m4: New file.
25915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
25916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
25917         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
25918         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
25919         * doc/posix-functions/wcsncat.texi: Mention the new module.
25920
25921 2011-02-05  Bruno Haible  <bruno@clisp.org>
25922
25923         New module 'wcscat'.
25924         * modules/wcscat: New file.
25925         * lib/wchar.in.h (wcscat): New declaration.
25926         * lib/wcscat.c: New file.
25927         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
25928         * m4/wcscat.m4: New file.
25929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
25930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
25931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
25932         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
25933         * doc/posix-functions/wcscat.texi: Mention the new module.
25934
25935 2011-02-05  Bruno Haible  <bruno@clisp.org>
25936
25937         New module 'wcpncpy'.
25938         * modules/wcpncpy: New file.
25939         * lib/wchar.in.h (wcpncpy): New declaration.
25940         * lib/wcpncpy.c: New file.
25941         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
25942         * m4/wcpncpy.m4: New file.
25943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
25944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
25945         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
25946         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
25947         * doc/posix-functions/wcpncpy.texi: Mention the new module.
25948
25949 2011-02-05  Bruno Haible  <bruno@clisp.org>
25950
25951         New module 'wcsncpy'.
25952         * modules/wcsncpy: New file.
25953         * lib/wchar.in.h (wcsncpy): New declaration.
25954         * lib/wcsncpy.c: New file.
25955         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
25956         * m4/wcsncpy.m4: New file.
25957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
25958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
25959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
25960         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
25961         * doc/posix-functions/wcsncpy.texi: Mention the new module.
25962
25963 2011-02-05  Bruno Haible  <bruno@clisp.org>
25964
25965         New module 'wcpcpy'.
25966         * modules/wcpcpy: New file.
25967         * lib/wchar.in.h (wcpcpy): New declaration.
25968         * lib/wcpcpy.c: New file.
25969         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
25970         * m4/wcpcpy.m4: New file.
25971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
25972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
25973         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
25974         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
25975         * doc/posix-functions/wcpcpy.texi: Mention the new module.
25976
25977 2011-02-05  Bruno Haible  <bruno@clisp.org>
25978
25979         New module 'wcscpy'.
25980         * modules/wcscpy: New file.
25981         * lib/wchar.in.h (wcscpy): New declaration.
25982         * lib/wcscpy.c: New file.
25983         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
25984         * m4/wcscpy.m4: New file.
25985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
25986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
25987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
25988         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
25989         * doc/posix-functions/wcscpy.texi: Mention the new module.
25990
25991 2011-02-05  Bruno Haible  <bruno@clisp.org>
25992
25993         New module 'wcsnlen'.
25994         * modules/wcsnlen: New file.
25995         * lib/wchar.in.h (wcsnlen): New declaration.
25996         * lib/wcsnlen.c: New file.
25997         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
25998         * m4/wcsnlen.m4: New file.
25999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
26000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
26001         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
26002         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
26003         * doc/posix-functions/wcsnlen.texi: Mention the new module.
26004
26005 2011-02-05  Bruno Haible  <bruno@clisp.org>
26006
26007         New module 'wcslen'.
26008         * modules/wcslen: New file.
26009         * lib/wchar.in.h (wcslen): New declaration.
26010         * lib/wcslen.c: New file.
26011         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
26012         * m4/wcslen.m4: New file.
26013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
26014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
26015         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
26016         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
26017         * doc/posix-functions/wcslen.texi: Mention the new module.
26018
26019 2011-02-05  Bruno Haible  <bruno@clisp.org>
26020
26021         New module 'wmemset'.
26022         * modules/wmemset: New file.
26023         * lib/wchar.in.h (wmemset): New declaration.
26024         * lib/wmemset.c: New file.
26025         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
26026         * m4/wmemset.m4: New file.
26027         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
26028         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
26029         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
26030         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
26031         * doc/posix-functions/wmemset.texi: Mention the new module.
26032
26033 2011-02-05  Bruno Haible  <bruno@clisp.org>
26034
26035         New module 'wmemmove'.
26036         * modules/wmemmove: New file.
26037         * lib/wchar.in.h (wmemmove): New declaration.
26038         * lib/wmemmove.c: New file.
26039         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
26040         * m4/wmemmove.m4: New file.
26041         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
26042         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
26043         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
26044         HAVE_WMEMMOVE.
26045         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
26046         * doc/posix-functions/wmemmove.texi: Mention the new module.
26047
26048 2011-02-05  Bruno Haible  <bruno@clisp.org>
26049
26050         New module 'wmemcpy'.
26051         * modules/wmemcpy: New file.
26052         * lib/wchar.in.h (wmemcpy): New declaration.
26053         * lib/wmemcpy.c: New file.
26054         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
26055         * m4/wmemcpy.m4: New file.
26056         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
26057         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
26058         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
26059         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
26060         * doc/posix-functions/wmemcpy.texi: Mention the new module.
26061
26062 2011-02-05  Bruno Haible  <bruno@clisp.org>
26063
26064         New module 'wmemcmp'.
26065         * modules/wmemcmp: New file.
26066         * lib/wchar.in.h (wmemcmp): New declaration.
26067         * lib/wmemcmp.c: New file.
26068         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
26069         * m4/wmemcmp.m4: New file.
26070         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
26071         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
26072         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
26073         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
26074         * doc/posix-functions/wmemcmp.texi: Mention the new module.
26075
26076 2011-02-07  Jim Meyering  <meyering@redhat.com>
26077
26078         di-set, ino-map: new modules, from coreutils
26079         * lib/di-set.c: New file.
26080         * lib/di-set.h: Likewise.
26081         * lib/ino-map.c: Likewise.
26082         * lib/ino-map.h: Likewise.
26083         * modules/di-set: Likewise.
26084         * modules/di-set-tests: Likewise.
26085         * modules/ino-map: Likewise.
26086         * modules/ino-map-tests: Likewise.
26087         * tests/test-di-set.c: Likewise.
26088         * tests/test-ino-map.c: Likewise.
26089
26090 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
26091
26092         getloadavg: merge minor changes from Emacs
26093
26094         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
26095         (getloadavg): Use memset, not bzero.
26096
26097         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
26098         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
26099         clash (bug#86).
26100
26101 2010-11-14  Bruno Haible  <bruno@clisp.org>
26102
26103         Allow multiple gnulib generated replacements to coexist.
26104         * lib/getopt.in.h (struct option): Avoid identical redefinition.
26105         * lib/inttypes.in.h (imaxdiv_t): Likewise.
26106         * lib/langinfo.in.h (nl_item): Likewise.
26107         * lib/math.in.h (_NaN, NAN): Likewise.
26108         * lib/netdb.in.h (struct addrinfo): Likewise.
26109         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
26110         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
26111         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
26112         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
26113         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
26114         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
26115         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
26116         pthread_mutexattr_init, pthread_mutexattr_settype,
26117         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
26118         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
26119         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
26120         pthread_spin_trylock, pthread_spin_unlock): Likewise.
26121         * lib/sched.in.h (struct sched_param): Likewise.
26122         * lib/se-selinux.in.h (security_class_t, security_context_t,
26123         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
26124         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
26125         lsetfilecon, fsetfilecon, security_check_context,
26126         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
26127         Likewise.
26128         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
26129         Likewise.
26130         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
26131         _gl_function_taking_int_returning_void_t, union sigval,
26132         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
26133         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
26134         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26135         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
26136         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
26137         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
26138         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
26139         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
26140         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
26141         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
26142         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
26143         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
26144         socklen_t, rpl_fd_isset): Likewise.
26145         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
26146         * lib/sys_time.in.h (struct timeval): Likewise.
26147         * lib/sys_times.in.h (struct tms): Likewise.
26148         * lib/sys_utsname.in.h (struct utsname):
26149         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
26150         * lib/unistd.in.h (getpagesize): Likewise.
26151         * lib/wchar.in.h (mbstate_t): Likewise.
26152         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
26153         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
26154         towlower, towupper): Likewise.
26155         Reported by Sam Steingold <sds@gnu.org>.
26156
26157 2011-02-05  Eric Blake  <eblake@redhat.com>
26158
26159         unsetenv: work around Haiku issues
26160         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
26161         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
26162
26163 2010-12-30  Bruce Korb  <bkorb@gnu.org>
26164
26165         libposix: avoid calling error() within libposix
26166         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
26167         is defined.
26168
26169 2011-02-05  Eric Blake  <eblake@redhat.com>
26170
26171         strerror_r-posix: port to cygwin
26172         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
26173         implementation.
26174         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
26175         * tests/test-strerror_r.c (main): Fix test.
26176         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
26177         issue.
26178
26179 2011-02-05  Bruno Haible  <bruno@clisp.org>
26180
26181         New module 'wmemchr'.
26182         * modules/wmemchr: New file.
26183         * lib/wchar.in.h (wmemchr): New declaration.
26184         * lib/wmemchr.c: New file.
26185         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
26186         * m4/wmemchr.m4: New file.
26187         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
26188         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
26189         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
26190         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
26191         * doc/posix-functions/wmemchr.texi: Mention the new module.
26192
26193 2011-02-04  Eric Blake  <eblake@redhat.com>
26194
26195         fdopendir: detect FreeBSD bug
26196         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
26197         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
26198
26199 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
26200
26201         stdbool: do not define HAVE_STDBOOL_H
26202         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
26203         AC_HEADER_STDBOOL.  All uses changed.  Do not define
26204         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
26205         imported from the latest Autoconf git.  It was motivated by Emacs,
26206         which uses gnulib but does not need HAVE_STDBOOL_H.
26207
26208 2011-02-04  Bruno Haible  <bruno@clisp.org>
26209
26210         wcsnrtombs: Prepare for new module wwcsnrtombs.
26211         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
26212         * lib/wcsnrtombs.c: Include it.
26213         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
26214
26215         wcsrtombs: Prepare for new module wwcsrtombs.
26216         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
26217         * lib/wcsrtombs.c: Include it.
26218         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
26219
26220         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
26221         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
26222         * lib/mbsnrtowcs.c: Include it.
26223         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
26224
26225         mbsrtowcs: Prepare for new module mbsrtowwcs.
26226         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
26227         * lib/mbsrtowcs.c: Include it.
26228         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
26229
26230 2011-02-04  Bruno Haible  <bruno@clisp.org>
26231
26232         vasnprintf: Reduce use of malloc for small format strings.
26233         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
26234         (arguments): Add room for the first 7 arguments.
26235         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
26236         (char_directives, u8_directives, u16_directives, u32_directives): Add
26237         room for the first 7 directives.
26238         * lib/printf-parse.c: Include <string.h>.
26239         (PRINTF_PARSE): Change memory handling code so that it uses the first
26240         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
26241         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
26242         Reported by Pádraig Brady <P@draigbrady.com>.
26243
26244 2011-01-31  Eric Blake  <eblake@redhat.com>
26245
26246         dup2: work around Haiku bug
26247         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
26248         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
26249         * doc/posix-functions/dup2.texi (dup2): Document the bug.
26250         * tests/test-dup2.c (main): Enhance test.
26251
26252 2011-01-31  Simon Josefsson  <simon@josefsson.org>
26253
26254         doc: off_t is not available in eglibc 2.11.2 stdio.h.
26255         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
26256         declared by eglibc 2.11.2.
26257         * lib/stdio.in.h: Likewise.
26258
26259 2011-01-31  Eric Blake  <eblake@redhat.com>
26260
26261         ignore-value: add missing test dependency
26262         * tests/test-ignore-value.c: Revert previous change; stdio.h
26263         provides off_t.
26264         * modules/ignore-value-tests (Depends-on): Add missing dependency.
26265
26266 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
26267
26268         mktime: clarify long_int width checking
26269         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
26270         the top level, to make it clearer that the assumption about
26271         long_int width is being checked.  See
26272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
26273
26274 2011-01-30  Simon Josefsson  <simon@josefsson.org>
26275
26276         ignore-value: Fix self-test.
26277         * tests/test-ignore-value.c: Include sys/types.h for off_t.
26278
26279 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
26280
26281         TYPE_MAXIMUM: avoid theoretically undefined behavior
26282         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
26283         negative number, which the C Standard says has undefined behavior.
26284         In practice this is not a problem, but might as well do it by the book.
26285         Reported by Rich Felker and Eric Blake; see
26286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
26287         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
26288         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26289         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26290         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
26291         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26292         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
26293
26294         mktime: #undef mktime before #defining it
26295         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
26296
26297         mktime: systematically normalize tm_isdst comparisons
26298         * lib/mktime.c (isdst_differ): New function.
26299         (__mktime_internal): Use it systematically for all isdst comparisons.
26300         This completes the fix for libc BZ #6723, and removes the need for
26301         normalizing tm_isdst.  See
26302         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
26303         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
26304
26305         mktime: fix some integer overflow issues and sidestep the rest
26306
26307         This was prompted by a bug report by Benjamin Lindner for MinGW
26308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
26309         His bug is due to signed integer overflow (0 - INT_MIN), and I
26310         I scanned through mktime.c looking for other integer overflow
26311         problems, fixing all the bugs I found.
26312
26313         Although the C Standard says the resulting code is still not safe
26314         in the presence of integer overflow, in practice it should be good
26315         enough for all real-world two's-complement implementations, except
26316         for debugging environments that deliberately trap on integer
26317         overflow (e.g., gcc -ftrapv).
26318
26319         * lib/mktime.c (WRAPV): New macro.
26320         (SHR): Also check that long_int and time_t shift right in the
26321         usual way, before using the fast-but-unportable method.
26322         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
26323         used.  The code already assumed two's complement, so there's
26324         no need to test for alternatives.  All uses removed.
26325         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
26326         the C standard.  Problem reported by Rich Felker in
26327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
26328         (twos_complement_arithmetic): Also check long_int and time_t.
26329         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
26330         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
26331         (__mktime_internal): Avoid integer overflow with unary subtraction
26332         in two instances where -1 - X is an adequate replacement for -X,
26333         since the calculations are approximate.
26334
26335 2011-01-29  Eric Blake  <eblake@redhat.com>
26336
26337         mktime: avoid infinite loop
26338         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
26339         type; behavior is still undefined but portable to all known targets.
26340         Reported by Rich Felker.
26341
26342 2011-01-29  Simon Josefsson  <simon@josefsson.org>
26343
26344         rename, unlink, same-inode: Relicense.
26345         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
26346         * modules/unlink (License): Likewise.
26347         * modules/same-inode (License): Likewise.
26348
26349 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
26350
26351         mktime: avoid problems on NetBSD 5 / i386
26352         * lib/mktime.c (long_int): New type.  This works around a problem
26353         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
26354         but time_t is 64 bits, and where I expect the existing code is
26355         wrong in some cases.
26356         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
26357         (ydhms_diff): Bring back the compile-time check for wide-enough
26358         year and yday.
26359
26360         mktime: fix misspelling in comment
26361         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
26362         This merges all recent glibc changes of importance.
26363
26364 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26365
26366         move-if-change: cope with concurrent mv of identical file.
26367         * build-aux/move-if-change (CMPPROG): Accept environment
26368         variable as an override for `cmp'.
26369         (usage): Document CMPPROG.
26370         Adjust comparison to drop stdout.  Cope with failure of mv if
26371         the target file exists and is identical to the source, for
26372         parallel builds.
26373         Report from H.J. Lu against binutils in PR binutils/12283.
26374
26375 2011-01-28  Bruce Korb  <bkorb@gnu.org>
26376
26377         * users.txt: Mention sharutils.
26378
26379 2011-01-28  Simon Josefsson  <simon@josefsson.org>
26380
26381         * users.txt: Mention OATH Toolkit.
26382
26383 2011-01-27  Bruno Haible  <bruno@clisp.org>
26384
26385         Prepare for supporting FreeBSD 10.
26386         * build-aux/config.libpath: Remove handling of freebsd1*.
26387
26388 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
26389
26390         Prepare for supporting FreeBSD 10.
26391         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
26392         match FreeBSD 10.0.
26393
26394 2011-01-27  Bruno Haible  <bruno@clisp.org>
26395
26396         vma-iter, get-rusage-as: Add OpenBSD support.
26397         * modules/vma-iter (configure.ac): Test for mquery.
26398         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
26399         * lib/vma-iter.c: Include <sys/mman.h>.
26400         (vma_iterate): Add an implementation based on mquery().
26401         * lib/resource-ext.h (get_rusage_as): Update comments.
26402         * lib/get-rusage-as.c: Likewise.
26403         * lib/get-rusage-data.c: Likewise.
26404
26405 2011-01-26  Karl Berry  <karl@gnu.org>
26406
26407         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
26408         variables to make it easier to override the makeinfo program used.
26409
26410 2011-01-26  Eric Blake  <eblake@redhat.com>
26411
26412         fcntl: work around Haiku F_DUPFD bugs
26413         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
26414         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
26415         cloexec bit on duplication.
26416         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
26417
26418 2011-01-26  Bruno Haible  <bruno@clisp.org>
26419
26420         Enable memory leak tests on AIX.
26421         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
26422         * tests/test-fprintf-posix3.c (main): Likewise.
26423
26424 2011-01-26  Bruno Haible  <bruno@clisp.org>
26425
26426         Tests for module 'get-rusage-data'.
26427         * modules/get-rusage-data-tests: New file.
26428         * tests/test-get-rusage-data.c: New file.
26429
26430         New module 'get-rusage-data'.
26431         * lib/resource-ext.h (get_rusage_data): New declaration.
26432         * lib/get-rusage-data.c: New file.
26433         * modules/get-rusage-data: New file.
26434
26435 2011-01-25  Bruno Haible  <bruno@clisp.org>
26436
26437         get-rusage-as: Allow for easier testing.
26438         * lib/resource-ext.h (get_rusage_as): Add comment.
26439         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
26440         (main): New function for interactive testing.
26441
26442 2011-01-25  Bruno Haible  <bruno@clisp.org>
26443
26444         vma-iter: Treat Haiku like BeOS.
26445         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
26446         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
26447
26448 2011-01-25  Eric Blake  <eblake@redhat.com>
26449
26450         c-stack: fix regression on cygwin when libsigsegv is present
26451         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
26452
26453 2011-01-24  Bruno Haible  <bruno@clisp.org>
26454
26455         vma-iter: Avoid empty intervals.
26456         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
26457         on an empty interval.
26458
26459 2011-01-24  Jim Meyering  <meyering@redhat.com>
26460
26461         u64: remove unnecessary #include
26462         * lib/u64.h: Don't include <stddef.h>.  It was not used.
26463
26464 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
26465
26466         Allow the user to avoid the HAVE_RAW_DECL_* macros.
26467         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
26468
26469 2011-01-23  Bruno Haible  <bruno@clisp.org>
26470
26471         New module 'vma-iter'.
26472         * lib/vma-iter.h: New file.
26473         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
26474         * modules/vma-iter: New file.
26475         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
26476         for get_rusage_as_via_iterator.
26477         (vma_iterate_callback): New function.
26478         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
26479         * modules/get-rusage-as (Depends-on): Add vma-iter.
26480
26481 2011-01-23  Bruno Haible  <bruno@clisp.org>
26482
26483         uninorm: Tweak includes.
26484         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
26485         Reported by Jim Meyering.
26486
26487 2011-01-23  Bruno Haible  <bruno@clisp.org>
26488
26489         get-rusage-as: Improve on NetBSD.
26490         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
26491         /proc, like on FreeBSD.
26492
26493 2011-01-23  Jim Meyering  <meyering@redhat.com>
26494
26495         xreadlink.h: remove unnecessary #include
26496         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
26497
26498         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
26499         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
26500
26501 2011-01-23  Bruno Haible  <bruno@clisp.org>
26502
26503         get-rusage-as: Fix bug.
26504         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
26505         original limit when aborting the first loop.
26506
26507 2011-01-23  Bruno Haible  <bruno@clisp.org>
26508
26509         wctype: Ensure valid C syntax.
26510         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
26511         unconditionally, instead of gl_NEXT_HEADERS conditionally.
26512
26513 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
26514
26515         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
26516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
26517         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
26518         as they are needed only for configure's test case.
26519         This removes two unnecessary symbols from config.h.
26520
26521         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
26522         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
26523         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
26524         AC_CHECK_HEADERS_ONCE on a header that we also invoke
26525         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
26526         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
26527         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
26528         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
26529         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
26530         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
26531         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26532         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26533         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26534         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26535         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
26536         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26537         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26538         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26539
26540 2011-01-21  Eric Blake  <eblake@redhat.com>
26541
26542         maintainer-makefile: work with older git for submodule check
26543         * top/maint.mk (public-submodule-commit): Rewrite to avoid
26544         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
26545         Reported by Matthias Bolte.
26546
26547         bootstrap: minor portability fixes
26548         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
26549         (usage): Omit leading capital and trailing . on help phrases, per
26550         GNU Coding Standards.
26551         (check_versions, top level): Prefix messages with script name.
26552
26553 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
26554
26555         bootstrap: support --no-git option
26556         * build-aux/bootstrap: Add --no-git option, to be used when
26557         --gnulib-srcdir points to the exact desired checkout.
26558
26559 2011-01-21  Eric Blake  <eblake@redhat.com>
26560
26561         strerror_r-posix: work with glibc 2.13
26562         * lib/strerror_r.c (strerror_r): Fix return type.
26563
26564 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26565             Bruno Haible  <bruno@clisp.org>
26566
26567         uN_strstr: New unit tests.
26568         * modules/unistr/u8-strstr-tests: New file.
26569         * modules/unistr/u16-strstr-tests: New file.
26570         * modules/unistr/u32-strstr-tests: New file.
26571         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
26572         * tests/unistr/test-u8-strstr.c: New file.
26573         * tests/unistr/test-u16-strstr.c: New file.
26574         * tests/unistr/test-u32-strstr.c: New file.
26575
26576 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26577             Bruno Haible  <bruno@clisp.org>
26578
26579         Make uN_strstr functions O(n) worst-case.
26580         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
26581         16-bit and 32-bit unit cases, use the unibyte algorithm from
26582         lib/mbsstr.c.
26583         * lib/unistr/u8-strstr.c: Include <string.h>.
26584         (UNIT_IS_UINT8_T): New macro.
26585         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
26586         (U_STRLEN, U_STRNLEN): New macros.
26587         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
26588         (U_STRLEN, U_STRNLEN): New macros.
26589         * modules/unistr/u8-strstr (Depends-on): Add strstr.
26590         (configure.ac): Update required libunistring version.
26591         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
26592         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
26593         malloca.
26594         (configure.ac): Update required libunistring version.
26595         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
26596         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
26597         malloca.
26598         (configure.ac): Update required libunistring version.
26599
26600 2011-01-21  Pádraig Brady  <P@draigBrady.com>
26601             Bruno Haible  <bruno@clisp.org>
26602
26603         Prepare for faster uN_strstr functions.
26604         * lib/str-kmp.h: Support definable UNITs.
26605         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
26606         needle_len argument.
26607         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
26608         * lib/mbscasestr.c (mbscasestr): Likewise.
26609
26610 2011-01-21  Pádraig Brady <P@draigBrady.com>
26611
26612         malloca-tests: make faster by unsetting MALLOC_PERTURB_
26613         * tests/test-malloca.c (main): Unset the environment variable
26614         to greatly speed up the test.
26615         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
26616         * modules/malloca-tests: Depend on unsetenv.
26617
26618 2011-01-21  Pádraig Brady <P@draigBrady.com>
26619
26620         ignore-value: remove stdint dependency
26621         * lib/ignore-value.h: Remove <stdint.h>
26622         * modules/ignore-value: Remove stdint dependency.
26623
26624 2011-01-21  Jim Meyering  <meyering@redhat.com>
26625
26626         maint.mk: adjust variable name to be consistent with other gl_ vars
26627         * top/maint.mk (gl_public_submodule_commit): Rename the variable
26628         to be lower case.
26629
26630 2011-01-20  Jim Meyering  <meyering@redhat.com>
26631
26632         maint.mk: make "check" depend on public-submodule-commit by default
26633         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
26634
26635 2011-01-20  Bruno Haible  <bruno@clisp.org>
26636
26637         mbfile, mbiter: Complete change from 2008-12-21.
26638         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
26639         * m4/mbiter.m4 (gl_MBITER): Likewise.
26640
26641 2011-01-20  Jim Meyering  <meyering@redhat.com>
26642
26643         init.sh: insert space between each function name and "()"
26644         * tests/init.sh: Make it a little easier to see that a function's
26645         name is "warn_", and not "warn" when looking at the first part of
26646         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
26647
26648 2011-01-20  Jim Meyering  <meyering@redhat.com>
26649
26650         mountlist: clean up code formatting
26651         * lib/mountlist.c (read_file_system_list): Split a long line,
26652         correct bracing style, use NULL in place of "(struct statfs *)0",
26653         don't parenthesize return value, add spaces around "=" and after
26654         ";-in-for-stmt".
26655
26656 2011-01-14  Markus Duft <mduft@gentoo.org>
26657
26658         mountlist: add support for Interix
26659         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
26660         Apply statvfs to all entries of /dev/fs.
26661         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
26662         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
26663
26664 2011-01-20  Jim Meyering  <meyering@redhat.com>
26665
26666         maint.mk: improve the public-submodule-commit rule
26667         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
26668         to suppress printing of its commands... unless V=1.
26669         Add git submodule's --quiet option to suppress printing of e.g.,
26670         "Entering gnulib" output.
26671         "cd" into $(srcdir) before running git submodule.
26672
26673 2011-01-20  Bruno Haible  <bruno@clisp.org>
26674
26675         include_next: Fix bug introduced on 2011-01-18.
26676         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
26677         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
26678         ac_cv_header_... variable if the second argument is not 'check'.
26679         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
26680         gl_NEXT_HEADERS_INTERNAL.
26681
26682 2011-01-20  Bruno Haible  <bruno@clisp.org>
26683
26684         Allow the user to avoid the GNULIB_TEST_* macros.
26685         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
26686         Suggested by Paul Eggert.
26687
26688 2011-01-14  Jim Meyering  <meyering@redhat.com>
26689
26690         bootstrap: avoid failure when there is no .gitmodules file
26691         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
26692         has been assigned to, even when its value is the empty string.
26693         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
26694         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
26695         Reported by John W. Eaton <jwe@gnu.org>.
26696
26697 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
26698
26699         assume <ctype.h>, ..., <time.h> exist
26700         For years gnulib has been assuming the existence of the headers
26701         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
26702         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
26703         them, since they don't appear to be needed.
26704         * README (Portability guidelines): Document this.
26705         * lib/flock.c: Assume <fcntl.h> exists.
26706         * lib/regex_internal.h: Assume <locale.h> exists.
26707         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
26708         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
26709         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
26710         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
26711         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
26712         * m4/regex.m4 (gl_REGEX): Likewise.
26713         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
26714         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
26715         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
26716         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
26717         * tests/test-argp.c: Likewise.
26718         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
26719
26720         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
26721         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
26722         AA_APPLE_UNIVERSAL_BUILD.  See
26723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
26724         * NEWS: Document this.
26725
26726 2011-01-19  Eric Blake  <eblake@redhat.com>
26727
26728         c-stack: assume stack overflow if SA_SIGINFO unsupported
26729         * lib/c-stack.c (SIGACTION_WORKS): Rename...
26730         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
26731         sigaction will work.
26732         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
26733         behavior match Linux.
26734         * tests/test-c-stack.c (main): Prefer NULL for pointers.
26735
26736         stdbool-tests: accommodate Haiku
26737         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
26738
26739         binary-io: fix O_TEXT on Haiku
26740         * modules/binary-io (Depends-on): Add fcntl-h.
26741         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
26742         than blindly undefining O_TEXT.
26743         Reported by Scott McCreary.
26744
26745 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26746
26747         include_next: do not check for standard headers like stddef.h
26748
26749         I found this problem when modifying Emacs to use gnulib.
26750         I noticed that it added HAVE_STDDEF_H to config.h, even though
26751         gnulib always assumes <stddef.h> exists as per README and this
26752         symbol is unnecessary.
26753         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
26754         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
26755         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
26756         faster for headers like stddef.h that are known to exist.
26757         (gl_CHECK_NEXT_HEADERS): Use it.
26758         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
26759         rather than gl_CHECK_NEXT_HEADERS.
26760         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
26761         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
26762
26763 2011-01-18  Eric Blake  <eblake@redhat.com>
26764
26765         ansi-c++-opt: skip C++ dependency style if C++ is unused
26766         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
26767         tests when we know C++ compilation is not desired.
26768         Reported by Scott McCreary.
26769
26770 2011-01-18  Bruno Haible  <bruno@clisp.org>
26771
26772         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
26773         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
26774         (main): Perform test also when getrlimit and setrlimit don't exist or
26775         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
26776         limiting the address space size using setrlimit, compare the address
26777         space size before and after the the test.
26778         * tests/test-dprintf-posix2.c: Likewise.
26779         * tests/test-fprintf-posix3.sh: Update skip messages.
26780         * tests/test-dprintf-posix2.sh: Likewise.
26781         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
26782         * modules/dprintf-posix-tests (Depends-on): Likewise.
26783         Reported by Bruce Korb <bkorb@gnu.org> and
26784         Gary V. Vaughan <gary@gnu.org>.
26785
26786 2011-01-18  Bruno Haible  <bruno@clisp.org>
26787
26788         get-rusage-as: Improvement for Cygwin.
26789         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
26790         areas that are merely reserved.
26791
26792 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         strftime: remove dependencies on multibyte modules
26795
26796         strftime depended on mbrlen, mbsinit, and wchar, but these modules
26797         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
26798         only if __osf__ is defined, and I suspect OSF doesn't need these
26799         other modules.  If my guess is wrong, we'll need to come up with a
26800         variant of strftime that doesn't need the multibyte modules.
26801
26802         I discovered this problem when attempting modify Emacs to use the
26803         strftime module.  With the previous gnulib, this caused Emacs to
26804         need 31 new files, ranging from lib/config.charset to
26805         m4/wint_t.m4.  This was overkill and I expect would be offputting
26806         to the Emacs maintainers.  After this change, only 6 new files are
26807         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
26808         stdbool.m4, and tm_gmtoff.m4.
26809
26810         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
26811         Suggested by Bruno Haible in
26812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
26813         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
26814         and do not check for wchar.h.
26815         * modules/strftime (Files): Remove m4/mbstate_t.m4.
26816         (Depends-on): Remove mbrlen, mbsinit, wchar.
26817
26818 2011-01-18  Bruno Haible  <bruno@clisp.org>
26819
26820         Tests for module 'get-rusage-as'.
26821         * modules/get-rusage-as-tests: New file.
26822         * tests/test-get-rusage-as.c: New file.
26823
26824         New module 'get-rusage-as'.
26825         * modules/get-rusage-as: New file.
26826         * lib/resource-ext.h: New file.
26827         * lib/get-rusage-as.c: New file.
26828
26829 2011-01-17  Eric Blake  <eblake@redhat.com>
26830
26831         sigaction: relax license from LGPLv3+ to LGPLv2+
26832         * modules/sigaction (License): Relax to LGPLv2+.
26833
26834 2011-01-14  Bruno Haible  <bruno@clisp.org>
26835
26836         filemode: Make function declarations usable in C++ mode.
26837         * lib/filemode.h: Enclose function declarations in extern "C" block.
26838         Reported by John W. Eaton <jwe@gnu.org>.
26839
26840 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
26841
26842         save-cwd: no longer include "xgetcwd.h"
26843         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
26844         This avoids a compilation failure in projects that use save-cwd
26845         without also using the xgetcwd module.
26846
26847 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26848
26849         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
26850         This is so that a program like Emacs, which needs only dtoastr,
26851         does not have to bother with distributing and compiling ftoastr
26852         and ldtoastr.
26853         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
26854         * modules/dtoastr, modules/ldtoastr: New files.
26855         * modules/ftoastr: Now works just for 'float'.
26856         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
26857         (Makefile.am): Remove ftoastr.h (not needed and no effect),
26858         dtoastr.c, ldtoastr.c.
26859
26860 2011-01-11  Jim Meyering  <meyering@redhat.com>
26861
26862         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
26863         There is no need to work around the lack of the fchdir function,
26864         since gnulib can now provide a replacement when required.
26865         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
26866         * modules/save-cwd (Depends-on): Add fchdir.
26867
26868 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
26869
26870         openat, save-cwd: avoid xmalloc
26871
26872         This removes a direct (but undocumented) dependency of openat on
26873         xalloc, along with an indirect dependency via save-cwd.  It also
26874         removes a dependency of save-cwd on xgetcwd, and thereby
26875         indirectly on xalloc.  This change causes the openat substitute
26876         to fall back on save_cwd when memory is tight, and for save_cwd to
26877         fail instead of dying when memory is tight, but that's good enough.
26878         Problem and initial idea for fix reported by Bastien Roucaries in
26879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
26880
26881         * lib/openat-proc.c: Include stdlib.h (for malloc), not
26882         xalloc.h (for xmalloc).
26883         (openat_proc_name): Use malloc, not xmalloc.
26884         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
26885         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
26886
26887         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
26888         This avoids heap allocation for file names whose lengths are in
26889         the range 512..1023, with the upper bound increasing to at most
26890         4031 depending on the platform's PATH_MAX.  (We do not want
26891         pathmax.h here as it might supply a non-constant PATH_MAX.)
26892         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
26893         Perhaps they should be moved to malloca.h?
26894         (OPENAT_BUFFER_SIZE): Use them.
26895
26896 2011-01-10  Bruno Haible  <bruno@clisp.org>
26897
26898         doc: Update users.txt.
26899         * users.txt: Add recutils.
26900
26901 2011-01-09  Karl Berry  <karl@gnu.org>
26902
26903         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
26904
26905         * doc/configmake.texi: New file.
26906         * doc/gnulib.texi: Include it.
26907         * modules/configmake: Move documentation from here.
26908
26909 2011-01-09  Bruno Haible  <bruno@clisp.org>
26910
26911         Update to Unicode 6.0.0.
26912         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
26913         (get_lbp): Update for Unicode 6.0.0.
26914         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
26915         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
26916         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
26917         U+11001, U+11038..U+11046. Remove U+06DE.
26918         (uc_width): Fix bounds of planes.
26919         * tests/uniwidth/test-uc_width2.sh: Same updates as in
26920         lib/uniwidth/width.c.
26921         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
26922         trailing whitespace removed.
26923         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
26924         without comments, but with the original copyright notice.
26925         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
26926         * lib/unicase/ignorable.h: Likewise.
26927         * lib/unicase/tocasefold.h: Likewise.
26928         * lib/unicase/tolower.h: Likewise.
26929         * lib/unicase/totitle.h: Likewise.
26930         * lib/unicase/toupper.h: Likewise.
26931         * lib/unictype/bidi_of.h: Likewise.
26932         * lib/unictype/blocks.h: Likewise.
26933         * lib/unictype/categ_C.h: Likewise.
26934         * lib/unictype/categ_Cn.h: Likewise.
26935         * lib/unictype/categ_L.h: Likewise.
26936         * lib/unictype/categ_Ll.h: Likewise.
26937         * lib/unictype/categ_Lm.h: Likewise.
26938         * lib/unictype/categ_Lo.h: Likewise.
26939         * lib/unictype/categ_Lu.h: Likewise.
26940         * lib/unictype/categ_M.h: Likewise.
26941         * lib/unictype/categ_Mc.h: Likewise.
26942         * lib/unictype/categ_Me.h: Likewise.
26943         * lib/unictype/categ_Mn.h: Likewise.
26944         * lib/unictype/categ_N.h: Likewise.
26945         * lib/unictype/categ_Nd.h: Likewise.
26946         * lib/unictype/categ_No.h: Likewise.
26947         * lib/unictype/categ_P.h: Likewise.
26948         * lib/unictype/categ_Po.h: Likewise.
26949         * lib/unictype/categ_S.h: Likewise.
26950         * lib/unictype/categ_Sc.h: Likewise.
26951         * lib/unictype/categ_Sk.h: Likewise.
26952         * lib/unictype/categ_Sm.h: Likewise.
26953         * lib/unictype/categ_So.h: Likewise.
26954         * lib/unictype/categ_of.h: Likewise.
26955         * lib/unictype/combining.h: Likewise.
26956         * lib/unictype/ctype_alnum.h: Likewise.
26957         * lib/unictype/ctype_alpha.h: Likewise.
26958         * lib/unictype/ctype_graph.h: Likewise.
26959         * lib/unictype/ctype_lower.h: Likewise.
26960         * lib/unictype/ctype_print.h: Likewise.
26961         * lib/unictype/ctype_punct.h: Likewise.
26962         * lib/unictype/ctype_upper.h: Likewise.
26963         * lib/unictype/decdigit.h: Likewise.
26964         * lib/unictype/digit.h: Likewise.
26965         * lib/unictype/numeric.h: Likewise.
26966         * lib/unictype/pr_alphabetic.h: Likewise.
26967         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
26968         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
26969         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
26970         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
26971         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
26972         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
26973         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
26974         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
26975         * lib/unictype/pr_case_ignorable.h: Likewise.
26976         * lib/unictype/pr_cased.h: Likewise.
26977         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
26978         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
26979         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
26980         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
26981         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
26982         * lib/unictype/pr_combining.h: Likewise.
26983         * lib/unictype/pr_composite.h: Likewise.
26984         * lib/unictype/pr_currency_symbol.h: Likewise.
26985         * lib/unictype/pr_decimal_digit.h: Likewise.
26986         * lib/unictype/pr_deprecated.h: Likewise.
26987         * lib/unictype/pr_format_control.h: Likewise.
26988         * lib/unictype/pr_grapheme_base.h: Likewise.
26989         * lib/unictype/pr_grapheme_extend.h: Likewise.
26990         * lib/unictype/pr_grapheme_link.h: Likewise.
26991         * lib/unictype/pr_id_continue.h: Likewise.
26992         * lib/unictype/pr_id_start.h: Likewise.
26993         * lib/unictype/pr_ideographic.h: Likewise.
26994         * lib/unictype/pr_lowercase.h: Likewise.
26995         * lib/unictype/pr_math.h: Likewise.
26996         * lib/unictype/pr_numeric.h: Likewise.
26997         * lib/unictype/pr_other_alphabetic.h: Likewise.
26998         * lib/unictype/pr_other_id_continue.h: Likewise.
26999         * lib/unictype/pr_other_math.h: Likewise.
27000         * lib/unictype/pr_punctuation.h: Likewise.
27001         * lib/unictype/pr_sentence_terminal.h: Likewise.
27002         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27003         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27004         * lib/unictype/pr_unified_ideograph.h: Likewise.
27005         * lib/unictype/pr_uppercase.h: Likewise.
27006         * lib/unictype/pr_xid_continue.h: Likewise.
27007         * lib/unictype/pr_xid_start.h: Likewise.
27008         * lib/unictype/scripts.h: Likewise.
27009         * lib/unictype/scripts_byname.gperf: Likewise.
27010         * lib/unictype/sy_java_ident.h: Likewise.
27011         * lib/unigbrk/gbrkprop.h: Likewise.
27012         * lib/unilbrk/lbrkprop1.h: Likewise.
27013         * lib/unilbrk/lbrkprop2.h: Likewise.
27014         * lib/uninorm/decomposition-table2.h: Likewise.
27015         * lib/uniwbrk/wbrkprop.h: Likewise.
27016         * tests/unicase/test-cased.c: Likewise.
27017         * tests/unicase/test-ignorable.c: Likewise.
27018         * tests/unicase/test-uc_tolower.c: Likewise.
27019         * tests/unicase/test-uc_totitle.c: Likewise.
27020         * tests/unicase/test-uc_toupper.c: Likewise.
27021         * tests/unictype/test-categ_C.c: Likewise.
27022         * tests/unictype/test-categ_Cn.c: Likewise.
27023         * tests/unictype/test-categ_L.c: Likewise.
27024         * tests/unictype/test-categ_Ll.c: Likewise.
27025         * tests/unictype/test-categ_Lm.c: Likewise.
27026         * tests/unictype/test-categ_Lo.c: Likewise.
27027         * tests/unictype/test-categ_Lu.c: Likewise.
27028         * tests/unictype/test-categ_M.c: Likewise.
27029         * tests/unictype/test-categ_Mc.c: Likewise.
27030         * tests/unictype/test-categ_Me.c: Likewise.
27031         * tests/unictype/test-categ_Mn.c: Likewise.
27032         * tests/unictype/test-categ_N.c: Likewise.
27033         * tests/unictype/test-categ_Nd.c: Likewise.
27034         * tests/unictype/test-categ_No.c: Likewise.
27035         * tests/unictype/test-categ_P.c: Likewise.
27036         * tests/unictype/test-categ_Po.c: Likewise.
27037         * tests/unictype/test-categ_S.c: Likewise.
27038         * tests/unictype/test-categ_Sc.c: Likewise.
27039         * tests/unictype/test-categ_Sk.c: Likewise.
27040         * tests/unictype/test-categ_Sm.c: Likewise.
27041         * tests/unictype/test-categ_So.c: Likewise.
27042         * tests/unictype/test-ctype_alnum.c: Likewise.
27043         * tests/unictype/test-ctype_alpha.c: Likewise.
27044         * tests/unictype/test-ctype_graph.c: Likewise.
27045         * tests/unictype/test-ctype_lower.c: Likewise.
27046         * tests/unictype/test-ctype_print.c: Likewise.
27047         * tests/unictype/test-ctype_punct.c: Likewise.
27048         * tests/unictype/test-ctype_upper.c: Likewise.
27049         * tests/unictype/test-decdigit.h: Likewise.
27050         * tests/unictype/test-digit.h: Likewise.
27051         * tests/unictype/test-numeric.h: Likewise.
27052         * tests/unictype/test-pr_alphabetic.c: Likewise.
27053         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27054         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27055         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27056         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27057         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27058         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27059         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27060         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27061         * tests/unictype/test-pr_case_ignorable.c: Likewise.
27062         * tests/unictype/test-pr_cased.c: Likewise.
27063         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
27064         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
27065         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
27066         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
27067         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
27068         * tests/unictype/test-pr_combining.c: Likewise.
27069         * tests/unictype/test-pr_composite.c: Likewise.
27070         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27071         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27072         * tests/unictype/test-pr_deprecated.c: Likewise.
27073         * tests/unictype/test-pr_format_control.c: Likewise.
27074         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27075         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27076         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27077         * tests/unictype/test-pr_id_continue.c: Likewise.
27078         * tests/unictype/test-pr_id_start.c: Likewise.
27079         * tests/unictype/test-pr_ideographic.c: Likewise.
27080         * tests/unictype/test-pr_lowercase.c: Likewise.
27081         * tests/unictype/test-pr_math.c: Likewise.
27082         * tests/unictype/test-pr_numeric.c: Likewise.
27083         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27084         * tests/unictype/test-pr_other_id_continue.c: Likewise.
27085         * tests/unictype/test-pr_other_math.c: Likewise.
27086         * tests/unictype/test-pr_punctuation.c: Likewise.
27087         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27088         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27089         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27090         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27091         * tests/unictype/test-pr_uppercase.c: Likewise.
27092         * tests/unictype/test-pr_xid_continue.c: Likewise.
27093         * tests/unictype/test-pr_xid_start.c: Likewise.
27094         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27095         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27096         changes.
27097         * lib/unictype/categ_Cc.h: Likewise.
27098         * lib/unictype/categ_Cf.h: Likewise.
27099         * lib/unictype/categ_Co.h: Likewise.
27100         * lib/unictype/categ_Cs.h: Likewise.
27101         * lib/unictype/categ_Lt.h: Likewise.
27102         * lib/unictype/categ_Nl.h: Likewise.
27103         * lib/unictype/categ_Pc.h: Likewise.
27104         * lib/unictype/categ_Pd.h: Likewise.
27105         * lib/unictype/categ_Pe.h: Likewise.
27106         * lib/unictype/categ_Pf.h: Likewise.
27107         * lib/unictype/categ_Pi.h: Likewise.
27108         * lib/unictype/categ_Ps.h: Likewise.
27109         * lib/unictype/categ_Z.h: Likewise.
27110         * lib/unictype/categ_Zl.h: Likewise.
27111         * lib/unictype/categ_Zp.h: Likewise.
27112         * lib/unictype/categ_Zs.h: Likewise.
27113         * lib/unictype/ctype_blank.h: Likewise.
27114         * lib/unictype/ctype_cntrl.h: Likewise.
27115         * lib/unictype/ctype_digit.h: Likewise.
27116         * lib/unictype/ctype_space.h: Likewise.
27117         * lib/unictype/ctype_xdigit.h: Likewise.
27118         * lib/unictype/mirror.h: Likewise.
27119         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27120         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27121         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27122         * lib/unictype/pr_bidi_control.h: Likewise.
27123         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27124         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27125         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27126         * lib/unictype/pr_bidi_pdf.h: Likewise.
27127         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27128         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27129         * lib/unictype/pr_dash.h: Likewise.
27130         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27131         * lib/unictype/pr_diacritic.h: Likewise.
27132         * lib/unictype/pr_extender.h: Likewise.
27133         * lib/unictype/pr_hex_digit.h: Likewise.
27134         * lib/unictype/pr_hyphen.h: Likewise.
27135         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27136         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27137         * lib/unictype/pr_ignorable_control.h: Likewise.
27138         * lib/unictype/pr_iso_control.h: Likewise.
27139         * lib/unictype/pr_join_control.h: Likewise.
27140         * lib/unictype/pr_left_of_pair.h: Likewise.
27141         * lib/unictype/pr_line_separator.h: Likewise.
27142         * lib/unictype/pr_logical_order_exception.h: Likewise.
27143         * lib/unictype/pr_non_break.h: Likewise.
27144         * lib/unictype/pr_not_a_character.h: Likewise.
27145         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27146         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27147         * lib/unictype/pr_other_id_start.h: Likewise.
27148         * lib/unictype/pr_other_lowercase.h: Likewise.
27149         * lib/unictype/pr_other_uppercase.h: Likewise.
27150         * lib/unictype/pr_paired_punctuation.h: Likewise.
27151         * lib/unictype/pr_paragraph_separator.h: Likewise.
27152         * lib/unictype/pr_pattern_syntax.h: Likewise.
27153         * lib/unictype/pr_pattern_white_space.h: Likewise.
27154         * lib/unictype/pr_private_use.h: Likewise.
27155         * lib/unictype/pr_quotation_mark.h: Likewise.
27156         * lib/unictype/pr_radical.h: Likewise.
27157         * lib/unictype/pr_soft_dotted.h: Likewise.
27158         * lib/unictype/pr_space.h: Likewise.
27159         * lib/unictype/pr_titlecase.h: Likewise.
27160         * lib/unictype/pr_variation_selector.h: Likewise.
27161         * lib/unictype/pr_white_space.h: Likewise.
27162         * lib/unictype/pr_zero_width.h: Likewise.
27163         * lib/unictype/sy_c_ident.h: Likewise.
27164         * lib/unictype/sy_c_whitespace.h: Likewise.
27165         * lib/unictype/sy_java_whitespace.h: Likewise.
27166         * lib/uninorm/composition-table.gperf: Likewise.
27167         * lib/uninorm/decomposition-table1.h: Likewise.
27168         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
27169         LB8.
27170         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27171         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27172         * modules/unictype/*: Bump version number of expected libunistring
27173         version.
27174
27175 2011-01-09  Bruno Haible  <bruno@clisp.org>
27176
27177         Update to Unicode 5.2.0.
27178         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
27179         trailing whitespace removed.
27180
27181 2011-01-09  Bruno Haible  <bruno@clisp.org>
27182
27183         New Unicode character properties, from Unicode 5.2.0.
27184         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
27185         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
27186         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
27187         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
27188         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
27189         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
27190         uc_is_property_cased, uc_is_property_case_ignorable,
27191         uc_is_property_changes_when_lowercased,
27192         uc_is_property_changes_when_uppercased,
27193         uc_is_property_changes_when_titlecased,
27194         uc_is_property_changes_when_casefolded,
27195         uc_is_property_changes_when_casemapped): New declarations.
27196         * lib/unictype/pr_byname.gperf: Add the new properties.
27197         * modules/unictype/property-byname (Depends-on): Depend on the new
27198         properties modules.
27199         * modules/unictype/property-all (Depends-on): Likewise.
27200         * MODULES.html.sh (Unicode string functions): Add
27201         unictype/property-case-ignorable, unictype/property-cased,
27202         unictype/property-changes-when-casefolded,
27203         unictype/property-changes-when-casemapped,
27204         unictype/property-changes-when-lowercased,
27205         unictype/property-changes-when-titlecased,
27206         unictype/property-changes-when-uppercased.
27207
27208         New module 'unictype/property-changes-when-casemapped'.
27209         * modules/unictype/property-changes-when-casemapped: New file.
27210         * lib/unictype/pr_changes_when_casemapped.c: New file.
27211         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
27212         generated by gen-uni-tables.
27213         * modules/unictype/property-changes-when-casemapped-tests: New file.
27214         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
27215         automatically generated by gen-uni-tables.
27216
27217         New module 'unictype/property-changes-when-casefolded'.
27218         * modules/unictype/property-changes-when-casefolded: New file.
27219         * lib/unictype/pr_changes_when_casefolded.c: New file.
27220         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
27221         generated by gen-uni-tables.
27222         * modules/unictype/property-changes-when-casefolded-tests: New file.
27223         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
27224         automatically generated by gen-uni-tables.
27225
27226         New module 'unictype/property-changes-when-titlecased'.
27227         * modules/unictype/property-changes-when-titlecased: New file.
27228         * lib/unictype/pr_changes_when_titlecased.c: New file.
27229         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
27230         generated by gen-uni-tables.
27231         * modules/unictype/property-changes-when-titlecased-tests: New file.
27232         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
27233         automatically generated by gen-uni-tables.
27234
27235         New module 'unictype/property-changes-when-uppercased'.
27236         * modules/unictype/property-changes-when-uppercased: New file.
27237         * lib/unictype/pr_changes_when_uppercased.c: New file.
27238         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
27239         generated by gen-uni-tables.
27240         * modules/unictype/property-changes-when-uppercased-tests: New file.
27241         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
27242         automatically generated by gen-uni-tables.
27243
27244         New module 'unictype/property-changes-when-lowercased'.
27245         * modules/unictype/property-changes-when-lowercased: New file.
27246         * lib/unictype/pr_changes_when_lowercased.c: New file.
27247         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
27248         generated by gen-uni-tables.
27249         * modules/unictype/property-changes-when-lowercased-tests: New file.
27250         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
27251         automatically generated by gen-uni-tables.
27252
27253         New module 'unictype/property-case-ignorable'.
27254         * modules/unictype/property-case-ignorable: New file.
27255         * lib/unictype/pr_case_ignorable.c: New file.
27256         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
27257         by gen-uni-tables.
27258         * modules/unictype/property-case-ignorable-tests: New file.
27259         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
27260         generated by gen-uni-tables.
27261
27262         New module 'unictype/property-cased'.
27263         * modules/unictype/property-cased: New file.
27264         * lib/unictype/pr_cased.c: New file.
27265         * lib/unictype/pr_cased.h: New file, automatically generated by
27266         gen-uni-tables.
27267         * modules/unictype/property-cased-tests: New file.
27268         * tests/unictype/test-pr_cased.c: New file, automatically generated by
27269         gen-uni-tables.
27270
27271 2011-01-09  Bruno Haible  <bruno@clisp.org>
27272
27273         Update to Unicode 5.2.0.
27274         * lib/gen-uni-tables.c (output_predicate, output_category,
27275         output_combclass, output_bidi_category, output_decimal_digit_test,
27276         output_decimal_digit, output_digit_test, output_digit,
27277         output_numeric_test, output_numeric, output_mirror, output_scripts,
27278         output_scripts_byname, output_blocks, output_ident_category): Fix
27279         comment header.
27280         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
27281         get_wbp.
27282         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
27283         items.
27284         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
27285         Changes_When_Lowercased, Changes_When_Uppercased,
27286         Changes_When_Titlecased, Changes_When_Casefolded,
27287         Changes_When_Casemapped.
27288         (is_property_alphabetic, is_property_default_ignorable_code_point):
27289         Update for Unicode 5.2.0.
27290         (is_property_cased, is_property_case_ignorable,
27291         is_property_changes_when_lowercased,
27292         is_property_changes_when_uppercased,
27293         is_property_changes_when_titlecased,
27294         is_property_changes_when_casefolded,
27295         is_property_changes_when_casemapped): New functions.
27296         (output_properties): Output also the properties cased, case_ignorable,
27297         changes_when_lowercased, changes_when_uppercased,
27298         changes_when_titlecased, changes_when_casefolded,
27299         changes_when_casemapped.
27300         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
27301         Unicode TR#11 revision 17 -> 19.
27302         (LBP_CP): New enumeration value.
27303         (LBP_*): Adjust values accordingly.
27304         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27305         TR#14 revision 22 -> 24.
27306         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
27307         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
27308         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
27309         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
27310         is_WBP_MIDLETTER.
27311         (output_composition_tables): Allow for 24 bits instead of 16 bits in
27312         the code1 and code2 of each composition rule.
27313         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
27314         * lib/unicase/ignorable.h: Likewise.
27315         * lib/unicase/tocasefold.h: Likewise.
27316         * lib/unicase/tolower.h: Likewise.
27317         * lib/unicase/totitle.h: Likewise.
27318         * lib/unicase/toupper.h: Likewise.
27319         * lib/unictype/bidi_of.h: Likewise.
27320         * lib/unictype/blocks.h: Likewise.
27321         * lib/unictype/categ_C.h: Likewise.
27322         * lib/unictype/categ_Cf.h: Likewise.
27323         * lib/unictype/categ_Cn.h: Likewise.
27324         * lib/unictype/categ_L.h: Likewise.
27325         * lib/unictype/categ_Ll.h: Likewise.
27326         * lib/unictype/categ_Lm.h: Likewise.
27327         * lib/unictype/categ_Lo.h: Likewise.
27328         * lib/unictype/categ_Lu.h: Likewise.
27329         * lib/unictype/categ_M.h: Likewise.
27330         * lib/unictype/categ_Mc.h: Likewise.
27331         * lib/unictype/categ_Mn.h: Likewise.
27332         * lib/unictype/categ_N.h: Likewise.
27333         * lib/unictype/categ_Nd.h: Likewise.
27334         * lib/unictype/categ_Nl.h: Likewise.
27335         * lib/unictype/categ_No.h: Likewise.
27336         * lib/unictype/categ_P.h: Likewise.
27337         * lib/unictype/categ_Pd.h: Likewise.
27338         * lib/unictype/categ_Po.h: Likewise.
27339         * lib/unictype/categ_S.h: Likewise.
27340         * lib/unictype/categ_Sc.h: Likewise.
27341         * lib/unictype/categ_So.h: Likewise.
27342         * lib/unictype/categ_of.h: Likewise.
27343         * lib/unictype/combining.h: Likewise.
27344         * lib/unictype/ctype_alnum.h: Likewise.
27345         * lib/unictype/ctype_alpha.h: Likewise.
27346         * lib/unictype/ctype_graph.h: Likewise.
27347         * lib/unictype/ctype_lower.h: Likewise.
27348         * lib/unictype/ctype_print.h: Likewise.
27349         * lib/unictype/ctype_punct.h: Likewise.
27350         * lib/unictype/ctype_upper.h: Likewise.
27351         * lib/unictype/decdigit.h: Likewise.
27352         * lib/unictype/digit.h: Likewise.
27353         * lib/unictype/numeric.h: Likewise.
27354         * lib/unictype/pr_alphabetic.h: Likewise.
27355         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27356         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27357         * lib/unictype/pr_bidi_european_digit.h: Likewise.
27358         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27359         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27360         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27361         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27362         * lib/unictype/pr_combining.h: Likewise.
27363         * lib/unictype/pr_composite.h: Likewise.
27364         * lib/unictype/pr_currency_symbol.h: Likewise.
27365         * lib/unictype/pr_dash.h: Likewise.
27366         * lib/unictype/pr_decimal_digit.h: Likewise.
27367         * lib/unictype/pr_deprecated.h: Likewise.
27368         * lib/unictype/pr_diacritic.h: Likewise.
27369         * lib/unictype/pr_extender.h: Likewise.
27370         * lib/unictype/pr_grapheme_base.h: Likewise.
27371         * lib/unictype/pr_grapheme_extend.h: Likewise.
27372         * lib/unictype/pr_grapheme_link.h: Likewise.
27373         * lib/unictype/pr_id_continue.h: Likewise.
27374         * lib/unictype/pr_id_start.h: Likewise.
27375         * lib/unictype/pr_ideographic.h: Likewise.
27376         * lib/unictype/pr_ignorable_control.h: Likewise.
27377         * lib/unictype/pr_logical_order_exception.h: Likewise.
27378         * lib/unictype/pr_lowercase.h: Likewise.
27379         * lib/unictype/pr_numeric.h: Likewise.
27380         * lib/unictype/pr_other_alphabetic.h: Likewise.
27381         * lib/unictype/pr_punctuation.h: Likewise.
27382         * lib/unictype/pr_sentence_terminal.h: Likewise.
27383         * lib/unictype/pr_terminal_punctuation.h: Likewise.
27384         * lib/unictype/pr_unassigned_code_value.h: Likewise.
27385         * lib/unictype/pr_unified_ideograph.h: Likewise.
27386         * lib/unictype/pr_uppercase.h: Likewise.
27387         * lib/unictype/pr_xid_continue.h: Likewise.
27388         * lib/unictype/pr_xid_start.h: Likewise.
27389         * lib/unictype/pr_zero_width.h: Likewise.
27390         * lib/unictype/scripts.h: Likewise.
27391         * lib/unictype/scripts_byname.gperf: Likewise.
27392         * lib/unictype/sy_java_ident.h: Likewise.
27393         * lib/unigbrk/gbrkprop.h: Likewise.
27394         * lib/unilbrk/lbrkprop1.h: Likewise.
27395         * lib/unilbrk/lbrkprop2.h: Likewise.
27396         * lib/unilbrk/lbrktables.h: Likewise.
27397         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
27398         LBP_CP. Implement rule LB30.
27399         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
27400         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
27401         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
27402         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
27403         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
27404         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
27405         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
27406         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
27407         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
27408         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
27409         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
27410         bits instead of 16 bits in the code1 and code2 of each composition
27411         rule.
27412         (uc_composition): Update for Unicode 5.2.0.
27413         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
27414         * lib/uninorm/decomposition-table2.h: Likewise.
27415         * lib/uniwbrk/wbrkprop.h: Likewise.
27416         * tests/unicase/test-cased.c: Likewise.
27417         * tests/unicase/test-ignorable.c: Likewise.
27418         * tests/unicase/test-uc_tolower.c: Likewise.
27419         * tests/unicase/test-uc_totitle.c: Likewise.
27420         * tests/unicase/test-uc_toupper.c: Likewise.
27421         * tests/unictype/test-categ_C.c: Likewise.
27422         * tests/unictype/test-categ_Cf.c: Likewise.
27423         * tests/unictype/test-categ_Cn.c: Likewise.
27424         * tests/unictype/test-categ_L.c: Likewise.
27425         * tests/unictype/test-categ_Ll.c: Likewise.
27426         * tests/unictype/test-categ_Lm.c: Likewise.
27427         * tests/unictype/test-categ_Lo.c: Likewise.
27428         * tests/unictype/test-categ_Lu.c: Likewise.
27429         * tests/unictype/test-categ_M.c: Likewise.
27430         * tests/unictype/test-categ_Mc.c: Likewise.
27431         * tests/unictype/test-categ_Mn.c: Likewise.
27432         * tests/unictype/test-categ_N.c: Likewise.
27433         * tests/unictype/test-categ_Nd.c: Likewise.
27434         * tests/unictype/test-categ_Nl.c: Likewise.
27435         * tests/unictype/test-categ_No.c: Likewise.
27436         * tests/unictype/test-categ_P.c: Likewise.
27437         * tests/unictype/test-categ_Pd.c: Likewise.
27438         * tests/unictype/test-categ_Po.c: Likewise.
27439         * tests/unictype/test-categ_S.c: Likewise.
27440         * tests/unictype/test-categ_Sc.c: Likewise.
27441         * tests/unictype/test-categ_So.c: Likewise.
27442         * tests/unictype/test-ctype_alnum.c: Likewise.
27443         * tests/unictype/test-ctype_alpha.c: Likewise.
27444         * tests/unictype/test-ctype_graph.c: Likewise.
27445         * tests/unictype/test-ctype_lower.c: Likewise.
27446         * tests/unictype/test-ctype_print.c: Likewise.
27447         * tests/unictype/test-ctype_punct.c: Likewise.
27448         * tests/unictype/test-ctype_upper.c: Likewise.
27449         * tests/unictype/test-decdigit.h: Likewise.
27450         * tests/unictype/test-digit.h: Likewise.
27451         * tests/unictype/test-numeric.h: Likewise.
27452         * tests/unictype/test-pr_alphabetic.c: Likewise.
27453         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27454         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27455         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27456         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27457         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27458         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27459         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27460         * tests/unictype/test-pr_combining.c: Likewise.
27461         * tests/unictype/test-pr_composite.c: Likewise.
27462         * tests/unictype/test-pr_currency_symbol.c: Likewise.
27463         * tests/unictype/test-pr_dash.c: Likewise.
27464         * tests/unictype/test-pr_decimal_digit.c: Likewise.
27465         * tests/unictype/test-pr_deprecated.c: Likewise.
27466         * tests/unictype/test-pr_diacritic.c: Likewise.
27467         * tests/unictype/test-pr_extender.c: Likewise.
27468         * tests/unictype/test-pr_grapheme_base.c: Likewise.
27469         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27470         * tests/unictype/test-pr_grapheme_link.c: Likewise.
27471         * tests/unictype/test-pr_id_continue.c: Likewise.
27472         * tests/unictype/test-pr_id_start.c: Likewise.
27473         * tests/unictype/test-pr_ideographic.c: Likewise.
27474         * tests/unictype/test-pr_ignorable_control.c: Likewise.
27475         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27476         * tests/unictype/test-pr_lowercase.c: Likewise.
27477         * tests/unictype/test-pr_numeric.c: Likewise.
27478         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27479         * tests/unictype/test-pr_punctuation.c: Likewise.
27480         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27481         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27482         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27483         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27484         * tests/unictype/test-pr_uppercase.c: Likewise.
27485         * tests/unictype/test-pr_xid_continue.c: Likewise.
27486         * tests/unictype/test-pr_xid_start.c: Likewise.
27487         * tests/unictype/test-pr_zero_width.c: Likewise.
27488         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
27489         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
27490         changed behaviour: line breaking is now disallowed between a letter
27491         or '=' and '('.
27492         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
27493         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
27494         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
27495         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
27496         * tests/uniwidth/test-uc_width2.sh: Same updates as in
27497         lib/uniwidth/width.c.
27498         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
27499         without comments, but with the original copyright notice.
27500         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
27501         changes.
27502         * lib/unictype/categ_Cc.h: Likewise.
27503         * lib/unictype/categ_Co.h: Likewise.
27504         * lib/unictype/categ_Cs.h: Likewise.
27505         * lib/unictype/categ_Lt.h: Likewise.
27506         * lib/unictype/categ_Me.h: Likewise.
27507         * lib/unictype/categ_Pc.h: Likewise.
27508         * lib/unictype/categ_Pe.h: Likewise.
27509         * lib/unictype/categ_Pf.h: Likewise.
27510         * lib/unictype/categ_Pi.h: Likewise.
27511         * lib/unictype/categ_Ps.h: Likewise.
27512         * lib/unictype/categ_Sk.h: Likewise.
27513         * lib/unictype/categ_Sm.h: Likewise.
27514         * lib/unictype/categ_Z.h: Likewise.
27515         * lib/unictype/categ_Zl.h: Likewise.
27516         * lib/unictype/categ_Zp.h: Likewise.
27517         * lib/unictype/categ_Zs.h: Likewise.
27518         * lib/unictype/ctype_blank.h: Likewise.
27519         * lib/unictype/ctype_cntrl.h: Likewise.
27520         * lib/unictype/ctype_digit.h: Likewise.
27521         * lib/unictype/ctype_space.h: Likewise.
27522         * lib/unictype/ctype_xdigit.h: Likewise.
27523         * lib/unictype/mirror.h: Likewise.
27524         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27525         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27526         * lib/unictype/pr_bidi_block_separator.h: Likewise.
27527         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27528         * lib/unictype/pr_bidi_common_separator.h: Likewise.
27529         * lib/unictype/pr_bidi_control.h: Likewise.
27530         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27531         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27532         * lib/unictype/pr_bidi_pdf.h: Likewise.
27533         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27534         * lib/unictype/pr_bidi_whitespace.h: Likewise.
27535         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27536         * lib/unictype/pr_format_control.h: Likewise.
27537         * lib/unictype/pr_hex_digit.h: Likewise.
27538         * lib/unictype/pr_hyphen.h: Likewise.
27539         * lib/unictype/pr_ids_binary_operator.h: Likewise.
27540         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27541         * lib/unictype/pr_iso_control.h: Likewise.
27542         * lib/unictype/pr_join_control.h: Likewise.
27543         * lib/unictype/pr_left_of_pair.h: Likewise.
27544         * lib/unictype/pr_line_separator.h: Likewise.
27545         * lib/unictype/pr_math.h: Likewise.
27546         * lib/unictype/pr_non_break.h: Likewise.
27547         * lib/unictype/pr_not_a_character.h: Likewise.
27548         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27549         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27550         * lib/unictype/pr_other_id_continue.h: Likewise.
27551         * lib/unictype/pr_other_id_start.h: Likewise.
27552         * lib/unictype/pr_other_lowercase.h: Likewise.
27553         * lib/unictype/pr_other_math.h: Likewise.
27554         * lib/unictype/pr_other_uppercase.h: Likewise.
27555         * lib/unictype/pr_paired_punctuation.h: Likewise.
27556         * lib/unictype/pr_paragraph_separator.h: Likewise.
27557         * lib/unictype/pr_pattern_syntax.h: Likewise.
27558         * lib/unictype/pr_pattern_white_space.h: Likewise.
27559         * lib/unictype/pr_private_use.h: Likewise.
27560         * lib/unictype/pr_quotation_mark.h: Likewise.
27561         * lib/unictype/pr_radical.h: Likewise.
27562         * lib/unictype/pr_soft_dotted.h: Likewise.
27563         * lib/unictype/pr_space.h: Likewise.
27564         * lib/unictype/pr_titlecase.h: Likewise.
27565         * lib/unictype/pr_variation_selector.h: Likewise.
27566         * lib/unictype/pr_white_space.h: Likewise.
27567         * lib/unictype/sy_c_ident.h: Likewise.
27568         * lib/unictype/sy_c_whitespace.h: Likewise.
27569         * lib/unictype/sy_java_whitespace.h: Likewise.
27570         * modules/uni*/*: Bump version number of expected libunistring version.
27571         Reported by Simon Josefsson.
27572
27573 2011-01-09  Karl Heuer  <kwzh@gnu.org>
27574
27575         useless-if-before-free: fix typo in --help and make the internal,
27576         automatic version date update process work once again.
27577         --help output contained a NUL character instead of the
27578         backslash-zero that was intended.  Also, the "must lie within
27579         the first 8 lines" line is on line 9, and hence not getting
27580         automatically updated.
27581         * build-aux/useless-if-before-free: Fix the former by adding a
27582         backslash, and the latter by condensing the three lines of what-it-does
27583         to a single line, leaving one line of slack for the future.
27584
27585 2011-01-09  Bruno Haible  <bruno@clisp.org>
27586
27587         uniwidth/width: Fix width of U+1D173..U+1D17A.
27588         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
27589         symbolic_width, output_width_property_test): New functions.
27590         (main): Invoke output_nonspacing_property, output_width_property_test.
27591         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
27592         U+1D173..U+1D17A.
27593         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
27594         1.
27595         * modules/uniwidth/*: Bump version number of expected libunistring
27596         version.
27597         * modules/unilbrk/*: Likewise.
27598
27599 2011-01-08  Bruno Haible  <bruno@clisp.org>
27600
27601         uninorm tests: Preserve copyright of Unicode data file.
27602         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
27603         Mention modifications.
27604
27605 2011-01-08  Bruno Haible  <bruno@clisp.org>
27606
27607         gen-uni-tables: Prepare for Unicode 5.2.0.
27608         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
27609         (debug_output_lbp, output_lbp): Update.
27610
27611 2011-01-08  Bruno Haible  <bruno@clisp.org>
27612
27613         unilbrk: Clarify gen-uni-tables.c code.
27614         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
27615         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
27616         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
27617
27618 2011-01-07  Bruno Haible  <bruno@clisp.org>
27619
27620         strtod: Restore errno when successfully parsing Infinity or NaN.
27621         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
27622         restore the original errno.
27623
27624 2011-01-07  Bruno Haible  <bruno@clisp.org>
27625
27626         remove test: Avoid failure on HP-UX 11.
27627         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
27628
27629 2011-01-07  Bruno Haible  <bruno@clisp.org>
27630
27631         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
27632         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
27633         error code.
27634
27635 2011-01-07  Pádraig Brady <P@draigBrady.com>
27636
27637         ignore-value: fixup comments, and add Eric Blake
27638         as an author since he rewrote the macros.
27639         * lib/ignore-value.h (ignore_value):  State that
27640         we now support aggregates.  Also specify exactly
27641         when the GCC warn_unused_result feature was added.
27642
27643 2011-01-06  Eric Blake  <eblake@redhat.com>
27644
27645         ignore-value: support aggregate types
27646         * lib/ignore-value.h (ignore_value): Provide separate gcc
27647         definition.
27648         * modules/ignore-value-tests: New test module.
27649         * tests/test-ignore-value.c: New test.
27650
27651         maint.mk: improve sc_prohibit_strcmp regex
27652         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
27653         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
27654         definition of STRNEQ.
27655
27656         signal: work around Haiku issue with SIGBUS
27657         * lib/siglist.h: Add comment.
27658         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
27659         strsignal's favoring of SIGSEGV.
27660         * tests/test-signal.c (main): Avoid test failure.
27661         * doc/posix-headers/signal.texi (signal.h): Document the issue.
27662         Reported by Scott McCreary.
27663
27664         maint.mk: add pre-release check to ensure submodule commits are public
27665         * top/maint.mk (public-submodule-commit): New rule.
27666         (submodule-checks): New variable.
27667         (alpha beta stable): Depend on the variable.
27668
27669 2011-01-05  Pádraig Brady <P@draigBrady.com>
27670         and Jim Meyering  <meyering@redhat.com>
27671
27672         ignore-value: make ignore_value more generic; deprecate ignore_ptr
27673         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
27674         (ATTRIBUTE_DEPRECATED): Define.
27675         (_ignore_case): New function.
27676         (ignore_value): New macro, to replace the old function.
27677         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
27678         * modules/ignore-value (Depends-on): Add stdint.
27679
27680 2011-01-04  Eric Blake  <eblake@redhat.com>
27681
27682         doc: regenerate INSTALL
27683         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
27684         @firstparagraphindent support, now that autoconf dropped it.
27685         (INSTALL_PRELUDE): Reinstate old macro.
27686         * doc/install.texi: Resync from autoconf.
27687         * doc/INSTALL: Reflect recent autoconf update.
27688         * doc/INSTALL.ISO: Likewise.
27689         * doc/INSTALL.UTF-8: Likewise.
27690         Reported by Karl Berry.
27691
27692 2011-01-04  Bruce Korb  <address@hidden>
27693
27694         git-version-gen: avoid a sub-shell
27695         * build-aux/git-version-gen: Redirect stderr in `...` via
27696         "exec 2>...", rather than via an added sub-shell.
27697
27698 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
27699
27700         git-version-gen: use (...) rather than sh -c '...'
27701         * build-aux/git-version-gen: Rather than hard-coding a shell's name
27702         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
27703
27704 2011-01-03  Jim Meyering  <meyering@redhat.com>
27705
27706         git-version-gen: convert leading TABs to spaces
27707         * build-aux/git-version-gen: Expand leading TABs.
27708
27709         git-version-gen: handle failed "git rev-list"
27710         * build-aux/git-version-gen: Rather than leaking a "fatal" error
27711         from git and proceeding as if it had succeeded but printed no SHA1
27712         checksums, suppress the diagnostic and handle the failure.
27713         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
27714
27715         git-version-gen: include command name in one more diagnostic
27716         * build-aux/git-version-gen: When the required .tarball-version file
27717         was missing or unreadable, you might see the diagnostic from "cat",
27718         but no trace of the name of the invoking script.  Now, you still see
27719         the diagnostic from cat, but also get one from "git-version-gen: ".
27720         Inspired by a patch from Bruce Korb.
27721
27722         update-copyright: adjust test to match changed code
27723         * tests/test-update-copyright.sh: Change test's expected output
27724         to match new actual output.
27725
27726 2011-01-02  Bruno Haible  <bruno@clisp.org>
27727
27728         getlogin_r: Avoid test failure on HP-UX 11.
27729         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
27730         ERANGE when the second argument is zero.
27731         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
27732         portability problem.
27733
27734 2011-01-02  Bruce Korb  <bkorb@gnu.org>
27735
27736         * build-aux/update-copyright: doc Simon's changes
27737
27738 2011-01-02  Simon Josefsson  <simon@josefsson.org>
27739
27740         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
27741         environment variable.
27742
27743 2011-01-02  Bruno Haible  <bruno@clisp.org>
27744
27745         unigbrk: Avoid gcc warnings.
27746         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
27747         unused variable.
27748         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
27749         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
27750         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
27751         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
27752         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
27753         Change type of first argument to 'const char *'.
27754         (main): Remove unused variable.
27755         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
27756         type of first argument to 'const char *'.
27757         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
27758         Likewise.
27759         (main): Change type of variable 's'.
27760         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
27761         to 'int'.
27762
27763 2011-01-02  Bruno Haible  <bruno@clisp.org>
27764
27765         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
27766         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
27767         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
27768         bug.
27769         * lib/pwrite.c: Undo 2010-12-31 patch.
27770         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
27771
27772 2011-01-02  Bruno Haible  <bruno@clisp.org>
27773
27774         pread: Fix test whether it works.
27775         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
27776
27777 2011-01-02  Bruno Haible  <bruno@clisp.org>
27778
27779         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
27780         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
27781         ends in "6". Don't require a specific month name. Try also the locale
27782         names found on HP-UX 11 and Solaris 7.
27783
27784 2011-01-02  Bruno Haible  <bruno@clisp.org>
27785
27786         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
27787         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
27788         C linkage.
27789         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
27790
27791 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27792
27793         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
27794         for consistency, since the "cluster" term is not used elsewhere.
27795         * lib/unigbrk.in.h: Update name.
27796         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
27797         * lib/unigbrk/u16-grapheme-next.c: Update name.
27798         * lib/unigbrk/u16-grapheme-prev.c: Update name.
27799         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
27800         * lib/unigbrk/u32-grapheme-next.c: Update name.
27801         * lib/unigbrk/u32-grapheme-prev.c: Update name.
27802         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
27803         * lib/unigbrk/u8-grapheme-next.c: Update name.
27804         * lib/unigbrk/u8-grapheme-prev.c: Update name.
27805         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
27806         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
27807         Suggested by Bruno Haible.
27808
27809 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27810
27811         Remove module 'u8-grapheme-len' as too redundant with
27812         'u8-grapheme-next'.
27813         * modules/unigbrk/u8-grapheme-len: Delete file.
27814         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
27815         * lib/unigbrk.in.h: Remove prototype for deleted function.
27816         * lib/unigbrk/u8-grapheme-len.c: Delete file.
27817         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
27818
27819         Remove module 'u16-grapheme-len' as too redundant with
27820         'u16-grapheme-next'.
27821         * modules/unigbrk/u16-grapheme-len: Delete file.
27822         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
27823         * lib/unigbrk.in.h: Remove prototype for deleted function.
27824         * lib/unigbrk/u16-grapheme-len.c: Delete file.
27825         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
27826
27827         Remove module 'u32-grapheme-len' as too redundant with
27828         'u32-grapheme-next'.
27829         * modules/unigbrk/u32-grapheme-len: Delete file.
27830         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
27831         * lib/unigbrk.in.h: Remove prototype for deleted function.
27832         * lib/unigbrk/u32-grapheme-len.c: Delete file.
27833         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
27834
27835         Suggested by Bruno Haible.
27836
27837 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
27838
27839         * unigbrk.in.h: Fix typo: "ben" => "been".
27840         Reported by Bruno Haible.
27841
27842 2011-01-01  Jim Meyering  <meyering@redhat.com>
27843
27844         maint: update almost all copyright ranges to include 2011
27845         Run the new "make update-copyright" rule.
27846
27847 2011-01-01  Jim Meyering  <meyering@redhat.com>
27848
27849         maint: update-copyright: exempt doc/INSTALL*
27850         * Makefile (update-copyright): Also exclude doc/INSTALL*,
27851         since they are generated.  Suggested by Bruno Haible.
27852
27853 2011-01-01  Jim Meyering  <meyering@redhat.com>
27854
27855         maint: refine the update-copyright rule
27856         * Makefile (update-copyright): Also exclude any file that includes
27857         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
27858         code that merely generates the comment.
27859
27860 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27861
27862         New module 'u8-grapheme-len'.
27863         * modules/unigbrk/u8-grapheme-len: New file.
27864         * modules/unigbrk/u8-grapheme-len-tests: New file.
27865         * lib/unigbrk.in.h: Add prototype for new function.
27866         * lib/unigbrk/u8-grapheme-len.c: New file.
27867         * tests/unigbrk/test-u8-grapheme-len.c: New file.
27868
27869         New module 'u16-grapheme-len'.
27870         * modules/unigbrk/u16-grapheme-len: New file.
27871         * modules/unigbrk/u16-grapheme-len-tests: New file.
27872         * lib/unigbrk.in.h: Add prototype for new function.
27873         * lib/unigbrk/u16-grapheme-len.c: New file.
27874         * tests/unigbrk/test-u16-grapheme-len.c: New file.
27875
27876         New module 'u32-grapheme-len'.
27877         * modules/unigbrk/u32-grapheme-len: New file.
27878         * modules/unigbrk/u32-grapheme-len-tests: New file.
27879         * lib/unigbrk.in.h: Add prototype for new function.
27880         * lib/unigbrk/u32-grapheme-len.c: New file.
27881         * tests/unigbrk/test-u32-grapheme-len.c: New file.
27882
27883         New module 'u8-grapheme-next'.
27884         * modules/unigbrk/u8-grapheme-next: New file.
27885         * modules/unigbrk/u8-grapheme-next-tests: New file.
27886         * lib/unigbrk.in.h: Add prototype for new function.
27887         * lib/unigbrk/u8-grapheme-next.c: New file.
27888         * tests/unigbrk/test-u8-grapheme-next.c: New file.
27889
27890         New module 'u16-grapheme-next'.
27891         * modules/unigbrk/u16-grapheme-next: New file.
27892         * modules/unigbrk/u16-grapheme-next-tests: New file.
27893         * lib/unigbrk.in.h: Add prototype for new function.
27894         * lib/unigbrk/u16-grapheme-next.c: New file.
27895         * tests/unigbrk/test-u16-grapheme-next.c: New file.
27896
27897         New module 'u32-grapheme-next'.
27898         * modules/unigbrk/u32-grapheme-next: New file.
27899         * modules/unigbrk/u32-grapheme-next-tests: New file.
27900         * lib/unigbrk.in.h: Add prototype for new function.
27901         * lib/unigbrk/u32-grapheme-next.c: New file.
27902         * tests/unigbrk/test-u32-grapheme-next.c: New file.
27903
27904         New module 'u8-grapheme-prev'.
27905         * modules/unigbrk/u8-grapheme-prev: New file.
27906         * modules/unigbrk/u8-grapheme-prev-tests: New file.
27907         * lib/unigbrk.in.h: Add prototype for new function.
27908         * lib/unigbrk/u8-grapheme-prev.c: New file.
27909         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
27910
27911         New module 'u16-grapheme-prev'.
27912         * modules/unigbrk/u16-grapheme-prev: New file.
27913         * modules/unigbrk/u16-grapheme-prev-tests: New file.
27914         * lib/unigbrk.in.h: Add prototype for new function.
27915         * lib/unigbrk/u16-grapheme-prev.c: New file.
27916         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
27917
27918         New module 'u32-grapheme-prev'.
27919         * modules/unigbrk/u32-grapheme-prev: New file.
27920         * modules/unigbrk/u32-grapheme-prev-tests: New file.
27921         * lib/unigbrk.in.h: Add prototype for new function.
27922         * lib/unigbrk/u32-grapheme-prev.c: New file.
27923         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
27924
27925         New module 'u8-grapheme-breaks'.
27926         * modules/unigbrk/u8-grapheme-breaks: New file.
27927         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
27928         * lib/unigbrk.in.h: Add prototype for new function.
27929         * lib/unigbrk/u8-grapheme-breaks.c: New file.
27930         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
27931
27932         New module 'u16-grapheme-breaks'.
27933         * modules/unigbrk/u16-grapheme-breaks: New file.
27934         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
27935         * lib/unigbrk.in.h: Add prototype for new function.
27936         * lib/unigbrk/u16-grapheme-breaks.c: New file.
27937         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
27938
27939         New module 'u32-grapheme-breaks'.
27940         * modules/unigbrk/u32-grapheme-breaks: New file.
27941         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
27942         * lib/unigbrk.in.h: Add prototype for new function.
27943         * lib/unigbrk/u32-grapheme-breaks.c: New file.
27944         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
27945
27946         New module 'ulc-grapheme-breaks'.
27947         * modules/unigbrk/ulc-grapheme-breaks: New file.
27948         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
27949         * m4/locale-ar.m4: New file.
27950         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
27951         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
27952         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
27953
27954 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
27955
27956         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
27957         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
27958         modified how this file was generated before I initially submitted
27959         the module, but failed to regenerate it.  This meant that several
27960         of the level2 entries were wrong.
27961         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
27962         Remove the division-by-2 that is folded into the table now that
27963         gbrkprop.h has been regenerated properly.  Now -1 entries are
27964         handled correctly.
27965
27966         New module 'unigbrk/uc-gbrk-prop-tests'.
27967         * modules/unigbrk/uc-gbrk-prop-tests: New file.
27968         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
27969         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
27970         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
27971
27972 2011-01-01  Bruno Haible  <bruno@clisp.org>
27973
27974         Avoid use of hexadecimal escapes.
27975         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
27976         instead of hexadecimal escapes.
27977
27978 2011-01-01  Jim Meyering  <meyering@redhat.com>
27979
27980         maint: new rule to update copyright year ranges
27981         * Makefile (update-copyright): New rule.
27982
27983         maint: indent with TABs in Makefile
27984         * Makefile: Expand leading sequences of spaces to TABs
27985
27986         version-etc: update the copyright year it reports
27987         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
27988
27989 2010-12-31  Bruno Haible  <bruno@clisp.org>
27990
27991         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
27992         * lib/isfinite.c (zerof, zerod, zerol): New variables.
27993         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
27994         zero.
27995
27996 2010-12-31  Bruno Haible  <bruno@clisp.org>
27997
27998         pwrite: Work around HP-UX 11.11 bug.
27999         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
28000         works and set REPLACE_PWRITE if not.
28001         * lib/pwrite.c (pwrite): Add an implementation that uses the system
28002         function.
28003         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
28004
28005 2010-12-31  Bruno Haible  <bruno@clisp.org>
28006
28007         pread: Work around HP-UX 11 bugs.
28008         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
28009         and set REPLACE_PREAD if not.
28010         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
28011
28012 2010-12-31  Eric Blake  <eblake@redhat.com>
28013
28014         nl_langinfo: fix YESEXPR on Irix 6.5
28015         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
28016         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
28017         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
28018         it.
28019
28020 2010-12-31  Bruno Haible  <bruno@clisp.org>
28021
28022         iconv: Document HP-UX 11 bug.
28023         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
28024
28025 2010-12-31  Bruno Haible  <bruno@clisp.org>
28026
28027         ldexpl: Fix link error on HP-UX 11.
28028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
28029         LDEXPL_LIBM, using $ISNANL_LIBM.
28030
28031 2010-12-31  Eric Blake  <eblake@redhat.com>
28032
28033         ftello: avoid compilation failure with SunStudio c89
28034         * lib/ftello.c (ftello): Use lseek, not llseek.
28035
28036         tests: avoid failing coreutils tests on cygwin
28037         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
28038         (create_exe_shims_): Return 0 when skipping.
28039
28040 2010-12-31  Bruno Haible  <bruno@clisp.org>
28041
28042         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
28043         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
28044
28045 2010-12-31  Bruno Haible  <bruno@clisp.org>
28046
28047         waitpid: Fix link error in C++ mode.
28048         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
28049
28050 2010-12-31  Bruno Haible  <bruno@clisp.org>
28051
28052         isnan: Use GCC built-ins when possible.
28053         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
28054         __builtin_isnan.
28055         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
28056         (isnan): Define using GCC built-ins for GCC >= 4.0.
28057
28058 2010-12-31  Bruno Haible  <bruno@clisp.org>
28059
28060         isnand: Fix mistake.
28061         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
28062         __builtin_isnand.
28063
28064 2010-12-31  Bruno Haible  <bruno@clisp.org>
28065
28066         open: Avoid C++ error on HP-UX 11.
28067         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
28068
28069 2010-12-31  Bruno Haible  <bruno@clisp.org>
28070
28071         time_r: Add missing declarations on HP-UX 11.
28072         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
28073         instead of HAVE_LOCALTIME_R.
28074         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
28075         HAVE_LOCALTIME_R always.
28076         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
28077         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
28078         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
28079         HAVE_LOCALTIME_R.
28080         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
28081         * doc/posix-functions/localtime_r.texi: Likewise.
28082
28083 2010-12-29  Eric Blake  <eblake@redhat.com>
28084
28085         mountlist: tweak previous commit
28086         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
28087         Reported by Paul Eggert.
28088
28089         mountlist: fix local drive detection on cygwin
28090         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
28091         that works for cygwin.
28092
28093 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
28094
28095         ftoastr, snprintf: ftoastr + snprintf module
28096         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
28097         since the snprintf module now should be good enough here.
28098         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
28099         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
28100         and gl_MODULE_INDICATOR([snprintf]), but the former enables
28101         GNULIB_SNPRINTF only for the test directory, and the latter
28102         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
28103         seems to suffice by itself.
28104
28105 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
28106
28107         alloca: one step towards thread-safety
28108         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
28109         need for a static variable.  All callers changed.  This does not
28110         make the alloca replacement thread-safe, but it's one step.
28111
28112         tests: minor indenting change
28113         * tests/init.sh: Sync from coreutils housekeeping patch
28114         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
28115         to keep lines within 80 columns.
28116
28117 2010-12-28  Jim Meyering  <meyering@redhat.com>
28118
28119         regex: don't infloop on persistent failing calloc
28120         * lib/regexec.c (build_trtable): Return failure indication upon
28121         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
28122         In glibc, this was fixed for version 2.13:
28123         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
28124
28125 2010-12-28  Bruno Haible  <bruno@clisp.org>
28126             Paul Eggert <eggert@cs.ucla.edu>
28127
28128         linkat: Make implementation robust against system behaviour variations.
28129         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
28130         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
28131         way, and to -2 if it needs a generic runtime test.
28132         * lib/linkat.c (solaris_optimized_link_immediate,
28133         solaris_optimized_link_follow): New functions.
28134         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
28135         (check_same_link): Use it.
28136
28137 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
28138
28139         New module 'unigbrk/base'.
28140         * modules/unigbrk/base: New file.
28141         * lib/unigbrk.in.h: New file.
28142
28143         New module 'unigbrk/uc-gbrk-prop'.
28144         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
28145         * modules/unigbrk/uc-gbrk-prop: New file.
28146         * lib/unigbrk/gbrkprop.h: New file.
28147         * lib/unigbrk/uc-gbrk-prop.c: New file.
28148
28149         New module 'unigbrk/uc-is-grapheme-break'.
28150         * modules/unigbrk/uc-is-grapheme-break: New file.
28151         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
28152         * lib/unigbrk/uc-is-grapheme-break.c: New file.
28153         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
28154         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
28155         * tests/unigbrk/GraphemeBreakTest.txt: New file.
28156
28157         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
28158
28159 2010-12-27  Bruno Haible  <bruno@clisp.org>
28160
28161         linkat test: Avoid failure on Solaris 11 2010-11.
28162         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
28163
28164 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28165
28166         utimens: work around glibc rounding bug on more platforms
28167         * lib/utimens.c (fdutimens): Work around rounding bug even if
28168         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
28169         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
28170
28171 2010-12-27  Bruno Haible  <bruno@clisp.org>
28172
28173         select tests: Improve comments.
28174         * tests/test-select.c (do_select): Add comments.
28175
28176 2010-12-27  Bruno Haible  <bruno@clisp.org>
28177
28178         select tests: Safer way of handling timeout.
28179         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
28180         at every invocation.
28181
28182 2010-12-27  Bruno Haible  <bruno@clisp.org>
28183
28184         select tests: Use 'bool' where appropriate.
28185         * tests/test-select.c (connect_to_socket): Change argument type to
28186         'bool'.
28187
28188 2010-12-27  Bruno Haible  <bruno@clisp.org>
28189
28190         select tests: Use existing modules.
28191         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
28192         (configure.ac): Don't test for unistd.h.
28193         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
28194         declared in <unistd.h>.
28195
28196 2010-12-27  Bruno Haible  <bruno@clisp.org>
28197
28198         mbrtowc: Work around a Solaris 7 bug.
28199         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
28200         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
28201         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
28202         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
28203         MBRTOWC_NULL_ARG1_BUG.
28204         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
28205         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
28206         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
28207         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
28208
28209 2010-12-27  Jim Meyering  <meyering@redhat.com>
28210
28211         read-file.c: tweak syntax
28212         * lib/read-file.c (fread_file): Remove space after "*" in function
28213         definitions.
28214
28215 2010-12-27  Bruno Haible  <bruno@clisp.org>
28216
28217         times test: Avoid gcc warnings on OSF/1.
28218         * tests/test-times.c (main): Cast printf arguments from clock_t to
28219         'long int'.
28220
28221 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
28222
28223         utimens: work around glibc rounding bug on older Linux kernels
28224         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
28225         on Linux with a glibc whose utimes might not work, then work
28226         around a longstanding glibc bug involving rounding rather than
28227         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
28228         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28229
28230 2010-12-26  Bruno Haible  <bruno@clisp.org>
28231
28232         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
28233         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
28234         _GL_CXXALIAS_SYS.
28235         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28236
28237 2010-12-26  Bruno Haible  <bruno@clisp.org>
28238
28239         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
28240         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
28241         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
28242         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
28243         looking for the declaration.
28244         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
28245         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
28246         problem.
28247         * doc/posix-functions/inet_pton.texi: Likewise.
28248
28249 2010-12-26  Bruno Haible  <bruno@clisp.org>
28250
28251         arpa_inet: Use the common idioms with C++ support.
28252         * lib/arpa_inet.in.h: Include c++defs.h.
28253         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
28254         support.
28255         * modules/arpa_inet (Depends-on): Add c++defs.
28256         (Makefile.am): Substitute the contents of c++defs.h.
28257         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
28258         * modules/arpa_inet-c++-tests: New file.
28259         * tests/test-arpa_inet-c++.cc: New file.
28260
28261 2010-12-25  Bruno Haible  <bruno@clisp.org>
28262
28263         Fix more C++ link errors on Solaris 8.
28264         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
28265         $(LIB_EACCESS).
28266         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
28267         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
28268         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
28269         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
28270         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
28271
28272 2010-12-25  Bruno Haible  <bruno@clisp.org>
28273
28274         printf-posix: Fix link error when a non-GCC compiler is used.
28275         * lib/stdio.in.h (printf): When not using GCC, override printf
28276         correctly.
28277         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28278
28279 2010-12-25  Bruno Haible  <bruno@clisp.org>
28280
28281         strerror_r-posix: Update doc.
28282         * doc/posix-functions/strerror_r.texi: Update doc about the return
28283         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
28284
28285 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28286
28287         utimens: simplify the logic of the previous change
28288         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
28289         This should not affect whether the test succeeds or fails.
28290
28291         utimens: configure better on hosts with NFS clock skew
28292         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
28293         uses the clock of the local host.  It might use the clock of the
28294         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
28295         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
28296
28297 2010-12-25  Bruno Haible  <bruno@clisp.org>
28298
28299         ptsname test: Avoid failure on Solaris.
28300         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
28301         open a pseudo-terminal; don't use BSD-style ptys.
28302         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
28303
28304 2010-12-25  Bruno Haible  <bruno@clisp.org>
28305
28306         ptsname: Avoid ERANGE failure on some systems.
28307         * lib/ptsname.c (buffer): Increase size.
28308
28309 2010-12-25  Bruno Haible  <bruno@clisp.org>
28310
28311         rename, renameat: Avoid test failures at NFS mounted locations.
28312         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
28313         so that subsequent mkdir calls succeed.
28314
28315 2010-12-25  Bruno Haible  <bruno@clisp.org>
28316
28317         iswblank: Fix C++ link error on Solaris 8.
28318         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
28319         _GL_FUNCDECL_SYS.
28320
28321 2010-12-25  Bruno Haible  <bruno@clisp.org>
28322
28323         unistd: Fix C++ link error on Solaris 8.
28324         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
28325
28326 2010-12-25  Bruno Haible  <bruno@clisp.org>
28327
28328         readlink doc: Mention an old glibc bug.
28329         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
28330
28331 2010-12-25  Bruno Haible  <bruno@clisp.org>
28332
28333         fcntl-h: Fix for use of C++ on glibc systems.
28334         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28335         also on glibc systems in C++ mode.
28336         Reported by Gary V. Vaughan <gary@gnu.org>.
28337
28338 2010-12-25  Bruno Haible  <bruno@clisp.org>
28339
28340         roundl-ieee: Make it work on OSF/1 5.1 with cc.
28341         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
28342
28343 2010-12-25  Bruno Haible  <bruno@clisp.org>
28344
28345         truncl-ieee: Make it work on OSF/1 5.1 with cc.
28346         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
28347         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
28348         test whether truncl works according to ISO C 99 with IEC 60559.
28349         * m4/truncl-ieee.m4: New file.
28350         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
28351         m4/signbit.m4.
28352         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
28353
28354 2010-12-25  Bruno Haible  <bruno@clisp.org>
28355
28356         ceill-ieee: Make it work on OSF/1 5.1 with cc.
28357         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28358         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
28359         test whether ceill works according to ISO C 99 with IEC 60559.
28360         * m4/ceill-ieee.m4: New file.
28361         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
28362         m4/signbit.m4.
28363         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
28364
28365 2010-12-25  Bruno Haible  <bruno@clisp.org>
28366
28367         Ensure all prerequisites of <wchar.h> are included.
28368         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
28369         before <wchar.h>.
28370         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28371         gl_MBRLEN_NUL_RETVAL): Likewise.
28372         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28373         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
28374         AC_FUNC_MBRTOWC): Likewise.
28375         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28376         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
28377         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28378         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
28379         Likewise.
28380         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28381         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
28382         (gl_WCHAR_H): Improve comments.
28383         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
28384
28385 2010-12-25  Bruno Haible  <bruno@clisp.org>
28386
28387         strtok_r: Fix C syntax error in autoconf macro.
28388         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
28389         characters in test program.
28390
28391 2010-12-24  Bruno Haible  <bruno@clisp.org>
28392
28393         ceil, trunc, round: Fix gcc warnings.
28394         * lib/ceil.c (MIN): Undefine before redefining.
28395         * lib/trunc.c (MIN): Likewise.
28396         * lib/round.c (MIN): Likewise.
28397         Include <math.h> first.
28398
28399 2010-12-24  Bruno Haible  <bruno@clisp.org>
28400
28401         select tests: Avoid failures on OSF/1 5.1.
28402         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
28403         failure of closing the last socket; it may fail with ECONNRESET.
28404
28405 2010-12-24  Eric Blake  <eblake@redhat.com>
28406
28407         stdint: avoid HP-UX 10.20 preprocessor bug
28408         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
28409         than #if.
28410         * tests/test-floor2.c (main): Likewise.
28411         Reported by Peter O'Gorman.
28412
28413         pipe: make obsoletion transition easier
28414         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
28415         * modules/pipe (Files): Include revived file.
28416         (Include): Drop reference, to mirror getdate's behavior.
28417
28418 2010-12-24  Bruno Haible  <bruno@clisp.org>
28419
28420         sys_socket: Hide mismatch of declarations on NonStop Kernel.
28421         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
28422         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
28423         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28424
28425 2010-12-24  Bruno Haible  <bruno@clisp.org>
28426
28427         gethostname: Ensure declaration on NonStop Kernel.
28428         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
28429         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28430
28431 2010-12-24  Bruno Haible  <bruno@clisp.org>
28432
28433         sys_select: Ensure all necessary types on NonStop Kernel.
28434         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
28435         include <sys/time.h>.
28436         * doc/posix-headers/sys_select.texi: Mention that it's missing on
28437         NonStop Kernel.
28438         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28439
28440 2010-12-24  Bruno Haible  <bruno@clisp.org>
28441
28442         sys_select: Remove unneeded include.
28443         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
28444         have <sys/select.h>.
28445
28446 2010-12-24  Bruno Haible  <bruno@clisp.org>
28447
28448         gethostname: Provide a fallback for HOST_NAME_MAX.
28449         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
28450         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
28451         instead.
28452         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28453
28454 2010-12-24  Bruno Haible  <bruno@clisp.org>
28455
28456         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
28457         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
28458         (SA_RESTART): Likewise.
28459         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28460
28461 2010-12-24  Bruno Haible  <bruno@clisp.org>
28462
28463         signal: Define NSIG.
28464         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
28465         * tests/test-signal.c (nsig): New variable.
28466         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28467
28468 2010-12-24  Bruno Haible  <bruno@clisp.org>
28469
28470         rename, renameat: Avoid test failures on OSF/1 5.1.
28471         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
28472         alternative error codes.
28473         * tests/test-renameat.c (main): Likewise.
28474
28475 2010-12-24  Bruno Haible  <bruno@clisp.org>
28476
28477         *printf: Detect large precisions bug on Solaris 10/SPARC.
28478         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
28479         by Paul Eggert.
28480         * tests/test-snprintf-posix.h (test_function): Add this test code here
28481         too.
28482         * tests/test-sprintf-posix.h (test_function): Likewise.
28483         * tests/test-vasnprintf-posix.c (test_function): Likewise.
28484         * tests/test-vasprintf-posix.c (test_function): Likewise.
28485         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
28486         around by gnulib.
28487         * doc/posix-functions/printf.texi: Likewise.
28488         * doc/posix-functions/snprintf.texi: Likewise.
28489         * doc/posix-functions/sprintf.texi: Likewise.
28490         * doc/posix-functions/vfprintf.texi: Likewise.
28491         * doc/posix-functions/vprintf.texi: Likewise.
28492         * doc/posix-functions/vsnprintf.texi: Likewise.
28493         * doc/posix-functions/vsprintf.texi: Likewise.
28494         * doc/posix-functions/dprintf.texi: Undo last commit.
28495         * doc/posix-functions/vdprintf.texi: Likewise.
28496
28497 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
28498
28499         tests: port test-fdutimensat.c to Solaris 8
28500         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
28501         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
28502         On Solaris 8, it fails with errno == ENOSYS, because there is no
28503         futimens (so it can't use the fd), and there is no lutimens (so it
28504         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
28505
28506         vsnprintf: make more consistent with snprintf; doc fixes
28507
28508         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
28509         the byte count return problem was promoted from the snprintf-posix
28510         to the snprintf module.
28511         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
28512         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
28513         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
28514         * tests/test-snprintf.c (main): Check the byte count returned.
28515         * tests/test-vsnprintf.c (main): Likewise.
28516
28517 2010-12-23  Eric Blake  <eblake@redhat.com>
28518
28519         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
28520         * modules/sigpipe (License): Relax license.
28521
28522 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28523
28524         doc: document Solaris printf bug with large float precisions
28525         * doc/posix-functions/dprintf.texi (dprintf):
28526         * doc/posix-functions/fprintf.texi (fprintf):
28527         * doc/posix-functions/printf.texi (printf):
28528         * doc/posix-functions/snprintf.texi (snprintf):
28529         * doc/posix-functions/sprintf.texi (sprintf):
28530         * doc/posix-functions/vdprintf.texi (vdprintf):
28531         * doc/posix-functions/vfprintf.texi (vfprintf):
28532         * doc/posix-functions/vprintf.texi (vprintf):
28533         * doc/posix-functions/vsnprintf.texi (vsnprintf):
28534         * doc/posix-functions/vsprintf.texi (vsprintf):
28535         Mention that these functions mishandle large floating point
28536         precisions on Solaris 10.  The same bug is also present in Solaris
28537         8, and I assume earlier.  This causes "cd gnulib-tests; make
28538         check" to fail on Solaris 8 (and I assume, later) when building
28539         the latest coreutils, in test-vasprintf-posix's call to
28540         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
28541         the wide flavors (e.g., wprintf) so this patch just updates the
28542         documentation for the narrow ones.
28543
28544         test-posixtm.c: add two tests
28545         * tests/test-posixtm.c: Add two tests, to highlight the
28546         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
28547         around this bug; this is merely to document it.
28548
28549 2010-12-22  Bruno Haible  <bruno@clisp.org>
28550
28551         getlogin_r: Work around portability problem on OSF/1.
28552         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
28553         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
28554         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
28555         test for a truncated result.
28556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
28557         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
28558         * modules/getlogin_r (Depends-on): Add memchr.
28559         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
28560
28561 2010-12-22  Bruno Haible  <bruno@clisp.org>
28562
28563         ptsname: Avoid test failure on OSF/1 5.1.
28564         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
28565         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
28566         (same_slave): New function.
28567         (main): Use it to compare ptsname's result with the expected file name.
28568
28569 2010-12-22  Bruno Haible  <bruno@clisp.org>
28570
28571         Port extended stdio modules to HP NonStop Kernel.
28572         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
28573         macros.
28574         * lib/fbufmode.c: Update comments.
28575         * lib/fflush.c: Likewise.
28576         * lib/fpurge.c: Likewise.
28577         * lib/freadable.c: Likewise.
28578         * lib/freadahead.c: Likewise.
28579         * lib/freading.c: Likewise.
28580         * lib/freadptr.c: Likewise.
28581         * lib/freadseek.c: Likewise.
28582         * lib/fseeko.c: Likewise.
28583         * lib/fseterr.c: Likewise.
28584         * lib/fwritable.c: Likewise.
28585         * lib/fwriting.c: Likewise.
28586         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
28587
28588 2010-12-22  Bruno Haible  <bruno@clisp.org>
28589
28590         ttyname_r: Work around bug on OSF/1 5.1.
28591         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
28592         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
28593         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
28594         present.
28595         * lib/ttyname_r.c (ttyname_r): Update comments.
28596
28597 2010-12-22  Bruno Haible  <bruno@clisp.org>
28598
28599         round: Implement result sign according to IEEE 754.
28600         * lib/round.c (MIN, MINUS_ZERO): New macros.
28601         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
28602         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
28603         * tests/test-round-ieee.c (main): Likewise.
28604         * tests/test-roundl-ieee.c (main): Likewise.
28605
28606         trunc: Implement result sign according to IEEE 754.
28607         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
28608         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
28609         * tests/test-trunc2.c: Include minus-zero.h.
28610         (MINUS_ZERO): New macro.
28611         (trunc_reference): Keep in sync with lib/trunc.c.
28612         * tests/test-truncf2.c: Include minus-zero.h.
28613         (MINUS_ZERO): New macro.
28614         (truncf_reference): Keep in sync with lib/trunc.c.
28615         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
28616         * tests/test-trunc-ieee.c (main): Likewise.
28617         * tests/test-truncl-ieee.c (main): Likewise.
28618
28619         ceil: Implement result sign according to IEEE 754.
28620         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
28621         (FUNC): Return -0.0 for -1 < x < 0.
28622         * tests/test-ceil2.c: Include minus-zero.h.
28623         (MINUS_ZERO): New macro.
28624         (ceil_reference): Keep in sync with lib/ceil.c.
28625         * tests/test-ceilf2.c: Include minus-zero.h.
28626         (MINUS_ZERO): New macro.
28627         (ceilf_reference): Keep in sync with lib/ceil.c.
28628         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
28629         * tests/test-ceil-ieee.c (main): Likewise.
28630         * tests/test-ceill-ieee.c (main): Likewise.
28631
28632         floor: Implement result sign according to IEEE 754.
28633         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
28634         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
28635         * tests/test-floorf2.c (floorf_reference): Likewise.
28636         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
28637         * tests/test-floor-ieee.c (main): Likewise.
28638         * tests/test-floorl-ieee.c (main): Likewise.
28639
28640 2010-12-22  Bruno Haible  <bruno@clisp.org>
28641
28642         getaddrinfo: Update doc.
28643         * doc/posix-functions/gai_strerror.texi: Return type is also different
28644         on AIX and HP-UX.
28645
28646 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
28647
28648         getaddrinfo, inet_ntop: Update doc for Solaris.
28649         * doc/posix-functions/gai_strerror.texi: Return type is also an
28650         issue on Solaris 9 and earlier.
28651         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
28652         on Solaris 10 and earlier.
28653
28654 2010-12-21  Bruno Haible  <bruno@clisp.org>
28655
28656         New module 'roundl-ieee'.
28657         * modules/roundl-ieee: New file.
28658         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
28659         test whether roundl works according to ISO C 99 with IEC 60559.
28660         * m4/roundl-ieee.m4: New file.
28661         * modules/roundl-ieee-tests: New file.
28662         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
28663         * tests/test-roundl.c (main): Remove signbit tests.
28664         * modules/roundl-tests (Depends-on): Remove signbit.
28665         * doc/posix-functions/roundl.texi: Mention the new module.
28666
28667 2010-12-21  Bruno Haible  <bruno@clisp.org>
28668
28669         New module 'truncl-ieee'.
28670         * modules/truncl-ieee: New file.
28671         * modules/truncl-ieee-tests: New file.
28672         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
28673         * tests/test-truncl.c (main): Remove signbit tests.
28674         * modules/truncl-tests (Depends-on): Remove signbit.
28675         * doc/posix-functions/truncl.texi: Mention the new module.
28676
28677 2010-12-21  Bruno Haible  <bruno@clisp.org>
28678
28679         New module 'ceill-ieee'.
28680         * modules/ceill-ieee: New file.
28681         * modules/ceill-ieee-tests: New file.
28682         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
28683         * tests/test-ceill.c (main): Remove signbit tests.
28684         * modules/ceill-tests (Depends-on): Remove signbit.
28685         * doc/posix-functions/ceill.texi: Mention the new module.
28686
28687 2010-12-21  Bruno Haible  <bruno@clisp.org>
28688
28689         New module 'floorl-ieee'.
28690         * modules/floorl-ieee: New file.
28691         * modules/floorl-ieee-tests: New file.
28692         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
28693         * tests/test-floorl.c (main): Remove signbit tests.
28694         * modules/floorl-tests (Depends-on): Remove signbit.
28695         * doc/posix-functions/floorl.texi: Mention the new module.
28696
28697 2010-12-21  Bruno Haible  <bruno@clisp.org>
28698
28699         New module 'round-ieee'.
28700         * modules/round-ieee: New file.
28701         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
28702         whether round works according to ISO C 99 with IEC 60559.
28703         * m4/round-ieee.m4: New file.
28704         * modules/round-ieee-tests: New file.
28705         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
28706         * tests/test-round1.c (main): Remove signbit tests.
28707         * modules/round-tests (Depends-on): Remove 'signbit'.
28708         * doc/posix-functions/round.texi: Mention the new module.
28709
28710 2010-12-21  Bruno Haible  <bruno@clisp.org>
28711
28712         New module 'trunc-ieee'.
28713         * modules/trunc-ieee: New file.
28714         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
28715         whether trunc works according to ISO C 99 with IEC 60559.
28716         * m4/trunc-ieee.m4: New file.
28717         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
28718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
28719         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
28720         * modules/trunc-ieee-tests: New file.
28721         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
28722         * tests/test-trunc1.c (main): Remove signbit tests.
28723         * modules/trunc-tests (Depends-on): Remove 'signbit'.
28724         * doc/posix-functions/trunc.texi: Mention the new module.
28725
28726 2010-12-21  Bruno Haible  <bruno@clisp.org>
28727
28728         New module 'ceil-ieee'.
28729         * modules/ceil-ieee: New file.
28730         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
28731         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
28732         ISO C 99 with IEC 60559.
28733         * m4/ceil-ieee.m4: New file.
28734         * modules/ceil (Files): Add lib/ceil.c.
28735         (Depends-on): Add 'float'.
28736         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28737         * lib/math.in.h (ceil): New declaration.
28738         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
28739         REPLACE_CEIL.
28740         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
28741         * modules/ceil-ieee-tests: New file.
28742         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
28743         * tests/test-math-c++.cc: Check the signature of 'ceil'.
28744         * doc/posix-functions/ceil.texi: Mention the new module.
28745
28746 2010-12-21  Bruno Haible  <bruno@clisp.org>
28747
28748         New module 'floor-ieee'.
28749         * modules/floor-ieee: New file.
28750         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
28751         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
28752         ISO C 99 with IEC 60559.
28753         * m4/floor-ieee.m4: New file.
28754         * modules/floor (Files): Add lib/floor.c.
28755         (Depends-on): Add 'float'.
28756         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28757         * lib/math.in.h (floor): New declaration.
28758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
28759         REPLACE_FLOOR.
28760         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
28761         * modules/floor-ieee-tests: New file.
28762         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
28763         * tests/test-math-c++.cc: Check the signature of 'floor'.
28764         * doc/posix-functions/floor.texi: Mention the new module.
28765
28766 2010-12-21  Bruno Haible  <bruno@clisp.org>
28767
28768         New module 'roundf-ieee'.
28769         * modules/roundf-ieee: New file.
28770         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
28771         test whether roundf works according to ISO C 99 with IEC 60559.
28772         * m4/roundf-ieee.m4: New file.
28773         * modules/roundf-ieee-tests: New file.
28774         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
28775         * tests/test-roundf1.c (main): Remove signbit tests.
28776         * modules/roundf-tests (Depends-on): Remove 'signbit'.
28777         * doc/posix-functions/roundf.texi: Mention the new module.
28778
28779 2010-12-21  Bruno Haible  <bruno@clisp.org>
28780
28781         New module 'truncf-ieee'.
28782         * modules/truncf-ieee: New file.
28783         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
28784         test whether truncf works according to ISO C 99 with IEC 60559.
28785         * m4/truncf-ieee.m4: New file.
28786         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
28787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
28788         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
28789         * modules/truncf-ieee-tests: New file.
28790         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
28791         * tests/test-truncf1.c (main): Remove signbit tests.
28792         * modules/truncf-tests (Depends-on): Remove 'signbit'.
28793         * doc/posix-functions/truncf.texi: Mention the new module.
28794
28795 2010-12-21  Bruno Haible  <bruno@clisp.org>
28796
28797         New module 'ceilf-ieee'.
28798         * modules/ceilf-ieee: New file.
28799         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
28800         test whether ceilf works according to ISO C 99 with IEC 60559.
28801         * m4/ceilf-ieee.m4: New file.
28802         * modules/ceilf-ieee-tests: New file.
28803         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
28804         * tests/test-ceilf1.c (main): Remove signbit tests.
28805         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
28806         * doc/posix-functions/ceilf.texi: Mention the new module.
28807
28808 2010-12-21  Bruno Haible  <bruno@clisp.org>
28809
28810         New module 'floorf-ieee'.
28811         * modules/floorf-ieee: New file.
28812         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
28813         test whether floorf works according to ISO C 99 with IEC 60559.
28814         * m4/floorf-ieee.m4: New file.
28815         * modules/floorf-ieee-tests: New file.
28816         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
28817         * tests/test-floorf1.c (main): Remove signbit tests.
28818         * modules/floorf-tests (Depends-on): Remove 'signbit'.
28819         * doc/posix-functions/floorf.texi: Mention the new module.
28820
28821 2010-12-21  Bruno Haible  <bruno@clisp.org>
28822
28823         Support for minus zero in autoconf macros.
28824         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
28825         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
28826         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
28827         * tests/minus-zero.h: Update comments.
28828
28829 2010-12-21  Bruno Haible  <bruno@clisp.org>
28830
28831         Tests for module 'ceil'.
28832         * modules/ceil-tests: New file.
28833         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
28834         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
28835
28836 2010-12-21  Bruno Haible  <bruno@clisp.org>
28837
28838         Tests for module 'floor'.
28839         * modules/floor-tests: New file.
28840         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
28841         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
28842
28843 2010-12-21  Bruno Haible  <bruno@clisp.org>
28844
28845         math: Fix indentation.
28846         * lib/math.in.h (floorf): Fix indentation.
28847
28848 2010-12-21  Bruno Haible  <bruno@clisp.org>
28849
28850         Fix cross-compilation guesses on Solaris.
28851         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
28852         not match "solaris2.10".
28853         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28854         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
28855         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
28856
28857 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
28858
28859         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
28860         This fixes a problem observed with the latest coreutils snapshot
28861         that caused a test to fail on Solaris 8.  src/csplit.c's call
28862         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
28863         earlier, instead of returning the number of bytes that would have
28864         been generated; this causes csplit to incorrectly report memory
28865         exhaustion.
28866         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
28867         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
28868         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
28869         comments to match.
28870         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
28871         Fix typo in matching older versions of Solaris: "solaris2.10"
28872         is matched by the shell pattern "solaris2.[0-9]*".  This matters
28873         only for guessing while cross-compiling.
28874         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
28875
28876 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
28877
28878         ftoastr: fix comment again
28879         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28880         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
28881         Also, simplify example a bit by using flags = 0.
28882
28883 2010-12-20  Bruno Haible  <bruno@clisp.org>
28884
28885         round*, trunc*: Update documentation regarding glibc.
28886         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
28887         * doc/posix-functions/round.texi: Likewise.
28888         * doc/posix-functions/roundl.texi: Likewise.
28889         * doc/posix-functions/truncf.texi: Likewise.
28890         * doc/posix-functions/trunc.texi: Likewise.
28891         * doc/posix-functions/truncl.texi: Likewise.
28892
28893 2010-12-20  Bruno Haible  <bruno@clisp.org>
28894
28895         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
28896         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
28897         * doc/posix-functions/round.texi: Likewise.
28898         * doc/posix-functions/roundl.texi: Likewise.
28899
28900 2010-12-20  Bruno Haible  <bruno@clisp.org>
28901
28902         ttyname_r: Add missing declaration on HP-UX 11.
28903         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
28904         HAVE_TTYNAME_R.
28905         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
28906         declared. Set HAVE_TTYNAME_R always.
28907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28908         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
28909         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
28910         HAVE_TTYNAME_R.
28911         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
28912
28913 2010-12-20  Bruno Haible  <bruno@clisp.org>
28914
28915         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
28916         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
28917         * doc/posix-functions/getlogin_r.texi: Likewise.
28918         * tests/test-getlogin.c: Include <errno.h>.
28919         (main): Avoid test failure on HP-UX 11.11.
28920         * tests/test-getlogin_r.c (main): Likewise.
28921
28922 2010-12-20  Bruno Haible  <bruno@clisp.org>
28923
28924         getlogin_r: Add missing declaration on HP-UX 11.
28925         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
28926         declared also when it exists as a function.
28927         * doc/posix-functions/getlogin_r.texi: Document this workaround.
28928
28929 2010-12-20  Bruno Haible  <bruno@clisp.org>
28930
28931         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
28932         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
28933         through wcrtomb.
28934
28935 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
28936
28937         ftoastr: fix comment
28938         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
28939         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
28940
28941 2010-12-19  Bruno Haible  <bruno@clisp.org>
28942
28943         isnan: Ensure it is a macro.
28944         * lib/math.in.h (isnan): Define as a macro if not already a macro.
28945         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
28946         Solaris.
28947
28948 2010-12-19  Bruno Haible  <bruno@clisp.org>
28949
28950         ldexpl test: Fix link error on OSF/1 5.1.
28951         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
28952
28953 2010-12-19  Bruno Haible  <bruno@clisp.org>
28954
28955         wctype: Make it work in C++ mode on OSF/1 5.1.
28956         * lib/wctype.in.h (iswblank): Declare but not define here.
28957         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
28958         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
28959         * modules/wctype (Files): Add lib/iswblank.c.
28960
28961 2010-12-19  Bruno Haible  <bruno@clisp.org>
28962
28963         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
28964         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
28965         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
28966
28967 2010-12-19  Bruno Haible  <bruno@clisp.org>
28968
28969         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
28970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
28971         _POSIX_PII_SOCKET.
28972         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
28973         * doc/posix-functions/recvfrom.texi: Likewise.
28974         * doc/posix-functions/send.texi: Likewise.
28975         * doc/posix-functions/sendto.texi: Likewise.
28976
28977 2010-12-19  Bruno Haible  <bruno@clisp.org>
28978
28979         tcgetsid: Add missing declaration on OSF/1 5.1.
28980         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
28981         HAVE_TCGETSID.
28982         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
28983         Don't set HAVE_TCGETSID.
28984         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
28985         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
28986         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
28987         HAVE_TCGETSID.
28988         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
28989
28990 2010-12-19  Bruno Haible  <bruno@clisp.org>
28991
28992         stdio: Fix problem with popen() declaration on OSF/1 5.1.
28993         * lib/stdio.in.h: During the include_next statement, let recursive
28994         includes of this file include only the system header file.
28995
28996 2010-12-19  Bruno Haible  <bruno@clisp.org>
28997
28998         iconv_open: Fix regression from 2010-12-04.
28999         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
29000         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
29001
29002 2010-12-19  Bruno Haible  <bruno@clisp.org>
29003
29004         stdbool test: Avoid a gcc warning.
29005         * tests/test-stdbool.c (main): Fail if e1 is false.
29006         Reported by Jim Meyering.
29007
29008 2010-12-19  Jim Meyering  <meyering@redhat.com>
29009
29010         setenv: restore to working order
29011         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
29012         mistakenly removed.
29013         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
29014         HAVE_SETENV.
29015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
29016         HAVE_SETENV.
29017
29018 2010-12-19  Bruno Haible  <bruno@clisp.org>
29019
29020         Document some different function declarations on OSF/1 5.1.
29021         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
29022         * doc/posix-functions/inet_ntop.texi: Likewise.
29023         * doc/posix-functions/gethostname.texi: Likewise.
29024         * lib/unistd.in.h (gethostname): Update comment.
29025
29026 2010-12-19  Bruno Haible  <bruno@clisp.org>
29027
29028         doc: Mention vasprintf-posix module.
29029         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
29030         the 'vasprintf-posix' module.
29031         * doc/glibc-functions/vasprintf.texi: Likewise.
29032
29033 2010-12-19  Bruno Haible  <bruno@clisp.org>
29034
29035         unsetenv: Add missing declaration on OSF/1 5.1.
29036         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
29037         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
29038         Don't set HAVE_UNSETENV. In the test program, set _BSD.
29039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
29040         not HAVE_UNSETENV.
29041         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
29042         HAVE_UNSETENV.
29043         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
29044
29045 2010-12-19  Bruno Haible  <bruno@clisp.org>
29046
29047         setenv: Add missing declaration on OSF/1 5.1.
29048         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
29049         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
29050         declared. Don't set HAVE_SETENV.
29051         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
29052         not HAVE_SETENV.
29053         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
29054         HAVE_SETENV.
29055         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
29056
29057 2010-12-19  Bruno Haible  <bruno@clisp.org>
29058
29059         nl_langinfo tests: Avoid gcc warning.
29060         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
29061
29062 2010-12-19  Bruno Haible  <bruno@clisp.org>
29063
29064         mknod: Avoid error in C++ mode on OSF/1 with GCC.
29065         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
29066         _GL_CXXALIAS_SYS.
29067
29068 2010-12-19  Bruno Haible  <bruno@clisp.org>
29069
29070         stdbool: Relax test.
29071         * tests/test-stdbool.c (e): Don't require that casts from a variable's
29072         address to 'bool' work in static initializer, for compilers other than
29073         GCC.
29074
29075 2010-12-19  Bruno Haible  <bruno@clisp.org>
29076
29077         ftello: Add missing declaration on OSF/1 5.1.
29078         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
29079         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
29080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
29081         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
29082         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
29083
29084 2010-12-19  Bruno Haible  <bruno@clisp.org>
29085
29086         fseeko: Add missing declaration on OSF/1 5.1.
29087         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
29088         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
29089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
29090         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
29091         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
29092
29093 2010-12-19  Bruno Haible  <bruno@clisp.org>
29094
29095         fchdir: Add missing declaration on OSF/1 5.1.
29096         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
29097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
29098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
29099         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
29100         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
29101
29102 2010-12-19  Bruno Haible  <bruno@clisp.org>
29103
29104         relocatable-prog-wrapper: Separate from relocatable-prog.
29105         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
29106         uninstall-relocwrapper rule here.
29107         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
29108         Reported by Ian Beckwith <ianb@erislabs.net>.
29109
29110 2010-12-19  Bruno Haible  <bruno@clisp.org>
29111
29112         unistr/u8-mbsnlen: Add missing dependency.
29113         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
29114         Reported by Ian Beckwith <ianb@erislabs.net>.
29115
29116 2010-12-19  Bruno Haible  <bruno@clisp.org>
29117
29118         iconv: Make it possible again to use this module without 'iconv-h'.
29119         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
29120         if it is not defined.
29121         Reported by Ian Beckwith <ianb@erislabs.net>.
29122
29123 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29124
29125         acl: port to Solaris 8 when copying from tmpfs to ufs
29126         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
29127         error number.  Problem observed on Solaris 8 with latest
29128         coreutils, with "mv A B", where A is on a tmpfs file system and B
29129         is on a ufs file system.  This caused coreutils' mv/part-symlink
29130         test to fail.
29131
29132         tests: set fail=0 at start
29133         * tests/init.sh (setup_): Move fail=0 initialization here ...
29134         (mktempd_): ... from here, so that tests can rely on fail being
29135         set to 0 initially.  This fixes a problem in coreutils; see:
29136         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
29137
29138 2010-12-18  Bruno Haible  <bruno@clisp.org>
29139
29140         memmem-simple: Stylistic changes.
29141         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
29142         Fix preprocessor directive indentation.
29143
29144 2010-12-15  Pádraig Brady <P@draigBrady.com>
29145
29146         memmem, memmem-simple: reorganize and expand empty needle check
29147         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
29148         functional checks to memmem-simple so that one has a fully functional
29149         memmem by using just this module.
29150         Restrict the performance only check to the memmem module.
29151         Also expand the empty needle check to ensure the correct
29152         pointer is returned, not just a non NULL pointer.
29153         * doc/glibc-functions/memmem.texi: Rearrange the portability
29154         documentation to correlate with the rearranged checks.
29155         Clarify exactly how the memmem and memmem-simple modules
29156         relate to each other.
29157
29158 2010-12-15  Pádraig Brady <P@draigBrady.com>
29159             Bruno Haible  <bruno@clisp.org>
29160
29161         Improve cross-compilation guesses for uClibc.
29162         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
29163         that uClibc does not have the glibc bug.
29164         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
29165         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
29166
29167 2010-12-14  Eric Blake  <eblake@redhat.com>
29168
29169         configmake: provide fallbacks for oldest supported autotools
29170         * m4/configmake.m4: New file.
29171         * modules/configmake (Files): Ship it.
29172         (configure.ac): Use it to guarantee fallbacks.
29173
29174 2010-12-13  Pádraig Brady <P@draigBrady.com>
29175
29176         read-file: Improve handling of large files
29177         * lib/read-file.c (fread_file): Minimize realloc()s
29178         for regular files, and better manage sizes around SIZE_MAX.
29179
29180 2010-12-13  Eric Blake  <eblake@redhat.com>
29181
29182         cloexec, fcntl: relax license
29183         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
29184         consent from all contributors.
29185         * modules/fcntl (License): Likewise.
29186
29187 2010-12-10  Bruno Haible  <bruno@clisp.org>
29188
29189         Tests for module 'pipe-posix'.
29190         * modules/pipe-posix-tests: New file.
29191         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
29192
29193 2010-12-10  Bruno Haible  <bruno@clisp.org>
29194
29195         pipe-posix: Make it work in C++ mode.
29196         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
29197         (pipe): Use common idiom, not a macro definition.
29198         * lib/pipe.c: New file.
29199         * m4/pipe.m4: New file.
29200         * modules/pipe-posix (Description): Enhance.
29201         (Files): Add lib/pipe.c, m4/pipe.m4.
29202         (configure.ac): Invoke gl_FUNC_PIPE.
29203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
29204         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
29205         * tests/test-unistd-c++.cc: Check the signature of pipe.
29206
29207 2010-12-10  Bruno Haible  <bruno@clisp.org>
29208
29209         Rename module 'pipe' to 'spawn-pipe'.
29210         * modules/spawn-pipe: New file, renamed from modules/pipe.
29211         (Files, configure.ac, Makefile.am): Update.
29212         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
29213         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
29214         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
29215         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
29216         "spawn-pipe.h" instead of "pipe.h".
29217         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
29218         to gl_SPAWN_PIPE.
29219         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
29220         (Files, Makefile.am): Update.
29221         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
29222         Update.
29223         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
29224         Include "spawn-pipe.h" instead of "pipe.h".
29225         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
29226         * lib/javacomp.c: Likewise.
29227         * lib/javaversion.c: Likewise.
29228         * lib/pipe-filter-gi.c: Likewise.
29229         * lib/pipe-filter-ii.c: Likewise.
29230         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
29231         * modules/javacomp (Depends-on): Likewise.
29232         * modules/javaversion (Depends-on): Likewise.
29233         * modules/pipe-filter-gi (Depends-on): Likewise.
29234         * modules/pipe-filter-ii (Depends-on): Likewise.
29235         * MODULES.html.sh (Executing programs): Update.
29236         * NEWS: Mention the change.
29237
29238 2010-12-10  Eric Blake  <eblake@redhat.com>
29239
29240         pipe-posix: new module
29241         * modules/pipe-posix: New file.
29242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
29243         (gl_UNISTD_H): Check for declaration.
29244         * modules/unistd (Makefile.am): Substitute it.
29245         * lib/unistd.in.h (pipe): Provide it for mingw.
29246         * doc/posix-functions/pipe.texi (pipe): Update documentation.
29247         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
29248
29249 2010-12-07  Bruno Haible  <bruno@clisp.org>
29250
29251         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
29252         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
29253         u8_strcmp_gnu.
29254         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
29255
29256 2010-12-06  Bruno Haible  <bruno@clisp.org>
29257
29258         Update internal documentation.
29259         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
29260
29261 2010-12-04  Bruno Haible  <bruno@clisp.org>
29262
29263         Put more information about failed tests into the test return codes.
29264         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
29265         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
29266         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
29267         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
29268         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
29269         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29270         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29271         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29272         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
29273         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29274         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
29275         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
29276         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
29277         * m4/stdint.m4 (gl_STDINT_H): Likewise.
29278         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
29279         returns a bit mask.
29280         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
29281         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
29282         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
29283         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
29284         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
29285         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29286         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29287         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
29288         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29289         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29290         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
29291         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29292         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29293         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29294         * m4/link.m4 (gl_FUNC_LINK): Likewise.
29295         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
29296         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
29297         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
29298         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29299         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
29300         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29301         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29302         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
29303         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29304         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29305         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
29306         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
29307         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29308         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29309         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
29310         gl_PRINTF_PRECISION): Likewise.
29311         * m4/regex.m4 (gl_REGEX): Likewise.
29312         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
29313         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
29314         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
29315         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29316         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29318         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
29319         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
29320         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29321         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29322         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
29323         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
29324         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29325         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29326         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
29327         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29328         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
29329         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29330         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29331         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
29332         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
29333         enumerated value.
29334         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
29335
29336 2010-12-04  Bruno Haible  <bruno@clisp.org>
29337
29338         Update for Solaris 11 2010-11.
29339         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
29340         Express, released in November 2010.
29341
29342 2010-12-04  Bruno Haible  <bruno@clisp.org>
29343
29344         nproc: Relax license.
29345         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
29346         and Paul Eggert.
29347         Requested by Ludovic Courtès <ludo@gnu.org>.
29348
29349 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29350
29351         utimecmp: fine-grained src to nearby coarse-grained dest
29352
29353         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
29354         and the source is on a file system with higher-resolution time
29355         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
29356         not work, and the time stamps are close together, the algorithm to
29357         determine the exact resolution from the read-back mtime was buggy:
29358         it had a "!=" where it should have had an "==".  This bug has been
29359         in the code ever since it was introduced to gnulib.
29360         Problem reported by Dan Jacobson in
29361         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
29362
29363 2010-11-30  Bruno Haible  <bruno@clisp.org>
29364
29365         strerror_r-posix: Fix autoconf test.
29366         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
29367
29368 2010-11-28  Bruno Haible  <bruno@clisp.org>
29369             Paul Eggert  <eggert@cs.ucla.edu>
29370
29371         Tests for module 'getdomainname'.
29372         * modules/getdomainname-tests: New file.
29373         * tests/test-getdomainname.c: New file, based on
29374         tests/test-gethostname.c.
29375
29376 2010-11-28  Bruno Haible  <bruno@clisp.org>
29377             Paul Eggert  <eggert@cs.ucla.edu>
29378
29379         getdomainname: Use the system function when possible.
29380         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
29381         (getdomainname): Replace if needed. Provide the declaration if it is
29382         missing. Don't use _GL_CXXALIAS_SYS_CAST.
29383         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
29384         (getdomainname): When the system has getdomainname, call the system
29385         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
29386         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
29387         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
29388         found in libnsl. Look for the declaration also in <netdb.h>. Replace
29389         the function if its second argument is of type 'int' or if it is found
29390         in libnsl.
29391         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
29392         <sys/systeminfo.h> and sysinfo().
29393         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
29394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29395         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
29396         HAVE_GETDOMAINNAME.
29397         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
29398         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
29399         * doc/glibc-functions/getdomainname.texi: Document the problems with
29400         the getdomainname declaration.
29401
29402 2010-11-28  Bruno Haible  <bruno@clisp.org>
29403
29404         sys_socket: Ensure ss_family field on AIX.
29405         * lib/sys_socket.in.h (ss_family): New macro definition.
29406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
29407         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
29408         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
29409         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29410         * modules/sys_socket (Makefile.am): Substitute
29411         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
29412         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
29413
29414 2010-11-27  Bruno Haible  <bruno@clisp.org>
29415
29416         readline: Improve configure output.
29417         * m4/readline.m4 (gl_FUNC_READLINE): Make the
29418         "checking for readline..." result understandable.
29419
29420 2010-11-27  Bruno Haible  <bruno@clisp.org>
29421
29422         *printf-posix: Detect a bug on Solaris 10/x86.
29423         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
29424         for floating-point output.
29425         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
29426         directive.
29427         * tests/test-snprintf-posix.h (test_function): Likewise.
29428         * tests/test-sprintf-posix.h (test_function): Likewise.
29429         * tests/test-vasprintf-posix.c (test_function): Likewise.
29430         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
29431         * doc/posix-functions/printf.texi: Likewise.
29432         * doc/posix-functions/snprintf.texi: Likewise.
29433         * doc/posix-functions/sprintf.texi: Likewise.
29434         * doc/posix-functions/vfprintf.texi: Likewise.
29435         * doc/posix-functions/vprintf.texi: Likewise.
29436         * doc/posix-functions/vsnprintf.texi: Likewise.
29437         * doc/posix-functions/vsprintf.texi: Likewise.
29438         * doc/glibc-functions/obstack_printf.texi: Likewise.
29439         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
29440
29441 2010-11-27  Bruno Haible  <bruno@clisp.org>
29442
29443         Fix link error when module libunistring-optional is in use.
29444         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
29445         * modules/striconveha-tests (Makefile.am): Likewise.
29446
29447 2010-11-27  Bruno Haible  <bruno@clisp.org>
29448
29449         regex: Mention link dependencies.
29450         * modules/regex (Link): New section.
29451         * modules/rpmatch (Link): Likewise.
29452         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
29453
29454 2010-11-27  Bruno Haible  <bruno@clisp.org>
29455
29456         ftoastr: Fix compilation error on Solaris.
29457         * lib/ftoastr.c: Include <config.h>.
29458
29459 2010-11-27  Bruno Haible  <bruno@clisp.org>
29460
29461         getloadavg: Update documentation.
29462         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
29463
29464 2010-11-27  Bruno Haible  <bruno@clisp.org>
29465
29466         sys_socket: Fix test whether the functions are declared.
29467         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
29468         not <sys/select.h>.
29469
29470 2010-11-27  Bruno Haible  <bruno@clisp.org>
29471
29472         getpass: Make sure to get system declaration on some platforms.
29473         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
29474         gl_USE_SYSTEM_EXTENSIONS.
29475         * modules/getpass (Depends-on): Add extensions.
29476
29477 2010-11-26  Bruno Haible  <bruno@clisp.org>
29478
29479         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
29480         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
29481         'iconv' module is present.
29482         (ICONV_CONST): New macro.
29483         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
29484         ICONV_CONST.
29485         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
29486         set ICONV_CONST.
29487         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
29488         here.
29489         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
29490         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
29491         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
29492         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
29493         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
29494         present.
29495
29496 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29497
29498         ftoastr: comment fix
29499         * lib/ftoastr.c: "little" -> "little or no" in comment
29500
29501 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
29502
29503         stdint: port to GCC 4.3 + OSX + Octave
29504         On this platform, stdint.h is buggy and defines int64_t to long
29505         long int.  The replacement defined it to long int, causing
29506         problems with C++ style name mangling.  Instead, trust the system
29507         definition if INT64_MAX is defined, and likewise for the unsigned
29508         variant.   Problem reported by Jarno Rajahalme in
29509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
29510         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
29511         and don't mess with int64_t and INT64_MAX in this case.
29512         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
29513
29514 2010-11-24  Bruno Haible  <bruno@clisp.org>
29515
29516         doc: Corrections regarding MacOS X 10.4 and 10.5.
29517         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
29518         MacOS X.
29519         Reported by Simon Josefsson.
29520
29521 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
29522
29523         Uninstall ".bin" files installed by relocwrapper.
29524         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
29525         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
29526         unless it is already there.
29527
29528 2010-11-21  Bruno Haible  <bruno@clisp.org>
29529
29530         Update for NetBSD 5.0.
29531         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29532         NetBSD; the test fails on NetBSD 5.0.
29533         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29534         about NetBSD.
29535
29536 2010-11-21  Bruno Haible  <bruno@clisp.org>
29537
29538         Update for HP-UX 11.23 and HP-UX 11.31.
29539         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
29540         HP-UX.
29541
29542 2010-11-21  Bruno Haible  <bruno@clisp.org>
29543
29544         Update for MacOS X 10.5.
29545         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
29546         MacOS X; the test fails on MacOS X 10.5.8.
29547         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
29548         about MacOS X.
29549
29550 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
29551
29552         bootstrap: add bootstrap_sync option.
29553         See discussion at
29554         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
29555         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
29556         * build-aux/bootstrap: Accept --bootstrap-sync to update
29557         bootstrap if it is not identical to the local gnulib's
29558         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
29559         enable this by default.  Accept --no-bootstrap-sync to disable
29560         it.
29561
29562 2010-11-20  Bruno Haible  <bruno@clisp.org>
29563
29564         Ensure that <features.h> is included before __GLIBC__ is tested.
29565         * lib/printf-parse.h: Include <features.h>.
29566         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
29567         Reported by Mike Frysinger <vapier@gentoo.org>.
29568
29569         Ensure that <features.h> is included before __GLIBC__ is tested.
29570         * lib/wchar.in.h: Include <features.h>.
29571         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
29572         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
29573         Reported by Mike Frysinger <vapier@gentoo.org>.
29574
29575         Ensure that <features.h> is included before __GLIBC__ is tested.
29576         * lib/arpa_inet.in.h: Include <features.h>.
29577         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
29578         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
29579         Reported by Mike Frysinger <vapier@gentoo.org>.
29580
29581         Ensure that <features.h> is included before __GLIBC__ is tested.
29582         * build-aux/link-warning.h: Include <features.h>.
29583         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
29584         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
29585         Reported by Mike Frysinger <vapier@gentoo.org>.
29586
29587         Ensure that <features.h> is included before __GLIBC__ is tested.
29588         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
29589         Reported by Mike Frysinger <vapier@gentoo.org>.
29590
29591 2010-11-20  Bruno Haible  <bruno@clisp.org>
29592
29593         memmem: Fix autoconf test.
29594         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
29595
29596 2010-11-20  Bruno Haible  <bruno@clisp.org>
29597
29598         Port to uClibc.
29599         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
29600         * lib/fcntl.in.h: Likewise.
29601         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
29602         * lib/mbrtowc.c (mbrtowc): Likewise.
29603         * lib/relocatable.c (find_shared_library_fullname): Likewise.
29604         * lib/strerror_r.c: Likewise.
29605         * lib/unistr/u8-strnlen.c: Likewise.
29606         * lib/vasnprintf.c (decimal_point_char): Likewise.
29607         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
29608         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29609         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
29610         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
29611         * tests/test-sigaction.c (handler, main): Likewise.
29612         * lib/freading.h: Treat uClibc like a non-glibc platform.
29613         * lib/freading.c: Likewise.
29614         * lib/gettext.h: Likewise.
29615         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
29616         Likewise.
29617         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
29618         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
29619         * lib/propername.c (proper_name_utf8): Likewise.
29620         * lib/spawn.in.h: Likewise.
29621         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
29622         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
29623         mem_cd_iconveh_internal): Likewise.
29624         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
29625         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
29626         strstr, strcasestr): Likewise.
29627         * lib/unicodeio.c (unicode_to_mb): Likewise.
29628         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
29629         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
29630         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
29631         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
29632         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
29633         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
29634         * lib/unistr/u8-stpncpy.c: Likewise.
29635         * lib/vasnprintf.c (VASNPRINTF): Likewise.
29636         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
29637         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
29638         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
29639         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
29640         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
29641         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
29642         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
29643         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
29644         Likewise.
29645         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
29646         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
29647         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29648         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29649         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29650         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29651         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29652         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
29653         * tests/test-getopt.h (OPTIND_MIN): Likewise.
29654         * tests/test-striconveha.c (main): Likewise.
29655         * tests/test-vasnprintf-posix.c (test_function): Likewise.
29656         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
29657         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
29658         * doc/posix-functions/getline.texi: Likewise.
29659         Reported by Mike Frysinger <vapier@gentoo.org>.
29660
29661 2010-11-20  Bruno Haible  <bruno@clisp.org>
29662
29663         nproc: Fix condition.
29664         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
29665         HAVE_PTHREAD_AFFINITY_NP.
29666
29667 2010-11-20  Bruno Haible  <bruno@clisp.org>
29668
29669         Fix a comment.
29670         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
29671
29672 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
29673
29674         ftoastr: don't assume snprintf
29675         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
29676         Implement a subset of snprintf here, by using sprintf safely.
29677         * modules/ftoastr (Depends-on): Remove snprintf.
29678
29679 2010-11-19  Jim Meyering  <meyering@redhat.com>
29680
29681         test-rename.h: fix compilation failure
29682         * tests/test-rename.h (test_rename): Add omitted "}".
29683
29684 2010-11-17  Jim Meyering  <meyering@redhat.com>
29685
29686         maint.mk: add a URL discussing the no-@acronym policy
29687         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
29688
29689 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29690
29691         ftoastr: depend on snprintf, improve comments
29692         * lib/ftoastr.c: Also mention Loitsch's draft.
29693         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
29694         needed in the current implementation, but it might simplify
29695         speeding up the code later.
29696         * modules/ftoastr: Depend on snprintf; this improves portability.
29697         Suggested by Bruno Haible in the same email.
29698
29699         ftoastr: port to hosts lacking strtof and strtold
29700         Problem reported by Bruno Haible in
29701         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
29702         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
29703         environment and strtold (and presumably strtof) are not available.
29704         * modules/ftoastr (Files): Add m4/c-strtod.m4.
29705         (configure.ac): Require gl_C99_STRTOLD.
29706
29707 2010-11-18  Bruno Haible  <bruno@clisp.org>
29708
29709         c-strtold: Avoid link error on AIX 7.
29710         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
29711         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
29712         (gl_C_STRTOLD): Test whether strtold_l exists.
29713         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29714
29715 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29716
29717         intprops: new macro INT_BITS_STRLEN_BOUND
29718         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
29719         ftoastr.h.  This exposes an internal of intprops.h that was formerly
29720         not exposed.  Also, it uses a slightly tighter bound than before;
29721         though this makes no practical difference, we might as well be as
29722         tight as we easily can.
29723
29724         ftoastr: new module, for lossless conversion of floats to short strings
29725         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
29726         * modules/ftoastr: New files.
29727
29728 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29729
29730         bootstrap: port to Solaris sed
29731         * build-aux/bootstrap (get_version): Port to Solaris sed.
29732         See Ralf Wildenhues's note in
29733         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
29734
29735 2010-11-14  Jim Meyering  <meyering@redhat.com>
29736
29737         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
29738         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
29739         and move definition closer to sole use.
29740
29741 2010-11-13  Jim Meyering  <meyering@redhat.com>
29742
29743         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
29744         Now we require at least autoconf-2.59, which means the work-around
29745         is no longer needed.
29746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
29747         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29748         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
29749         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
29750         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
29751
29752 2010-11-13  Bruno Haible  <bruno@clisp.org>
29753
29754         rename, renameat: Avoid test failures at NFS mounted locations.
29755         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
29756         functions.
29757         (test_rename): Use assert_nonexistent.
29758         * tests/test-rename.c: Include <dirent.h>.
29759         * tests/test-renameat.c: Likewise.
29760         Reported by Gary V. Vaughan <gary@gnu.org>.
29761
29762         rename, renameat: Document Linux bug with NFS
29763         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
29764         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
29765         * doc/posix-functions/renameat.texi: Likewise.
29766         Suggested by Eric Blake.
29767
29768 2010-11-13  Bruno Haible  <bruno@clisp.org>
29769
29770         rename test: Add comments.
29771         * tests/test-rename.h (test_rename): Add structure and comments.
29772
29773 2010-11-13  Eric Blake  <eblake@redhat.com>
29774
29775         maintainer-makefile: cover a few more files
29776         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
29777         scripts generated within C files, for libvirt.
29778
29779 2010-11-13  Bruno Haible  <bruno@clisp.org>
29780
29781         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
29782         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
29783         character, return the number of bytes that belong together, not always
29784         1.
29785         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
29786         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
29787         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
29788         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
29789         number of bytes of an invalid character.
29790         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
29791         (main): Invoke it.
29792         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
29793         results.
29794         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
29795         malformed byte sequences.
29796         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
29797         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
29798         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
29799         Reported by Ben Pfaff and Paolo Bonzini.
29800
29801 2010-11-13  Bruno Haible  <bruno@clisp.org>
29802
29803         openat: Work around glibc bug with fchownat() and empty file names.
29804         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
29805         (gl_FUNC_FCHOWNAT): Invoke it.
29806         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
29807         * doc/posix-functions/fchownat.texi: Document the glibc bug.
29808         Reported by Gary V. Vaughan <gary@gnu.org>.
29809
29810 2010-11-13  Bruno Haible  <bruno@clisp.org>
29811
29812         openat: Ensure autoconf macro ordering.
29813         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
29814         gl_USE_SYSTEM_EXTENSIONS.
29815         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
29816
29817 2010-11-13  Bruno Haible  <bruno@clisp.org>
29818
29819         Update comments.
29820         * lib/unistr/u8-check.c: Update file name in comments.
29821         * lib/unistr/u8-mblen.c: Likewise.
29822         * lib/unistr/u8-prev.c: Likewise.
29823         * lib/unistr/u8-strmblen.c: Likewise.
29824         * lib/unistr/u8-strmbtouc.c: Likewise.
29825
29826 2010-11-13  Jim Meyering  <meyering@redhat.com>
29827
29828         tests: avoid test failure on Solaris 10 due to lack of PATH export
29829         * tests/test-update-copyright.sh: Don't forget to export PATH.
29830
29831         init.sh: ensure that IFS is defined, just in case...
29832         * tests/init.sh (setup_): Ensure that IFS is defined,
29833         so that saving and restoring it works as expected.  This
29834         appears to be useful at least for an old version of dash
29835         from a long time ago (RH 6).  See here for details:
29836         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
29837
29838         maint.mk: tighten "test a == b" check
29839         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
29840         test to files that contain something like #!/bin/sh.
29841         Without this, coreutils would get two false positives in
29842         the comments of C source files.
29843
29844 2010-11-12  Eric Blake  <eblake@redhat.com>
29845
29846         bootstrap: fix typo in previous attempt
29847         * build-aux/bootstrap (buildreq): Correct the grouping.
29848         Reported by Paul Eggert.
29849
29850         maintainer-makefile: prohibit test x == x
29851         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
29852         Based on a report by Matthias Bolte.
29853
29854         bootstrap: allow FreeBSD gzip
29855         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
29856         which has no '.' and goes to stderr.
29857         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
29858         Reported by Matthias Bolte.
29859
29860         maintainer-makefile: check for i18n setup
29861         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
29862         will likely work.
29863
29864 2010-11-12  Bruno Haible  <bruno@clisp.org>
29865
29866         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
29867         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
29868         * lib/nanosleep.c (nanosleep): Likewise.
29869
29870 2010-11-11  Bruno Haible  <bruno@clisp.org>
29871
29872         fcntl-h: Fix for use of C++ on glibc systems.
29873         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
29874         also on glibc systems in C++ mode.
29875         Reported by Gary V. Vaughan <gary@gnu.org>.
29876
29877 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29878
29879         mknod: avoid false failure with dash
29880         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
29881
29882 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
29883
29884         unlink: Fix "is it should" typo in diagnostic.
29885         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
29886         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
29887
29888 2010-11-11  Bruno Haible  <bruno@clisp.org>
29889
29890         Tests for module 'strerror_r-posix'.
29891         * modules/strerror_r-posix-tests: New file.
29892         * tests/test-strerror_r.c: New file.
29893         * tests/test-string-c++.cc: Check the signature of strerror_r.
29894
29895         New module 'strerror_r-posix'.
29896         * lib/string.in.h (strerror_r): New declaration.
29897         * lib/strerror_r.c: New file.
29898         * m4/strerror_r.m4: New file.
29899         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
29900         of strerror_r.
29901         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
29902         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29903         * modules/strerror_r-posix: New file.
29904         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
29905         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
29906         * doc/posix-functions/strerror_r.texi: Mention the new module and the
29907         portability problems.
29908
29909 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
29910
29911         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
29912         line is also considered for output. Quoted function name in shell
29913         command, so temporary files for functions like MyClass::operator()
29914         are removed correctly without errors.
29915
29916 2010-11-09  Bruno Haible  <bruno@clisp.org>
29917
29918         * doc/posix-functions/strerror.texi: List more failing platforms.
29919
29920         * doc/posix-functions/strerror.texi: Add a comment.
29921
29922 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
29923
29924         fdopendir: fix bug on MacOS X when low on file descriptors
29925
29926         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
29927         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
29928         All callers changed.
29929         (fdopendir): Invoke save_cwd at the top level, not after using
29930         multiple dup() calls to use up file descriptors.  Then retry
29931         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
29932         less than the maximum number of open file descriptors, because
29933         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
29934         on Mac OS X 10.6.4 for tar 1.24
29935         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
29936         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
29937         and for tar 1.25
29938         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
29939
29940 2010-11-07  Bruno Haible  <bruno@clisp.org>
29941
29942         vasnprintf: Support I flag on glibc systems.
29943         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
29944         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
29945         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
29946         snprintf function.
29947         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
29948         glibc systems.
29949         * tests/test-vasnprintf-posix3.c: New file.
29950         * modules/vasnprintf-posix-tests (Files): Add it.
29951         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
29952
29953 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29954
29955         [html] Fix copy/paste bug: Use unique name for compiler warnings.
29956         * MODULES.html.sh: For compiler warnings, use name
29957         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
29958
29959 2010-11-05  Eric Blake  <eblake@redhat.com>
29960
29961         ceil, floor: avoid spurious failure with icc
29962         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
29963         [denormals-as-zero] when optimizing without -mieee-fp option.
29964         * tests/test-floorf2.c (floorf_reference): Likewise.
29965         * tests/test-ceilf1.c (dummy): New function.
29966         (main): Use it to outsmart icc's optimization.
29967         * tests/test-floorf1.c (dummy, main): Likewise.
29968
29969         tests: require working signbit
29970         * modules/ceilf-tests (Depends-on): Add signbit.
29971         * modules/ceill-tests (Depends-on): Likewise.
29972         * modules/floorf-tests (Depends-on): Likewise.
29973         * modules/floorl-tests (Depends-on): Likewise.
29974         * modules/round-tests (Depends-on): Likewise.
29975         * modules/roundf-tests (Depends-on): Likewise.
29976         * modules/roundl-tests (Depends-on): Likewise.
29977         * modules/trunc-tests (Depends-on): Likewise.
29978         * modules/truncf-tests (Depends-on): Likewise.
29979         * modules/truncl-tests (Depends-on): Likewise.
29980
29981         strtod: work around icc bug
29982         * lib/strtod.c (minus_zero): Define to working value.
29983         (strtod): Use it to avoid icc bug.
29984
29985         copysign: enhance tests
29986         * modules/copysign-tests (Files): Add minus-zero.h.
29987         * tests/test-copysign.c (main): Also test zeros.
29988
29989 2010-11-04  Eric Blake  <eblake@redhat.com>
29990
29991         ceil, floor, round, trunc: enhance tests of -0
29992         * tests/test-ceilf1.c (main): Ensure correct sign of result.
29993         * tests/test-ceill.c (main): Likewise.
29994         * tests/test-floorf1.c (main): Likewise.
29995         * tests/test-floorl.c (main): Likewise.
29996         * tests/test-round1.c (main): Likewise.
29997         * tests/test-roundf1.c (main): Likewise.
29998         * tests/test-roundl.c (main): Likewise.
29999         * tests/test-trunc1.c (main): Likewise.
30000         * tests/test-truncf1.c (main): Likewise.
30001         * tests/test-truncl.c (main): Likewise.
30002
30003 2010-11-04  Eric Blake  <eblake@redhat.com>
30004
30005         frexp, tests: work around ICC bug with -zero
30006         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
30007         works with more compilers.
30008         * tests/minus-zero.h: New file.
30009         * modules/ceilf-tests (Files): Include it.
30010         * modules/ceill-tests (Files): Likewise.
30011         * modules/floorf-tests (Files): Likewise.
30012         * modules/floorl-tests (Files): Likewise.
30013         * modules/frexp-nolibm-tests (Files): Likewise.
30014         * modules/frexp-tests (Files): Likewise.
30015         * modules/frexpl-nolibm-tests (Files): Likewise.
30016         * modules/frexpl-tests (Files): Likewise.
30017         * modules/isnan-tests (Files): Likewise.
30018         * modules/isnand-nolibm-tests (Files): Likewise.
30019         * modules/isnand-tests (Files): Likewise.
30020         * modules/isnanf-nolibm-tests (Files): Likewise.
30021         * modules/isnanf-tests (Files): Likewise.
30022         * modules/isnanl-nolibm-tests (Files): Likewise.
30023         * modules/isnanl-tests (Files): Likewise.
30024         * modules/round-tests (Files): Likewise.
30025         * modules/roundf-tests (Files): Likewise.
30026         * modules/roundl-tests (Files): Likewise.
30027         * modules/ldexpl-tests (Files): Likewise.
30028         * modules/signbit-tests (Files): Likewise.
30029         * modules/snprintf-posix-tests (Files): Likewise.
30030         * modules/sprintf-posix-tests (Files): Likewise.
30031         * modules/strtod-tests (Files): Likewise.
30032         * modules/trunc-tests (Files): Likewise.
30033         * modules/truncf-tests (Files): Likewise.
30034         * modules/truncl-tests (Files): Likewise.
30035         * modules/vsnprintf-posix-tests (Files): Likewise.
30036         * modules/vsprintf-posix-tests (Files): Likewise.
30037         * modules/vasnprintf-posix-tests (Files): Likewise.
30038         * modules/vasprintf-posix-tests (Files): Likewise.
30039         * tests/test-ceilf1.c (main): Use it.
30040         * tests/test-ceill.c (main): Likewise.
30041         * tests/test-floorf1.c (main): Likewise.
30042         * tests/test-floorl.c (main): Likewise.
30043         * tests/test-frexp.c (main): Likewise.
30044         * tests/test-frexpl.c (main): Likewise.
30045         * tests/test-isnan.c (main): Likewise.
30046         * tests/test-isnand.h (main): Likewise.
30047         * tests/test-isnanf.h (main): Likewise.
30048         * tests/test-isnanl.h (main): Likewise.
30049         * tests/test-ldexpl.c (main): Likewise.
30050         * tests/test-round.c (main): Likewise.
30051         * tests/test-roundf.c (main): Likewise.
30052         * tests/test-roundl.c (main): Likewise.
30053         * tests/test-signbit.c (test_signbitf, test_signbitd)
30054         (test_signbitl): Likewise.
30055         * tests/test-snprintf-posix.h (test_function): Likewise.
30056         * tests/test-sprintf-posix.h (test_function): Likewise.
30057         * tests/test-strtod.c (main): Likewise.
30058         * tests/test-trunc1.c (main): Likewise.
30059         * tests/test-truncf1.c (main): Likewise.
30060         * tests/test-truncl.c (main): Likewise.
30061
30062         isnanl: work around icc bug
30063         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
30064
30065 2010-11-03  Eric Blake  <eblake@redhat.com>
30066
30067         tests: fix compiler warnings
30068         * tests/test-getopt.h (test_getopt): Fix condition.
30069         * tests/test-getopt_long.h (test_getopt_long): Likewise.
30070         * tests/test-pipe2.c (main): Likewise.
30071         * tests/test-quotearg-simple.c (main): Avoid icc warning.
30072
30073         utimens: fix broken m4 test
30074         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
30075
30076 2010-10-28  Bruno Haible  <bruno@clisp.org>
30077
30078         posix_spawn*, getdtablesize: Relax license.
30079         * modules/posix_spawn (License): Change to LGPLv2+.
30080         * modules/posix_spawnp (License): Likewise.
30081         * modules/posix_spawn-internal (License): Likewise.
30082         * modules/posix_spawnattr_init (License): Likewise.
30083         * modules/posix_spawnattr_getflags (License): Likewise.
30084         * modules/posix_spawnattr_setflags (License): Likewise.
30085         * modules/posix_spawnattr_getpgroup (License): Likewise.
30086         * modules/posix_spawnattr_setpgroup (License): Likewise.
30087         * modules/posix_spawnattr_getschedparam (License): Likewise.
30088         * modules/posix_spawnattr_setschedparam (License): Likewise.
30089         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
30090         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
30091         * modules/posix_spawnattr_getsigdefault (License): Likewise.
30092         * modules/posix_spawnattr_setsigdefault (License): Likewise.
30093         * modules/posix_spawnattr_getsigmask (License): Likewise.
30094         * modules/posix_spawnattr_setsigmask (License): Likewise.
30095         * modules/posix_spawnattr_destroy (License): Likewise.
30096         * modules/posix_spawn_file_actions_init (License): Likewise.
30097         * modules/posix_spawn_file_actions_addclose (License): Likewise.
30098         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
30099         * modules/posix_spawn_file_actions_addopen (License): Likewise.
30100         * modules/posix_spawn_file_actions_destroy (License): Likewise.
30101         * modules/getdtablesize (License): Likewise.
30102         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
30103
30104 2010-10-26  Bruno Haible  <bruno@clisp.org>
30105
30106         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
30107         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
30108         Cygwin and mingw.
30109         Suggested by Eric Blake.
30110
30111 2010-10-26  Bruno Haible  <bruno@clisp.org>
30112
30113         stdio: Work around compilation error due to renameat() on Solaris 10.
30114         * lib/stdio.in.h: Include <unistd.h> on Solaris.
30115         * lib/renameat.c: Don't include <unistd.h> here.
30116         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
30117         Reported by Paul Eggert and Eric Blake.
30118
30119 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30120
30121         renameat: port to Solaris 10, which declares renameat in unistd.h
30122
30123         * lib/renameat.c: Include unistd.h before stdio.h, because
30124         Solaris 10 declares renameat in unistd.h.  Problem encountered
30125         when building GNU tar 1.24 on Solaris 10.
30126
30127 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30128
30129         fdopendir: fix C89 compilation
30130         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
30131         compilers.
30132
30133 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
30134
30135         inttostr: simplify by removing unnecessary redundancy
30136         * lib/anytostr.c: Don't include verify.h.
30137         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
30138         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
30139         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
30140         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
30141         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
30142         Likewise.
30143         * modules/inttostr (Depends-on): Remove 'verify'.
30144
30145 2010-10-23  Bruno Haible  <bruno@clisp.org>
30146
30147         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
30148         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
30149         Reported by Eric Blake.
30150
30151 2010-10-23  Bruno Haible  <bruno@clisp.org>
30152
30153         Tests: Fix LOCALE_JA on MirBSD 10.
30154         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
30155         to an UTF-8 locale.
30156         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
30157         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
30158         Reported by Eric Blake.
30159
30160 2010-10-21  Bruno Haible  <bruno@clisp.org>
30161
30162         nl_langinfo test: Avoid test failure on NetBSD 5.
30163         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
30164         Reported by Eric Blake.
30165
30166 2010-10-21  Eric Blake  <eblake@redhat.com>
30167
30168         c-stack: work around libsigsegv 2.8 bug
30169         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
30170         overflow on at least PowerPC64.
30171
30172 2010-10-17  Bruno Haible  <bruno@clisp.org>
30173
30174         userspec: Drop redundant file.
30175         * modules/userspec (Files): Remove lib/inttostr.h.
30176
30177 2010-10-17  Bruno Haible  <bruno@clisp.org>
30178
30179         nl_langinfo tests: Silence some warnings.
30180         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
30181         Reported by Jim Meyering.
30182
30183 2010-10-17  Bruno Haible  <bruno@clisp.org>
30184
30185         Make use of GCC's attribute __alloc_size__.
30186         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
30187         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
30188         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
30189         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
30190         __alloc_size__.
30191         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30192         Suggested by Jim Meyering.
30193
30194 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
30195
30196         bootstrap: anchor .gitignore entries.
30197         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
30198         with...
30199         (insert_vc_ignore): ... this new function, which prepends `/' to
30200         all .gitignore entries before passing them to
30201         insert_sorted_if_absent.
30202
30203 2010-10-16  Bruno Haible  <bruno@clisp.org>
30204
30205         nextafter: Fix configure check.
30206         * modules/nextafter (configure.ac): Correct expected prototype.
30207
30208 2010-10-16  Bruno Haible  <bruno@clisp.org>
30209
30210         termios: Update documentation.
30211         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
30212
30213 2010-10-16  Bruno Haible  <bruno@clisp.org>
30214
30215         tests: Make them compile with TinyCC.
30216         * tests/test-strstr.c (main): Remove parentheses around array
30217         initializer.
30218
30219 2010-10-15  Eric Blake  <eblake@redhat.com>
30220
30221         ignore-value: make header idempotent
30222         * lib/ignore-value.h: Add double-inclusion guards.
30223         Reported by Stefan Berger.
30224
30225 2010-10-15  Jim Meyering  <meyering@redhat.com>
30226
30227         GNUmakefile: handle "stable" target, not "major"
30228         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
30229         lists in maint.mk and announce-gen.  Without this, "make stable"
30230         would fail to ensure that $(VERSION) is up to date.
30231
30232 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
30233
30234         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
30235         & co.
30236
30237 2010-10-14  Bruno Haible  <bruno@clisp.org>
30238
30239         vasnprintf: Don't set errno to 0.
30240         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
30241         block that sets it to 0.
30242         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
30243
30244 2010-10-14  Bruno Haible  <bruno@clisp.org>
30245
30246         socketlib: Fix.
30247         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
30248         gl_PREREQ_SYS_H_WINSOCK2.
30249         Reported by Ian Beckwith <ianb@erislabs.net>.
30250
30251 2010-10-13  Jim Meyering  <meyering@redhat.com>
30252
30253         test-select-stdin.c: avoid warn_unused_result warnings
30254         * tests/test-select-stdin.c: Include "macros.h".
30255         ASSERT that read and fflush succeed.
30256
30257 2010-10-13  Jim Meyering  <meyering@redhat.com>
30258
30259         git-version-gen: do require git-VC'd files in cwd
30260         * build-aux/git-version-gen: Reject a git version string
30261         if there are no commits associated with the current directory.
30262         This avoids an unlikely false-positive (unrelated dir whose parent
30263         repository also contains a tag matching v*), as pointed out
30264         by Giuseppe Scrivano in
30265         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
30266
30267 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
30268
30269         argv-iter: omit nonconforming declaration
30270         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
30271         enum arg_iter_err declaration, which doesn't conform to C99.
30272         Solaris 10 cc warns about this.
30273
30274 2010-10-13  Eric Blake  <eblake@redhat.com>
30275
30276         termios: fix compilation on mingw
30277         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
30278         (gl_TERMIOS_H): Adjust it on mingw.
30279         * modules/termios (Makefile.am): Substitute new key.
30280         * lib/termios.in.h (includes): Make include_next conditional.
30281         * doc/posix-headers/termios.texi (termios.h): Update
30282         documentation.
30283         Reported by Daniel P. Berrange.
30284
30285 2010-10-13  Jim Meyering  <meyering@redhat.com>
30286
30287         git-version-gen: don't require that .git/ be in the current dir
30288         * build-aux/git-version-gen: Adjust this script so that it works
30289         when run from any working directory beneath the top-level .git/-
30290         containing directory.  Inspired by a patch from Giuseppe Scrivano,
30291         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
30292
30293         test-select: avoid warn_unused_result warnings
30294         * tests/test-select.c: Include "macros.h".
30295         ASSERT that each call to read, write, and pipe succeeds.
30296         While not technically required, also check each "close".
30297         * modules/select-tests (Files): Add tests/macros.h.
30298
30299         test-symlinkat: remove declaration of unused local
30300         * tests/test-symlinkat.c (main): Remove unused local, "buf".
30301
30302         test-inttostr: avoid shadowing warnings
30303         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
30304         and use malloc rather than the stack for the same reason as
30305         mentioned in the comment justifying the other allocation.
30306
30307 2010-10-11  Bruno Haible  <bruno@clisp.org>
30308
30309         stdlib: Allow multiple gnulib generated replacements to coexist.
30310         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
30311         Reported by Sam Steingold <sds@gnu.org>.
30312
30313 2010-10-11  Jim Meyering  <meyering@redhat.com>
30314
30315         fix a documentation typo
30316         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
30317
30318 2010-10-11  Eric Blake  <eblake@redhat.com>
30319
30320         futimens: work around Solaris 11 bug
30321         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
30322         * tests/test-futimens.h (test_futimens): Enhance, rather than
30323         weaken test.
30324         * doc/posix-functions/futimens.texi (futimens): Document the bug.
30325
30326 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
30327
30328         Indentation.
30329         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
30330         higher-level operators more to the left.
30331
30332 2010-10-11  Jim Meyering  <meyering@redhat.com>
30333
30334         test-futimens: avoid unwarranted test failure on Solaris 5.11
30335         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
30336         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
30337         because it tries to dereference the NULL name argument.
30338
30339 2010-10-11  Bruno Haible  <bruno@clisp.org>
30340
30341         Indentation.
30342         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
30343         indentation.
30344
30345 2010-10-11  Jim Meyering  <meyering@redhat.com>
30346
30347         spawn.in.h: make indentation consistent with parentheses
30348         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
30349         Make indentation consistent with parentheses.
30350
30351 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
30352
30353         Fix mismatched parens in previous commit
30354         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
30355         parens.
30356
30357 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30358
30359         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
30360
30361         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
30362         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
30363         * lib/malloca.c: Include "verify.h".
30364         (verify1): Remove, replacing with a verify call.
30365         * lib/relocwrapper.c (verify1): Likewise.
30366         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
30367         Likewise.
30368         * modules/malloca (Depends-on): Add 'verify'.
30369         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
30370         * modules/vasnprintf (Depends-on): Add 'verify'.
30371         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30372         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30373         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30374         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30375         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30376         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30377         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30378
30379         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
30380
30381         Formerly the style was sometimes 2*X - 1, because the C standard
30382         was wrongly thought to disallow ?: in integral constant expressions.
30383         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
30384         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
30385         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
30386         * lib/stdint.in.h (_verify_intmax_size): Likewise.
30387         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
30388         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
30389         verify that time_t cannot be floating.
30390
30391 2010-10-08  Eric Blake  <eblake@redhat.com>
30392
30393         time: enforce recent POSIX ruling that time_t is integral
30394         * lib/time.in.h (__time_t_must_be_integral): Detect any
30395         problematic systems, allowing the rest of gnulib to assume POSIX.
30396
30397 2010-10-08  Jim Meyering  <meyering@redhat.com>
30398
30399         fdopendir: fix a bug on systems lacking openat and /proc support
30400         OpenBSD 4.7 is one such system.  The most noticeable effect was
30401         failure of any application making nontrivial use of fts: rm, du,
30402         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
30403           ./rm: traversal failed: `a': Bad file descriptor
30404         Debugging that, you see that even though FD 6 was closed just
30405         prior to the opendir call in fd_clone_opendir, its resulting
30406         dir->dd_fd was 8, rather than the expected value of 6:
30407
30408         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
30409         93                close (fd);
30410         (gdb) n
30411         94                dir = fd_clone_opendir (dupfd);
30412         (gdb) n
30413         95                saved_errno = errno;
30414         (gdb) p dir->dd_fd
30415         $11 = 8
30416
30417         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
30418         The problem is that on OpenBSD, fd_clone_opendir has to resort
30419         to using the old-style save/restore CWD mechanism, due to its
30420         lack of openat/proc support, and *that* would steal the FD (6)
30421         that opendir was supposed to use.
30422
30423         The fix is to squirrel away the desired FD so that save_cwd uses a
30424         different one, and then free the dest FD right before calling opendir.
30425         That guarantees opendir will use the required file descriptor.
30426
30427         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
30428
30429 2010-10-08  Bruno Haible  <bruno@clisp.org>
30430
30431         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
30432         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
30433
30434 2010-10-08  Bruno Haible  <bruno@clisp.org>
30435
30436         nanosleep: Make replacement POSIX compliant.
30437         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
30438         is out of range.
30439         Reported by Jim Meyering.
30440
30441 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30442
30443         bootstrap: add hook for altering gnulib.mk, for Bison
30444         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
30445         the Bison bootstrapping process can rewrite file names and variables
30446         in this file before later parts of 'bootstrap' use the file.
30447         Bison wants to include lib/gnulib.mk from the top-level makefile,
30448         so it needs the file names in this file to be relative to the top
30449         level, not relative to lib; plus it needs variable names to be
30450         rewritten.
30451         (slurp): Use the new function.
30452
30453         bootstrap: reformat for readability
30454         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
30455
30456 2010-10-08  Eric Blake  <eblake@redhat.com>
30457
30458         docs: update cygwin progress
30459         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
30460         1.7.7.
30461         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
30462         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
30463         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
30464         * doc/posix-functions/carg.texi (carg): Likewise.
30465         * doc/posix-functions/cargf.texi (cargf): Likewise.
30466         * doc/posix-functions/casin.texi (casin): Likewise.
30467         * doc/posix-functions/casinf.texi (casinf): Likewise.
30468         * doc/posix-functions/casinh.texi (casinh): Likewise.
30469         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
30470         * doc/posix-functions/catan.texi (catan): Likewise.
30471         * doc/posix-functions/catanf.texi (catanf): Likewise.
30472         * doc/posix-functions/catanh.texi (catanh): Likewise.
30473         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
30474         * doc/posix-functions/ccos.texi (ccos): Likewise.
30475         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
30476         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
30477         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
30478         * doc/posix-functions/cexp.texi (cexp): Likewise.
30479         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
30480         * doc/posix-functions/cimag.texi (cimag): Likewise.
30481         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
30482         * doc/posix-functions/clog.texi (clog): Likewise.
30483         * doc/posix-functions/clogf.texi (clogf): Likewise.
30484         * doc/posix-functions/conj.texi (conj): Likewise.
30485         * doc/posix-functions/conjf.texi (conjf): Likewise.
30486         * doc/posix-functions/cpow.texi (cpow): Likewise.
30487         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
30488         * doc/posix-functions/cproj.texi (cproj): Likewise.
30489         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
30490         * doc/posix-functions/creal.texi (creal): Likewise.
30491         * doc/posix-functions/crealf.texi (crealf): Likewise.
30492         * doc/posix-functions/csin.texi (csin): Likewise.
30493         * doc/posix-functions/csinf.texi (csinf): Likewise.
30494         * doc/posix-functions/csinh.texi (csinh): Likewise.
30495         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
30496         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
30497         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
30498         * doc/posix-functions/ctan.texi (ctan): Likewise.
30499         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
30500         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
30501         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
30502         * doc/posix-headers/complex.texi (complex.h): Likewise.
30503
30504 2010-10-07  Jim Meyering  <meyering@redhat.com>
30505
30506         parse-datetime: avoid compilation failure on OpenBSD 4.7
30507         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
30508         This works around a compilation failure on OpenBSD 4.7:
30509         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
30510
30511 2010-10-07  Eric Blake  <eblake@redhat.com>
30512
30513         docs: update cygwin progress
30514         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
30515         1.7.6.
30516         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30517         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
30518         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
30519         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
30520         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
30521         Likewise.
30522         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
30523         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
30524         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
30525         Likewise.
30526         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
30527         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
30528         Likewise.
30529         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
30530         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
30531         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
30532         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
30533         Likewise.
30534         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
30535         Likewise.
30536         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
30537
30538         docs: update parse-datetime history
30539         * doc/parse-datetime.texi (Authors of parse_datetime): Better
30540         documentation of this function's history and alternatives.
30541
30542         cygwin: use more robust version check
30543         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
30544         exclude an eventual cygwin 1.9.1.
30545         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30547         (gl_FUNC_STRCASESTR): Likewise.
30548         Reported by Bruno Haible.
30549
30550 2010-10-06  Bruno Haible  <bruno@clisp.org>
30551
30552         string, sys_select: Avoid #including large headers unless necessary.
30553         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
30554         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
30555         OSF/1, BeOS, Haiku.
30556         Reported by Jim Meyering.
30557
30558 2010-10-05  Eric Blake  <eblake@redhat.com>
30559
30560         memmem, strstr, strcasestr: fix bug with long periodic needle
30561         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
30562         periodic needle having false positive.
30563         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
30564         and cygwin 1.7.7.
30565         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
30566         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
30567         (gl_FUNC_STRCASESTR): Likewise.
30568         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
30569         * tests/test-memmem.c (main): Expose the bug.
30570         * tests/test-strcasestr.c (main): Likewise.
30571         * tests/test-strstr.c (main): Likewise.
30572         * tests/test-c-strcasestr.c (main): Likewise.
30573         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
30574         * doc/posix-functions/strstr.texi (strstr): Likewise.
30575         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30576         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
30577
30578 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30579
30580         parse-datetime: do some more renaming
30581         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
30582         parse_datetime, not get_date.  Mention the renaming.
30583         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
30584         in comments.
30585         * m4/bison.m4: Likewise.
30586
30587 2010-10-05  Eric Blake  <eblake@redhat.com>
30588
30589         parse-datetime: better name than get_date
30590         * NEWS: Reword the deprecation notice.
30591         * modules/get_date: Rename to modules/parse-datetime.
30592         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
30593         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
30594         * lib/get_date.y: Rename to lib/parse-datetime.y.
30595         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
30596         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
30597         * doc/getdate.texi: Provide fallback wrapper.
30598         * lib/getdate.h: Move guts, and wrap...
30599         * lib/parse-datetime.h: ...new file.
30600         * lib/parse-datetime.y (get_date): Rename...
30601         (parse_datetime): ...to this.
30602         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
30603         (gl_PARSE_DATETIME): ...to this.
30604         * doc/posix-functions/getdate.texi (get_date): Provide fallback
30605         documentation.
30606         * modules/getdate (Files): Provide fallback docs and header.
30607         (Notice, Depends-on): Update references.
30608         * tests/test-parse-datetime.c: Likewise.
30609         * DEPENDENCIES: Likewise.
30610         * MODULES.html.sh (Date and time <time.h>): Likewise.
30611         * doc/parse-datetime.texi (Date input formats)
30612         (Authors of parse_datetime): Likewise.
30613         * modules/parse-datetime (Files, configure.ac, Makefile.am)
30614         (Include): Likewise.
30615         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
30616         * gnulib-tool: Likewise.
30617         * m4/bison.m4 (gl_BISON): Likewise.
30618         Suggested by Bruno Haible.
30619
30620 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30621
30622         more ports to Solaris tr, which needs [] around ranges
30623         * gnulib-tool: Solaris tr needs [] around ranges.
30624         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
30625         * tests/test-pipe-filter-gi1.c (main): Likewise.
30626         * tests/test-pipe-filter-ii1.c (main): Likewise.
30627
30628 2010-10-05  Eric Blake  <eblake@redhat.com>
30629
30630         bootstrap: fix Solaris regression
30631         * build-aux/bootstrap (check_versions): Solaris tr still needs []
30632         around ranges.
30633         Reported by Pádraig Brady.
30634
30635         bootstrap: work with pkg-config
30636         * build-aux/bootstrap (check_versions): Also transliterate - in
30637         prerequisite name.
30638         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
30639         prerequisites that were already found, to avoid confusion.
30640         Reported by Justin Clift.
30641
30642         faccessat: remove unused wrappers
30643         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
30644         presence of these wrappers dragged in -lgen on Solaris.
30645         Reported by Clemens Brogi; fix suggested by Paul Eggert.
30646
30647 2010-10-05  Jim Meyering  <meyering@redhat.com>
30648
30649         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
30650         * Makefile (sc_pragma_columns): New syntax-check rule.
30651
30652 2010-10-04  Bruno Haible  <bruno@clisp.org>
30653
30654         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
30655         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
30656         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
30657         Reported by Bruce Korb and Eric Blake.
30658
30659 2010-10-04  Bruno Haible  <bruno@clisp.org>
30660
30661         threadlib: Make option --with-libpth-prefix work.
30662         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
30663         use $LIBPTH, not just -lpth.
30664
30665 2010-10-04  Bruno Haible  <bruno@clisp.org>
30666
30667         Avoid line length limitation from HP NonStop system header files.
30668         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
30669         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
30670         * lib/ctype.in.h: Likewise.
30671         * lib/dirent.in.h: Likewise.
30672         * lib/errno.in.h: Likewise.
30673         * lib/fcntl.in.h: Likewise.
30674         * lib/float.in.h: Likewise.
30675         * lib/getopt.in.h: Likewise.
30676         * lib/iconv.in.h: Likewise.
30677         * lib/inttypes.in.h: Likewise.
30678         * lib/langinfo.in.h: Likewise.
30679         * lib/locale.in.h: Likewise.
30680         * lib/math.in.h: Likewise.
30681         * lib/netdb.in.h: Likewise.
30682         * lib/netinet_in.in.h: Likewise.
30683         * lib/poll.in.h: Likewise.
30684         * lib/pthread.in.h: Likewise.
30685         * lib/pty.in.h: Likewise.
30686         * lib/sched.in.h: Likewise.
30687         * lib/se-selinux.in.h: Likewise.
30688         * lib/search.in.h: Likewise.
30689         * lib/signal.in.h: Likewise.
30690         * lib/spawn.in.h: Likewise.
30691         * lib/stdarg.in.h: Likewise.
30692         * lib/stddef.in.h: Likewise.
30693         * lib/stdint.in.h: Likewise.
30694         * lib/stdio.in.h: Likewise.
30695         * lib/stdlib.in.h: Likewise.
30696         * lib/string.in.h: Likewise.
30697         * lib/strings.in.h: Likewise.
30698         * lib/sys_file.in.h: Likewise.
30699         * lib/sys_ioctl.in.h: Likewise.
30700         * lib/sys_select.in.h: Likewise.
30701         * lib/sys_socket.in.h: Likewise.
30702         * lib/sys_stat.in.h: Likewise.
30703         * lib/sys_time.in.h: Likewise.
30704         * lib/sys_times.in.h: Likewise.
30705         * lib/sys_utsname.in.h: Likewise.
30706         * lib/sys_wait.in.h: Likewise.
30707         * lib/sysexits.in.h: Likewise.
30708         * lib/termios.in.h: Likewise.
30709         * lib/time.in.h: Likewise.
30710         * lib/unistd.in.h: Likewise.
30711         * lib/wchar.in.h: Likewise.
30712         * lib/wctype.in.h: Likewise.
30713         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
30714         * modules/ctype (Makefile.am): Likewise.
30715         * modules/dirent (Makefile.am): Likewise.
30716         * modules/errno (Makefile.am): Likewise.
30717         * modules/fcntl-h (Makefile.am): Likewise.
30718         * modules/float (Makefile.am): Likewise.
30719         * modules/getopt-posix (Makefile.am): Likewise.
30720         * modules/iconv-h (Makefile.am): Likewise.
30721         * modules/inttypes (Makefile.am): Likewise.
30722         * modules/langinfo (Makefile.am): Likewise.
30723         * modules/locale (Makefile.am): Likewise.
30724         * modules/math (Makefile.am): Likewise.
30725         * modules/netdb (Makefile.am): Likewise.
30726         * modules/netinet_in (Makefile.am): Likewise.
30727         * modules/poll-h (Makefile.am): Likewise.
30728         * modules/pthread (Makefile.am): Likewise.
30729         * modules/pty (Makefile.am): Likewise.
30730         * modules/sched (Makefile.am): Likewise.
30731         * modules/search (Makefile.am): Likewise.
30732         * modules/selinux-h (Makefile.am): Likewise.
30733         * modules/signal (Makefile.am): Likewise.
30734         * modules/spawn (Makefile.am): Likewise.
30735         * modules/stdarg (Makefile.am): Likewise.
30736         * modules/stddef (Makefile.am): Likewise.
30737         * modules/stdint (Makefile.am): Likewise.
30738         * modules/stdio (Makefile.am): Likewise.
30739         * modules/stdlib (Makefile.am): Likewise.
30740         * modules/string (Makefile.am): Likewise.
30741         * modules/strings (Makefile.am): Likewise.
30742         * modules/sys_file (Makefile.am): Likewise.
30743         * modules/sys_ioctl (Makefile.am): Likewise.
30744         * modules/sys_select (Makefile.am): Likewise.
30745         * modules/sys_socket (Makefile.am): Likewise.
30746         * modules/sys_stat (Makefile.am): Likewise.
30747         * modules/sys_time (Makefile.am): Likewise.
30748         * modules/sys_times (Makefile.am): Likewise.
30749         * modules/sys_utsname (Makefile.am): Likewise.
30750         * modules/sys_wait (Makefile.am): Likewise.
30751         * modules/sysexits (Makefile.am): Likewise.
30752         * modules/termios (Makefile.am): Likewise.
30753         * modules/time (Makefile.am): Likewise.
30754         * modules/unistd (Makefile.am): Likewise.
30755         * modules/wchar (Makefile.am): Likewise.
30756         * modules/wctype (Makefile.am): Likewise.
30757
30758 2010-10-04  Bruno Haible  <bruno@clisp.org>
30759
30760         read-file tests: Avoid a test failure on NonStop Kernel.
30761         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
30762         a regular file.
30763         Reported by Joachim Schmitz <schmitz@hp.com>.
30764
30765 2010-10-03  Bruno Haible  <bruno@clisp.org>
30766
30767         gnulib-tool: Fixes for --create-testdir with --libtool.
30768         * gnulib-tool (func_get_automake_snippet): Don't augment
30769         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
30770         an executable.
30771         (func_create_testdir): Handle module 'alloca' like func_import.
30772         Reported by Bruce Korb <bruce.korb@gmail.com>.
30773
30774 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30775
30776         Avoid some lines longer than 80 characters.
30777         * lib/stdint.in.h: Break long comment lines.
30778         * lib/math.in.h: Likewise.
30779         (_GL_NUM_UINT_WORDS): New macro, for readability.
30780         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
30781         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
30782         * lib/stdlib.in.h: Likewise.
30783         * lib/spawn.in.h: Likewise.
30784         * lib/sys_socket.in.h: Update an URL.
30785         * lib/sys_stat.in.h: Break long line.
30786
30787 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
30788
30789         Improve pmccabe2html.
30790         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
30791         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
30792         when the sources change. Remove the line in the HTML about "Used
30793         ranges" (which implied that there might be other unused ranges),
30794         rename "Resume" to "Summary" (easier to understand for more users).
30795         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
30796         styles, and some unnecessary blank lines.
30797
30798 2010-10-03  Bruno Haible  <bruno@clisp.org>
30799             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
30800
30801         acl: Add support for ACLs on NonStop Kernel.
30802         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
30803         Check whether the function aclsort() exists.
30804         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
30805         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
30806         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30807         (acl_nontrivial [HAVE_ACLSORT]: New function.
30808         (file_has_acl): Implement for NonStop Kernel.
30809         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30810         (qset_acl): Implement for NonStop Kernel.
30811         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
30812         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
30813         (main): Implement for NonStop Kernel.
30814         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
30815         Kernel. Handle this flavor.
30816         * tests/test-set-mode-acl.sh: Likewise.
30817         * tests/test-copy-acl.sh: Likewise.
30818         * tests/test-copy-file.sh: Likewise.
30819
30820 2010-10-03  Bruno Haible  <bruno@clisp.org>
30821
30822         Info about ACLs on NonStop Kernel.
30823         * doc/acl-resources.txt: Add info about NonStop Kernel.
30824         References by Joachim Schmitz <schmitz@hp.com>.
30825
30826 2010-10-02  Bruno Haible  <bruno@clisp.org>
30827
30828         Define missing EDQUOT on NonStop Kernel.
30829         * lib/errno.in.h (EDQUOT): Assign a value if missing.
30830         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
30831         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
30832         missing.
30833         * doc/posix-headers/errno.texi: Mention the NSK bug.
30834         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
30835         Reported by Joachim Schmitz <schmitz@hp.com>.
30836
30837 2010-10-02  Bruno Haible  <bruno@clisp.org>
30838
30839         Update doc for POSIX:2008.
30840         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
30841         Update URL of POSIX specification.
30842
30843 2010-10-02  Bruno Haible  <bruno@clisp.org>
30844
30845         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
30846         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
30847         from gnulib, not from Automake.
30848
30849 2010-10-02  Bruno Haible  <bruno@clisp.org>
30850
30851         New module 'system-posix'.
30852         * modules/system-posix: New file.
30853         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
30854         module is present.
30855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30856         GNULIB_SYSTEM_POSIX.
30857         * modules/stdlib (Depends-on): Remove sys_wait.
30858         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
30859         * doc/posix-functions/system.texi: Mention the new module.
30860         * doc/posix-headers/stdlib.texi: Likewise.
30861         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
30862         define test_sys_wait_macros to a no-op.
30863         Reported by Sam Steingold <sds@gnu.org>.
30864
30865 2010-09-30  Bruno Haible  <bruno@clisp.org>
30866
30867         More renaming from 'getdate' to 'get_date'.
30868         * doc/get_date.texi: Renamed from doc/getdate.texi.
30869         * modules/get_date (Files): Update.
30870         * MODULES.html.sh (Date and time <time.h>): Update.
30871         * DEPENDENCIES: Update.
30872         * gnulib-tool: Update comment.
30873         * m4/bison.m4 (gl_BISON): Likewise.
30874         * m4/get_date.m4 (gl_GET_DATE): Likewise.
30875
30876 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
30877
30878         bootstrap: support ACLOCAL_FLAGS during aclocal
30879         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
30880         can add additional -I dir for third-party .m4 files.
30881
30882 2010-09-30  Eric Blake  <eblake@redhat.com>
30883
30884         bootstrap: use glibtoolize on MacOS
30885         * build-aux/bootstrap (check_versions): Convert libtool into
30886         libtoolize.
30887         (tool search): Move libtool check earlier, and look for
30888         glibtoolize for MacOS.
30889         (gnulib_tool_options): Auto-add --libtool when appropriate.
30890         Reported by Justin Clift.
30891
30892         poll: fix typo that broke test on MacOS
30893         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
30894         Reported by Justin Clift.
30895
30896         getdate: rename to get_date
30897         Note: getdate.h is not renamed, to minimize client impact.
30898         * modules/getdate: Mark obsolete.  Move old contents...
30899         * modules/get_date: ...to new module name.
30900         * modules/getdate-tests: Move...
30901         * modules/get_date-tests: ...here.
30902         * m4/getdate.m4: Move...
30903         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
30904         * lib/getdate.y: Move...
30905         * lib/get_date.y: ...here.
30906         * tests/test-getdate.c: Move...
30907         * tests/test-get_date.c: ...here.
30908         * doc/posix-functions/getdate.texi (getdate): Update name.
30909         * NEWS: Mention the change.
30910
30911 2010-09-29  Bruno Haible  <bruno@clisp.org>
30912
30913         Separate the module 'waitpid' from the module 'sys_wait'.
30914         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
30915         present.
30916         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
30917         gl_MODULE_INDICATOR_FOR_TESTS.
30918         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
30919         * modules/sys_wait (Depends-on): Remove waitpid.
30920         (Makefile.am): Substitute GNULIB_WAITPID.
30921         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
30922         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
30923         signature only if the 'waitpid' module is present.
30924         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
30925         * NEWS: Mention the change.
30926         * modules/grantpt (Depends-on): Add waitpid.
30927         * modules/wait-process (Depends-on): Likewise.
30928
30929 2010-09-29  Bruno Haible  <bruno@clisp.org>
30930
30931         More tests for module 'sys_wait'.
30932         * modules/sys_wait-c++-tests: New file.
30933         * tests/test-sys_wait-c++.cc: New file.
30934         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
30935         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30936
30937 2010-09-29  Bruno Haible  <bruno@clisp.org>
30938
30939         New module 'waitpid'.
30940         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
30941         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
30942         Don't include <process.h>.
30943         (waitpid): Declare only, using modern idiom.
30944         * m4/waitpid.m4: New file.
30945         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
30946         * modules/waitpid: New file.
30947         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
30948         (Makefile.am): Update.
30949         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
30950
30951 2010-09-28  Bruno Haible  <bruno@clisp.org>
30952
30953         poll: Assume ANSI C.
30954         * lib/poll.c (poll): Use an ANSI C declaration.
30955
30956 2010-09-28  Bruno Haible  <bruno@clisp.org>
30957
30958         poll-h: Create poll.h on all platforms.
30959         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
30960         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
30961         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
30962         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
30963         (gl_REPLACE_POLL_H): Don't set POLL_H.
30964         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
30965         * modules/poll-h (Depends-on): Add include_next.
30966         (Makefile.am): Create poll.h unconditionally. Substitute also
30967         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
30968
30969 2010-09-28  Bruno Haible  <bruno@clisp.org>
30970
30971         Tests for module 'poll-h'.
30972         * modules/poll-h-c++-tests: New file.
30973         * tests/test-poll-h-c++.cc: New file.
30974
30975         Tests for module 'poll-h'.
30976         * modules/poll-h-tests: New file.
30977         * tests/test-poll-h.c: New file.
30978
30979 2010-09-28  Bruno Haible  <bruno@clisp.org>
30980
30981         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
30982         * modules/poll-h (Depends-on): Add 'extensions'.
30983
30984 2010-09-28  Bruno Haible  <bruno@clisp.org>
30985
30986         New module 'poll-h'.
30987         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
30988         (poll): Use modern idiom.
30989         * modules/poll-h: New file.
30990         * modules/poll (Files): Remove lib/poll.in.h.
30991         (Depends-on): Add poll-h.
30992         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
30993         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
30994         * m4/poll_h.m4: New file.
30995         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
30996         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
30997         and invoke gl_REPLACE_POLL_H.
30998         * lib/poll.c: Use common idiom.
30999         * tests/test-poll.c: Likewise.
31000         * doc/posix-headers/poll.texi: Mention the poll-h module.
31001         Suggested by Eric Blake.
31002
31003 2010-09-26  Bruno Haible  <bruno@clisp.org>
31004
31005         sys_wait: Implement WSTOPSIG.
31006         * lib/sys_wait.in.h (WSTOPSIG): New macro.
31007         Reported by Simon Josefsson.
31008
31009 2010-09-26  Simon Josefsson  <simon@josefsson.org>
31010
31011         stdlib, sys_wait: Avoid compilation error on mingw.
31012         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
31013
31014 2010-09-26  Bruno Haible  <bruno@clisp.org>
31015
31016         stdlib tests: Avoid code duplication.
31017         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
31018         * modules/sys_wait-tests (Files): Likewise.
31019         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
31020         * tests/test-stdlib.c: Include test-sys_wait.h.
31021         (main): Invoke test_sys_wait_macros.
31022         * tests/test-sys_wait.c: Include test-sys_wait.h.
31023         (main): Invoke test_sys_wait_macros.
31024
31025 2010-09-25  Simon Josefsson  <simon@josefsson.org>
31026
31027         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
31028         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
31029         sure Windows sockets are working before calling getaddrinfo.
31030         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
31031         * doc/gnulib.texi (Windows sockets): Fix typo.
31032
31033 2010-09-25  Bruno Haible  <bruno@clisp.org>
31034
31035         Tests for module 'regex-quote'.
31036         * modules/regex-quote-tests: New file.
31037         * tests/test-regex-quote.c: New file.
31038
31039         New module 'regex-quote'.
31040         * lib/regex-quote.h: New file.
31041         * lib/regex-quote.c: New file.
31042         * modules/regex-quote: New file.
31043         Suggested by Reuben Thomas <rrt@sc3d.org>.
31044
31045 2010-09-24  Bruno Haible  <bruno@clisp.org>
31046
31047         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
31048         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
31049
31050 2010-09-23  Bruno Haible  <bruno@clisp.org>
31051
31052         setenv: Relax license.
31053         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
31054         Blake.
31055         Requested by Eric Blake.
31056
31057 2010-09-22  Bruno Haible  <bruno@clisp.org>
31058
31059         termios: Relax license.
31060         * modules/termios (License): Change to LGPLv2+.
31061         Requested by Eric Blake.
31062
31063 2010-09-22  Bruno Haible  <bruno@clisp.org>
31064
31065         threadlib: Allow the package to change the default to 'no'.
31066         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
31067         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
31068         Reported by Paul Eggert.
31069
31070 2010-09-22  Pádraig Brady  <P@draigbrady.com>
31071             Bruno Haible  <bruno@clisp.org>
31072
31073         Fix endless loop in mbmemcasecoll.
31074         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
31075         byte.
31076         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
31077
31078 2010-09-22  Bruno Haible  <bruno@clisp.org>
31079
31080         Tests for module 'memcoll'.
31081         * modules/memcoll-tests: New file.
31082         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
31083
31084         memcoll, xmemcoll: Clarify size vs. length.
31085         * modules/memcoll.c (memcoll0): Clarify specification.
31086         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
31087         passed to collate_error.
31088
31089 2010-09-22  Bruno Haible  <bruno@clisp.org>
31090
31091         Tests for module 'memcasecmp'.
31092         * modules/memcasecmp-tests: New file.
31093         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
31094
31095 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
31096
31097         * lib/pthread.in.h: Add split double-inclusion guard, and include
31098         system <pthread.h> if there is one.  Use @@-style as in other
31099         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
31100         pthread.h doesn't.
31101         (pthread_mutexattr_destroy, pthread_mutexattr_init):
31102         (pthread_mutexattr_settype, pthread_mutex_trylock):
31103         New static inline functions, if there's no system <pthread.h>.
31104         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
31105         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
31106         Approximate with mutexes if the system lacks spinlocks, as in
31107         MacOS.
31108         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
31109         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
31110         @@-style.  Check for spinlocks separately.
31111         (gl_PTHREAD_DEFAULTS): New macro.
31112         * modules/pthread: Redo to use a more typical style for in.h files.
31113
31114 2010-09-21  Eric Blake  <eblake@redhat.com>
31115
31116         net_if: enhance tests
31117         * tests/test-net_if.c (main): Move signature checks earlier.
31118         Print failures to stderr.
31119         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
31120         Document the bug that we do not yet fix.
31121
31122 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31123
31124         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
31125         about gnulib, not GSS.
31126
31127 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
31128
31129         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
31130         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
31131         for Emacs.
31132         * build-aux/pmccabe2html: Make Makefile.am example code more
31133         cut-and-paste friendly.
31134
31135 2010-09-21  Simon Josefsson  <simon@josefsson.org>
31136
31137         * tests/test-net_if.c: New file.
31138         * modules/net_if-tests: New file.
31139
31140 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31141
31142         pthread: add pthread_spin_destroy
31143         * lib/pthread.in.h (pthread_spin_destroy): New function.
31144
31145 2010-09-19  Bruno Haible  <bruno@clisp.org>
31146
31147         gnulib-tool: Fix --help output.
31148         * gnulib-tool (func_usage): Fix help message.
31149         Reported by Reuben Thomas <rrt@sc3d.org>.
31150
31151 2010-09-18  Jim Meyering  <meyering@redhat.com>
31152
31153         maint.mk: avoid unexpanded \n in two diagnostics
31154         * top/maint.mk (sc_prohibit_always_true_header_tests):
31155         Don't use a literal \n in a halt=... assignment.  It would not be
31156         expanded, and the two \n bytes would appear in the diagnostic output
31157         rather than the desired newline.  Use halt=$$(printf ... instead.
31158         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31159
31160 2010-09-18  Bruno Haible  <bruno@clisp.org>
31161
31162         netinet_in: Doc tweak.
31163         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
31164         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31165
31166 2010-09-18  Jim Meyering  <meyering@redhat.com>
31167
31168         init.sh: correct an outdated comment
31169         * tests/init.sh (create_exe_shims_):  s/function/alias/
31170
31171         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
31172         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
31173         a file named "*.exe" is removed between the glob expansion and the
31174         processing of that oddly named file.
31175
31176 2010-09-17  Eric Blake  <eblake@redhat.com>
31177
31178         mirbsd: add some more support
31179         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
31180         in BSD family.
31181         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
31182         devices as OpenBSD.
31183         * m4/host-os.m4 (mirbsd): Add MirBSD.
31184
31185         tests: fix unportable assumption on sys/wait.h
31186         * tests/test-sys_wait.c (main): Relax test.
31187         * tests/test-stdlib.c (main): Likewise.
31188
31189         init.sh: accommodate directory with no .exes
31190         * tests/init.sh: Accomodate directory containing only scripts.
31191
31192         tests: avoid compiler warning
31193         * tests/test-stdlib.c (main): Use the variable.
31194
31195         fdutimens, fdutimensat: update signature, again
31196         * lib/utimens.h (gl_futimens): Delete, and move signature...
31197         (fdutimens): ...here.
31198         (fdutimensat): Rearrange signature.
31199         (lutimensat): Rename variable for clarity.
31200         * lib/fdutimensat.c (fdutimensat): Update signature.
31201         * lib/utimens.c (fdutimens): Likewise.
31202         (gl_futimens): Delete.
31203         (utimens, lutimens): Update callers.
31204         * lib/futimens.c (futimens): Likewise.
31205         * tests/test-fdutimensat.c: Likewise.
31206         * tests/test-utimens.c: Likewise.
31207         * tests/test-futimens.h: Update comment.
31208         * NEWS: Mention this.
31209         Suggested by Paul Eggert.
31210
31211 2010-09-17  Bruno Haible  <bruno@clisp.org>
31212
31213         Take over the maintenance of some older macros from Autoconf.
31214         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
31215         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
31216         GNU Autoconf.
31217         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
31218         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
31219
31220 2010-09-17  Eric Blake  <eblake@redhat.com>
31221
31222         fdutimensat: drop atflag validation
31223         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
31224         with valid fd, to close a race scenario where futimens is
31225         unsupported and FILE was replaced by a symlink.
31226         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
31227         accordingly.
31228         Suggested by Paul Eggert.
31229
31230 2010-09-16  Bruno Haible  <bruno@clisp.org>
31231
31232         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
31233         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
31234
31235 2010-09-16  Bruno Haible  <bruno@clisp.org>
31236
31237         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
31238         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
31239         login_tty exists.
31240         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31241
31242 2010-09-16  Bruno Haible  <bruno@clisp.org>
31243
31244         login_tty: Make the replacement code work on BSD systems.
31245         * lib/login_tty.c: Include <sys/ioctl.h>.
31246         (login_tty): Use ioctl TIOCSCTTY when available.
31247         * modules/login_tty (Depends-on): Add sys_ioctl.
31248         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31249
31250 2010-09-16  Bruno Haible  <bruno@clisp.org>
31251
31252         login_tty: Stricter unit test.
31253         * modules/login_tty-tests (Depends-on): Add tcgetsid.
31254         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
31255         and tcgetsid() after login_tty.
31256         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31257
31258 2010-09-16  Bruno Haible  <bruno@clisp.org>
31259
31260         New module 'tcgetsid'.
31261         * lib/tcgetsid.c: New file.
31262         * m4/tcgetsid.m4: New file.
31263         * modules/tcgetsid: New file.
31264         * modules/termios (Depends-on): Add c++defs, warn-on-use.
31265         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
31266         GNULIB_TCGETSID, HAVE_TCGETSID.
31267         * lib/termios.in.h: Include <sys/types.h>.
31268         (tcgetsid): New declaration.
31269         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
31270         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
31271         * doc/posix-functions/tcgetsid.texi: Mention the new module.
31272         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
31273
31274 2010-09-16  Bruno Haible  <bruno@clisp.org>
31275
31276         Tests for module 'termios'.
31277         * modules/termios-c++-tests: New file.
31278         * modules/termios-tests: New file.
31279         * tests/test-termios-c++.cc: New file.
31280         * tests/test-termios.c: New file.
31281
31282         New module 'termios'.
31283         * modules/termios: New file.
31284         * lib/termios.in.h: New file.
31285         * m4/termios_h.m4: New file.
31286         * doc/posix-headers/termios.texi: Mention the new module.
31287
31288 2010-09-16  Eric Blake  <eblake@redhat.com>
31289
31290         fdutimensat: add an atflag parameter
31291         * lib/fdutimensat.c (fdutimensat): Add new parameter.
31292         * lib/utimens.h (fdutimensat): Update prototype.
31293         * tests/test-fdutimensat.c: Adjust test to match.
31294         * NEWS: Document the change.
31295         Suggested by Paul Eggert.
31296
31297 2010-09-16  Bruno Haible  <bruno@clisp.org>
31298
31299         Fix typos in comments.
31300         * lib/striconveh.h: Fix typo in comment.
31301         * lib/login_tty.c (login_tty): Likewise.
31302
31303 2010-09-15  Bruno Haible  <bruno@clisp.org>
31304
31305         stdlib: clarify MirBSD WEXITSTATUS bug
31306         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
31307         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31308
31309 2010-09-15  Eric Blake  <eblake@redhat.com>
31310
31311         stdlib: work around MirBSD WEXITSTATUS bug
31312         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
31313         * modules/stdlib (Depends-on): Add sys_wait.
31314         * tests/test-sys_wait.c (main): Enhance test.
31315         * tests/test-stdlib.c (main): Likewise.
31316         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
31317
31318         docs: mention MacOS issue with WEXITSTATUS(constant)
31319         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
31320         issue.
31321         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
31322
31323         strnlen: add tests
31324         * modules/strnlen-tests: New file.
31325         * tests/test-strnlen.c: Likewise.
31326
31327 2010-09-14  Bruno Haible  <bruno@clisp.org>
31328
31329         unistr/base: Avoid link errors when module 'libunistring' is also used.
31330         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
31331         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
31332         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
31333         Declare also when HAVE_LIBUNISTRING is set.
31334         Reported by Pádraig Brady <P@draigbrady.com>.
31335
31336 2010-09-14  Eric Blake  <eblake@redhat.com>
31337
31338         test-rawmemchr: make more robust
31339         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
31340         (Depends-on, configure.ac): Add needed prerequisites to use it.
31341         * modules/memchr-tests (Files, Depends-on, configure.ac):
31342         Likewise, to avoid implicit reliance on memchr module prereqs.
31343         * tests/test-memchr.c (main): Ensure proper masking.
31344         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
31345         reads.
31346
31347         memchr: detect glibc Alpha bug
31348         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
31349         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
31350         Alpha.
31351         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
31352         * tests/test-memchr.c (main): Enhance test.
31353         Reported by Nelson H. F. Beebe.
31354
31355 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31356
31357         fts, getcwd, glob: audit for dirfd returning -1
31358         * lib/fts.c (opendir): Remove #define; no longer used.
31359         (opendirat): New arg PDIR_FD.  All callers changed.
31360         (fts_build, _opendir2): Use new opendirat to avoid the need for
31361         dirfd, or for checking whether dirfd returns a negative value.
31362         Don't use opendir; always use openat followed by fdopendir.
31363         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
31364         it.
31365         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
31366         returns -1 here.
31367         * modules/fts (Depends-on): Remove dirfd.
31368         * modules/getcwd (Depends-on): Likewise.
31369
31370 2010-09-13  Eric Blake  <eblake@redhat.com>
31371
31372         float: fix broken MirBSD header
31373         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
31374         * doc/posix-headers/float.texi (float.h): Document it.
31375
31376 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
31377
31378         fts: use O_NOFOLLOW to avoid race condition when opening a directory
31379         * lib/fts.c (opendirat): New arg extra_flags.
31380         (__opendir2): Use it to avoid following symlinks when opening
31381         a directory, if symlinks are not supposed to be followed.  See
31382         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
31383
31384         fdopendir: preserve argument fd before returning
31385         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
31386         (fdopendir_with_dup, fd_clone_opendir): New static functions.
31387         (fdopendir): Use them, arranging for FD to be open to the same
31388         directory that it was when it started.  (It might be temporarily
31389         closed while fdopendir is running, so this not thread- or
31390         signal-safe.)  Be careful to do the right thing even when file
31391         descriptors are scarce and dup fails with errno == EMFILE.  See
31392         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
31393
31394 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
31395
31396         regex: Pass the system regex if its only problem is 32-bit regoff_t.
31397         * NEWS: Document change.
31398         * m4/regex.m4: Disable test for regoff_t size.
31399
31400 2010-09-13  Jim Meyering  <meyering@redhat.com>
31401
31402         fts: don't operate on an invalid file descriptor after failed dup
31403         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
31404         negative file descriptor.
31405
31406 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
31407
31408         savedir: add streamsavedir, deprecate fdsavedir
31409         * NEWS: Mention deprecation of fdsavedir.
31410         * lib/savedir.c (streamsavedir): New extern function, whose name
31411         ends in "savedir" to be consistent with the others.  This differs
31412         from savedirstream in that it doesn't close its argument.  The
31413         next version of GNU tar will use this instead of fdsavedir, to
31414         avoid some race conditions and conserve file descriptors.
31415         (savedirstream): Reimplement as a wrapper around streamsavedir.
31416         (fdsavedir): Add a comment deprecating this function.  As far as
31417         I know, only GNU tar used it, and GNU tar doesn't need it any more.
31418         * lib/savedir.h (streamsavedir): New decl.
31419         (fdsavedir): Add a comment deprecating this.
31420
31421 2010-09-10  Bruno Haible  <bruno@clisp.org>
31422
31423         langinfo: Fix last commit.
31424         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
31425         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
31426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31427
31428 2010-09-10  Bruno Haible  <bruno@clisp.org>
31429
31430         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
31431         * lib/progreloc.c (O_EXEC): Define fallback.
31432
31433 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
31434
31435         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
31436         * NEWS: Document recent changes to fcntl-h.
31437         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
31438         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
31439         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
31440         Similarly for O_SEARCH; this last was already true, but not documented.
31441         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
31442         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
31443         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
31444         Likewise.
31445         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
31446         is zero, not whether it is defined.
31447         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
31448         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
31449         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
31450
31451 2010-09-10  Bruno Haible  <bruno@clisp.org>
31452
31453         langinfo, nl_langinfo: Fix for IRIX 5.3.
31454         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
31455         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
31456         HAVE_LANGINFO_YESEXPR.
31457         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
31458         HAVE_LANGINFO_YESEXPR.
31459         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
31460         HAVE_LANGINFO_T_FMT_AMPM is 0.
31461         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
31462         HAVE_LANGINFO_YESEXPR is 0.
31463         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
31464         NOEXPR.
31465         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
31466         * doc/posix-functions/nl_langinfo.texi: Likewise.
31467         Reported by Eric Blake.
31468
31469 2010-09-10  Bruno Haible  <bruno@clisp.org>
31470
31471         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
31472         * doc/glibc-functions/login_tty.texi: Mention the include file problem
31473         on FreeBSD 8.0 and OpenBSD 4.6.
31474         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
31475         * m4/pty_h.m4 (gl_PTY_H): Likewise.
31476         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
31477         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
31478         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
31479         ac_includes_default.
31480         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
31481
31482 2010-09-09  Eric Blake  <eblake@redhat.com>
31483
31484         strsignal: work around NetBSD bug
31485         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
31486         * lib/string.in.h (includes): Likewise.
31487         * doc/posix-functions/strsignal.texi (strsignal): Document the
31488         bug.
31489         Reported by Nelson H. F. Beebe.
31490
31491         gnulib-tool: work with NetBSD /bin/sh
31492         * gnulib-tool (func_cache_var, func_cache_lookup_module)
31493         (func_get_description, func_get_comment, func_get_status)
31494         (func_get_notice, func_get_applicability, func_get_filelist)
31495         (func_get_dependencies, func_get_autoconf_early_snippet)
31496         (func_get_autoconf_snippet, func_get_automake_snippet)
31497         (func_get_include_directive, func_get_link_directive)
31498         (func_get_license, func_get_maintainer, func_import): Avoid
31499         shell syntax errors from parsing syntax extensions.
31500
31501 2010-09-09  Bruno Haible  <bruno@clisp.org>
31502
31503         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31504         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
31505         a reliable way to determine whether the 'alias' command works.
31506
31507 2010-09-08  Jim Meyering  <meyering@redhat.com>
31508
31509         init.sh: penalize a set-x-impaired shell; don't disqualify it
31510         * tests/init.sh: Too many shells corrupt application stderr when
31511         you set -x, so we can't afford to disqualify them, since at least
31512         on Irix-6.5, that would disqualify all bourne shells.
31513         Instead, use a two-pass approach.
31514         On the first pass, try to find a shell that meets the stricter
31515         condition that set -x does not corrupt stderr.
31516         If no shell meets the stricter condition, retest each candidate
31517         shell, but without that extra condition.  Finally, when
31518         VERBOSE=yes is requested and set -x might cause trouble, simply
31519         issue a warning and refrain from enabling debug output.
31520
31521 2010-09-08  Eric Blake  <eblake@redhat.com>
31522
31523         unsetenv: fix OpenBSD bug
31524         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
31525         * doc/posix-functions/unsetenv.texi (unsetenv): Update
31526         documentation.
31527         Reported by Jim Meyering.
31528
31529         strtod: work around IRIX 6.5 bug
31530         * lib/strtod.c (strtod): Reparse number on shorter string if
31531         exponent parse was invalid.
31532         * tests/test-strtod.c (main): Add check for "0x1p 2".
31533         Reported by Tom G. Christensen.
31534
31535         getopt: optimize previous patch
31536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
31537         empty variable.  Speed up awk script.
31538         Reported by Paolo Bonzini.
31539
31540 2010-09-08  Jim Meyering  <meyering@redhat.com>
31541
31542         test.sh: disqualify shells for which set -x corrupts stderr
31543         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
31544         and OpenBSD 4.7.  They make it so with "set -x", environment settings
31545         appear in stderr output.  For example, this command:
31546             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
31547         prints "P=1" on those two systems:
31548
31549 2010-09-08  Bruno Haible  <bruno@clisp.org>
31550
31551         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
31552         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
31553         commands, because some shells ignore redirections when there is an
31554         error in the command lookup.
31555         Reported by Eric Blake.
31556
31557 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
31558
31559         * lib/regex.h: Fix a mention of `regex_compile' (should be
31560         `re_compile_pattern').
31561         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
31562         (re_set_registers): Correct name of parameter in comment.
31563
31564         * doc/regex.texi: Add documentation for missing syntax flags.
31565         Remove commented-out documentation of defunct syntax option
31566         RE_NO_EMPTY_ALTS.
31567         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
31568         Add documentation of re_set_registers.
31569         Document trick to re-use a pattern buffer by setting fastmap manually.
31570         Update documentation of struct re_pattern_buffer per public members.
31571         Uncomment documentation of equivalence class operators and
31572         collating symbol operators, since they are now implemented,
31573         Explain leftmost-longest matching in relation to alternatives.
31574         Tidy documentation of substring matching.
31575         Remove POSIX documentation, which is done better in
31576         glibc, and refer the reader there. Keep BSD API documentation, as
31577         that is not readily available elsewhere.
31578
31579 2010-09-07  Eric Blake  <eblake@redhat.com>
31580
31581         getopt: handle POSIXLY_CORRECT set but not exported
31582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
31583         export state of POSIXLY_CORRECT, due to bash set -o posix.
31584         Reported by Dustin J. Mitchell.
31585
31586 2010-09-05  Bruno Haible  <bruno@clisp.org>
31587
31588         gnulib-tool: Highlight the changed options.
31589         * gnulib-tool (func_usage): Display the --import, --add-import,
31590         --remove-import explanations in bold font.
31591
31592 2010-09-06  Karl Berry  <karl@gnu.org>
31593
31594         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
31595
31596 2010-09-05  Bruno Haible  <bruno@clisp.org>
31597
31598         uniwidth/width: Update comment.
31599         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
31600         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
31601
31602 2010-09-05  Bruno Haible  <bruno@clisp.org>
31603
31604         isinf, isnan: Relax license.
31605         * modules/isinf (License): Change from GPL to LGPL, with consent from
31606         Ben Pfaff.
31607         * modules/isnan (License): Likewise.
31608         Requested by Ludovic Courtès.
31609
31610 2010-09-04  Bruno Haible  <bruno@clisp.org>
31611
31612         gnulib-tool: Help migration from --import to --add-import or --update.
31613         * gnulib-tool: Emit a verbose error message when --import is used
31614         without any module name.
31615
31616 2010-09-04  Bruno Haible  <bruno@clisp.org>
31617
31618         Update doc about gnulib-tool.
31619         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
31620         'gnulib-tool --update' in more detail.
31621         Reported by Eric Blake.
31622
31623 2010-09-04  Bruno Haible  <bruno@clisp.org>
31624
31625         gnulib-tool: Change --import. New options --add/remove-import.
31626         * gnulib-tool: New options --add-import, --remove-import.
31627         (func_usage): Document them.
31628         (have_associative): Define always.
31629         (func_import): In import mode, don't merge the specified settings with
31630         the cached settings. Implement remove-import mode.
31631         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
31632         Explain when to use them versus --import.
31633         (Simple update): Use --add-import instead of --import.
31634         * NEWS: Mention the change.
31635
31636 2010-09-04  Bruno Haible  <bruno@clisp.org>
31637
31638         * doc/gnulib-tool.texi (Initial import): Update paragraph about
31639         separate gnulib.mk.
31640
31641 2010-09-04  Bruno Haible  <bruno@clisp.org>
31642
31643         gnulib-tool: Don't talk about CVS any more.
31644         * gnulib-tool (func_usage, func_import): Write "version control"
31645         instead of CVS.
31646
31647 2010-09-04  Jim Meyering  <meyering@redhat.com>
31648
31649         maint.mk: avoid obscure sc_copyright_check failure in coreutils
31650         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
31651         false positives (whose names may be ill-chosen) when searching
31652         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
31653         would cause a false-positive.
31654
31655         avoid coreutils "make distcheck" failure
31656         Coreutils tests with an absolute build directory name that contains
31657         a space.  Not quoting this directory name caused a failure.
31658         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
31659         * tests/test-vc-list-files-cvs.sh: Likewise.
31660
31661 2010-09-04  Bruno Haible  <bruno@clisp.org>
31662
31663         gnulib-tool: Avoid error when run in a package without Makefile.am.
31664         * gnulib-tool: When collecting the m4dirs in a package that does not
31665         have a Makefile.am, eliminate those directories that contain no
31666         gnulib-cache.m4. Fix expression that counts these directories.
31667
31668 2010-09-04  Bruno Haible  <bruno@clisp.org>
31669
31670         update-copyright test: Improve output when perl is missing or too old.
31671         * tests/test-update-copyright.sh: Move test of Perl version down after
31672         the test whether Perl exists. Provide an explanation relating Perl's
31673         error message to Automake's SKIP: message.
31674
31675 2010-09-04  Bruno Haible  <bruno@clisp.org>
31676
31677         Don't augment PATH in TESTS_ENVIRONMENT.
31678         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
31679         set abs_aux_dir instead of augmenting PATH.
31680         * modules/vc-list-files-tests (Makefile.am): Likewise.
31681         * tests/test-update-copyright.sh: Augment PATH here.
31682         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
31683         path_prepend_.
31684         * tests/test-vc-list-files-git.sh: Likewise.
31685
31686 2010-09-04  Jim Meyering  <meyering@redhat.com>
31687
31688         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
31689         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
31690
31691 2010-09-04  Bruno Haible  <bruno@clisp.org>
31692
31693         strdup: Fix compilation error in C++ mode.
31694         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
31695         the macro.
31696
31697 2010-09-04  Bruno Haible  <bruno@clisp.org>
31698
31699         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
31700         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
31701         macro into a function.
31702         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31703
31704 2010-09-04  Bruno Haible  <bruno@clisp.org>
31705
31706         Set PATH_SEPARATOR the same way autoconf does.
31707         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
31708         the value of PATH_SEPARATOR the same way autoconf-generated configure
31709         scripts do.
31710         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
31711         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
31712
31713 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
31714
31715         Set PATH_SEPARATOR the same way autoconf does.
31716         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
31717         the same way autoconf-generated configure scripts do.
31718         * posix-modules: Likewise.
31719
31720 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
31721
31722         hash: fix safe_hasher const typo
31723         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
31724         const; otherwise, there is a type error later.
31725
31726 2010-09-02  Jim Meyering  <meyering@redhat.com>
31727
31728         test-update-copyright.sh: require perl 5.8.0
31729         * tests/test-update-copyright.sh: Require 5.8.0,
31730         which Tom G. Christensen has confirmed is adequate,
31731         while 5.6.1 is not.
31732
31733 2010-09-02  Eric Blake  <eblake@redhat.com>
31734
31735         tests: init.sh improvements for re-exec'ing with zsh
31736         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
31737         -vx through shell re-exec.
31738         Reported by Tom G. Christensen.
31739
31740         wctype: fix typo in previous commit
31741         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
31742         Reported by Ludovic Courtès.
31743
31744 2010-09-02  Jim Meyering  <meyering@redhat.com>
31745
31746         test-update-copyright.sh: skip test if Perl is too old
31747         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
31748         Reported by Tom G. Christensen.
31749
31750 2010-09-02  Bruno Haible  <bruno@clisp.org>
31751
31752         wctype: Avoid compilation error on IRIX 6.5.30.
31753         * lib/wctype.in.h (iswblank): Declare with a replacement if
31754         REPLACE_ISWBLANK is set.
31755         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
31756         declared. Set REPLACE_ISWBLANK.
31757         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
31758         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
31759         * doc/posix-headers/wctype.texi: Likewise.
31760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31761
31762 2010-09-01  Bruno Haible  <bruno@clisp.org>
31763
31764         New module 'socketlib'.
31765         * modules/socketlib: New file.
31766         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
31767         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
31768         * modules/sockets (Depends-on): Add socketlib.
31769         Suggested by Sam Steingold <sds@gnu.org>.
31770
31771 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31772
31773         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
31774
31775         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
31776         when one needs search access to a directory but not read access.
31777         On systems where it is available, it works in some cases where
31778         O_RDONLY does not, namely on directories that are searchable but
31779         not readable, and which need only to be searchable.  If O_SEARCH
31780         is not available, fall back to the traditional method of using
31781         O_RDONLY.
31782
31783         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
31784         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
31785         when opening a directory that needs only to be searchable.
31786         * lib/chdir-safer.c (chdir_no_follow): Likewise.
31787         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
31788         * lib/openat-proc.c (openat_proc_name): Likewise.
31789         * lib/openat.c (openat_needs_fchdir): Likewise.
31790         * lib/save-cwd.c (save_cwd): Likewise.
31791         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
31792
31793 2010-08-28  Bruno Haible  <bruno@clisp.org>
31794
31795         New module 'host-cpu-c-abi'.
31796         * modules/host-cpu-c-abi: New file.
31797         * m4/host-cpu-c-abi.m4: New file, based on part of
31798         clisp/src/m4/general.m4.
31799         Requested by Sam Steingold <sds@gnu.org>.
31800
31801 2010-08-31  Eric Blake  <eblake@redhat.com>
31802         and Jim Meyering  <meyering@redhat.com>
31803
31804         hash: factor, and guard against misbehaving hasher function
31805         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
31806         of table->hasher's return value.  Also protect against a hash value
31807         so large that adding it to table->bucket results in a NULL pointer.
31808         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
31809         Use it in place of open-coded check-and-abort.
31810
31811 2010-08-30  Bruno Haible  <bruno@clisp.org>
31812
31813         hash: silence spurious clang warning
31814         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
31815         Reported by Eric Blake.
31816
31817 2010-08-30  Eric Blake  <eblake@redhat.com>
31818
31819         strstr, memmem, strcasestr: avoid leaked shell message
31820         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
31821         FreeBSD.
31822         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31823         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31824
31825         tests: silence clang warning
31826         * tests/test-malloca.c (do_allocation): Avoid dead store.
31827
31828 2010-08-29  Bruno Haible  <bruno@clisp.org>
31829
31830         gettext: Fix recent mistake.
31831         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
31832
31833 2010-08-29  Bruno Haible  <bruno@clisp.org>
31834
31835         selinux-h: Offer a --without-selinux option.
31836         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
31837         --without-selinux was specified, skip all tests and define
31838         HAVE_SELINUX_SELINUX_H to 0.
31839         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
31840         set LIB_SELINUX to empty.
31841         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
31842         gl_LIBSELINUX. If --without-selinux was specified, replace
31843         selinux/context.h.
31844         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
31845
31846 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31847             Bruno Haible  <bruno@clisp.org>
31848
31849         Make the module 'realloc-gnu' work again on AIX and OSF/1.
31850         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
31851         of HAVE_REALLOC.
31852         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
31853         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
31854         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
31855         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31856
31857 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31858             Bruno Haible  <bruno@clisp.org>
31859
31860         Make the module 'calloc-gnu' work again on AIX and OSF/1.
31861         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
31862         HAVE_CALLOC.
31863         * lib/xmalloc.c: Update accordingly.
31864         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
31865         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
31866         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
31867
31868 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31869             Bruno Haible  <bruno@clisp.org>
31870
31871         Make the module 'malloc-gnu' work again on AIX and OSF/1.
31872         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
31873         HAVE_MALLOC.
31874         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
31875         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
31876         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
31877
31878 2010-08-29  Bruno Haible  <bruno@clisp.org>
31879
31880         Update modules list.
31881         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
31882         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
31883         (String handling <string.h>): Add astrxfrm.
31884         (File system functions): Add readlinkat.
31885
31886 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31887
31888         Tests for module 'realloc-gnu'.
31889         * modules/realloc-gnu-tests: New file.
31890         * tests/test-realloc-gnu.c: New file.
31891
31892         Tests for module 'calloc-gnu'.
31893         * modules/calloc-gnu-tests: New file.
31894         * tests/test-calloc-gnu.c: New file.
31895
31896         Tests for module 'malloc-gnu'.
31897         * modules/malloc-gnu-tests: New file.
31898         * tests/test-malloc-gnu.c: New file.
31899
31900 2010-08-28  Bruno Haible  <bruno@clisp.org>
31901
31902         Rename module 'realloc' -> 'realloc-gnu'.
31903         * modules/realloc-gnu: New file, copied from modules/realloc.
31904         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
31905         obsolete.
31906         * modules/mgetgroups (Depends-on): Update.
31907         * doc/posix-functions/realloc.texi: Update.
31908         * NEWS: Mention the change.
31909
31910         Rename module 'calloc' -> 'calloc-gnu'.
31911         * modules/calloc-gnu: New file, copied from modules/calloc.
31912         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
31913         obsolete.
31914         * doc/posix-functions/calloc.texi: Update.
31915         * NEWS: Mention the change.
31916
31917         Rename module 'malloc' -> 'malloc-gnu'.
31918         * modules/malloc-gnu: New file, copied from modules/malloc.
31919         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
31920         obsolete.
31921         * modules/argp (Depends-on): Update.
31922         * modules/regex (Depends-on): Update.
31923         * doc/posix-functions/malloc.texi: Update.
31924         * NEWS: Mention the change.
31925
31926 2010-08-28  Eric Blake  <eblake@redhat.com>
31927
31928         pread, pwrite: add missing dependency
31929         * modules/pread (Depends-on): Add extensions.
31930         * modules/pwrite (Depends-on): Likewise.
31931
31932 2010-08-28  Bruno Haible  <bruno@clisp.org>
31933
31934         unistr/u*-strchr: Fix tests dependencies.
31935         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
31936         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
31937         Reported by Ian Beckwith <ianb@erislabs.net>.
31938
31939 2010-08-28  Bruno Haible  <bruno@clisp.org>
31940
31941         read-file: Don't occupy too much unused memory.
31942         * lib/read-file.c (fread_file): Shrink the buffer at the end.
31943
31944 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
31945             Eric Blake  <eblake@redhat.com>
31946             Bruno Haible  <bruno@clisp.org>
31947
31948         read-file: Avoid memory reallocations with regular files.
31949         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
31950         (fread_file): With regular files, use the remaining length as the
31951         initial buffer size.  Check against overflow.
31952         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
31953         sys_stat.
31954
31955 2010-08-28  Bruno Haible  <bruno@clisp.org>
31956
31957         ftello: Relax license.
31958         * modules/ftello (License): Relax to LGPLv2+.
31959         Reported by Eric Blake.
31960
31961 2010-08-28  Bruno Haible  <bruno@clisp.org>
31962
31963         Avoid relocwrapper link errors due to gnulib replacement functions.
31964         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
31965         function.
31966         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31967
31968 2010-08-28  Bruno Haible  <bruno@clisp.org>
31969
31970         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
31971         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
31972         defined.
31973         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
31974         Suggested by Eric Blake.
31975
31976 2010-08-28  Bruno Haible  <bruno@clisp.org>
31977
31978         sys_socket, netdb: Ensure socklen_t gets defined.
31979         * modules/sys_socket (Depends-on): Add socklen.
31980         * modules/netdb (Depends-on): Likewise.
31981         * modules/getaddrinfo (Depends-on): Remove socklen.
31982         * modules/getsockopt (Depends-on): Likewise.
31983         * modules/setsockopt (Depends-on): Likewise.
31984         * tests/test-sys_socket.c: Check that socklen_t is defined.
31985         * tests/test-netdb.c: Likewise.
31986         * m4/socklen.m4: Update comments.
31987         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31988
31989 2010-08-27  Eric Blake  <eblake@redhat.com>
31990
31991         login_tty: add missing dependency
31992         * modules/login_tty (Depends-on): Add pty.
31993
31994 2010-08-26  Eric Blake  <eblake@redhat.com>
31995
31996         lib-symbol-versions: fix m4 quoting
31997         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
31998         format for AC_LINK_IFELSE.
31999
32000         glob: fix compile test
32001         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
32002
32003         btowc: fix missing file
32004         * modules/btowc (Files): Also ship locale-fr.m4.
32005
32006         lseek: fix link test
32007         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
32008         AC_LINK_IFELSE.
32009
32010         include_next: silence autoconf 2.68 warning
32011         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
32012         AC_COMPILE_IFELSE as special.
32013         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
32014         autoconf < 2.68.
32015
32016         acl: fix compilation test
32017         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
32018         AC_COMPILE_IFELSE.
32019
32020 2010-08-26  Bruno Haible  <bruno@clisp.org>
32021
32022         Modernize AC_TRY_RUN invocations.
32023         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
32024         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
32025         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
32026         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
32027         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
32028         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
32030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32031         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32032         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
32033         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
32034         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
32035         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
32036         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32037         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
32038         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
32039         gl_MBRLEN_NUL_RETVAL): Likewise.
32040         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
32041         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
32042         Likewise.
32043         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
32044         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
32045         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
32046         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
32047         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
32048         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
32049         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
32050         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
32051         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
32052         Likewise.
32053         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
32054         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
32055         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32056         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32057         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32058         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
32059         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
32060         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
32061         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
32062         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
32063
32064 2010-08-26  Bruno Haible  <bruno@clisp.org>
32065
32066         Modernize AC_TRY_LINK invocations.
32067         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
32068         AC_TRY_LINK.
32069         * m4/argp.m4 (gl_ARGP): Likewise.
32070         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
32071         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32072         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
32073         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
32074         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
32075         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
32076         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
32077         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
32078         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
32079         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
32080         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
32081         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
32082         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
32083         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
32084         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
32085         * m4/hostent.m4 (gl_HOSTENT): Likewise.
32086         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
32087         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
32088         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
32089         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
32090         Likewise.
32091         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
32092         Likewise.
32093         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
32094         Likewise.
32095         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
32096         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
32097         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
32098         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
32099         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
32100         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32101         * m4/servent.m4 (gl_SERVENT): Likewise.
32102         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
32103         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
32104         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
32105         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
32106         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
32107         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
32108         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32109         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32110         * modules/tsearch-tests (configure.ac): Likewise.
32111
32112 2010-08-26  Bruno Haible  <bruno@clisp.org>
32113
32114         Modernize AC_TRY_COMPILE invocations.
32115         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
32116         AC_TRY_COMPILE.
32117         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
32118         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
32119         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
32120         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
32121         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
32122         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
32123         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32124         * m4/lock.m4 (gl_LOCK): Likewise.
32125         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
32126         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
32127         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
32128         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32129         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
32130         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
32131         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
32132         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
32133         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
32134         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
32135         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
32136         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
32137         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
32138         extraneous semicolon.
32139
32140 2010-08-26  Jim Meyering  <meyering@redhat.com>
32141
32142         stat-time: relax license LGPL
32143         * modules/stat-time (License): Change from GPL to LGPL,
32144         with consent from all contributors, for use in libguile.
32145         Requested by Ludovic Courtès.
32146
32147 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
32148
32149         poll: return immediately on POLLHUP.
32150         * lib/poll.c (poll): Always set timeout before wait_timeout is
32151         computed.
32152
32153 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32154
32155         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
32156         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
32157         rmdir ("dir/.//"), unlinkat.
32158
32159 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32160
32161         stdbool: avoid spurious failure with modern xlc
32162         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32163
32164 2010-08-24  Bruno Haible  <bruno@clisp.org>
32165
32166         getloadavg: simplify code
32167         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
32168         gl_have_func. Update comments.
32169
32170 2010-08-24  Eric Blake  <eblake@redhat.com>
32171
32172         getloadavg: don't define SVR4 on cygwin
32173         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
32174         only define SVR4 when -lkvm is required.
32175         Reported by Yaakov Selkowitz.
32176
32177 2010-08-24  Bruno Haible  <bruno@clisp.org>
32178
32179         priv-set: fix comment
32180         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
32181
32182 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32183
32184         priv-set: fix comments
32185         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
32186         to match code, as suggested by David Bartley in:
32187         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
32188
32189 2010-08-23  Eric Blake  <eblake@redhat.com>
32190
32191         stdbool: avoid rejecting clang
32192         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
32193         * tests/test-stdbool.c: Enable more tests if using the system
32194         <stdbool.h> instead of the gnulib replacement.
32195         (main): Move xlc bug test to a runtime test for all compilers.
32196         Reported by Anders Kaseorg.
32197
32198         argz: fix shell quoting issue
32199         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
32200         Reported by Charles Wilson.
32201
32202 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
32203             Erik Faye-Lund <kusmabite@gmail.com>
32204
32205         poll, select: handle ERROR_BROKEN_PIPE.
32206         * lib/poll.c (win32_compute_revents): Return POLLHUP when
32207         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32208         * lib/select.c (win32_compute_revents): Do not mark a pipe
32209         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
32210
32211 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
32212
32213         fts: allow compilation with C++
32214         * lib/fts_.h: Specify extern "C" linkage with C++.
32215
32216 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32217
32218         Fix gnulib-tool sed script de-commentation for AIX sed.
32219         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
32220         sed.
32221
32222 2010-08-17  Eric Blake  <eblake@redhat.com>
32223
32224         test-stddef: test for (some) offsetof bugs
32225         * tests/test-stddef.c: Enhance test to ensure correct type of
32226         offsetof.
32227         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
32228         that we are not fixing at this time.
32229
32230 2010-08-15  Bruno Haible  <bruno@clisp.org>
32231
32232         stpncpy: Allow stpncpy to be defined as a macro.
32233         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
32234         if it's already correctly declared.
32235         * lib/string.in.h (stpncpy): Undefine before redefining.
32236         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
32237
32238 2010-08-14  Bruno Haible  <bruno@clisp.org>
32239
32240         Rename module 'memxfrm' to 'amemxfrm'.
32241         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
32242         (amemxfrm): Renamed from memxfrm.
32243         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
32244         (amemxfrm): Renamed from memxfrm.
32245         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
32246         * NEWS: Mention the change.
32247         * MODULES.html.sh (String handling <string.h>): Update.
32248         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
32249         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
32250         * lib/unicase/u16-casexfrm.c: Likewise.
32251         * lib/unicase/u32-casexfrm.c: Likewise.
32252         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
32253         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
32254         * lib/uninorm/u16-normxfrm.c: Likewise.
32255         * lib/uninorm/u32-normxfrm.c: Likewise.
32256         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
32257         memxfrm.
32258         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
32259         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
32260         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
32261         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
32262         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
32263         Suggested by Paul Eggert.
32264
32265 2010-08-14  Bruno Haible  <bruno@clisp.org>
32266
32267         Tests for module 'astrxfrm'.
32268         * modules/astrxfrm-tests: New file.
32269         * tests/test-astrxfrm.c: New file.
32270
32271         New module 'astrxfrm'.
32272         * lib/astrxfrm.h: New file.
32273         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
32274         * modules/astrxfrm: New file.
32275
32276 2010-08-14  Reuben Thomas <rrt@sc3d.org>
32277
32278         regex: Tweak doc.
32279         * doc/regex.texi (Overview): Don't mention regex.c.
32280         (GNU Regular Expression Compiling): Likewise.
32281         (Match-end-of-line Operator): Mention 'not_eol'.
32282
32283 2010-08-14  Brian Gough  <bjg@gnu.org>
32284             Bruno Haible  <bruno@clisp.org>
32285
32286         git-merge-changelog: add doc relating to use with bzr and hg.
32287         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
32288
32289 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
32290
32291         pthread: fix pthread.h creation for srcdir != builddir
32292         * modules/pthread (Makefile.am): Fix the rule to work also in a
32293         non-srcdir build.
32294
32295 2010-08-13  Karl Berry  <karl@gnu.org>
32296
32297         * doc/regex.texi (Predefined Syntaxes): @smallexample.
32298         * doc/posix-*/*: force line break before @url of POSIX
32299         specifications.
32300         Suggested by Werner Lemberg.
32301
32302 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
32303
32304         strtod: fix const diagnostic
32305         * lib/strtod.c (strtod): Don't assign const char * to char *,
32306         as this elicits a warning from GCC when warnings are enabled.
32307
32308 2010-08-10  Pádraig Brady <P@draigbrady.com>
32309         and Eric Blake  <eblake@redhat.com>
32310
32311         copy-acl: ignore ENOTSUP on HP-UX
32312         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
32313         so that it is available for HP-UX.
32314         * lib/copy-acl.c (qcopy_acl): Use it.
32315         Reported by Patrick M. Callahan.
32316
32317 2010-08-10  Eric Blake  <eblake@redhat.com>
32318
32319         open, chown: relax license
32320         * modules/open (License): Change to LGPLv2+, with consent by all
32321         authors, for use in augeas.
32322         * modules/chown (License): Likewise.
32323         * modules/lchown (Likewise): Likewise.
32324         Requested by Adam Stokes.
32325
32326 2010-08-09  Karl Berry  <karl@gnu.org>
32327
32328         * build-aux/ar-lib: new file, import from Automake.
32329         * config/srclist.txt: autocheck for updates.
32330
32331 2010-08-09  Eric Blake  <eblake@redhat.com>
32332
32333         readlinkat: adjust client modules
32334         * modules/areadlinkat (Depends-on): Use readlinkat, not
32335         symlinkat.
32336         * modules/areadlinkat-with-size (Depends-on): Likewise.
32337
32338         mknod: be more vocal about danger of running tests as root
32339         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
32340         root, since that is just asking for problems.
32341         Suggested by Bruno Haible, based on a report by Rainer Tammer.
32342
32343         readlinkat: split into its own module
32344         * modules/symlinkat: Split readlinkat...
32345         * modules/readlinkat: ...into separate module.
32346         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
32347         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
32348         * lib/symlinkat.c (readlinkat): Move...
32349         * lib/readlinkat.c: ...into new file.
32350         * modules/symlinkat-tests: Split readlinkat test...
32351         * modules/readlinkat-tests: ...into separate module.
32352         * tests/test-symlinkat.c: Split...
32353         * tests/test-readlinkat.c: ...into new file.
32354         * NEWS: Document the split.
32355         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32356         * lib/unistd.in.h (readlinkat): Likewise.
32357         Suggested by Bruno Haible.
32358
32359 2010-08-08  Bruno Haible  <bruno@clisp.org>
32360
32361         memxfrm: Speed up.
32362         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
32363         that usually only one call to strxfrm is necessary for each string
32364         part.
32365         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32366
32367 2010-08-07  Karl Berry  <karl@gnu.org>
32368
32369         * doc/posix-headers/limits.texi,
32370         * doc/posix-functions/malloc.texi,
32371         * doc/posix-functions/strsignal.texi: missing @item.
32372         * doc/ld-version-script.texi: spurious leading i.
32373         * doc/regex.texi (Interval Operators): no commas inside @var.
32374
32375 2010-08-01  Bruno Haible  <bruno@clisp.org>
32376
32377         Integrate the regex documentation.
32378         * doc/gnulib.texi: Define 'cn' index.
32379         (Regular expressions): New a chapter that includes regex.texi and
32380         regexprops-generic.texi.
32381         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
32382         syntax.
32383
32384         Whitespace cleanup.
32385         * doc/regex.texi: Remove trailing spaces.
32386
32387         Add regex documentation.
32388         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
32389         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
32390         Written by Kathy A. Hargreaves and Karl Berry.
32391
32392 2010-08-01  Bruno Haible  <bruno@clisp.org>
32393
32394         link: Update documentation.
32395         * doc/posix-functions/link.texi: Update regarding Solaris.
32396
32397 2010-07-31  Bruno Haible  <bruno@clisp.org>
32398
32399         Update modules list.
32400         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
32401         (String handling <string.h>): Add memcmp2, memxfrm.
32402         (Container data structures): Add xlist, xsublist, xoset.
32403         (Core language properties): Add alignof, unused-parameter.
32404         (Process control, Numeric conversion functions <stdlib.h>): Renamed
32405         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
32406         (Unibyte characters <ctype.h>): New section.
32407         (String handling <string.h>): New section.
32408         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
32409         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
32410         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
32411         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
32412         tan, tanh, tanl, y0, y1, yn.
32413         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
32414         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
32415         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
32416         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
32417         unlockpt, vdprintf, vdprintf-posix.
32418         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
32419         (File system functions): Add concat-filename, sys_file, sys_ioctl,
32420         xconcat-filename.
32421         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
32422         getdtablesize, pipe2, pipe2-safer.
32423         (Security): New section.
32424         (Networking functions): Add accept4.
32425         (Signal handling): Add sigpipe.
32426         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
32427         mbmemcasecoll.
32428         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
32429         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
32430         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
32431         pipe-filter-ii.
32432         (Misc): Add argp-version-etc, login_tty, parse-duration.
32433
32434 2010-07-31  Bruno Haible  <bruno@clisp.org>
32435
32436         Improve doc in MODULES.html.
32437         * modules/linkat (Description): Add the word "function".
32438         * modules/mkfifo (Description): Likewise.
32439         * modules/mknod (Description): Likewise.
32440         * modules/remove (Description): Likewise.
32441         * modules/renameat (Description): Likewise.
32442         * modules/stat (Description): Likewise.
32443         * modules/symlink (Description): Likewise.
32444         * modules/unlink (Description): Likewise.
32445
32446 2010-07-31  Bruno Haible  <bruno@clisp.org>
32447
32448         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
32449         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
32450         option --enable/disable-c++ instead of --enable/disable-cxx.
32451         * NEWS: Mention the change.
32452
32453 2010-07-31  Bruno Haible  <bruno@clisp.org>
32454
32455         readlink, areadlink: Relax test a bit.
32456         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
32457         alternative to ENOTDIR.
32458         * tests/test-areadlink.h (test_areadlink): Likewise.
32459         Reported by Rainer Tammer.
32460
32461 2010-07-31  Bruno Haible  <bruno@clisp.org>
32462
32463         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
32464         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
32465         character, perform the search using U_STRCHR.
32466         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
32467         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
32468         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
32469         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
32470         Suggested by Paolo Bonzini.
32471
32472 2010-07-31  Bruno Haible  <bruno@clisp.org>
32473
32474         unistr/u*-strstr: Fix dependencies.
32475         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
32476         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
32477         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
32478
32479 2010-07-31  Bruno Haible  <bruno@clisp.org>
32480
32481         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
32482         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
32483         the beginning of the loop.
32484         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
32485         cases in 'switch' statement.
32486
32487         unistr/u8-strchr: Fix several bugs.
32488         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
32489         the string. When not found, return NULL, not a pointer near the end.
32490
32491         More tests for unistr/u8-strchr.
32492         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
32493         that the function does not read past the first occurrence of the byte
32494         being searched.
32495         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
32496         * tests/unistr/test-u16-strchr.c (main): New function.
32497         * tests/unistr/test-u32-strchr.c (main): New function.
32498
32499 2010-07-31  Bruno Haible  <bruno@clisp.org>
32500
32501         posix-modules: Ignore backup files of documentation files.
32502         * posix-modules: grep only through files named *.texi.
32503
32504 2010-07-31  Bruno Haible  <bruno@clisp.org>
32505
32506         symlinkat: Fix documentation.
32507         * doc/posix-functions/readlinkat.texi: Fix module name.
32508
32509 2010-07-31  Bruno Haible  <bruno@clisp.org>
32510
32511         fchownat: Replace also when chown has the trailing slash bug.
32512         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
32513         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
32514         introduced on 2010-04-10.
32515         Reported by Rainer Tammer.
32516
32517 2010-07-31  Bruno Haible  <bruno@clisp.org>
32518
32519         linkat: Work around AIX 7.1 bug.
32520         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
32521         whether linkat handles trailing slash correctly. If not, replace linkat
32522         and define LINKAT_TRAILING_SLASH_BUG.
32523         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
32524         check whether (fd1,file1) points to a directory if file1 or file2 ends
32525         in a slash. Code taken from lib/link.c.
32526         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
32527         Reported by Rainer Tammer.
32528
32529 2010-07-31  Bruno Haible  <bruno@clisp.org>
32530
32531         Correctly determine whether pow is available in libc on AIX 7 with xlc.
32532         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
32533         This disables an xlc optimization that was causing wrong test results.
32534         Reported by Rainer Tammer.
32535
32536 2010-07-31  Bruno Haible  <bruno@clisp.org>
32537
32538         iconv: Work around AIX 6.1..7.1 bug.
32539         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
32540         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
32541         cross-compiling, guess no on all versions of AIX.
32542         Reported by Rainer Tammer.
32543
32544 2010-07-31  Bruno Haible  <bruno@clisp.org>
32545
32546         readlink: Relax test a bit.
32547         * tests/test-readlink.h (test_readlink): Allow different errno value
32548         when readlink is called with a file name that ends in / and refers to
32549         a file.
32550         Suggested by Eric Blake.
32551         Reported by Rainer Tammer.
32552
32553 2010-07-31  Bruno Haible  <bruno@clisp.org>
32554
32555         copysign: Does not require -lm on glibc systems.
32556         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
32557         gl_COMMON_DOUBLE_MATHFUNC.
32558         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
32559
32560 2010-07-31  Bruno Haible  <bruno@clisp.org>
32561
32562         duplocale: Work around AIX 7.1 bug.
32563         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
32564         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
32565         * lib/duplocale.c (rpl_duplocale): Update comment.
32566         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
32567         Reported by Rainer Tammer.
32568
32569 2010-07-30  Bruno Haible  <bruno@clisp.org>
32570
32571         dirfd: Avoid link error on AIX 7.1.
32572         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
32573         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
32574         exist, set REPLACE_DIRFD.
32575         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
32576         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
32577         * doc/posix-functions/dirfd.texi: Update.
32578         Reported by Rainer Tammer.
32579
32580 2010-07-30  Eric Blake  <eblake@redhat.com>
32581
32582         strtod: next round of AIX fixes
32583         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
32584         exponent.
32585         * tests/test-strtod.c (main): Enhance tests.
32586         * doc/posix-functions/strtod.texi (strtod): Document next bug.
32587         Reported by Rainer Tammer.
32588
32589         futimens: fix configure check
32590         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
32591         Reported by Bruno Haible.
32592
32593 2010-07-30  Bruno Haible  <bruno@clisp.org>
32594
32595         getline: Update regarding AIX.
32596         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
32597         Reported by Rainer Tammer.
32598
32599 2010-07-30  Bruno Haible  <bruno@clisp.org>
32600
32601         wcwidth: Drop replacement on AIX 7.
32602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
32603         AIX 7.
32604         Reported by Rainer Tammer.
32605
32606 2010-07-30  Bruno Haible  <bruno@clisp.org>
32607
32608         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
32609         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
32610         a 'char *'.
32611         Reported by Rainer Tammer.
32612
32613 2010-07-30  Bruno Haible  <bruno@clisp.org>
32614
32615         unlink: Update regarding AIX.
32616         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
32617         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
32618         Reported by Rainer Tammer.
32619
32620 2010-07-30  Bruno Haible  <bruno@clisp.org>
32621
32622         symlink: Update regarding AIX.
32623         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
32624         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
32625         Reported by Rainer Tammer.
32626
32627 2010-07-30  Bruno Haible  <bruno@clisp.org>
32628
32629         strndup: Update regarding AIX.
32630         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
32631         AIX 7.
32632         Reported by Rainer Tammer.
32633
32634 2010-07-30  Bruno Haible  <bruno@clisp.org>
32635
32636         stat: Update regarding AIX.
32637         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
32638         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
32639         Reported by Rainer Tammer.
32640
32641 2010-07-30  Bruno Haible  <bruno@clisp.org>
32642
32643         truncl: Fix autoconf test.
32644         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
32645         whether truncl works.
32646         Reported by Rainer Tammer.
32647
32648 2010-07-30  Bruno Haible  <bruno@clisp.org>
32649
32650         round: Update regarding AIX.
32651         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
32652         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
32653         Reported by Rainer Tammer.
32654
32655 2010-07-30  Bruno Haible  <bruno@clisp.org>
32656
32657         rename: Update regarding AIX.
32658         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
32659         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
32660         Reported by Rainer Tammer.
32661
32662 2010-07-30  Bruno Haible  <bruno@clisp.org>
32663
32664         printf.m4: Update regarding AIX.
32665         * m4/printf.m4: Update comments regarding AIX.
32666         Reported by Rainer Tammer.
32667
32668 2010-07-30  Bruno Haible  <bruno@clisp.org>
32669
32670         iconv: Update regarding AIX.
32671         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
32672         AIX 7.
32673         Reported by Rainer Tammer.
32674
32675 2010-07-30  Bruno Haible  <bruno@clisp.org>
32676
32677         getopt: Update regarding AIX.
32678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
32679         no on AIX.
32680         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
32681         Reported by Rainer Tammer.
32682
32683 2010-07-30  Bruno Haible  <bruno@clisp.org>
32684
32685         ldexpl; Update regarding AIX.
32686         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
32687         on AIX 7.
32688         Reported by Rainer Tammer.
32689
32690 2010-07-30  Bruno Haible  <bruno@clisp.org>
32691
32692         frexpl: Update regarding AIX.
32693         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
32694         on AIX 7.
32695         Reported by Rainer Tammer.
32696
32697 2010-07-30  Bruno Haible  <bruno@clisp.org>
32698
32699         open, fopen: Update regarding AIX.
32700         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
32701         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
32702         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
32703         * doc/posix-functions/fopen.texi: Likewise.
32704         Reported by Rainer Tammer.
32705
32706 2010-07-30  Bruno Haible  <bruno@clisp.org>
32707
32708         chown: Update doc regarding AIX.
32709         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
32710         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
32711         Reported by Rainer Tammer.
32712
32713 2010-07-30  Eric Blake  <eblake@redhat.com>
32714
32715         strtod: fix bug in replacement function on AIX
32716         * lib/strtod.c (strtod): Special case broken "0x" parse in
32717         underlying strtod.
32718         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
32719         * doc/posix-functions/strtod.texi (strtod): Likewise.
32720         Reported by Rainer Tammer.
32721
32722 2010-07-30  Bruno Haible  <bruno@clisp.org>
32723
32724         mbrlen: Fix cross-compilation guess for AIX.
32725         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
32726         guess. Leftover from 2008-12-22.
32727
32728 2010-07-30  Bruno Haible  <bruno@clisp.org>
32729
32730         mbrtowc: Fix cross-compilation guess for AIX.
32731         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
32732         guess. Leftover from 2008-12-21.
32733
32734 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
32735
32736         init.sh: work around trap limitation of some shells
32737         * tests/init.sh (setup_): Move exit trap outside of shell function.
32738
32739 2010-07-29  Eric Blake  <eblake@redhat.com>
32740
32741         strtod: aid debugging
32742         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
32743         understanding why strtod is rejected.
32744
32745 2010-07-28  Bruno Haible  <bruno@clisp.org>
32746
32747         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
32748         * lib/unistr/u8-chr.c: Include <string.h>.
32749         * tests/unistr/test-u8-chr.c: Likewise.
32750         * tests/unistr/test-u16-chr.c: Likewise.
32751         * tests/unistr/test-u32-chr.c: Likewise.
32752         * tests/unistr/test-u8-strchr.c: Likewise.
32753         * tests/unistr/test-u16-strchr.c: Likewise.
32754         * tests/unistr/test-u32-strchr.c: Likewise.
32755         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
32756         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
32757         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
32758         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
32759
32760 2010-07-28  Bruno Haible  <bruno@clisp.org>
32761
32762         Use spaces for indentation, not tabs.
32763         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32764
32765 2010-07-27  Bruno Haible  <bruno@clisp.org>
32766
32767         mbspcasecmp: Fix function specification.
32768         * lib/string.in.h (mbspcasecmp): Fix specification comment.
32769         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
32770         Reported by Eric Blake <eblake@redhat.com>.
32771
32772 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
32773
32774         timespec: use cast and not conditional, as truncation isn't possible
32775         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
32776         instead of a conditional.  Comment about the situation in more detail.
32777         This undoes most of the 2009-10-29 patch.
32778
32779 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
32780
32781         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
32782         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
32783         * lib/unistr/u8-strchr.c: Likewise.
32784         * modules/unistr/u8-chr: Depend on memchr.
32785
32786         unistr/u*-strchr: add tests
32787         * modules/unistr/u8-strchr-tests: New file.
32788         * modules/unistr/u16-strchr-tests: New file.
32789         * modules/unistr/u32-strchr-tests: New file.
32790         * tests/unistr/test-strchr.h: New file.
32791         * tests/unistr/test-u8-strchr.c: New file.
32792         * tests/unistr/test-u16-strchr.c: New file.
32793         * tests/unistr/test-u32-strchr.c: New file.
32794
32795         unistr/u*-chr: test multibyte sequences more
32796         * tests/unistr/test-chr.h: Do complete testing of the characters in the
32797         test vector.
32798         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
32799         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
32800         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
32801
32802         unistr/u*-chr: test multibyte sequences
32803         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
32804
32805         unistr/u*-chr: prepare for multibyte tests
32806         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
32807         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
32808         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
32809         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
32810         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
32811         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
32812
32813 2010-07-18  Bruno Haible  <bruno@clisp.org>
32814
32815         unistr/u8-strchr: Optimize non-ASCII argument case.
32816         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
32817         because the first byte often matches anyway.
32818         Reported by Pádraig Brady <P@draigbrady.com>.
32819
32820 2010-07-15  Karl Berry  <karl@gnu.org>
32821
32822         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
32823
32824 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
32825
32826         getcwd: on Solaris, work better if ancestors are inaccessible
32827         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
32828         buffer and size, try again with a large buffer.  This works better
32829         on Solaris, since its getcwd succeeds even if the path to the root
32830         is inaccessible, and this is helpful in common cases such as .zfs
32831         hidden directories.  Problem reported by J Chapman Flack in
32832         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
32833         Use system getcwd if it's declared, not merely if it's partly
32834         working; use the partly-working test only to avoid needless effort
32835         if the system getcwd fails.
32836         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
32837         comment that was already obsolete and is now even more obsolete.
32838         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
32839         now might call strdup.
32840
32841 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
32842
32843         pthread: Add enough so that coreutils/src/sort.c compiles.
32844         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
32845         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
32846         gnulib. Include <sched.h> and <time.h>, as per POSIX.
32847         Include <sys/types.h>, in case it defines pthread_t.
32848         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
32849         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
32850         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
32851         (pthread_rwlockattr_t, pthread_spinlock_t):
32852         New typedefs, if HAVE_PTHREAD_T is not defined.
32853         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
32854         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
32855         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
32856         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
32857         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
32858         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
32859         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
32860         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
32861         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
32862         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
32863         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
32864         New macros.
32865         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
32866         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
32867         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
32868         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
32869         (pthread_spin_unlock): New dummy functions.
32870         (pthread_create): Return EAGAIN; don't set errno.
32871         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
32872         require AC_C_INLINE.
32873         * modules/pthread (Depends-on): Add sched, time.
32874         (pthread.h): Use AM_V_GEN.
32875
32876 2010-07-13  Bruno Haible  <bruno@clisp.org>
32877
32878         striconveh: Don't malloc memory if the result buffer is sufficient.
32879         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
32880         buffer if its size is sufficient.
32881         Reported by Ludovic Courtès <ludo@gnu.org>.
32882
32883 2010-07-13  Bruno Haible  <bruno@clisp.org>
32884
32885         strtod: Add safety check.
32886         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
32887
32888 2010-07-12  Bruno Haible  <bruno@clisp.org>
32889
32890         Unify tests that set gl_cv_func_ldexpl_no_libm.
32891         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
32892         gl_FUNC_LDEXPL.
32893         (gl_FUNC_LDEXPL): Invoke it.
32894         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32895
32896 2010-07-12  Bruno Haible  <bruno@clisp.org>
32897
32898         Unify tests that set gl_cv_func_ldexp_no_libm.
32899         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
32900         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
32901         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
32902         (configure.ac): Simply invoke gl_FUNC_LDEXP.
32903         * modules/strtod (Files): Add m4/ldexp.m4.
32904
32905 2010-07-12  Bruno Haible  <bruno@clisp.org>
32906
32907         Unify tests that set gl_cv_func_frexpl_no_libm.
32908         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
32909         gl_FUNC_FREXPL_NO_LIBM.
32910         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
32911         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32912
32913 2010-07-12  Bruno Haible  <bruno@clisp.org>
32914
32915         Unify tests that set gl_cv_func_frexp_no_libm.
32916         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
32917         gl_FUNC_FREXP_NO_LIBM.
32918         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
32919         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
32920
32921 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32922
32923         memcoll: clarify sizes versus lengths, document better, and tweak perf
32924         * lib/memcoll.c (strcoll_loop, memcoll0):
32925         Improve quality of descriptive comments.  Name variables
32926         consistently as to whether they are lengths (which do not include
32927         terminating null) versus sizes (which do).
32928         * lib/xmemcoll.c (xmemcoll0): Likewise.
32929         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
32930         returned when s1size == 0; this is easier to compile and saves
32931         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
32932
32933 2010-07-12  Bruno Haible  <bruno@clisp.org>
32934
32935         Tests for module '_Exit'.
32936         * modules/_Exit-tests: New file.
32937         * tests/test-_Exit.sh: New file.
32938         * tests/test-_Exit.c: New file.
32939
32940         New module '_Exit'.
32941         * lib/stdlib.in.h (__attribute__): New macro.
32942         (_Exit): New declaration.
32943         * lib/_Exit.c: New file.
32944         * m4/_Exit.m4: New file.
32945         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
32946         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
32947         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
32948         * modules/_Exit: New file.
32949         * tests/test-stdlib-c++.cc (_Exit): Check signature.
32950         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
32951
32952 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
32953
32954         strtod: make it more-accurate typically, and don't require libm
32955         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
32956         Include limits.h.  Don't include string.h.
32957         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
32958         (locale_isspace): New function, so that no casts are needed to
32959         check whether *s is a space.
32960         (ldexp): Provide an unused dummy if not available.
32961         (scale_radix_exp, parse_number, underlying_strtod): New functions.
32962         (strtod): Use them.  This implementation prefers to use the
32963         underlying strtod if available, falling back on our own code
32964         only to fix known bugs.  This is more likely to produce an
32965         accurate result.  Also, it avoids the use of libm functions.
32966         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
32967         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
32968         was absent, but it caused a test failure with coreutils.
32969         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
32970         with libm.
32971         * modules/strtod (Makefile.am, Link): libm is no longer needed.
32972         * modules/strtod-tests (Makefile.am): Likewise.
32973
32974 2010-07-11  Pádraig Brady  <P@draigBrady.com>
32975             Bruno Haible  <bruno@clisp.org>
32976
32977         unistr/u8-strchr: Optimize ASCII argument case.
32978         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
32979
32980 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32981
32982         (x)memcoll: minor tweaks
32983         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
32984         is after the type that it qualifies.
32985         (memcoll0): Likewise.
32986         * lib/memcoll.h (memcoll0): Likewise.
32987         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
32988         * lib/xmemcoll.h (xmemcoll0): Likewise.
32989         * lib/memcoll.c (memcoll0): Correct the comment.  This function
32990         differs from memcoll in that the NUL byte is part of the argument.
32991         Omit the abort-checks, as performance is a real issue here.  Plus,
32992         the checks were wrong anyway (an off-by-one error).  Omit local
32993         variable 'diff', as it's a bit clearer that way.
32994         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
32995         no longer needed.
32996
32997 2010-07-08  Chen Guo <chenguo4@yahoo.com>
32998
32999         (x)memcoll: speedup when input is known to be NUL delimited
33000         * lib/memcoll.c: Include stdlib.
33001         (memcoll0): New function.
33002         (strcoll_loop): New function, refactored for use in both memcoll
33003         and memcoll0.
33004         * lib/memcoll.h (memcoll0): Add prototype.
33005         * lib/xmemcoll.c (xmemcoll0): New function.
33006         (collate_error): New function, refactored for use in both xmemcoll
33007         and xmemcoll0.
33008         * lib/xmemcoll.h (xmemcoll0): Add prototype.
33009         * m4/memcoll.m4: add inline invocation.
33010
33011 2010-07-06  Pádraig Brady  <P@draigBrady.com>
33012
33013         * build-aux/bootstrap: Remove any local translations
33014         from the translation project synchronization directory,
33015         so that local only translations are not distributed.
33016
33017 2010-07-04  Bruno Haible  <bruno@clisp.org>
33018
33019         fsusage: Clarify which code applies to which platforms.
33020         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
33021         platform.
33022         * lib/fsusage.c (get_fs_usage): Likewise.
33023
33024 2010-07-04  Bruno Haible  <bruno@clisp.org>
33025
33026         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
33027         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
33028         Reported by Martin Lambers <marlam@marlam.de>.
33029
33030 2010-07-04  Jim Meyering  <meyering@redhat.com>
33031
33032         hash: once again explicitly disallow insertion of NULL
33033         * lib/hash.c (hash_insert0): Reinstate just-removed test:
33034         inserting a NULL pointer cannot work with these functions.
33035         Add a comment with details.
33036         This reverts part of the 2010-07-01 commit, 5bef1a35
33037         "hash: extend module to deal with non-pointer keys".
33038
33039 2010-07-01  Bruno Haible  <bruno@clisp.org>
33040
33041         stdbool: Update doc.
33042         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
33043         Info from Christian Weisgerber <naddy@mips.inka.de>.
33044
33045 2010-07-01  Jim Meyering  <meyering@redhat.com>
33046
33047         hash: extend module to deal with non-pointer keys
33048         * lib/hash.c (hash_insert0): New interface, much like hash_insert
33049         but that allows insertion of non-pointer entries.
33050         Do not disallow an ENTRY value of NULL.
33051         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
33052         * lib/hash.h (hash_insert0): Declare.
33053
33054 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
33055
33056         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
33057         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
33058         not present (i.e. with autoconf 2.59 and when using gettextize, not
33059         gnulib), require AC_GNU_SOURCE instead.
33060
33061 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
33062
33063         idpriv-drop: Fix tests.
33064         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
33065         not to the test-idpriv-droptemp program.
33066
33067 2010-06-29  Bruno Haible  <bruno@clisp.org>
33068
33069         string: Fix syntax error with g++ 2.96.
33070         * lib/string.in.h (__pure__): Remove definition.
33071         (_GL_ATTRIBUTE_PURE): New macro.
33072         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
33073         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
33074         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33075
33076 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
33077
33078         unitypes: Fix bug introduced on 2010-05-18.
33079         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
33080
33081 2010-06-22  Eric Blake  <eblake@redhat.com>
33082
33083         memmem: slight optimization
33084         * lib/str-two-way.h (critical_factorization): Update comments.
33085         Reduce work during factorization phase.
33086         Reported by Carlos Bueno <carlos@bueno.org>.
33087
33088 2010-06-21  Bruno Haible  <bruno@clisp.org>
33089
33090         Fix HAVE_CALLOC_POSIX misnomer.
33091         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
33092         !HAVE_CALLOC_POSIX.
33093         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
33094         HAVE_CALLOC_POSIX.
33095         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
33096         instead of HAVE_CALLOC_POSIX.
33097         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
33098         HAVE_CALLOC_POSIX.
33099
33100         Use modern idiom for calloc() replacement.
33101         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
33102         AC_FUNC_CALLOC.
33103         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
33104         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
33105         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33106         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
33107         (gl_REPLACE_CALLOC): New macro.
33108
33109 2010-06-21  Bruno Haible  <bruno@clisp.org>
33110
33111         Fix HAVE_REALLOC_POSIX misnomer.
33112         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
33113         !HAVE_REALLOC_POSIX.
33114         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
33115         HAVE_REALLOC_POSIX.
33116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
33117         instead of HAVE_REALLOC_POSIX.
33118         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
33119         HAVE_REALLOC_POSIX.
33120
33121         Use modern idiom for realloc() replacement.
33122         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
33123         AC_FUNC_REALLOC.
33124         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
33125         Autoconf's AC_FUNC_REALLOC.
33126         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33127         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
33128         (gl_REPLACE_REALLOC): New macro.
33129         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33130
33131 2010-06-21  Bruno Haible  <bruno@clisp.org>
33132
33133         Fix HAVE_MALLOC_POSIX misnomer.
33134         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
33135         !HAVE_MALLOC_POSIX.
33136         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
33137         HAVE_MALLOC_POSIX.
33138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
33139         instead of HAVE_MALLOC_POSIX.
33140         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
33141         HAVE_MALLOC_POSIX.
33142
33143         Use modern idiom for malloc() replacement.
33144         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
33145         AC_FUNC_MALLOC.
33146         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
33147         Autoconf's AC_FUNC_MALLOC.
33148         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
33149         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
33150         (gl_REPLACE_MALLOC): New macro.
33151         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
33152
33153 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
33154
33155         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
33156         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
33157         This macro takes 3 arguments, not 4.
33158
33159 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
33160
33161         ipv6: fix detection under mingw
33162         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
33163         in6_addr.
33164
33165 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
33166
33167         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
33168         that strtod() works when cross-compiling to a glibc version known
33169         to work.
33170
33171 2010-06-15  Bruno Haible  <bruno@clisp.org>
33172
33173         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
33174
33175 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
33176
33177         select: Correct timeout.
33178         * lib/select.c (rpl_select): Compute wait_timeout correctly.
33179
33180 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
33181
33182         git-version-gen: init shell var to avoid env var influence
33183         * build-aux/git-version-gen (v): Init shell var to empty.
33184
33185 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33186
33187         priv-set: Don't assume that priv.h exists merely because getppriv does.
33188         See Jan Andersen's bug report about AIX 5L in
33189         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
33190         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
33191         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
33192         * lib/priv-set.h: Likewise.
33193         * tests/test-priv-set.c: Likewise.
33194
33195 2010-06-13  Bruno Haible  <bruno@clisp.org>
33196
33197         relocatable: Make it easier to test whether to install wrappers.
33198         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
33199         RELOCATABLE_VIA_WRAPPER.
33200
33201 2010-06-13  Bruno Haible  <bruno@clisp.org>
33202
33203         gnulib-tool: Display specified modules and dependencies differently.
33204         * gnulib-tool (func_show_module_list): New function.
33205         (func_import, func_create_testdir): Invoke it.
33206         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
33207
33208 2010-06-13  Bruno Haible  <bruno@clisp.org>
33209
33210         gnulib-tool: Align code of func_import and func_create_testdir.
33211         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
33212         specified_modules.
33213
33214 2010-06-12  Jim Meyering  <meyering@redhat.com>
33215
33216         test-inttostr: avoid spurious failure on Solaris 9
33217         * tests/test-inttostr.c (main): Skip the test when snprintf fails
33218         to accept "%ju".  Reported by Bruno Haible.
33219
33220 2010-06-11  Jim Meyering  <meyering@redhat.com>
33221
33222         test-sys_socket: mark variables as used more readably
33223         * tests/test-sys_socket.c (main): Mark otherwise unused variables
33224         as "used" explicitly via (void) statement casts.  This is more
33225         readable than using them in an artificial return expression.
33226         Suggestion from Bruno Haible.
33227
33228 2010-06-11  Bruno Haible  <bruno@clisp.org>
33229
33230         Avoid some more warnings from "gcc -Wwrite-strings".
33231         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
33232         to 'const char *'.
33233         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
33234         * tests/test-c-strcasestr.c (main): Likewise.
33235         * tests/test-mbscasestr1.c (main): Likewise.
33236         * tests/test-mbscasestr2.c (main): Likewise.
33237         * tests/test-memmem.c (main): Likewise.
33238         * tests/test-strstr.c (main): Likewise.
33239         * tests/test-strcasestr.c (main): Likewise.
33240
33241 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33242
33243         init.sh: change framework_failure_ to fail with status 99, not 1
33244         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
33245         automake's parallel-tests rule that this is an unexpected failure,
33246         even if the test is listed in XFAIL_TESTS.
33247
33248 2010-06-11  Jim Meyering  <meyering@redhat.com>
33249
33250         test-inttostr: avoid warnings about 4-6KB literal strings
33251         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
33252         Include "macros.h", for its definition of ASSERT.
33253         (CK): s/assert/ASSERT/
33254         * modules/inttostr-tests (Files): Add macros.h.
33255
33256         init.sh: don't use $ME_ or skip_ before they are defined
33257         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
33258         their first uses.  Also hoist their companions: warn_, fail_,
33259         framework_failure_, $stderr_fileno.  Prompted by a patch from
33260         Stefano Lattarini.
33261
33262         test-sys_socket: avoid set-but-not-used warnings from gcc
33263         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
33264         avoid warning about set-but-not-used variables.
33265
33266         test-xvasprintf: avoid 'const' discard warnings
33267         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
33268         "const" when assigning from literal strings.
33269         (test_xasprintf): Add "void" in function argument list to placate
33270         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
33271
33272         tests: avoid compilation warnings in argmatch and exclude tests...
33273         in packages that define ARGMATCH_DIE_DECL, like coreutils.
33274         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
33275         Since it always exits, declare with the "noreturn" attribute.
33276         * tests/test-argmatch.c: Likewise.
33277
33278         tests: avoid 'const' discard warnings in mbsstr tests
33279         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
33280         * tests/test-mbsstr2.c (main): Likewise.
33281
33282         test-verify: avoid warning from gcc's -Wmissing-declarations
33283         * tests/test-verify.c (function): Declare to be static.
33284
33285         test-inttostr.c: include <string.h> for use of strcmp
33286         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
33287
33288         test-linkat: avoid failed assertion on "other" architectures
33289         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
33290         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
33291         sparc: https://bugs.launchpad.net/bugs/591968
33292
33293 2010-06-11  Jim Meyering  <meyering@redhat.com>
33294
33295         printf.m4: avoid autoconf's "Expanded Before Required" warning
33296         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
33297         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
33298         autoconf warning.
33299
33300 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
33301
33302         Replacement header templates are now named with ".in", not "_".
33303         * doc/gnulib-intro.texi: Correct.
33304
33305 2010-06-10  Jim Meyering  <meyering@redhat.com>
33306
33307         inttostr-tests: depend on snprintf, not snprintf-posix
33308         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
33309         snprintf-posix, to avoid this aclocal failure:
33310           missing file gnulib-tests/vasnprintf.c
33311           configure.ac:45: error: expected source file, required through \
33312           AC_LIBSOURCES, not found
33313
33314 2010-06-10  Jim Meyering  <meyering@redhat.com>
33315
33316         inttostr: add a new function, inttostr, and tests
33317         The namesake function was not available.  The existence of the
33318         template file, inttostr.c makes its addition nontrivial.
33319         * lib/anytostr.c: Rename from inttostr.c.
33320         (anytostr): Rename from inttostr.
33321         * lib/inttostr.c: New file.
33322         * modules/inttostr (Files): Add anytostr.c.
33323         (Makefile.am): Set lib_SOURCES instead of ...
33324         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
33325         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
33326         * lib/offtostr.c: Likewise.
33327         * lib/uinttostr.c: Likewise.
33328         * lib/umaxtostr.c: Likewise.
33329         * modules/inttostr-tests: New file.
33330         * tests/test-inttostr.c: New file.  Test these functions.
33331
33332 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
33333             Bruno Haible  <bruno@clisp.org>
33334
33335         Add "Extending Gnulib" chapter to manual.
33336         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
33337         chapter.
33338         (Extending Gnulib): New chapter.
33339         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
33340         chapter.
33341
33342 2010-06-09  Bruno Haible  <bruno@clisp.org>
33343
33344         Avoid relocwrapper link errors due to gnulib replacement functions.
33345         * lib/areadlink.c: Use the system's malloc, realloc functions.
33346         (areadlink): Set errno to ENOMEM explicitly.
33347         * modules/areadlink (Depends-on): Remove malloc-posix.
33348         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33349
33350 2010-06-09  Bruno Haible  <bruno@clisp.org>
33351
33352         Avoid relocwrapper link errors due to gnulib replacement functions.
33353         * lib/canonicalize-lgpl.c: Use the system's malloc function.
33354         * lib/malloca.c: Likewise.
33355         * lib/relocatable.c: Likewise.
33356         * lib/progreloc.c: Use the system's malloc, sprintf functions.
33357         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
33358         * lib/setenv.c: Use the system's malloc, realloc functions.
33359         * lib/strerror.c: Use the system's sprintf function.
33360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
33361
33362 2010-06-04  Bruno Haible  <bruno@clisp.org>
33363
33364         Prefer documented low-level autoconf macro names.
33365         * m4/lib-link.m4: Use m4_translit instead of translit.
33366         * m4/environ.m4: Likewise.
33367         * m4/mathfunc.m4: Likewise.
33368         * m4/onceonly.m4: Likewise.
33369         * m4/stdint.m4: Likewise.
33370         Suggested by Eric Blake.
33371
33372 2010-06-04  Martin Lambers  <marlam@marlam.de>
33373             Bruno Haible  <bruno@clisp.org>
33374
33375         havelib: Allow library names with '+' characters.
33376         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
33377         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
33378
33379 2010-06-09  Bruno Haible  <bruno@clisp.org>
33380
33381         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
33382         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
33383         realloc failed.
33384
33385 2010-06-08  Peter Simons  <simons@cryp.to>
33386
33387         maint.mk: make the news-check rule more configurable
33388         * top/maint.mk (news-check-lines-spec): New variable.
33389         (news-check): Use "sed -n 1,10p" in place of "head".
33390
33391 2010-06-07  Jim Meyering  <meyering@redhat.com>
33392
33393         do-release-commit-and-tag: fix typo in --help
33394         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
33395
33396         regex: avoid new dead-code warning with gcc-4.6.0
33397         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
33398         if-block containing a while-loop.  It's been unused for at least
33399         5 years.
33400
33401 2010-06-05  Bruno Haible  <bruno@clisp.org>
33402
33403         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
33404         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
33405
33406 2010-06-04  Bruno Haible  <bruno@clisp.org>
33407
33408         Update to GNU gettext 0.18.1.
33409         * modules/gettext (configure.ac): Require gettext infrastructure from
33410         version 0.18.1.
33411
33412 2010-06-03  Bruno Haible  <bruno@clisp.org>
33413
33414         Don't use AC_LIBOBJ with file names in subdirectories.
33415         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
33416         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
33417         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
33418         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
33419         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
33420         gl_LIBUNISTRING_LIBSOURCE.
33421         (Makefile.am): Augment lib_SOURCES here, conditionally.
33422         * NEWS: Drop requirement for Automake option 'subdir-objects'.
33423
33424 2010-06-03  Bruno Haible  <bruno@clisp.org>
33425
33426         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
33427         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
33428         expansion does not end with a newline.
33429         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
33430         unnecessary newline.
33431
33432 2010-06-03  Bruno Haible  <bruno@clisp.org>
33433
33434         Reduce dependencies.
33435         * tests/test-quotearg.h: New file, extracted from
33436         tests/test-quotearg.c.
33437         * tests/test-quotearg-simple.c: New file, extracted from
33438         tests/test-quotearg.c.
33439         * tests/test-quotearg.c: Don't include <ctype.h>.
33440         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
33441         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
33442         use_quote_double_quotes, use_quotearg_colon): Moved to
33443         tests/test-quotearg.h.
33444         (results_g, flag_results, custom_quotes, custom_results): Moved
33445         to tests/test-quotearg-simple.c.
33446         (main): Moved the part that does not depend on gettext to
33447         tests/test-quotearg-simple.c. Return 77 if the test cannot be
33448         performed.
33449         * modules/quotearg-simple: New file.
33450         * modules/quotearg-simple-tests: New file.
33451         * modules/quotearg (Depends-on): Add quotearg-simple.
33452         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
33453         (Files): Add tests/test-quotearg.h.
33454         Reported by Paolo Bonzini.
33455
33456 2010-06-03  Bruno Haible  <bruno@clisp.org>
33457
33458         Reduce dependencies.
33459         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
33460
33461 2010-06-03  Bruno Haible  <bruno@clisp.org>
33462
33463         time: Undefine more broken macros.
33464         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
33465         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
33466         Reported by Eric Blake.
33467
33468 2010-06-03  Bruno Haible  <bruno@clisp.org>
33469
33470         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
33471         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
33472         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
33473         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
33474         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
33475         Reported by Ludovic Courtès <ludo@gnu.org>.
33476
33477 2010-06-02  Eric Blake  <eblake@redhat.com>
33478
33479         time: work with mingw + pthreads-win32 library
33480         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
33481         if timespec is defined only in pthread.h.
33482         * modules/time (Makefile.am): Substitute it.
33483         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
33484         <pthread.h>, when needed.
33485         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
33486         from the library.
33487
33488 2010-05-31  Bruno Haible  <bruno@clisp.org>
33489
33490         Avoid expanding two macros in the wrong order.
33491         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
33492         gl_LIBUNISTRING if it is defined.
33493         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
33494         autoconf >= 2.64.
33495         Reported by Ludovic Courtès <ludo@gnu.org>.
33496
33497 2010-05-27  Jim Meyering  <meyering@redhat.com>
33498
33499         maint.mk: also prohibit "#undef" of always-defined symbols
33500         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
33501         Allow more than one space before the symbol name.
33502         (sc_prohibit_always-defined_macros): Use grep's -E, now that
33503         the regexp uses alternation.
33504
33505 2010-05-26  Eric Blake  <eblake@redhat.com>
33506
33507         maint.mk: avoid echo -e
33508         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
33509         Convert all uses of echo -* to printf.
33510         Reported by Matthias Bolte.
33511
33512 2010-05-25  Bruno Haible  <bruno@clisp.org>
33513
33514         Update to GNU gettext 0.18, part 2.
33515         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
33516         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
33517
33518 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33519
33520         Add missing include in test-pwrite.c.
33521         * tests/test-pwrite.c: Include string.h, for strcmp.
33522
33523 2010-05-24  Bruno Haible  <bruno@clisp.org>
33524
33525         * NEWS: Mention requirement for Automake option 'subdir-objects'.
33526
33527 2010-05-24  Bruno Haible  <bruno@clisp.org>
33528
33529         Don't use conversion with transliteration in u{8,16,32}_strcoll.
33530         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
33531         iconveh_error argument.
33532         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
33533         U_STRCONV_TO_LOCALE.
33534         * lib/unistr/u16-strcoll.c: Likewise.
33535         * lib/unistr/u32-strcoll.c: Likewise.
33536         * modules/unistr/u8-strcoll (Depends-on): Add
33537         uniconv/u8-strconv-to-enc, localcharset. Remove
33538         uniconv/u8-strconv-to-locale.
33539         (configure.ac): Bump version number.
33540         * modules/unistr/u16-strcoll (Depends-on): Add
33541         uniconv/u16-strconv-to-enc, localcharset. Remove
33542         uniconv/u16-strconv-to-locale.
33543         (configure.ac): Bump version number.
33544         * modules/unistr/u32-strcoll (Depends-on): Add
33545         uniconv/u32-strconv-to-enc, localcharset. Remove
33546         uniconv/u32-strconv-to-locale.
33547         (configure.ac): Bump version number.
33548
33549 2010-05-24  Bruno Haible  <bruno@clisp.org>
33550
33551         Avoid a test failure on NetBSD 5.0.
33552         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
33553         an iconv() bug.
33554
33555 2010-05-24  Bruno Haible  <bruno@clisp.org>
33556
33557         Adjust #include directive style.
33558         * modules/regex (Includes): Recommend to write <regex.h>.
33559
33560 2010-05-24  Bruno Haible  <bruno@clisp.org>
33561
33562         regex: Don't require alloca.
33563         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
33564         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
33565         only inside if (0).
33566
33567 2010-05-23  Jim Meyering  <meyering@redhat.com>
33568
33569         test-renameat.c: include <sys/stat.h>
33570         * tests/test-renameat.c: Include <sys/stat.h>; required for
33571         definition of S_IS* macros.
33572
33573 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
33574
33575         Update maintainer documentation for 'relocatable-prog' module.
33576         * doc/relocatable-maint.texi: Update.
33577         Comments by Bruno Haible.
33578
33579 2010-05-23  Bruno Haible  <bruno@clisp.org>
33580
33581         git-merge-changelog: Enable --split-merged-entry by default.
33582         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
33583         (usage): Don't mention this option any more.
33584         Reported by Ralf Wildenhues.
33585
33586 2010-05-23  Jim Meyering  <meyering@redhat.com>
33587
33588         test-pwrite: do not leave behind a test file named "out"
33589         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
33590         The trivial-looking use of init.sh is really necessary.
33591         It ensures that the temporary file, "out", is created in
33592         a temporary directory, and removed upon termination.
33593         * tests/test-pwrite.sh: Re-add file.
33594         * modules/pwrite-tests: Reference it.
33595
33596 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33597
33598         Fix output redirection buglet in init.sh.
33599         * tests/init.sh: Fix redirection of stderr.
33600
33601 2010-05-20  Simon Josefsson  <simon@josefsson.org>
33602
33603         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
33604
33605 2010-05-17  Simon Josefsson  <simon@josefsson.org>
33606
33607         * modules/valgrind-tests: New file.
33608         * m4/valgrind-tests.m4: New file.
33609         * doc/valgrind-tests.texi: New file.
33610         * doc/gnulib.texi (Running self-tests under valgrind): New
33611         section.
33612
33613 2010-05-19  Bruno Haible  <bruno@clisp.org>
33614
33615         Clean up dead code in recent commit.
33616         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
33617         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
33618         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
33619         Suggested by Paolo Bonzini.
33620
33621 2010-05-19  Bruno Haible  <bruno@clisp.org>
33622
33623         Avoid valgrind error reports from libunistring.
33624         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
33625         * modules/libunistring (Files): Add it.
33626         * modules/libunistring-optional (Files): Likewise.
33627
33628 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
33629             Bruno Haible  <bruno@clisp.org>
33630
33631         New module 'libunistring-optional'.
33632         * modules/libunistring-optional: New file.
33633         * m4/libunistring-base.m4: New file.
33634         * m4/libunistring-optional.m4: New file.
33635         * lib/unicase.in.h: Renamed from lib/unicase.h.
33636         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
33637         * lib/unictype.in.h: Renamed from lib/unictype.h.
33638         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
33639         * lib/uniname.in.h: Renamed from lib/uniname.h.
33640         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
33641         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
33642         * lib/unistr.in.h: Renamed from lib/unistr.h.
33643         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
33644         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
33645         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
33646         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
33647         gl_LIBUNISTRING. If the library was found, determine the installed
33648         version and set LIBUNISTRING_VERSION.
33649         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
33650         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
33651         handle a configuration option --with-included-libunistring.
33652         * modules/libunistring (Files): Add m4/absolute-header.m4.
33653         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
33654         Add m4/libunistring-base.m4.
33655         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33656         (Makefile.am): Build unicase.h from unicase.in.h.
33657         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
33658         Add m4/libunistring-base.m4.
33659         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33660         (Makefile.am): Build uniconv.h from uniconv.in.h.
33661         * modules/unictype/base (Files): Use unictype.in.h instead of
33662         unictype.h. Add m4/libunistring-base.m4.
33663         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33664         (Makefile.am): Build unictype.h from unictype.in.h.
33665         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
33666         Add m4/libunistring-base.m4.
33667         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33668         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
33669         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
33670         Add m4/libunistring-base.m4.
33671         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33672         (Makefile.am): Build uniname.h from uniname.in.h.
33673         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
33674         Add m4/libunistring-base.m4.
33675         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33676         (Makefile.am): Build uninorm.h from uninorm.in.h.
33677         * modules/unistdio/base (Files): Use unistdio.in.h instead of
33678         unistdio.h. Add m4/libunistring-base.m4.
33679         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33680         (Makefile.am): Build unistdio.h from unistdio.in.h.
33681         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
33682         Add m4/libunistring-base.m4.
33683         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33684         (Makefile.am): Build unistr.h from unistr.in.h.
33685         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
33686         Add m4/libunistring-base.m4.
33687         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33688         (Makefile.am): Build unitypes.h from unitypes.in.h.
33689         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
33690         Add m4/libunistring-base.m4.
33691         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33692         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
33693         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
33694         uniwidth.h. Add m4/libunistring-base.m4.
33695         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
33696         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
33697         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
33698         instead of augmenting lib_SOURCES.
33699         * modules/unicase/empty-suffix-context: Likewise.
33700         * modules/unicase/locale-language: Likewise.
33701         * modules/unicase/tolower: Likewise.
33702         * modules/unicase/totitle: Likewise.
33703         * modules/unicase/toupper: Likewise.
33704         * modules/unicase/u8-casecmp: Likewise.
33705         * modules/unicase/u8-casecoll: Likewise.
33706         * modules/unicase/u8-casefold: Likewise.
33707         * modules/unicase/u8-casexfrm: Likewise.
33708         * modules/unicase/u8-ct-casefold: Likewise.
33709         * modules/unicase/u8-ct-tolower: Likewise.
33710         * modules/unicase/u8-ct-totitle: Likewise.
33711         * modules/unicase/u8-ct-toupper: Likewise.
33712         * modules/unicase/u8-is-cased: Likewise.
33713         * modules/unicase/u8-is-casefolded: Likewise.
33714         * modules/unicase/u8-is-lowercase: Likewise.
33715         * modules/unicase/u8-is-titlecase: Likewise.
33716         * modules/unicase/u8-is-uppercase: Likewise.
33717         * modules/unicase/u8-prefix-context: Likewise.
33718         * modules/unicase/u8-suffix-context: Likewise.
33719         * modules/unicase/u8-tolower: Likewise.
33720         * modules/unicase/u8-totitle: Likewise.
33721         * modules/unicase/u8-toupper: Likewise.
33722         * modules/unicase/u16-casecmp: Likewise.
33723         * modules/unicase/u16-casecoll: Likewise.
33724         * modules/unicase/u16-casefold: Likewise.
33725         * modules/unicase/u16-casexfrm: Likewise.
33726         * modules/unicase/u16-ct-casefold: Likewise.
33727         * modules/unicase/u16-ct-tolower: Likewise.
33728         * modules/unicase/u16-ct-totitle: Likewise.
33729         * modules/unicase/u16-ct-toupper: Likewise.
33730         * modules/unicase/u16-is-cased: Likewise.
33731         * modules/unicase/u16-is-casefolded: Likewise.
33732         * modules/unicase/u16-is-lowercase: Likewise.
33733         * modules/unicase/u16-is-titlecase: Likewise.
33734         * modules/unicase/u16-is-uppercase: Likewise.
33735         * modules/unicase/u16-prefix-context: Likewise.
33736         * modules/unicase/u16-suffix-context: Likewise.
33737         * modules/unicase/u16-tolower: Likewise.
33738         * modules/unicase/u16-totitle: Likewise.
33739         * modules/unicase/u16-toupper: Likewise.
33740         * modules/unicase/u32-casecmp: Likewise.
33741         * modules/unicase/u32-casecoll: Likewise.
33742         * modules/unicase/u32-casefold: Likewise.
33743         * modules/unicase/u32-casexfrm: Likewise.
33744         * modules/unicase/u32-ct-casefold: Likewise.
33745         * modules/unicase/u32-ct-tolower: Likewise.
33746         * modules/unicase/u32-ct-totitle: Likewise.
33747         * modules/unicase/u32-ct-toupper: Likewise.
33748         * modules/unicase/u32-is-cased: Likewise.
33749         * modules/unicase/u32-is-casefolded: Likewise.
33750         * modules/unicase/u32-is-lowercase: Likewise.
33751         * modules/unicase/u32-is-titlecase: Likewise.
33752         * modules/unicase/u32-is-uppercase: Likewise.
33753         * modules/unicase/u32-prefix-context: Likewise.
33754         * modules/unicase/u32-suffix-context: Likewise.
33755         * modules/unicase/u32-tolower: Likewise.
33756         * modules/unicase/u32-totitle: Likewise.
33757         * modules/unicase/u32-toupper: Likewise.
33758         * modules/unicase/ulc-casecmp: Likewise.
33759         * modules/unicase/ulc-casecoll: Likewise.
33760         * modules/unicase/ulc-casexfrm: Likewise.
33761         * modules/uniconv/u8-conv-from-enc: Likewise.
33762         * modules/uniconv/u8-conv-to-enc: Likewise.
33763         * modules/uniconv/u8-strconv-from-enc: Likewise.
33764         * modules/uniconv/u8-strconv-from-locale: Likewise.
33765         * modules/uniconv/u8-strconv-to-enc: Likewise.
33766         * modules/uniconv/u8-strconv-to-locale: Likewise.
33767         * modules/uniconv/u16-conv-from-enc: Likewise.
33768         * modules/uniconv/u16-conv-to-enc: Likewise.
33769         * modules/uniconv/u16-strconv-from-enc: Likewise.
33770         * modules/uniconv/u16-strconv-from-locale: Likewise.
33771         * modules/uniconv/u16-strconv-to-enc: Likewise.
33772         * modules/uniconv/u16-strconv-to-locale: Likewise.
33773         * modules/uniconv/u32-conv-from-enc: Likewise.
33774         * modules/uniconv/u32-conv-to-enc: Likewise.
33775         * modules/uniconv/u32-strconv-from-enc: Likewise.
33776         * modules/uniconv/u32-strconv-from-locale: Likewise.
33777         * modules/uniconv/u32-strconv-to-enc: Likewise.
33778         * modules/uniconv/u32-strconv-to-locale: Likewise.
33779         * modules/unictype/bidicategory-byname: Likewise.
33780         * modules/unictype/bidicategory-name: Likewise.
33781         * modules/unictype/bidicategory-of: Likewise.
33782         * modules/unictype/bidicategory-test: Likewise.
33783         * modules/unictype/block-list: Likewise.
33784         * modules/unictype/block-test: Likewise.
33785         * modules/unictype/category-C: Likewise.
33786         * modules/unictype/category-Cc: Likewise.
33787         * modules/unictype/category-Cf: Likewise.
33788         * modules/unictype/category-Cn: Likewise.
33789         * modules/unictype/category-Co: Likewise.
33790         * modules/unictype/category-Cs: Likewise.
33791         * modules/unictype/category-L: Likewise.
33792         * modules/unictype/category-Ll: Likewise.
33793         * modules/unictype/category-Lm: Likewise.
33794         * modules/unictype/category-Lo: Likewise.
33795         * modules/unictype/category-Lt: Likewise.
33796         * modules/unictype/category-Lu: Likewise.
33797         * modules/unictype/category-M: Likewise.
33798         * modules/unictype/category-Mc: Likewise.
33799         * modules/unictype/category-Me: Likewise.
33800         * modules/unictype/category-Mn: Likewise.
33801         * modules/unictype/category-N: Likewise.
33802         * modules/unictype/category-Nd: Likewise.
33803         * modules/unictype/category-Nl: Likewise.
33804         * modules/unictype/category-No: Likewise.
33805         * modules/unictype/category-P: Likewise.
33806         * modules/unictype/category-Pc: Likewise.
33807         * modules/unictype/category-Pd: Likewise.
33808         * modules/unictype/category-Pe: Likewise.
33809         * modules/unictype/category-Pf: Likewise.
33810         * modules/unictype/category-Pi: Likewise.
33811         * modules/unictype/category-Po: Likewise.
33812         * modules/unictype/category-Ps: Likewise.
33813         * modules/unictype/category-S: Likewise.
33814         * modules/unictype/category-Sc: Likewise.
33815         * modules/unictype/category-Sk: Likewise.
33816         * modules/unictype/category-Sm: Likewise.
33817         * modules/unictype/category-So: Likewise.
33818         * modules/unictype/category-Z: Likewise.
33819         * modules/unictype/category-Zl: Likewise.
33820         * modules/unictype/category-Zp: Likewise.
33821         * modules/unictype/category-Zs: Likewise.
33822         * modules/unictype/category-and: Likewise.
33823         * modules/unictype/category-and-not: Likewise.
33824         * modules/unictype/category-byname: Likewise.
33825         * modules/unictype/category-name: Likewise.
33826         * modules/unictype/category-none: Likewise.
33827         * modules/unictype/category-of: Likewise.
33828         * modules/unictype/category-or: Likewise.
33829         * modules/unictype/category-test: Likewise.
33830         * modules/unictype/combining-class: Likewise.
33831         * modules/unictype/ctype-alnum: Likewise.
33832         * modules/unictype/ctype-alpha: Likewise.
33833         * modules/unictype/ctype-blank: Likewise.
33834         * modules/unictype/ctype-cntrl: Likewise.
33835         * modules/unictype/ctype-digit: Likewise.
33836         * modules/unictype/ctype-graph: Likewise.
33837         * modules/unictype/ctype-lower: Likewise.
33838         * modules/unictype/ctype-print: Likewise.
33839         * modules/unictype/ctype-punct: Likewise.
33840         * modules/unictype/ctype-space: Likewise.
33841         * modules/unictype/ctype-upper: Likewise.
33842         * modules/unictype/ctype-xdigit: Likewise.
33843         * modules/unictype/decimal-digit: Likewise.
33844         * modules/unictype/digit: Likewise.
33845         * modules/unictype/mirror: Likewise.
33846         * modules/unictype/numeric: Likewise.
33847         * modules/unictype/property-alphabetic: Likewise.
33848         * modules/unictype/property-ascii-hex-digit: Likewise.
33849         * modules/unictype/property-bidi-arabic-digit: Likewise.
33850         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
33851         * modules/unictype/property-bidi-block-separator: Likewise.
33852         * modules/unictype/property-bidi-boundary-neutral: Likewise.
33853         * modules/unictype/property-bidi-common-separator: Likewise.
33854         * modules/unictype/property-bidi-control: Likewise.
33855         * modules/unictype/property-bidi-embedding-or-override: Likewise.
33856         * modules/unictype/property-bidi-eur-num-separator: Likewise.
33857         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
33858         * modules/unictype/property-bidi-european-digit: Likewise.
33859         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
33860         * modules/unictype/property-bidi-left-to-right: Likewise.
33861         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
33862         * modules/unictype/property-bidi-other-neutral: Likewise.
33863         * modules/unictype/property-bidi-pdf: Likewise.
33864         * modules/unictype/property-bidi-segment-separator: Likewise.
33865         * modules/unictype/property-bidi-whitespace: Likewise.
33866         * modules/unictype/property-byname: Likewise.
33867         * modules/unictype/property-combining: Likewise.
33868         * modules/unictype/property-composite: Likewise.
33869         * modules/unictype/property-currency-symbol: Likewise.
33870         * modules/unictype/property-dash: Likewise.
33871         * modules/unictype/property-decimal-digit: Likewise.
33872         * modules/unictype/property-default-ignorable-code-point: Likewise.
33873         * modules/unictype/property-deprecated: Likewise.
33874         * modules/unictype/property-diacritic: Likewise.
33875         * modules/unictype/property-extender: Likewise.
33876         * modules/unictype/property-format-control: Likewise.
33877         * modules/unictype/property-grapheme-base: Likewise.
33878         * modules/unictype/property-grapheme-extend: Likewise.
33879         * modules/unictype/property-grapheme-link: Likewise.
33880         * modules/unictype/property-hex-digit: Likewise.
33881         * modules/unictype/property-hyphen: Likewise.
33882         * modules/unictype/property-id-continue: Likewise.
33883         * modules/unictype/property-id-start: Likewise.
33884         * modules/unictype/property-ideographic: Likewise.
33885         * modules/unictype/property-ids-binary-operator: Likewise.
33886         * modules/unictype/property-ids-trinary-operator: Likewise.
33887         * modules/unictype/property-ignorable-control: Likewise.
33888         * modules/unictype/property-iso-control: Likewise.
33889         * modules/unictype/property-join-control: Likewise.
33890         * modules/unictype/property-left-of-pair: Likewise.
33891         * modules/unictype/property-line-separator: Likewise.
33892         * modules/unictype/property-logical-order-exception: Likewise.
33893         * modules/unictype/property-lowercase: Likewise.
33894         * modules/unictype/property-math: Likewise.
33895         * modules/unictype/property-non-break: Likewise.
33896         * modules/unictype/property-not-a-character: Likewise.
33897         * modules/unictype/property-numeric: Likewise.
33898         * modules/unictype/property-other-alphabetic: Likewise.
33899         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
33900         * modules/unictype/property-other-grapheme-extend: Likewise.
33901         * modules/unictype/property-other-id-continue: Likewise.
33902         * modules/unictype/property-other-id-start: Likewise.
33903         * modules/unictype/property-other-lowercase: Likewise.
33904         * modules/unictype/property-other-math: Likewise.
33905         * modules/unictype/property-other-uppercase: Likewise.
33906         * modules/unictype/property-paired-punctuation: Likewise.
33907         * modules/unictype/property-paragraph-separator: Likewise.
33908         * modules/unictype/property-pattern-syntax: Likewise.
33909         * modules/unictype/property-pattern-white-space: Likewise.
33910         * modules/unictype/property-private-use: Likewise.
33911         * modules/unictype/property-punctuation: Likewise.
33912         * modules/unictype/property-quotation-mark: Likewise.
33913         * modules/unictype/property-radical: Likewise.
33914         * modules/unictype/property-sentence-terminal: Likewise.
33915         * modules/unictype/property-soft-dotted: Likewise.
33916         * modules/unictype/property-space: Likewise.
33917         * modules/unictype/property-terminal-punctuation: Likewise.
33918         * modules/unictype/property-test: Likewise.
33919         * modules/unictype/property-titlecase: Likewise.
33920         * modules/unictype/property-unassigned-code-value: Likewise.
33921         * modules/unictype/property-unified-ideograph: Likewise.
33922         * modules/unictype/property-uppercase: Likewise.
33923         * modules/unictype/property-variation-selector: Likewise.
33924         * modules/unictype/property-white-space: Likewise.
33925         * modules/unictype/property-xid-continue: Likewise.
33926         * modules/unictype/property-xid-start: Likewise.
33927         * modules/unictype/property-zero-width: Likewise.
33928         * modules/unictype/scripts: Likewise.
33929         * modules/unictype/syntax-c-ident: Likewise.
33930         * modules/unictype/syntax-c-whitespace: Likewise.
33931         * modules/unictype/syntax-java-ident: Likewise.
33932         * modules/unictype/syntax-java-whitespace: Likewise.
33933         * modules/unilbrk/u8-possible-linebreaks: Likewise.
33934         * modules/unilbrk/u8-width-linebreaks: Likewise.
33935         * modules/unilbrk/u16-possible-linebreaks: Likewise.
33936         * modules/unilbrk/u16-width-linebreaks: Likewise.
33937         * modules/unilbrk/u32-possible-linebreaks: Likewise.
33938         * modules/unilbrk/u32-width-linebreaks: Likewise.
33939         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
33940         * modules/unilbrk/ulc-width-linebreaks: Likewise.
33941         * modules/uniname/uniname: Likewise.
33942         * modules/uninorm/canonical-decomposition: Likewise.
33943         * modules/uninorm/composition: Likewise.
33944         * modules/uninorm/decomposing-form: Likewise.
33945         * modules/uninorm/decomposition: Likewise.
33946         * modules/uninorm/filter: Likewise.
33947         * modules/uninorm/nfc: Likewise.
33948         * modules/uninorm/nfd: Likewise.
33949         * modules/uninorm/nfkc: Likewise.
33950         * modules/uninorm/nfkd: Likewise.
33951         * modules/uninorm/u8-normalize: Likewise.
33952         * modules/uninorm/u8-normcmp: Likewise.
33953         * modules/uninorm/u8-normcoll: Likewise.
33954         * modules/uninorm/u8-normxfrm: Likewise.
33955         * modules/uninorm/u16-normalize: Likewise.
33956         * modules/uninorm/u16-normcmp: Likewise.
33957         * modules/uninorm/u16-normcoll: Likewise.
33958         * modules/uninorm/u16-normxfrm: Likewise.
33959         * modules/uninorm/u32-normalize: Likewise.
33960         * modules/uninorm/u32-normcmp: Likewise.
33961         * modules/uninorm/u32-normcoll: Likewise.
33962         * modules/uninorm/u32-normxfrm: Likewise.
33963         * modules/unistdio/u8-asnprintf: Likewise.
33964         * modules/unistdio/u8-asprintf: Likewise.
33965         * modules/unistdio/u8-snprintf: Likewise.
33966         * modules/unistdio/u8-sprintf: Likewise.
33967         * modules/unistdio/u8-u8-asnprintf: Likewise.
33968         * modules/unistdio/u8-u8-asprintf: Likewise.
33969         * modules/unistdio/u8-u8-snprintf: Likewise.
33970         * modules/unistdio/u8-u8-sprintf: Likewise.
33971         * modules/unistdio/u8-u8-vasnprintf: Likewise.
33972         * modules/unistdio/u8-u8-vasprintf: Likewise.
33973         * modules/unistdio/u8-u8-vsnprintf: Likewise.
33974         * modules/unistdio/u8-u8-vsprintf: Likewise.
33975         * modules/unistdio/u8-vasnprintf: Likewise.
33976         * modules/unistdio/u8-vasprintf: Likewise.
33977         * modules/unistdio/u8-vsnprintf: Likewise.
33978         * modules/unistdio/u8-vsprintf: Likewise.
33979         * modules/unistdio/u16-asnprintf: Likewise.
33980         * modules/unistdio/u16-asprintf: Likewise.
33981         * modules/unistdio/u16-snprintf: Likewise.
33982         * modules/unistdio/u16-sprintf: Likewise.
33983         * modules/unistdio/u16-u16-asnprintf: Likewise.
33984         * modules/unistdio/u16-u16-asprintf: Likewise.
33985         * modules/unistdio/u16-u16-snprintf: Likewise.
33986         * modules/unistdio/u16-u16-sprintf: Likewise.
33987         * modules/unistdio/u16-u16-vasnprintf: Likewise.
33988         * modules/unistdio/u16-u16-vasprintf: Likewise.
33989         * modules/unistdio/u16-u16-vsnprintf: Likewise.
33990         * modules/unistdio/u16-u16-vsprintf: Likewise.
33991         * modules/unistdio/u16-vasnprintf: Likewise.
33992         * modules/unistdio/u16-vasprintf: Likewise.
33993         * modules/unistdio/u16-vsnprintf: Likewise.
33994         * modules/unistdio/u16-vsprintf: Likewise.
33995         * modules/unistdio/u32-asnprintf: Likewise.
33996         * modules/unistdio/u32-asprintf: Likewise.
33997         * modules/unistdio/u32-snprintf: Likewise.
33998         * modules/unistdio/u32-sprintf: Likewise.
33999         * modules/unistdio/u32-u32-asnprintf: Likewise.
34000         * modules/unistdio/u32-u32-asprintf: Likewise.
34001         * modules/unistdio/u32-u32-snprintf: Likewise.
34002         * modules/unistdio/u32-u32-sprintf: Likewise.
34003         * modules/unistdio/u32-u32-vasnprintf: Likewise.
34004         * modules/unistdio/u32-u32-vasprintf: Likewise.
34005         * modules/unistdio/u32-u32-vsnprintf: Likewise.
34006         * modules/unistdio/u32-u32-vsprintf: Likewise.
34007         * modules/unistdio/u32-vasnprintf: Likewise.
34008         * modules/unistdio/u32-vasprintf: Likewise.
34009         * modules/unistdio/u32-vsnprintf: Likewise.
34010         * modules/unistdio/u32-vsprintf: Likewise.
34011         * modules/unistdio/ulc-asnprintf: Likewise.
34012         * modules/unistdio/ulc-asprintf: Likewise.
34013         * modules/unistdio/ulc-fprintf: Likewise.
34014         * modules/unistdio/ulc-snprintf: Likewise.
34015         * modules/unistdio/ulc-sprintf: Likewise.
34016         * modules/unistdio/ulc-vasnprintf: Likewise.
34017         * modules/unistdio/ulc-vasprintf: Likewise.
34018         * modules/unistdio/ulc-vfprintf: Likewise.
34019         * modules/unistdio/ulc-vsnprintf: Likewise.
34020         * modules/unistdio/ulc-vsprintf: Likewise.
34021         * modules/unistr/u8-check: Likewise.
34022         * modules/unistr/u8-chr: Likewise.
34023         * modules/unistr/u8-cmp: Likewise.
34024         * modules/unistr/u8-cmp2: Likewise.
34025         * modules/unistr/u8-cpy: Likewise.
34026         * modules/unistr/u8-cpy-alloc: Likewise.
34027         * modules/unistr/u8-endswith: Likewise.
34028         * modules/unistr/u8-mblen: Likewise.
34029         * modules/unistr/u8-mbsnlen: Likewise.
34030         * modules/unistr/u8-mbtouc: Likewise.
34031         * modules/unistr/u8-mbtouc-unsafe: Likewise.
34032         * modules/unistr/u8-mbtoucr: Likewise.
34033         * modules/unistr/u8-move: Likewise.
34034         * modules/unistr/u8-next: Likewise.
34035         * modules/unistr/u8-prev: Likewise.
34036         * modules/unistr/u8-set: Likewise.
34037         * modules/unistr/u8-startswith: Likewise.
34038         * modules/unistr/u8-stpcpy: Likewise.
34039         * modules/unistr/u8-stpncpy: Likewise.
34040         * modules/unistr/u8-strcat: Likewise.
34041         * modules/unistr/u8-strchr: Likewise.
34042         * modules/unistr/u8-strcmp: Likewise.
34043         * modules/unistr/u8-strcoll: Likewise.
34044         * modules/unistr/u8-strcpy: Likewise.
34045         * modules/unistr/u8-strcspn: Likewise.
34046         * modules/unistr/u8-strdup: Likewise.
34047         * modules/unistr/u8-strlen: Likewise.
34048         * modules/unistr/u8-strmblen: Likewise.
34049         * modules/unistr/u8-strmbtouc: Likewise.
34050         * modules/unistr/u8-strncat: Likewise.
34051         * modules/unistr/u8-strncmp: Likewise.
34052         * modules/unistr/u8-strncpy: Likewise.
34053         * modules/unistr/u8-strnlen: Likewise.
34054         * modules/unistr/u8-strpbrk: Likewise.
34055         * modules/unistr/u8-strrchr: Likewise.
34056         * modules/unistr/u8-strspn: Likewise.
34057         * modules/unistr/u8-strstr: Likewise.
34058         * modules/unistr/u8-strtok: Likewise.
34059         * modules/unistr/u8-to-u16: Likewise.
34060         * modules/unistr/u8-to-u32: Likewise.
34061         * modules/unistr/u8-uctomb: Likewise.
34062         * modules/unistr/u16-check: Likewise.
34063         * modules/unistr/u16-chr: Likewise.
34064         * modules/unistr/u16-cmp: Likewise.
34065         * modules/unistr/u16-cmp2: Likewise.
34066         * modules/unistr/u16-cpy: Likewise.
34067         * modules/unistr/u16-cpy-alloc: Likewise.
34068         * modules/unistr/u16-endswith: Likewise.
34069         * modules/unistr/u16-mblen: Likewise.
34070         * modules/unistr/u16-mbsnlen: Likewise.
34071         * modules/unistr/u16-mbtouc: Likewise.
34072         * modules/unistr/u16-mbtouc-unsafe: Likewise.
34073         * modules/unistr/u16-mbtoucr: Likewise.
34074         * modules/unistr/u16-move: Likewise.
34075         * modules/unistr/u16-next: Likewise.
34076         * modules/unistr/u16-prev: Likewise.
34077         * modules/unistr/u16-set: Likewise.
34078         * modules/unistr/u16-startswith: Likewise.
34079         * modules/unistr/u16-stpcpy: Likewise.
34080         * modules/unistr/u16-stpncpy: Likewise.
34081         * modules/unistr/u16-strcat: Likewise.
34082         * modules/unistr/u16-strchr: Likewise.
34083         * modules/unistr/u16-strcmp: Likewise.
34084         * modules/unistr/u16-strcoll: Likewise.
34085         * modules/unistr/u16-strcpy: Likewise.
34086         * modules/unistr/u16-strcspn: Likewise.
34087         * modules/unistr/u16-strdup: Likewise.
34088         * modules/unistr/u16-strlen: Likewise.
34089         * modules/unistr/u16-strmblen: Likewise.
34090         * modules/unistr/u16-strmbtouc: Likewise.
34091         * modules/unistr/u16-strncat: Likewise.
34092         * modules/unistr/u16-strncmp: Likewise.
34093         * modules/unistr/u16-strncpy: Likewise.
34094         * modules/unistr/u16-strnlen: Likewise.
34095         * modules/unistr/u16-strpbrk: Likewise.
34096         * modules/unistr/u16-strrchr: Likewise.
34097         * modules/unistr/u16-strspn: Likewise.
34098         * modules/unistr/u16-strstr: Likewise.
34099         * modules/unistr/u16-strtok: Likewise.
34100         * modules/unistr/u16-to-u32: Likewise.
34101         * modules/unistr/u16-to-u8: Likewise.
34102         * modules/unistr/u16-uctomb: Likewise.
34103         * modules/unistr/u32-check: Likewise.
34104         * modules/unistr/u32-chr: Likewise.
34105         * modules/unistr/u32-cmp: Likewise.
34106         * modules/unistr/u32-cmp2: Likewise.
34107         * modules/unistr/u32-cpy: Likewise.
34108         * modules/unistr/u32-cpy-alloc: Likewise.
34109         * modules/unistr/u32-endswith: Likewise.
34110         * modules/unistr/u32-mblen: Likewise.
34111         * modules/unistr/u32-mbsnlen: Likewise.
34112         * modules/unistr/u32-mbtouc: Likewise.
34113         * modules/unistr/u32-mbtouc-unsafe: Likewise.
34114         * modules/unistr/u32-mbtoucr: Likewise.
34115         * modules/unistr/u32-move: Likewise.
34116         * modules/unistr/u32-next: Likewise.
34117         * modules/unistr/u32-prev: Likewise.
34118         * modules/unistr/u32-set: Likewise.
34119         * modules/unistr/u32-startswith: Likewise.
34120         * modules/unistr/u32-stpcpy: Likewise.
34121         * modules/unistr/u32-stpncpy: Likewise.
34122         * modules/unistr/u32-strcat: Likewise.
34123         * modules/unistr/u32-strchr: Likewise.
34124         * modules/unistr/u32-strcmp: Likewise.
34125         * modules/unistr/u32-strcoll: Likewise.
34126         * modules/unistr/u32-strcpy: Likewise.
34127         * modules/unistr/u32-strcspn: Likewise.
34128         * modules/unistr/u32-strdup: Likewise.
34129         * modules/unistr/u32-strlen: Likewise.
34130         * modules/unistr/u32-strmblen: Likewise.
34131         * modules/unistr/u32-strmbtouc: Likewise.
34132         * modules/unistr/u32-strncat: Likewise.
34133         * modules/unistr/u32-strncmp: Likewise.
34134         * modules/unistr/u32-strncpy: Likewise.
34135         * modules/unistr/u32-strnlen: Likewise.
34136         * modules/unistr/u32-strpbrk: Likewise.
34137         * modules/unistr/u32-strrchr: Likewise.
34138         * modules/unistr/u32-strspn: Likewise.
34139         * modules/unistr/u32-strstr: Likewise.
34140         * modules/unistr/u32-strtok: Likewise.
34141         * modules/unistr/u32-to-u16: Likewise.
34142         * modules/unistr/u32-to-u8: Likewise.
34143         * modules/unistr/u32-uctomb: Likewise.
34144         * modules/uniwbrk/u8-wordbreaks: Likewise.
34145         * modules/uniwbrk/u16-wordbreaks: Likewise.
34146         * modules/uniwbrk/u32-wordbreaks: Likewise.
34147         * modules/uniwbrk/ulc-wordbreaks: Likewise.
34148         * modules/uniwbrk/wordbreak-property: Likewise.
34149         * modules/uniwidth/u8-strwidth: Likewise.
34150         * modules/uniwidth/u8-width: Likewise.
34151         * modules/uniwidth/u16-strwidth: Likewise.
34152         * modules/uniwidth/u16-width: Likewise.
34153         * modules/uniwidth/u32-strwidth: Likewise.
34154         * modules/uniwidth/u32-width: Likewise.
34155         * modules/uniwidth/width: Likewise.
34156         * modules/unicase/cased-tests (Makefile.am): Link all test programs
34157         with $(LIBUNISTRING).
34158         * modules/unicase/ignorable-tests: Likewise.
34159         * modules/unicase/locale-language-tests: Likewise.
34160         * modules/unicase/tolower-tests: Likewise.
34161         * modules/unicase/totitle-tests: Likewise.
34162         * modules/unicase/toupper-tests: Likewise.
34163         * modules/unicase/u8-casecmp-tests: Likewise.
34164         * modules/unicase/u8-casecoll-tests: Likewise.
34165         * modules/unicase/u8-casefold-tests: Likewise.
34166         * modules/unicase/u8-is-cased-tests: Likewise.
34167         * modules/unicase/u8-is-casefolded-tests: Likewise.
34168         * modules/unicase/u8-is-lowercase-tests: Likewise.
34169         * modules/unicase/u8-is-titlecase-tests: Likewise.
34170         * modules/unicase/u8-is-uppercase-tests: Likewise.
34171         * modules/unicase/u8-tolower-tests: Likewise.
34172         * modules/unicase/u8-totitle-tests: Likewise.
34173         * modules/unicase/u8-toupper-tests: Likewise.
34174         * modules/unicase/u16-casecmp-tests: Likewise.
34175         * modules/unicase/u16-casecoll-tests: Likewise.
34176         * modules/unicase/u16-casefold-tests: Likewise.
34177         * modules/unicase/u16-is-cased-tests: Likewise.
34178         * modules/unicase/u16-is-casefolded-tests: Likewise.
34179         * modules/unicase/u16-is-lowercase-tests: Likewise.
34180         * modules/unicase/u16-is-titlecase-tests: Likewise.
34181         * modules/unicase/u16-is-uppercase-tests: Likewise.
34182         * modules/unicase/u16-tolower-tests: Likewise.
34183         * modules/unicase/u16-totitle-tests: Likewise.
34184         * modules/unicase/u16-toupper-tests: Likewise.
34185         * modules/unicase/u32-casecmp-tests: Likewise.
34186         * modules/unicase/u32-casecoll-tests: Likewise.
34187         * modules/unicase/u32-casefold-tests: Likewise.
34188         * modules/unicase/u32-is-cased-tests: Likewise.
34189         * modules/unicase/u32-is-casefolded-tests: Likewise.
34190         * modules/unicase/u32-is-lowercase-tests: Likewise.
34191         * modules/unicase/u32-is-titlecase-tests: Likewise.
34192         * modules/unicase/u32-is-uppercase-tests: Likewise.
34193         * modules/unicase/u32-tolower-tests: Likewise.
34194         * modules/unicase/u32-totitle-tests: Likewise.
34195         * modules/unicase/u32-toupper-tests: Likewise.
34196         * modules/unicase/ulc-casecmp-tests: Likewise.
34197         * modules/unicase/ulc-casecoll-tests: Likewise.
34198         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
34199         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
34200         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
34201         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
34202         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
34203         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
34204         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
34205         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
34206         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
34207         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
34208         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
34209         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
34210         * modules/unictype/bidicategory-byname-tests: Likewise.
34211         * modules/unictype/bidicategory-name-tests: Likewise.
34212         * modules/unictype/bidicategory-of-tests: Likewise.
34213         * modules/unictype/bidicategory-test-tests: Likewise.
34214         * modules/unictype/block-list-tests: Likewise.
34215         * modules/unictype/block-of-tests: Likewise.
34216         * modules/unictype/block-test-tests: Likewise.
34217         * modules/unictype/category-C-tests: Likewise.
34218         * modules/unictype/category-Cc-tests: Likewise.
34219         * modules/unictype/category-Cf-tests: Likewise.
34220         * modules/unictype/category-Cn-tests: Likewise.
34221         * modules/unictype/category-Co-tests: Likewise.
34222         * modules/unictype/category-Cs-tests: Likewise.
34223         * modules/unictype/category-L-tests: Likewise.
34224         * modules/unictype/category-Ll-tests: Likewise.
34225         * modules/unictype/category-Lm-tests: Likewise.
34226         * modules/unictype/category-Lo-tests: Likewise.
34227         * modules/unictype/category-Lt-tests: Likewise.
34228         * modules/unictype/category-Lu-tests: Likewise.
34229         * modules/unictype/category-M-tests: Likewise.
34230         * modules/unictype/category-Mc-tests: Likewise.
34231         * modules/unictype/category-Me-tests: Likewise.
34232         * modules/unictype/category-Mn-tests: Likewise.
34233         * modules/unictype/category-N-tests: Likewise.
34234         * modules/unictype/category-Nd-tests: Likewise.
34235         * modules/unictype/category-Nl-tests: Likewise.
34236         * modules/unictype/category-No-tests: Likewise.
34237         * modules/unictype/category-P-tests: Likewise.
34238         * modules/unictype/category-Pc-tests: Likewise.
34239         * modules/unictype/category-Pd-tests: Likewise.
34240         * modules/unictype/category-Pe-tests: Likewise.
34241         * modules/unictype/category-Pf-tests: Likewise.
34242         * modules/unictype/category-Pi-tests: Likewise.
34243         * modules/unictype/category-Po-tests: Likewise.
34244         * modules/unictype/category-Ps-tests: Likewise.
34245         * modules/unictype/category-S-tests: Likewise.
34246         * modules/unictype/category-Sc-tests: Likewise.
34247         * modules/unictype/category-Sk-tests: Likewise.
34248         * modules/unictype/category-Sm-tests: Likewise.
34249         * modules/unictype/category-So-tests: Likewise.
34250         * modules/unictype/category-Z-tests: Likewise.
34251         * modules/unictype/category-Zl-tests: Likewise.
34252         * modules/unictype/category-Zp-tests: Likewise.
34253         * modules/unictype/category-Zs-tests: Likewise.
34254         * modules/unictype/category-and-not-tests: Likewise.
34255         * modules/unictype/category-and-tests: Likewise.
34256         * modules/unictype/category-byname-tests: Likewise.
34257         * modules/unictype/category-name-tests: Likewise.
34258         * modules/unictype/category-none-tests: Likewise.
34259         * modules/unictype/category-of-tests: Likewise.
34260         * modules/unictype/category-or-tests: Likewise.
34261         * modules/unictype/category-test-withtable-tests: Likewise.
34262         * modules/unictype/combining-class-tests: Likewise.
34263         * modules/unictype/ctype-alnum-tests: Likewise.
34264         * modules/unictype/ctype-alpha-tests: Likewise.
34265         * modules/unictype/ctype-blank-tests: Likewise.
34266         * modules/unictype/ctype-cntrl-tests: Likewise.
34267         * modules/unictype/ctype-digit-tests: Likewise.
34268         * modules/unictype/ctype-graph-tests: Likewise.
34269         * modules/unictype/ctype-lower-tests: Likewise.
34270         * modules/unictype/ctype-print-tests: Likewise.
34271         * modules/unictype/ctype-punct-tests: Likewise.
34272         * modules/unictype/ctype-space-tests: Likewise.
34273         * modules/unictype/ctype-upper-tests: Likewise.
34274         * modules/unictype/ctype-xdigit-tests: Likewise.
34275         * modules/unictype/decimal-digit-tests: Likewise.
34276         * modules/unictype/digit-tests: Likewise.
34277         * modules/unictype/mirror-tests: Likewise.
34278         * modules/unictype/numeric-tests: Likewise.
34279         * modules/unictype/property-alphabetic-tests: Likewise.
34280         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
34281         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
34282         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
34283         * modules/unictype/property-bidi-block-separator-tests: Likewise.
34284         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
34285         * modules/unictype/property-bidi-common-separator-tests: Likewise.
34286         * modules/unictype/property-bidi-control-tests: Likewise.
34287         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
34288         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
34289         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
34290         * modules/unictype/property-bidi-european-digit-tests: Likewise.
34291         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
34292         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
34293         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
34294         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
34295         * modules/unictype/property-bidi-pdf-tests: Likewise.
34296         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
34297         * modules/unictype/property-bidi-whitespace-tests: Likewise.
34298         * modules/unictype/property-byname-tests: Likewise.
34299         * modules/unictype/property-combining-tests: Likewise.
34300         * modules/unictype/property-composite-tests: Likewise.
34301         * modules/unictype/property-currency-symbol-tests: Likewise.
34302         * modules/unictype/property-dash-tests: Likewise.
34303         * modules/unictype/property-decimal-digit-tests: Likewise.
34304         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
34305         * modules/unictype/property-deprecated-tests: Likewise.
34306         * modules/unictype/property-diacritic-tests: Likewise.
34307         * modules/unictype/property-extender-tests: Likewise.
34308         * modules/unictype/property-format-control-tests: Likewise.
34309         * modules/unictype/property-grapheme-base-tests: Likewise.
34310         * modules/unictype/property-grapheme-extend-tests: Likewise.
34311         * modules/unictype/property-grapheme-link-tests: Likewise.
34312         * modules/unictype/property-hex-digit-tests: Likewise.
34313         * modules/unictype/property-hyphen-tests: Likewise.
34314         * modules/unictype/property-id-continue-tests: Likewise.
34315         * modules/unictype/property-id-start-tests: Likewise.
34316         * modules/unictype/property-ideographic-tests: Likewise.
34317         * modules/unictype/property-ids-binary-operator-tests: Likewise.
34318         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
34319         * modules/unictype/property-ignorable-control-tests: Likewise.
34320         * modules/unictype/property-iso-control-tests: Likewise.
34321         * modules/unictype/property-join-control-tests: Likewise.
34322         * modules/unictype/property-left-of-pair-tests: Likewise.
34323         * modules/unictype/property-line-separator-tests: Likewise.
34324         * modules/unictype/property-logical-order-exception-tests: Likewise.
34325         * modules/unictype/property-lowercase-tests: Likewise.
34326         * modules/unictype/property-math-tests: Likewise.
34327         * modules/unictype/property-non-break-tests: Likewise.
34328         * modules/unictype/property-not-a-character-tests: Likewise.
34329         * modules/unictype/property-numeric-tests: Likewise.
34330         * modules/unictype/property-other-alphabetic-tests: Likewise.
34331         * modules/unictype/property-other-default-ignorable-code-point-tests:
34332         Likewise.
34333         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
34334         * modules/unictype/property-other-id-continue-tests: Likewise.
34335         * modules/unictype/property-other-id-start-tests: Likewise.
34336         * modules/unictype/property-other-lowercase-tests: Likewise.
34337         * modules/unictype/property-other-math-tests: Likewise.
34338         * modules/unictype/property-other-uppercase-tests: Likewise.
34339         * modules/unictype/property-paired-punctuation-tests: Likewise.
34340         * modules/unictype/property-paragraph-separator-tests: Likewise.
34341         * modules/unictype/property-pattern-syntax-tests: Likewise.
34342         * modules/unictype/property-pattern-white-space-tests: Likewise.
34343         * modules/unictype/property-private-use-tests: Likewise.
34344         * modules/unictype/property-punctuation-tests: Likewise.
34345         * modules/unictype/property-quotation-mark-tests: Likewise.
34346         * modules/unictype/property-radical-tests: Likewise.
34347         * modules/unictype/property-sentence-terminal-tests: Likewise.
34348         * modules/unictype/property-soft-dotted-tests: Likewise.
34349         * modules/unictype/property-space-tests: Likewise.
34350         * modules/unictype/property-terminal-punctuation-tests: Likewise.
34351         * modules/unictype/property-test-tests: Likewise.
34352         * modules/unictype/property-titlecase-tests: Likewise.
34353         * modules/unictype/property-unassigned-code-value-tests: Likewise.
34354         * modules/unictype/property-unified-ideograph-tests: Likewise.
34355         * modules/unictype/property-uppercase-tests: Likewise.
34356         * modules/unictype/property-variation-selector-tests: Likewise.
34357         * modules/unictype/property-white-space-tests: Likewise.
34358         * modules/unictype/property-xid-continue-tests: Likewise.
34359         * modules/unictype/property-xid-start-tests: Likewise.
34360         * modules/unictype/property-zero-width-tests: Likewise.
34361         * modules/unictype/scripts-tests: Likewise.
34362         * modules/unictype/syntax-c-ident-tests: Likewise.
34363         * modules/unictype/syntax-c-whitespace-tests: Likewise.
34364         * modules/unictype/syntax-java-ident-tests: Likewise.
34365         * modules/unictype/syntax-java-whitespace-tests: Likewise.
34366         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
34367         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
34368         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
34369         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
34370         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
34371         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
34372         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
34373         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
34374         * modules/uniname/uniname-tests: Likewise.
34375         * modules/uninorm/canonical-decomposition-tests: Likewise.
34376         * modules/uninorm/compat-decomposition-tests: Likewise.
34377         * modules/uninorm/composition-tests: Likewise.
34378         * modules/uninorm/decomposing-form-tests: Likewise.
34379         * modules/uninorm/decomposition-tests: Likewise.
34380         * modules/uninorm/filter-tests: Likewise.
34381         * modules/uninorm/nfc-tests: Likewise.
34382         * modules/uninorm/nfd-tests: Likewise.
34383         * modules/uninorm/nfkc-tests: Likewise.
34384         * modules/uninorm/nfkd-tests: Likewise.
34385         * modules/uninorm/u8-normcmp-tests: Likewise.
34386         * modules/uninorm/u8-normcoll-tests: Likewise.
34387         * modules/uninorm/u16-normcmp-tests: Likewise.
34388         * modules/uninorm/u16-normcoll-tests: Likewise.
34389         * modules/uninorm/u32-normcmp-tests: Likewise.
34390         * modules/uninorm/u32-normcoll-tests: Likewise.
34391         * modules/unistdio/u8-asnprintf-tests: Likewise.
34392         * modules/unistdio/u8-vasnprintf-tests: Likewise.
34393         * modules/unistdio/u8-vasprintf-tests: Likewise.
34394         * modules/unistdio/u8-vsnprintf-tests: Likewise.
34395         * modules/unistdio/u8-vsprintf-tests: Likewise.
34396         * modules/unistdio/u16-asnprintf-tests: Likewise.
34397         * modules/unistdio/u16-vasnprintf-tests: Likewise.
34398         * modules/unistdio/u16-vasprintf-tests: Likewise.
34399         * modules/unistdio/u16-vsnprintf-tests: Likewise.
34400         * modules/unistdio/u16-vsprintf-tests: Likewise.
34401         * modules/unistdio/u32-asnprintf-tests: Likewise.
34402         * modules/unistdio/u32-vasnprintf-tests: Likewise.
34403         * modules/unistdio/u32-vasprintf-tests: Likewise.
34404         * modules/unistdio/u32-vsnprintf-tests: Likewise.
34405         * modules/unistdio/u32-vsprintf-tests: Likewise.
34406         * modules/unistdio/ulc-asnprintf-tests: Likewise.
34407         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
34408         * modules/unistdio/ulc-vasprintf-tests: Likewise.
34409         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
34410         * modules/unistdio/ulc-vsprintf-tests: Likewise.
34411         * modules/unistr/u8-check-tests: Likewise.
34412         * modules/unistr/u8-chr-tests: Likewise.
34413         * modules/unistr/u8-cmp-tests: Likewise.
34414         * modules/unistr/u8-cmp2-tests: Likewise.
34415         * modules/unistr/u8-cpy-alloc-tests: Likewise.
34416         * modules/unistr/u8-cpy-tests: Likewise.
34417         * modules/unistr/u8-mblen-tests: Likewise.
34418         * modules/unistr/u8-mbsnlen-tests: Likewise.
34419         * modules/unistr/u8-mbtouc-tests: Likewise.
34420         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
34421         * modules/unistr/u8-mbtoucr-tests: Likewise.
34422         * modules/unistr/u8-move-tests: Likewise.
34423         * modules/unistr/u8-next-tests: Likewise.
34424         * modules/unistr/u8-prev-tests: Likewise.
34425         * modules/unistr/u8-set-tests: Likewise.
34426         * modules/unistr/u8-stpcpy-tests: Likewise.
34427         * modules/unistr/u8-stpncpy-tests: Likewise.
34428         * modules/unistr/u8-strcat-tests: Likewise.
34429         * modules/unistr/u8-strcmp-tests: Likewise.
34430         * modules/unistr/u8-strcoll-tests: Likewise.
34431         * modules/unistr/u8-strcpy-tests: Likewise.
34432         * modules/unistr/u8-strdup-tests: Likewise.
34433         * modules/unistr/u8-strlen-tests: Likewise.
34434         * modules/unistr/u8-strmblen-tests: Likewise.
34435         * modules/unistr/u8-strmbtouc-tests: Likewise.
34436         * modules/unistr/u8-strncat-tests: Likewise.
34437         * modules/unistr/u8-strncmp-tests: Likewise.
34438         * modules/unistr/u8-strncpy-tests: Likewise.
34439         * modules/unistr/u8-strnlen-tests: Likewise.
34440         * modules/unistr/u8-to-u16-tests: Likewise.
34441         * modules/unistr/u8-to-u32-tests: Likewise.
34442         * modules/unistr/u8-uctomb-tests: Likewise.
34443         * modules/unistr/u16-check-tests: Likewise.
34444         * modules/unistr/u16-chr-tests: Likewise.
34445         * modules/unistr/u16-cmp-tests: Likewise.
34446         * modules/unistr/u16-cmp2-tests: Likewise.
34447         * modules/unistr/u16-cpy-alloc-tests: Likewise.
34448         * modules/unistr/u16-cpy-tests: Likewise.
34449         * modules/unistr/u16-mblen-tests: Likewise.
34450         * modules/unistr/u16-mbsnlen-tests: Likewise.
34451         * modules/unistr/u16-mbtouc-tests: Likewise.
34452         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
34453         * modules/unistr/u16-mbtoucr-tests: Likewise.
34454         * modules/unistr/u16-move-tests: Likewise.
34455         * modules/unistr/u16-next-tests: Likewise.
34456         * modules/unistr/u16-prev-tests: Likewise.
34457         * modules/unistr/u16-set-tests: Likewise.
34458         * modules/unistr/u16-stpcpy-tests: Likewise.
34459         * modules/unistr/u16-stpncpy-tests: Likewise.
34460         * modules/unistr/u16-strcat-tests: Likewise.
34461         * modules/unistr/u16-strcmp-tests: Likewise.
34462         * modules/unistr/u16-strcoll-tests: Likewise.
34463         * modules/unistr/u16-strcpy-tests: Likewise.
34464         * modules/unistr/u16-strdup-tests: Likewise.
34465         * modules/unistr/u16-strlen-tests: Likewise.
34466         * modules/unistr/u16-strmblen-tests: Likewise.
34467         * modules/unistr/u16-strmbtouc-tests: Likewise.
34468         * modules/unistr/u16-strncat-tests: Likewise.
34469         * modules/unistr/u16-strncmp-tests: Likewise.
34470         * modules/unistr/u16-strncpy-tests: Likewise.
34471         * modules/unistr/u16-strnlen-tests: Likewise.
34472         * modules/unistr/u16-to-u32-tests: Likewise.
34473         * modules/unistr/u16-to-u8-tests: Likewise.
34474         * modules/unistr/u16-uctomb-tests: Likewise.
34475         * modules/unistr/u32-check-tests: Likewise.
34476         * modules/unistr/u32-chr-tests: Likewise.
34477         * modules/unistr/u32-cmp-tests: Likewise.
34478         * modules/unistr/u32-cmp2-tests: Likewise.
34479         * modules/unistr/u32-cpy-alloc-tests: Likewise.
34480         * modules/unistr/u32-cpy-tests: Likewise.
34481         * modules/unistr/u32-mblen-tests: Likewise.
34482         * modules/unistr/u32-mbsnlen-tests: Likewise.
34483         * modules/unistr/u32-mbtouc-tests: Likewise.
34484         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
34485         * modules/unistr/u32-mbtoucr-tests: Likewise.
34486         * modules/unistr/u32-move-tests: Likewise.
34487         * modules/unistr/u32-next-tests: Likewise.
34488         * modules/unistr/u32-prev-tests: Likewise.
34489         * modules/unistr/u32-set-tests: Likewise.
34490         * modules/unistr/u32-stpcpy-tests: Likewise.
34491         * modules/unistr/u32-stpncpy-tests: Likewise.
34492         * modules/unistr/u32-strcat-tests: Likewise.
34493         * modules/unistr/u32-strcmp-tests: Likewise.
34494         * modules/unistr/u32-strcoll-tests: Likewise.
34495         * modules/unistr/u32-strcpy-tests: Likewise.
34496         * modules/unistr/u32-strdup-tests: Likewise.
34497         * modules/unistr/u32-strlen-tests: Likewise.
34498         * modules/unistr/u32-strmblen-tests: Likewise.
34499         * modules/unistr/u32-strmbtouc-tests: Likewise.
34500         * modules/unistr/u32-strncat-tests: Likewise.
34501         * modules/unistr/u32-strncmp-tests: Likewise.
34502         * modules/unistr/u32-strncpy-tests: Likewise.
34503         * modules/unistr/u32-strnlen-tests: Likewise.
34504         * modules/unistr/u32-to-u16-tests: Likewise.
34505         * modules/unistr/u32-to-u8-tests: Likewise.
34506         * modules/unistr/u32-uctomb-tests: Likewise.
34507         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
34508         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
34509         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
34510         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
34511         * modules/uniwidth/u8-strwidth-tests: Likewise.
34512         * modules/uniwidth/u8-width-tests: Likewise.
34513         * modules/uniwidth/u16-strwidth-tests: Likewise.
34514         * modules/uniwidth/u16-width-tests: Likewise.
34515         * modules/uniwidth/u32-strwidth-tests: Likewise.
34516         * modules/uniwidth/u32-width-tests: Likewise.
34517         * modules/uniwidth/width-tests: Likewise.
34518
34519 2010-05-18  Richard Jones  <rjones@redhat.com>
34520
34521         doc: users.txt: list hivex
34522         * users.txt: Add hivex.
34523
34524 2010-05-18  Richard Jones  <rjones@redhat.com>
34525
34526         doc: users.txt: list febootstrap
34527         * users.txt: Add febootstrap.
34528
34529 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
34530
34531         bootstrap: fix an error when gnulib is not used as a git submodule
34532         * build-aux/bootstrap (gnulib_path): If its length is zero then
34533         assign "gnulib" to it.
34534         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
34535
34536 2010-05-16  Bruno Haible  <bruno@clisp.org>
34537
34538         Avoid autoconf warnings about AM_ICONV.
34539         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
34540         2.64.
34541
34542 2010-05-16  Bruno Haible  <bruno@clisp.org>
34543
34544         absolute-header: Make the macro usable in more situations.
34545         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
34546         from gl_ABSOLUTE_HEADER.
34547         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
34548
34549 2010-05-16  James Youngman  <jay@gnu.org>
34550
34551         doc: update users.txt
34552         * users.txt: Add CSSC.
34553
34554 2010-05-16  Jim Meyering  <meyering@redhat.com>
34555
34556         init.sh: fix an error in the previous change; add more comments
34557         * tests/init.sh: Compare exit code in loop against 9, not 2.
34558         Patch by Bruno Haible.
34559         Make the two tests more similar by adding an empty "then" clause.
34560         Add comments.
34561
34562         init.sh: avoid unnecessary shell re-exec
34563         * tests/init.sh: Improve the re-exec-required check to first test the
34564         current shell.  If it passes the test, do not search for a shell that
34565         does pass, and do not re-exec.  This test is particularly contorted to
34566         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
34567         of $(...) evokes a syntax error and causes immediate shell exit with
34568         status 2.  Bruno Haible reported that the re-exec made it impossible
34569         to single-step through any init.sh-using script.
34570
34571 2010-05-16  Bruno Haible  <bruno@clisp.org>
34572
34573         Fix collision between gnulib's and libintl's printf replacements.
34574         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
34575         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
34576         (printf): When using GNU C, map the __printf__ function to rpl_printf
34577         via __asm__. When not using GNU C, define rpl_printf instead of
34578         __printf__.
34579         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
34580         commit.
34581         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
34582         commit.
34583         * m4/asm-underscore.m4: New file.
34584         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
34585         * modules/stdio (Files): Add m4/asm-underscore.m4.
34586         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
34587         Reported by Ben Pfaff.
34588
34589 2010-05-16  Bruno Haible  <bruno@clisp.org>
34590
34591         verify: Avoid skipping the test on openSUSE 11.0.
34592         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
34593
34594 2010-05-13  Bruno Haible  <bruno@clisp.org>
34595
34596         Avoid useless warnings from G++.
34597         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
34598         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
34599         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
34600
34601 2010-05-11  Jim Meyering  <meyering@redhat.com>
34602
34603         maint.mk: tweak preceding change
34604         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
34605         regexps tighter by anchoring at EOL, and make the new group "shy"
34606         for slightly decreased overhead.
34607
34608 2010-05-11  Eric Blake  <eblake@redhat.com>
34609
34610         maint.mk: gnulib doesn't guarantee NSIG
34611         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
34612
34613 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34614
34615         test-pwrite.c: Remove unused variable declaration.
34616         * tests/test-pwrite.c (main): Remove read_buf declaration.
34617
34618         Remove useless test-pwrite.sh file.
34619         * tests/test-pwrite.sh: Delete file.
34620         * modules/pwrite-tests: Remove references.
34621         Reported by Bruno Haible.
34622
34623 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
34624
34625         init.sh: fix a typo
34626         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
34627
34628 2010-05-10  Jim Meyering  <meyering@redhat.com>
34629
34630         maint.mk: avoid using a temporary file in the always-defined-macros check
34631         * top/maint.mk (.re-defmac): Remove rule.
34632         (gl_trap_): Remove definition.
34633         (sc_prohibit_always-defined_macros): Rewrite not to create and
34634         depend on a temporary file.  Instead, depend on GNU grep's ability
34635         to read a list of regular expressions from stdin when given "-f -".
34636
34637 2010-05-09  Bruno Haible  <bruno@clisp.org>
34638
34639         Update to GNU gettext 0.18, part 1.
34640         * m4/gettext.m4: Update to GNU gettext 0.18.
34641         * m4/intl.m4: Likewise.
34642         * m4/po.m4: Likewise.
34643         * modules/gettext (Files): Add m4/fcntl-o.m4.
34644         (configure.ac): Require gettext infrastructure from version 0.18.
34645
34646 2010-05-09  Jim Meyering  <meyering@redhat.com>
34647
34648         init.sh: enable MALLOC_PERTURB_
34649         * tests/init.sh: Enable glibc's malloc-perturbing option.
34650
34651         maint.mk: improve sc_cross_check_PATH_usage_in_tests
34652         With my recent change in init.sh from the two-line form:
34653             -#   : ${srcdir=.}
34654             -#   . "$srcdir/init.sh"; path_prepend_ .
34655             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
34656         I noticed that using the one-line form would cause this test
34657         to fail with a false-positive, or to stop working altogether,
34658         depending on whether help-version changed or all the tests did.
34659         * top/maint.mk (_hv_regex): Remove this definition.
34660         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
34661         (_hv_regex_strong): Use a stronger regex to check for conformance.
34662         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
34663         Give a separate diagnostic for lack of conforming use.
34664
34665         maint.mk: prohibit definition of symbols defined by gnulib
34666         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
34667         definition of symbols defined by gnulib.
34668
34669 2010-05-09  Bruno Haible  <bruno@clisp.org>
34670
34671         acl: Avoid test failure on Cygwin-hosted mingw.
34672         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
34673
34674 2010-05-09  Bruno Haible  <bruno@clisp.org>
34675
34676         error: Use system's fcntl function.
34677         * lib/error.c (fcntl): Undefine.
34678
34679 2010-05-09  Jim Meyering  <meyering@redhat.com>
34680
34681         verify: adjust formatting to be more consistent
34682         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
34683         argument-list '('s, and after one comma.
34684
34685 2010-05-09  Bruno Haible  <bruno@clisp.org>
34686
34687         error: More reliable output on mingw.
34688         * lib/error.c: Include <windows.h>.
34689         (is_open): New function.
34690         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
34691         defined.
34692
34693 2010-05-09  Bruno Haible  <bruno@clisp.org>
34694
34695         vasnprintf: Fix syntax errors in libintl build on mingw.
34696         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
34697         pad_ourselves and prec_ourselves after use.
34698
34699 2010-05-08  Bruno Haible  <bruno@clisp.org>
34700
34701         * lib/config.charset: Update comments for Cygwin 1.7.
34702         * lib/localcharset.c: Likewise.
34703
34704 2010-05-07  Jim Meyering  <meyering@redhat.com>
34705
34706         init.sh: improve comments
34707         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
34708         . "${srcdir=.}/init.sh"; path_prepend_ .
34709         Add a note about path_prepend_ and the alternative of using
34710         TESTS_ENVIRONMENT.
34711
34712 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
34713
34714         exclude: Unescape hashed patterns in wildcard mode.
34715         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
34716         to the hash list.
34717         * tests/test-exclude8.sh: New test case.
34718         * modules/exclude-tests: Add new test.
34719
34720 2010-05-05  Eric Blake  <eblake@redhat.com>
34721
34722         verify: automate tests
34723         * modules/verify-tests: New module.
34724         * tests/test-verify.sh: New file.
34725         * tests/test-verify.c: Guard each negative test with a unique id.
34726         Also avoid warning about unused left hand of comma expressions.
34727
34728 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
34729
34730         Further improvements to verify.h, suggested by Eric Blake.
34731         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
34732         the GL_* versions, to avoid collision with OpenGL.
34733         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
34734         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
34735         than testing merely whether it's defined.
34736
34737         Modify verify.h to pacify gcc -Wredundant_decls.
34738         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
34739         These use the prefix "GL_" since they're likely to be useful elsewhere.
34740         We may need to break them out into a different .h file.
34741         (__COUNTER__): Define to 0 if the compiler doesn't support it.
34742         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
34743         of verify_function__.
34744
34745 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34746
34747         Tests for module pwrite.
34748         * modules/pwrite-tests: New file.
34749         * tests/test-pwrite.sh: New file.
34750         * tests/test-pwrite.c: New file.
34751
34752         New module pwrite.
34753         * lib/unistd.in.h (pwrite): New declaration.
34754         * lib/pwrite.c: New file, from glibc with modifications.
34755         * m4/pwrite.m4: New file.
34756         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
34757         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
34758         REPLACE_PWRITE.
34759         * modules/pwrite: New file.
34760         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
34761         REPLACE_PWRITE.
34762         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
34763         * doc/posix-functions/pwrite.texi: Mention the new module.
34764
34765 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
34766
34767         pread: Update documentation.
34768         * doc/posix-functions/pread.texi: Mention the 'pread' module.
34769
34770 2010-05-04  Eric Blake  <eblake@redhat.com>
34771
34772         docs: update cygwin progress
34773         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
34774         this bug.
34775         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
34776         Added in cygwin 1.7.2.
34777         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
34778         Likewise.
34779         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
34780         Likewise.
34781         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34782         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
34783         * doc/glibc-functions/accept4.texi (accept4): Likewise.
34784         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
34785         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
34786         Mention nproc module.
34787         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
34788         bug in cygwin 1.7.5 addition.
34789         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
34790         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
34791         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
34792         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
34793         1.7.5.
34794         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
34795         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
34796         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
34797         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
34798         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
34799         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
34800         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
34801         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
34802         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
34803         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
34804         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
34805         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
34806         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
34807         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
34808         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
34809         Likewise.
34810         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
34811         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
34812         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
34813         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
34814         Likewise.
34815         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
34816         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
34817         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
34818         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
34819         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
34820         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
34821         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
34822         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
34823         Likewise.
34824         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
34825         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
34826         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
34827         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
34828         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
34829         Likewise.
34830         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
34831         Likewise.
34832         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
34833         Likewise.
34834         * doc/glibc-functions/xdrrec_endofrecord.texi
34835         (xdrrec_endofrecord): Likewise.
34836         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
34837         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
34838         Likewise.
34839         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
34840         Likewise.
34841
34842 2010-05-04  Jim Meyering  <meyering@redhat.com>
34843
34844         gendocs.sh: make its "-s FILE" option more useful
34845         * build-aux/gendocs.sh: When honoring the -s FILE option, update
34846         $PACKAGE to reflect the probably-different basename of "FILE".
34847
34848 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34849
34850         bootstrap: don't ignore download_po_files failure
34851         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
34852         failure.
34853
34854 2010-05-03  Jim Meyering  <meyering@redhat.com>
34855
34856         maint.mk: allow to pass options to gendocs.sh
34857         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
34858         (gendocs_options_): New overridable variable.
34859
34860         gnu-web-doc-update: don't ignore configure or build failure
34861         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
34862
34863         announce-gen: backslash-escape '@'s in --help output
34864         * build-aux/announce-gen: Fix syntax errors.
34865
34866         maint.mk, announce-gen: allow project-specific announcement mail headers
34867         * top/maint.mk (translation_project_): Define default.
34868         (announcement_Cc_, announcement_mail_headers_): Likewise.
34869         (announcement): Invoke announce-gen with new --mail-headers option.
34870         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
34871
34872         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
34873         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
34874         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
34875         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
34876         line in the "err2" output file when running "make check" in verbose
34877         mode (i.e., with set -x enabled).
34878
34879 2010-05-03  Bruno Haible  <bruno@clisp.org>
34880
34881         wctob: Fix for weird platforms.
34882         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
34883         argument value.
34884
34885 2010-05-03  Jim Meyering  <meyering@redhat.com>
34886
34887         maint.mk: prohibit unwarranted use of <strings.h>
34888         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
34889         strings.h in a file that does not also use strcasecmp, strncasecmp,
34890         ffs or ffsll.
34891
34892         maint.mk: remove obsolete comments
34893         * top/maint.mk: Remove stale, commented-out rules.
34894
34895 2010-05-02  Bruno Haible  <bruno@clisp.org>
34896
34897         wcwidth: Declare also when it's aliased.
34898         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
34899         macro.
34900
34901 2010-05-02  Bruno Haible  <bruno@clisp.org>
34902
34903         Fix regression from 2010-04-25.
34904         * gnulib-tool (func_modules_transitive_closure): Check the status of
34905         all modules, not only of the tests that are of the form foo-tests where
34906         foo is a module.
34907
34908 2010-05-02  Bruno Haible  <bruno@clisp.org>
34909
34910         wctob: Work around nasty Cygwin 1.7.2 bug.
34911         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
34912         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
34913
34914 2010-05-01  Bruno Haible  <bruno@clisp.org>
34915
34916         fpurge: Sharper test.
34917         * tests/test-fpurge.c (main): Add one more ftell check.
34918         * modules/fpurge-tests (Depends-on): Add ftell.
34919         Suggested by Eric Blake.
34920
34921 2010-05-01  Bruno Haible  <bruno@clisp.org>
34922
34923         ftello: Another test.
34924         * tests/test-ftello3.c: New file.
34925         * modules/ftello-tests (Files): Add it.
34926         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34927         MOSTLYCLEANFILES.
34928
34929         ftell: Another test.
34930         * tests/test-ftell3.c: New file.
34931         * modules/ftell-tests (Files): Add it.
34932         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
34933         MOSTLYCLEANFILES.
34934
34935 2010-05-01  Bruno Haible  <bruno@clisp.org>
34936
34937         ftell, ftello: Work around Solaris bug.
34938         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
34939         * lib/ftello.c: Include stdio-impl.h.
34940         (ftello): On Solaris, when _IOWRT is set, compute the result without
34941         looking at _IOREAD.
34942         * modules/ftello (Files): Add lib/stdio-impl.h.
34943         * doc/posix-functions/ftell.texi: Mention Solaris bug.
34944         * doc/posix-functions/ftello.texi: Likewise.
34945         Reported by Eric Blake.
34946
34947 2010-05-01  Bruno Haible  <bruno@clisp.org>
34948
34949         freading: Adapt to special meaning of _IOREAD flag on Solaris.
34950         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
34951         the _IOWRT flag is also set.
34952
34953 2010-05-01  Bruno Haible  <bruno@clisp.org>
34954
34955         Fix doc about a HP-UX stdio bug.
34956         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
34957         * doc/posix-functions/ftello.texi: Likewise.
34958
34959 2010-05-01  Bruno Haible  <bruno@clisp.org>
34960
34961         lseek test: Fix failure on Solaris.
34962         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
34963         output.
34964
34965 2010-04-30  Jim Meyering  <meyering@redhat.com>
34966
34967         bootstrap: don't ignore failure to generate po*/Makevars
34968         * build-aux/bootstrap (with_gettext): Don't ignore failure
34969         to create po/Makevars or runtime-po/Makevars.
34970
34971 2010-04-29  Eric Blake  <eblake@redhat.com>
34972
34973         headers: relax license to LGPLv2+
34974         * modules/fcntl-h (License): Relax license.
34975         * modules/getopt-posix (License): Likewise.
34976         * modules/locale (License): Likewise.
34977         * modules/math (License): Likewise.
34978         * modules/pty (License): Likewise.
34979         * modules/sched (License): Likewise.
34980         * modules/search (License): Likewise.
34981         * modules/spawn (License): Likewise.
34982         * modules/stdarg (License): Likewise.
34983         * modules/sysexits (License): Likewise.
34984
34985 2010-04-29  Jim Meyering  <meyering@redhat.com>
34986
34987         inttypes: relax license to LGPLv2+
34988         * modules/inttypes (License): Relax license.
34989
34990 2010-04-29  Simon Josefsson  <simon@josefsson.org>
34991
34992         * top/maint.mk (indent): Run twice to produce idempotent results.
34993
34994 2010-04-28  Bruno Haible  <bruno@clisp.org>
34995
34996         getdate: Generate getdate.c in the source directory.
34997         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
34998         MOSTLYCLEANFILES.
34999         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
35000
35001 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
35002
35003         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
35004         is not declared as a const *; avoid warnings in that case.
35005
35006 2010-04-28  Eric Blake  <eblake@redhat.com>
35007
35008         canonicalize-lgpl: avoid compiler warning
35009         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
35010         declaration' / 'extraneous semicolon' warning with some compilers.
35011         Reported by Andreas Gruenbacher.
35012
35013 2010-04-28  Jim Meyering  <meyering@redhat.com>
35014
35015         init.sh: ensure a more reliable exit status when exiting via trap
35016         * tests/init.sh (setup_): Don't rely on $? in signal handler.
35017         Inspired by patches from Dmitry V. Levin.
35018         Also trap on signal 3 (SIGQUIT).
35019
35020 2010-04-27  Bruno Haible  <bruno@clisp.org>
35021
35022         Update doc about utimes().
35023         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
35024         'utimens' module.
35025         Reported by Andreas Gruenbacher <agruen@suse.de>.
35026
35027 2010-04-27  Eric Blake  <eblake@redhat.com>
35028
35029         full-read, full-write: relax license
35030         * modules/full-read (License): Drop to LGPLv2+.
35031         * modules/full-write (License): Likewise.
35032         * modules/safe-read (License): Likewise.
35033         * modules/safe-write (License): Likewise.
35034
35035         pthread: mention library for linking
35036         * modules/pthread (Link): Mention $(LIB_PTHREAD).
35037
35038 2010-04-27  Jim Meyering  <meyering@redhat.com>
35039
35040         maint.mk: fix a bug introduced in last change
35041         * top/maint.mk (gl_assured_headers_): Now that all names are on
35042         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
35043         is not anchored to end of word, it should be adequate.
35044
35045         maint.mk: avoid side-effect in latest syntax-check
35046         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
35047         to run commands via $(shell...), and hence to incur cost only when
35048         the new rule is actually run.
35049
35050         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
35051         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
35052         and use that to create a regexp used to detect all #if HAVE_..._H uses.
35053         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
35054         (gl_assured_headers_, az_, AZ_): Define.
35055         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
35056
35057 2010-04-26  Jim Meyering  <jim@meyering.net>
35058             Bruno Haible  <bruno@clisp.org>
35059
35060         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
35061         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
35062         Prompted by an exchange with Gilles Espinasse.
35063
35064 2010-04-26  Jim Meyering  <meyering@redhat.com>
35065
35066         git-version-gen: aesthetic tweak
35067         * build-aux/git-version-gen: Use "$nl" rather than a literal,
35068         so that the command remains on a single line.
35069
35070 2010-04-26  Eric Blake  <eblake@redhat.com>
35071
35072         git-version-gen: allow use on EBCDIC hosts
35073         * build-aux/git-version-gen (dirty): Use literal rather than tying
35074         ourselves to ascii.
35075         Reported by Steve Goetze.
35076
35077 2010-04-25  Bruno Haible  <bruno@clisp.org>
35078
35079         netdb: Add support for GNULIB_POSIXCHECK.
35080         * lib/netdb.in.h: Include warn-on-use.h.
35081         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
35082         functions are used when GNULIB_POSIXCHECK is defined and the
35083         getaddrinfo module is not in use.
35084         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
35085         freeaddrinfo, gai_strerror, getnameinfo are declared.
35086         * modules/netdb (Depends-on): Add warn-on-use.
35087         (Makefile.am): Include warn-on-use.h in netdb.h.
35088
35089 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
35090
35091         build: avoid "make check" failure without .git/ directory
35092         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
35093         there is no .git/ directory.
35094
35095 2010-04-25  Bruno Haible  <bruno@clisp.org>
35096
35097         ptsname: Fix misuse of ttyname_r.
35098         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
35099         of errno.
35100
35101 2010-04-25  Bruno Haible  <bruno@clisp.org>
35102
35103         ttyname_r: Make it work on Solaris 10.
35104         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
35105         if the system function has the POSIX declaration. Test whether the
35106         function fails if the buffer is less than 128 bytes large.
35107         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
35108         system's ttyname_r function. Provide a reasonably large buffer.
35109         * modules/ttyname_r (Depends-on): Add extensions.
35110         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
35111
35112 2010-04-25  Bruno Haible  <bruno@clisp.org>
35113
35114         Use the 'extensions' module for some more functions on Solaris.
35115         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
35116         module.
35117         * doc/posix-functions/ctime_r.texi: Likewise.
35118         * doc/posix-functions/getgrgid_r.texi: Likewise.
35119         * doc/posix-functions/getgrnam_r.texi: Likewise.
35120         * doc/posix-functions/getpwnam_r.texi: Likewise.
35121         * doc/posix-functions/getpwuid_r.texi: Likewise.
35122         * doc/posix-functions/readdir_r.texi: Likewise.
35123         * doc/posix-functions/sigwait.texi: Likewise.
35124         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
35125         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
35126
35127 2010-04-25  Bruno Haible  <bruno@clisp.org>
35128
35129         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
35130         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
35131         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
35132         * lib/ttyname_r.c: Include <limits.h>.
35133         (ttyname_r): Define using the system's ttyname_r function, if it exists
35134         and not on Solaris.
35135         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
35136         set.
35137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
35138         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
35139         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
35140         Reported by Simon Josefsson.
35141
35142 2010-04-25  Bruno Haible  <bruno@clisp.org>
35143
35144         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
35145         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
35146         * doc/posix-functions/ctime_r.texi: Likewise.
35147         * doc/posix-functions/getgrgid_r.texi: Likewise.
35148         * doc/posix-functions/getgrnam_r.texi: Likewise.
35149         * doc/posix-functions/getlogin_r.texi: Likewise.
35150         * doc/posix-functions/getpwnam_r.texi: Likewise.
35151         * doc/posix-functions/getpwuid_r.texi: Likewise.
35152         * doc/posix-functions/readdir_r.texi: Likewise.
35153         * doc/posix-functions/sigwait.texi: Likewise.
35154         * doc/posix-functions/ttyname_r.texi: Likewise.
35155         Reported by Simon Josefsson.
35156
35157 2010-04-25  Bruno Haible  <bruno@clisp.org>
35158
35159         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
35160         * gnulib-tool (func_usage): Document that --with-*-tests options apply
35161         also to --create-testdir.
35162         (func_acceptable): Don't consider the status of *-tests modules here.
35163         (func_modules_transitive_closure): Consider it here, before including a
35164         test module.
35165         (func_import, func_create_testdir): Set inc_all_direct_tests,
35166         inc_all_indirect_tests.
35167         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
35168         --create-testdir and --create-megatestdir.
35169
35170 2010-04-25  Bruno Haible  <bruno@clisp.org>
35171
35172         gnulib-tool: Add --without-*-tests options.
35173         * gnulib-tool (func_usage): Document the --without-*-tests options.
35174         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
35175         excl_unportable_tests): New variables.
35176         Fail if they are specified with --import or --update.
35177         (func_acceptable): Respect the excl_*_tests variables.
35178         (func_import): Set the excl_*_tests variables to empty.
35179
35180 2010-04-25  Simon Josefsson  <simon@josefsson.org>
35181             Bruno Haible  <bruno@clisp.org>
35182
35183         Work around a MacOS X 10.4 bug with openpty.
35184         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
35185         * tests/test-openpty.c (main): Close the master side explicitly.
35186
35187 2010-04-25  Bruno Haible  <bruno@clisp.org>
35188
35189         strnlen: Fix a C++ test error on MacOS X and Solaris.
35190         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
35191         the function is not declared.
35192         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
35193         Simon Josefsson.
35194
35195 2010-04-24  Bruno Haible  <bruno@clisp.org>
35196
35197         Avoid a gcc warning.
35198         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
35199         of correct type for %08lx directive.
35200         Reported by Eric Blake.
35201
35202 2010-04-24  Bruno Haible  <bruno@clisp.org>
35203
35204         vasnprintf: Correct errno value in case of out-of-memory.
35205         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
35206         or sprintf. Use the errno value from SNPRINTF or sprintf.
35207         Reported by Ian Beckwith <ianb@erislabs.net>.
35208
35209 2010-04-24  Bruno Haible  <bruno@clisp.org>
35210
35211         ansi-c++-opt: Find correct compiler when cross-compiling.
35212         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
35213         AC_CHECK_PROGS.
35214         Reported by Simon Josefsson.
35215
35216 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
35217
35218         vc-list-files: Add support for subversion
35219         * build-aux/vc-list-files: Use "svn list" to generate the list of
35220         files controlled by subversion.
35221
35222 2010-04-23  Jim Meyering  <meyering@redhat.com>
35223
35224         vc-list-files tests: convert to use init.sh
35225         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
35226         path_prepend_.
35227         Use Exit, not exit.
35228         Use skip_ rather than open coding it.
35229         Remove trap set-up and compare definitions.
35230         * tests/test-vc-list-files-git.sh: Likewise.
35231         * modules/vc-list-files-tests (Files): Add tests/init.sh.
35232
35233 2010-04-22  Simon Josefsson  <simon@josefsson.org>
35234
35235         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
35236         backup files.
35237
35238 2010-04-21  Simon Josefsson  <simon@josefsson.org>
35239
35240         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
35241
35242 2010-04-20  Eric Blake  <eblake@redhat.com>
35243
35244         tests: be robust to ignored SIGPIPE
35245         * tests/test-select-in.sh: Consume all output.
35246         * tests/test-lseek.sh: Check correct exit status, while avoiding
35247         EPIPE.
35248
35249 2010-04-20  Simon Josefsson  <simon@josefsson.org>
35250             Bruno Haible  <bruno@clisp.org>
35251
35252         visibility: Don't use -fvisibility if it leads to a warning.
35253         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
35254         yes, don't pretend that visibility works if it leads to a warning.
35255         Reported by Mike Gran <spk121@yahoo.com>.
35256
35257 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
35258
35259         * build-aux/bootstrap: Use "git -h" for testing for supported options
35260         instead of "git --help".  The short-form option only shows a summary,
35261         and doesn't layout the full man page.  Grep for the full option name
35262         in the summary, too.
35263
35264 2010-04-19  Bruno Haible  <bruno@clisp.org>
35265
35266         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
35267         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
35268         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
35269         mention of RELOCATABLE_STRIP.
35270         Reported by Sylvain Beucler <beuc@beuc.net>.
35271
35272 2010-04-19  Bruno Haible  <bruno@clisp.org>
35273
35274         * lib/diffseq.h: Fix typo in comment.
35275         Reported by Eric Blake.
35276
35277 2010-04-19  Bruno Haible  <bruno@clisp.org>
35278
35279         ioctl: Move autoconf macro to a .m4 file.
35280         * m4/ioctl.m4: New file, extracted from modules/ioctl.
35281         * modules/ioctl (Files): Add it.
35282         (configure.ac): Simply invoke gl_FUNC_IOCTL.
35283         Reported by Ian Beckwith <ianb@erislabs.net>.
35284
35285 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
35286             Bruno Haible  <bruno@clisp.org>
35287
35288         diffseq: Accommodate use-case with abstract arrays.
35289         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
35290         is not defined.
35291         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
35292         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
35293
35294 2010-04-18  Bruno Haible  <bruno@clisp.org>
35295
35296         * doc/posix-headers/stdbool.texi: More precise wording.
35297
35298 2010-04-17  Jim Meyering  <meyering@redhat.com>
35299
35300         maint.mk: use gnu-style indentation in an embedded perl script
35301         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
35302         Rename variable: s/two/last_two_bytes/
35303
35304 2010-04-16  Eric Blake  <eblake@redhat.com>
35305
35306         test-stdbool: skip test that fails with Solaris CC
35307         * tests/test-stdbool.c (f): Skip test that causes compilation
35308         error under buggy C++ compiler.
35309         * lib/stdbool.in.h: Document the limitation.
35310         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
35311
35312         setenv: allow compilation with C++
35313         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
35314         register keyword.
35315
35316         stdint: allow test to pass with C++
35317         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
35318
35319         getopt: allow compilation with C++
35320         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
35321         struct.
35322         * lib/getopt.c (_getopt_internal_r): Use correct type.
35323         Reported by Dagobert Michelson, via Joel E. Denny.
35324
35325 2010-04-16  Bruno Haible  <bruno@clisp.org>
35326
35327         Override netdb.h always.
35328         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
35329         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
35330         Reported by Ludovic Courtès <ludo@gnu.org>.
35331
35332 2010-04-15  Bruno Haible  <bruno@clisp.org>
35333
35334         openpty: Fix mistake from 2010-03-21.
35335         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
35336         Reported by Simon Josefsson.
35337
35338 2010-04-15  Eric Blake  <eblake@redhat.com>
35339
35340         test-forkpty: fix expected signature
35341         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
35342         Reported by Simon Josefsson.
35343
35344 2010-04-15  Jim Meyering  <meyering@redhat.com>
35345
35346         maint.mk: texinfo_suffix_re_: correct the default regexp
35347         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
35348
35349         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
35350         make it configurable via texinfo_suffix_re_.
35351
35352 2010-04-14  Eric Blake  <eblake@redhat.com>
35353
35354         strtok_r: relax license to LGPLv2+
35355         * modules/strtok_r (License): Relax license.
35356         Reported by Matthias Bolte.
35357
35358 2010-04-14  Simon Josefsson  <simon@josefsson.org>
35359
35360         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
35361         version 1.4.4 by default instead of requiring the libgcrypt
35362         version used during build.  This makes it possible to use the
35363         application with older but still binary compatible libgcrypt
35364         versions.
35365
35366 2010-04-13  Eric Blake  <eblake@redhat.com>
35367
35368         getopt-gnu: match recent glibc fixes and posix ruling
35369         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
35370         '+' handling, when requesting extensions.
35371         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
35372         'W;' handling.
35373         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
35374         * doc/posix-functions/getopt.texi (getopt): Document this.
35375         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35376         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35377         Likewise.
35378
35379         getopt: merge bug fixes from glibc
35380         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
35381         diagnostics.  Honor '+:' correctly.  Reject ';'.
35382
35383         getopt-posix: detect MacOS bug
35384         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
35385         optind when missing a required argument.
35386         * doc/posix-functions/getopt.texi (getopt): Document the bug.
35387         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35388         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35389         Likewise.
35390
35391         getopt-posix: avoid spurious failure on Solaris
35392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
35393         an indicator that setting optind=1 is sufficient for reset.
35394
35395         getopt-posix: avoid spurious failure on FreeBSD
35396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
35397         in POSIX mode, since the m4 test uses it.
35398
35399         gnulib-tool: silence warning on BSD sh
35400         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
35401
35402 2010-04-13  Jim Meyering  <meyering@redhat.com>
35403
35404         doc: users.txt: GNU patch now uses gnulib
35405         * users.txt: Add patch.
35406
35407 2010-04-12  Jim Meyering  <meyering@redhat.com>
35408
35409         maint.mk: generate more concise timing data for syntax-check rules
35410         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
35411         " done" from each line that reports a syntax-check test duration.
35412
35413 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
35414
35415         git-version-gen: use "git update-index..." rather than "git status"
35416         * build-aux/git-version-gen: Use git update-index --refresh, not
35417         "git status".  With some versions of git, "git status" would fail
35418         to update the index and result in an unwarranted "-dirty" suffix.
35419
35420 2010-04-11  Jim Meyering  <meyering@redhat.com>
35421
35422         openat: correct formatting (no semantic change)
35423         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
35424         Suggested by Bruno Haible.
35425
35426 2010-04-11  Bruno Haible  <bruno@clisp.org>
35427
35428         Stricter declaration checking in testdirs.
35429         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35430         If for_tests is true, augment AM_CPPFLAGS to define
35431         GNULIB_STRICT_CHECKING.
35432         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
35433         GNULIB_STRICT_CHECKING is defined, verify that the function is
35434         declared.
35435
35436 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
35437             Bruno Haible  <bruno@clisp.org>
35438
35439         libunistring: Improve configure output.
35440         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
35441         Don't say "consider installing GNU libunistring" when checking again
35442         with libiconv.
35443
35444 2010-04-11  Bruno Haible  <bruno@clisp.org>
35445
35446         libunistring: Correct value of $LTLIBUNISTRING.
35447         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
35448         correct the value of $LTLIBUNISTRING.
35449
35450 2010-04-11  Bruno Haible  <bruno@clisp.org>
35451
35452         havelib: Add static libraries to LIBS in the right order.
35453         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
35454         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
35455
35456 2010-04-11  Bruno Haible  <bruno@clisp.org>
35457
35458         libunistring: Detect libunistring also when it depends on libiconv.
35459         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
35460         the second AC_LIB_HAVE_LINKFLAGS invocation.
35461
35462 2010-04-11  James Youngman  <jay@gnu.org>
35463
35464         close-stream: declare local scalars to be "const"
35465         * lib/close-stream.c (close_stream): Make boolean variables const
35466         to document the fact that we set but do not change them.
35467
35468 2010-04-11  Bruno Haible  <bruno@clisp.org>
35469
35470         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
35471
35472 2010-04-11  Jim Meyering  <meyering@redhat.com>
35473
35474         maint.mk: don't include dist-check.mk
35475         * top/maint.mk: Remove bogus include directive.
35476
35477         maint.mk: improve empty-line-at-EOF check
35478         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
35479         solution, rather than tail+Perl-based one.  The latter would read
35480         a few kilobytes from the end of each file, and did not handle empty
35481         files properly.
35482
35483         maint.mk: print the elapsed time for each syntax-check rule
35484         * top/maint.mk (sc_m_rules_): Save start time in a file.
35485         (sc_z_rules_): New rules: remove temp file and print elapsed time.
35486         (local-check): Interpose the .z rules
35487
35488 2010-04-11  Jim Meyering  <meyering@redhat.com>
35489
35490         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
35491         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
35492         empty file with one that ends in an empty line.
35493
35494 2010-04-10  Bruno Haible  <bruno@clisp.org>
35495
35496         mkdir: Make it work on mingw64.
35497         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
35498         * lib/mkdir.c: Update comment.
35499         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
35500
35501 2010-04-10  Bruno Haible  <bruno@clisp.org>
35502
35503         Don't override improved macro from newer autoconf.
35504         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
35505         autoconf >= 2.62.
35506         Reported by Joel E. Denny <jdenny@clemson.edu>.
35507
35508 2010-04-10  Jim Meyering  <meyering@redhat.com>
35509
35510         maint.mk: new syntax-check rule: prohibit empty lines at end of file
35511         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
35512
35513         maint.mk: correct a diagnostic
35514         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
35515         in diagnostic; now use $prohibit.
35516
35517 2010-04-10  Bruno Haible  <address@hidden>
35518
35519         fchownat: Fix a C++ test error on Solaris 8.
35520         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
35521         the function does not exist.
35522
35523 2010-04-10  Bruno Haible  <bruno@clisp.org>
35524
35525         vasnprintf: Add more tests.
35526         * tests/test-vasnprintf-posix.c: Include <errno.h>.
35527         (test_function): Test converting an invalid wide string.
35528
35529         vasnprintf: Correct handling of unconvertible wide string arguments.
35530         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
35531         VASNPRINTF.
35532         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
35533         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
35534         smaller than the expected maximum need for the directive. Set errno to
35535         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
35536         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
35537         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
35538         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
35539         * modules/vasnprintf (Files): Add m4/printf.m4.
35540         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35541
35542 2010-04-10  Bruno Haible  <bruno@clisp.org>
35543
35544         vasnprintf: Fix crash in %ls directive.
35545         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
35546         string is passed as argument to %ls, with no precision and no width.
35547         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35548
35549 2010-04-10  Bruno Haible  <bruno@clisp.org>
35550
35551         vasnprintf: Fix multiple test failures on mingw.
35552         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
35553         _snprintf, or snwprintf, not _snwprintf.
35554
35555 2010-04-10  Bruno Haible  <bruno@clisp.org>
35556
35557         write: Fix a C++ test error on mingw.
35558         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
35559
35560 2010-04-10  Bruno Haible  <bruno@clisp.org>
35561
35562         vasnprintf test: Reduce code duplication.
35563         * tests/test-vasnprintf.c (test_function): New function, extracted from
35564         test_vasnprintf.
35565         (test_vasnprintf, test_asnprintf): Invoke it.
35566
35567 2010-04-10  Bruno Haible  <bruno@clisp.org>
35568
35569         strnlen: Fix warning in C++ mode on MacOS X.
35570         * lib/string.in.h (strnlen): Use the modern idiom.
35571         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
35572         defining strnlen as a macro already in <config.h>.
35573         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35574         REPLACE_STRNLEN.
35575         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
35576         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35577
35578 2010-04-08  James Youngman  <jay@gnu.org>
35579
35580         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
35581         the example.
35582
35583 2010-04-09  Jim Meyering  <meyering@redhat.com>
35584
35585         maint.mk: print better diagnostic when there is no $(_hv_file)
35586         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
35587         announce that when $(_hv_file) (aka help-version) does not exist.
35588
35589         init.sh: run tr in the "C" locale to avoid multibyte interpretation
35590         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
35591         not try to interpret its random input bytes.  Jarno Rajahalme reported
35592         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
35593         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
35594         (mktempd_): Likewise, just in case.
35595
35596         ftruncate: add two years to projected module removal date: 2012
35597         * m4/ftruncate.m4: Adjust comments.
35598
35599         ftruncate: mark module as obsolete; even MinGW provides it, now
35600         * modules/ftruncate (Status): Obsolete.
35601         (Notice): Say that.
35602         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
35603         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
35604
35605 2010-04-08  Bruno Haible  <bruno@clisp.org>
35606
35607         Fix side effects from tests-related modules.
35608         * modules/dprintf-posix (Comment): New section.
35609         * modules/fprintf-posix (Comment): Likewise.
35610         * modules/obstack-printf-posix (Comment): Likewise.
35611         * modules/printf-posix (Comment): Likewise.
35612         * modules/snprintf-posix (Comment): Likewise.
35613         * modules/sprintf-posix (Comment): Likewise.
35614         * modules/vasnprintf-posix (Comment): Likewise.
35615         * modules/vasprintf-posix (Comment): Likewise.
35616         * modules/vdprintf-posix (Comment): Likewise.
35617         * modules/vfprintf-posix (Comment): Likewise.
35618         * modules/vprintf-posix (Comment): Likewise.
35619         * modules/vsnprintf-posix (Comment): Likewise.
35620         * modules/vsprintf-posix (Comment): Likewise.
35621         * modules/xprintf-posix (Comment): Likewise.
35622         * modules/xvasprintf-posix (Comment): Likewise.
35623         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
35624         * modules/floorf-tests (Depends-on): Likewise.
35625         * modules/round-tests (Depends-on): Likewise.
35626         * modules/roundf-tests (Depends-on): Likewise.
35627         * modules/trunc-tests (Depends-on): Likewise.
35628         * modules/truncf-tests (Depends-on): Likewise.
35629         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
35630         'fprintf-posix' module is not present.
35631         * tests/test-floorf2.c (check): Likewise.
35632         * tests/test-trunc2.c (check): Likewise.
35633         * tests/test-truncf2.c (check): Likewise.
35634         * tests/test-round2.c (equal): Likewise.
35635         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
35636
35637 2010-04-07  Karl Berry  <karl@gnu.org>
35638
35639         * config/srclist.txt,
35640         * config/srclistvars.sh,
35641         * config/srclist-update: doc fixes.
35642
35643 2010-04-07  Jim Meyering  <meyering@redhat.com>
35644
35645         maint.mk: add a PATH crosschecking syntax-check rule
35646         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
35647         Useful if you use a test like the one in help-version (coreutils,
35648         diffutils, grep, gzip) that ensures $(VERSION) matches what is
35649         printed by prog --version.
35650
35651 2010-04-06  Bruno Haible  <bruno@clisp.org>
35652
35653         Fix link error on mingw.
35654         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
35655         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
35656
35657 2010-04-06  Bruno Haible  <bruno@clisp.org>
35658
35659         Assume rmdir exists.
35660         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
35661
35662 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
35663
35664         doc: update users.txt
35665         * users.txt: Add gcal.
35666
35667 2010-04-06  Jim Meyering  <meyering@redhat.com>
35668
35669         init.sh: simply unset TMPDIR rather than risking env -i
35670         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
35671         although it probably works fine on all Unix-based systems, some
35672         systems (Cygwin?) cannot tolerate a totally cleared environment.
35673         Suggestion from Eric Blake.
35674
35675 2010-04-06  Jim Meyering  <meyering@redhat.com>
35676
35677         init.sh: portability fix: use env's POSIX-specified -i option not -u
35678         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
35679         than unportable env -u.  Solaris 5.11's env lacks support for -u.
35680
35681 2010-04-05  Bruno Haible  <bruno@clisp.org>
35682
35683         btowc: Work around Cygwin 1.7.2 bug.
35684         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
35685         does not map NUL to 0.
35686         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
35687
35688 2010-04-05  Bruno Haible  <bruno@clisp.org>
35689
35690         Make the multithread modules work on Cygwin 1.7.2.
35691         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
35692         imported symbols can be declared weak, so that it returns "no" on
35693         Cygwin 1.7.2.
35694
35695 2010-04-05  Bruno Haible  <bruno@clisp.org>
35696
35697         Use the module 'strncat'.
35698         * modules/unistr/u8-strncat (Depends-on): Add strncat.
35699
35700         Tests for module 'strncat'.
35701         * modules/strncat-tests: New file.
35702         * tests/test-strncat.c: New file.
35703
35704         New module 'strncat'.
35705         * lib/string.in.h (strncat): New declaration.
35706         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
35707         * m4/strncat.m4: New file, based on m4/memchr.m4.
35708         * modules/strncat: New file.
35709         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
35710         is declared.
35711         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
35712         REPLACE_STRNCAT.
35713         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
35714         REPLACE_STRNCAT.
35715         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
35716         module.
35717         * tests/test-string-c++.cc: Check signature of strncat.
35718
35719 2010-04-05  Jim Meyering  <meyering@redhat.com>
35720
35721         xstrtoumax-tests: convert to use init.sh
35722         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
35723         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35724         Use Exit, not exit.
35725         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35726
35727         xstrtoimax-tests: convert to use init.sh
35728         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
35729         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35730         Use Exit, not exit.
35731         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35732
35733 2010-04-05  Bruno Haible  <bruno@clisp.org>
35734
35735         sys_socket: Avoid #define replacements in C++ mode.
35736         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
35737         warning to the function if possible, rather than #defining the symbol
35738         to a dysfunctional alias.
35739
35740 2010-04-05  Bruno Haible  <bruno@clisp.org>
35741
35742         fseeko: Fix C++ test error on mingw.
35743         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
35744         gl_FUNC_FSEEKO.
35745         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
35746         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
35747         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
35748         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
35749
35750 2010-04-05  Bruno Haible  <bruno@clisp.org>
35751
35752         duplocale: Improve test output.
35753         * tests/test-duplocale.c (main): Print reason for skipped test.
35754
35755 2010-04-05  Bruno Haible  <bruno@clisp.org>
35756
35757         Assume rmdir exists.
35758         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
35759         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
35760
35761 2010-04-05  Bruno Haible  <bruno@clisp.org>
35762
35763         Fix link error on Solaris 8 with cc.
35764         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
35765
35766 2010-04-05  Bruno Haible  <bruno@clisp.org>
35767
35768         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35769         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
35770
35771 2010-04-05  Bruno Haible  <bruno@clisp.org>
35772
35773         vasprintf: Update documentation.
35774         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
35775
35776 2010-04-05  Bruno Haible  <bruno@clisp.org>
35777
35778         ptsname: Improve test.
35779         * tests/test-ptsname.c (main): Also try the various master names of BSD
35780         systems.
35781
35782 2010-04-05  Bruno Haible  <bruno@clisp.org>
35783
35784         memchr: Avoid a possible C++ test error.
35785         * lib/string.in.h (memchr): Provide declaration if function is missing.
35786         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
35787         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
35788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
35789         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
35790
35791 2010-04-05  Bruno Haible  <bruno@clisp.org>
35792
35793         strtok_r: Improve idiom.
35794         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
35795         AC_LIBOBJ is used.
35796
35797 2010-04-05  Bruno Haible  <bruno@clisp.org>
35798
35799         strdup: Improve idiom.
35800         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
35801         AC_LIBOBJ is used.
35802         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
35803         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
35804         when AC_LIBOBJ is used.
35805
35806 2010-04-05  Bruno Haible  <bruno@clisp.org>
35807
35808         mbsinit, mbrtowc, wcrtomb: Improve idioms.
35809         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
35810         don't set REPLACE_MBSINIT to 1.
35811         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
35812         don't set REPLACE_MBRTOWC to 1.
35813         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
35814         exist, don't set REPLACE_MBSRTOWCS to 1.
35815         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
35816         exist, don't set REPLACE_MBSNRTOWCS to 1.
35817         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
35818         don't set REPLACE_WCRTOMB to 1.
35819         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
35820         exist, don't set REPLACE_WCSRTOMBS to 1.
35821         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
35822         exist, don't set REPLACE_WCSNRTOMBS to 1.
35823
35824 2010-04-05  Bruno Haible  <bruno@clisp.org>
35825
35826         ldexpl: Improve idiom.
35827         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
35828         make sure to set HAVE_DECL_LDEXPL to 0.
35829
35830 2010-04-05  Jim Meyering  <meyering@redhat.com>
35831
35832         xstrtol-tests: convert to use init.sh
35833         * modules/xstrtol-tests (Files): Add tests/init.sh.
35834         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35835         Use Exit, not exit.
35836         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35837
35838         atexit-tests: convert to use init.sh
35839         * modules/atexit-tests (Files): Add tests/init.sh.
35840         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
35841         Use Exit, not exit.
35842         Remove uses of $EXEEXT and "./" to run a program in the current dir.
35843
35844         init.sh: fix typo
35845         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
35846
35847         init.sh: make it easier for a test script to write to the tty, ...
35848         when using automake's parallel-tests mode.
35849         * tests/init.sh (stderr_fileno_): Define overridable variable.
35850         (warn_): New function, to use it.
35851         (fail_, skip_, framework_failure_): Use warn_.
35852
35853 2010-04-04  Bruno Haible  <bruno@clisp.org>
35854
35855         btowc: Avoid warning.
35856         * lib/btowc.c: Include <stdlib.h>.
35857         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
35858
35859 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35860             Bruno Haible  <bruno@clisp.org>
35861
35862         wchar: Port to NetBSD 1.5.
35863         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
35864         * lib/wctype.in.h (WEOF): Likewise.
35865
35866 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
35867             Bruno Haible  <bruno@clisp.org>
35868
35869         Port extended stdio to NetBSD 1.5.
35870         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
35871         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
35872         older.
35873
35874 2010-04-04  Bruno Haible  <bruno@clisp.org>
35875
35876         string: Remove unused substitution.
35877         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
35878         HAVE_DECL_STRERROR.
35879         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
35880
35881 2010-04-04  Bruno Haible  <bruno@clisp.org>
35882
35883         strtod: Avoid a possible C++ test error.
35884         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
35885         set REPLACE_STRTOD.
35886
35887 2010-04-04  Bruno Haible  <bruno@clisp.org>
35888
35889         strerror: Update documentation.
35890         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
35891
35892 2010-04-04  Bruno Haible  <bruno@clisp.org>
35893
35894         stdio: Fix some C++ test errors on Solaris 8 with GCC.
35895         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
35896         _GL_CXXALIAS_SYS_CAST.
35897
35898 2010-04-04  Bruno Haible  <bruno@clisp.org>
35899
35900         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
35901         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
35902         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
35903         REPLACE_FREXPL to 1.
35904         * doc/posix-functions/frexpl.texi: Update documentation.
35905
35906 2010-04-04  Bruno Haible  <bruno@clisp.org>
35907
35908         math: Fix some C++ test errors on Solaris 8 and Cygwin.
35909         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
35910
35911 2010-04-04  Bruno Haible  <bruno@clisp.org>
35912
35913         Implement nanosleep for native Windows.
35914         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
35915
35916 2010-04-04  Bruno Haible  <bruno@clisp.org>
35917
35918         math: Fix some C++ test errors on Solaris 8.
35919         * lib/math.in.h (truncf, trunc): Use simpler idiom.
35920
35921 2010-04-04  Bruno Haible  <bruno@clisp.org>
35922
35923         math: Fix some C++ test errors on Cygwin.
35924         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
35925         truncl): Provide declaration if the system does not have it.
35926         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
35927         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
35928         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
35929         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
35930         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
35931         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
35932         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
35933         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
35934         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
35935         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
35936         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
35937         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
35938         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
35939         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
35940         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
35941         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
35942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
35943         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35944         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35945         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
35946         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
35947         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
35948
35949 2010-04-04  Bruno Haible  <bruno@clisp.org>
35950
35951         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
35952         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35953         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
35954         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35955         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
35956         * m4/isinf.m4 (gl_ISINF): Likewise.
35957         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35958
35959 2010-04-04  Bruno Haible  <bruno@clisp.org>
35960
35961         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
35962         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35963
35964 2010-04-04  Bruno Haible  <bruno@clisp.org>
35965
35966         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
35967         * modules/tmpfile (configure.ac): Update.
35968
35969         tmpfile: Fix C++ test error on mingw.
35970         * lib/stdio.in.h (tmpfile): New declaration.
35971         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
35972         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
35973         * modules/tmpfile (Depends-on): Add stdio.
35974         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
35975         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
35976         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
35977         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
35978         REPLACE_TMPFILE.
35979         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
35980
35981 2010-04-04  Bruno Haible  <bruno@clisp.org>
35982
35983         ioctl: Fix C++ test error on mingw.
35984         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
35985         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
35986         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
35987
35988 2010-04-03  Bruno Haible  <bruno@clisp.org>
35989
35990         wcwidth: Fix C++ test error on mingw.
35991         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
35992         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
35993         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
35994
35995 2010-04-03  Bruno Haible  <bruno@clisp.org>
35996
35997         nanosleep: Fix C++ test error on mingw.
35998         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
35999         * lib/time.in.h (nanosleep): Use modern idiom.
36000         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
36001         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
36002         REPLACE_NANOSLEEP to 1.
36003         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
36004         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
36005
36006 2010-04-03  Bruno Haible  <bruno@clisp.org>
36007
36008         strptime: Fix C++ test error on mingw.
36009         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
36010         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
36011         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
36012         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
36013         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
36014         not REPLACE_STRPTIME.
36015         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
36016         REPLACE_STRPTIME.
36017
36018 2010-04-03  Bruno Haible  <bruno@clisp.org>
36019
36020         timegm: Fix C++ test error on mingw.
36021         * lib/time.in.h (timegm): Use modern idiom.
36022         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
36023         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
36024         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
36025         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
36026
36027 2010-04-03  Bruno Haible  <bruno@clisp.org>
36028
36029         timegm: Assume declaration if function exists.
36030         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
36031         if it exists. Don't clobber ac_cv_func_timegm.
36032
36033 2010-04-03  Bruno Haible  <bruno@clisp.org>
36034
36035         time_r: Fix C++ test error on mingw.
36036         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
36037         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
36038         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
36039         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
36040         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
36041
36042 2010-04-03  Bruno Haible  <bruno@clisp.org>
36043
36044         time_r: Minor updates.
36045         * modules/time_r (Description): Mention the provided functions.
36046         * lib/time_r.c: Don't include <string.h>.
36047         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
36048         * doc/posix-functions/localtime_r.texi: Likewise.
36049
36050 2010-04-03  Bruno Haible  <bruno@clisp.org>
36051
36052         time: Fix regression introduced on 2010-03-08.
36053         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
36054         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
36055
36056 2010-04-03  Jim Meyering  <meyering@redhat.com>
36057
36058         maint.mk: don't silently disable project-specific syntax-check rules
36059         * top/maint.mk (_prohibit_regexp): Define, to help people realize
36060         that they need to convert their project-specific syntax-check rules
36061         to use the new _sc_search_regexp.
36062
36063 2010-04-03  Bruno Haible  <bruno@clisp.org>
36064
36065         fchdir: Fix regression introduced on 2010-03-08.
36066         * lib/unistd.in.h (fchdir): Fix declaration.
36067         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
36068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
36069         REPLACE_FCHDIR.
36070         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
36071         REPLACE_FCHDIR.
36072
36073 2010-04-03  Bruno Haible  <bruno@clisp.org>
36074
36075         getpagesize: Fix C++ test error on mingw.
36076         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
36077         system does not declare the function.
36078         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
36079         declared.
36080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36081         HAVE_DECL_GETPAGESIZE.
36082         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
36083
36084 2010-04-03  Bruno Haible  <bruno@clisp.org>
36085
36086         stdio: Make C++ tests work on mingw.
36087         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
36088         does not declare the function.
36089
36090 2010-04-03  Bruno Haible  <bruno@clisp.org>
36091
36092         ftello: Fix C++ test error on mingw.
36093         * lib/stdio.in.h (ftello): Use modern idiom.
36094         * lib/ftello.c (ftello): Renamed from rpl_ftello.
36095         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
36096         is missing and that it needs to be replaced.
36097         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
36098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
36099         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
36100
36101 2010-04-03  Bruno Haible  <bruno@clisp.org>
36102
36103         fseeko: Fix C++ test error on mingw.
36104         * lib/stdio.in.h (fseeko): Use modern idiom.
36105         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
36106         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
36107         is missing and that it needs to be replaced.
36108         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
36109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
36110         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
36111
36112 2010-04-03  Bruno Haible  <bruno@clisp.org>
36113
36114         mkstemp: Fix C++ test error on mingw.
36115         * lib/stdlib.in.h (mkstemp): Use modern idiom.
36116         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
36117         function is missing and that it needs to be replaced.
36118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
36119         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
36120
36121 2010-04-03  Bruno Haible  <bruno@clisp.org>
36122
36123         stpncpy: Fix C++ test error on mingw.
36124         * lib/string.in.h (stpncpy): Use modern idiom.
36125         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
36126         function is missing and that it needs to be replaced.
36127         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36128         REPLACE_STPNCPY.
36129         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
36130
36131 2010-04-03  Bruno Haible  <bruno@clisp.org>
36132
36133         sys_stat: Fix C++ test error on mingw.
36134         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
36135         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
36136
36137 2010-04-03  Bruno Haible  <bruno@clisp.org>
36138
36139         pty: Update doc.
36140         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
36141
36142 2010-04-03  Bruno Haible  <bruno@clisp.org>
36143
36144         unistd: Fix C++ test error on mingw.
36145         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
36146
36147 2010-04-03  Bruno Haible  <bruno@clisp.org>
36148
36149         Update doc regarding mingw.
36150         * doc/glibc-functions/openpty.texi: Update regarding mingw.
36151         * doc/glibc-functions/login_tty.texi: Likewise.
36152         * doc/glibc-functions/forkpty.texi: Likewise.
36153
36154 2010-04-03  Bruno Haible  <bruno@clisp.org>
36155
36156         stdlib: Avoid compilation failure of c-strtold on mingw.
36157         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
36158
36159 2010-04-03  Bruno Haible  <bruno@clisp.org>
36160
36161         locale: Make C++ tests work on Cygwin and mingw.
36162         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
36163         cannot provide the function.
36164         Reported by Simon Josefsson.
36165
36166 2010-04-03  Bruno Haible  <bruno@clisp.org>
36167
36168         localename: Port to MacOS X 10.6.
36169         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
36170         memory layout of the locales in MacOS X 10.6 as well.
36171         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
36172
36173 2010-04-02  Bruno Haible  <bruno@clisp.org>
36174
36175         gnulib-tool: Ensure that long-running tests are executed last.
36176         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
36177         running tests after the one for the other tests.
36178
36179 2010-04-02  Bruno Haible  <bruno@clisp.org>
36180
36181         gnulib-tool: Ensure the tests in the main directory are executed first.
36182         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
36183         start with the current directory.
36184
36185 2010-04-02  Bruno Haible  <bruno@clisp.org>
36186
36187         Tests for module 'havelib', moved here from GNU gettext.
36188         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
36189         modifications.
36190         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
36191         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
36192         with modifications.
36193         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
36194         modifications.
36195         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
36196         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
36197         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
36198         with modifications.
36199         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
36200         with modifications.
36201         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
36202         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
36203         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
36204         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
36205         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
36206         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
36207         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
36208         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
36209         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
36210         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
36211         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
36212         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
36213         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
36214         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
36215         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
36216         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
36217         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
36218         with modifications.
36219         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
36220         with modifications.
36221         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
36222         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
36223         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
36224         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
36225         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
36226         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
36227         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
36228         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
36229         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
36230         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
36231         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
36232         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
36233         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
36234         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
36235         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
36236         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
36237         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
36238         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
36239         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
36240         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
36241         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
36242         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
36243         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
36244         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
36245         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
36246         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
36247         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
36248         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
36249         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
36250         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
36251         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
36252         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
36253         * tests/havelib/rpathx/rpathx.c: New file, from
36254         gettext/autoconf-lib-link.
36255         * tests/havelib/rpathx/Makefile.am: New file, from
36256         gettext/autoconf-lib-link.
36257         * tests/havelib/rpathx/configure.ac: New file, from
36258         gettext/autoconf-lib-link with modifications.
36259         * tests/havelib/rpathy/rpathy.c: New file, from
36260         gettext/autoconf-lib-link.
36261         * tests/havelib/rpathy/Makefile.am: New file, from
36262         gettext/autoconf-lib-link.
36263         * tests/havelib/rpathy/configure.ac: New file, from
36264         gettext/autoconf-lib-link with modifications.
36265         * tests/havelib/rpathz/rpathz.c: New file, from
36266         gettext/autoconf-lib-link.
36267         * tests/havelib/rpathz/Makefile.am: New file, from
36268         gettext/autoconf-lib-link.
36269         * tests/havelib/rpathz/configure.ac: New file, from
36270         gettext/autoconf-lib-link with modifications.
36271         * tests/havelib/rpathlx/usex.c: New file, from
36272         gettext/autoconf-lib-link.
36273         * tests/havelib/rpathlx/Makefile.am: New file, from
36274         gettext/autoconf-lib-link.
36275         * tests/havelib/rpathlx/configure.ac: New file, from
36276         gettext/autoconf-lib-link with modifications.
36277         * tests/havelib/rpathly/usey.c: New file, from
36278         gettext/autoconf-lib-link.
36279         * tests/havelib/rpathly/Makefile.am: New file, from
36280         gettext/autoconf-lib-link.
36281         * tests/havelib/rpathly/configure.ac: New file, from
36282         gettext/autoconf-lib-link with modifications.
36283         * tests/havelib/rpathlz/usez.c: New file, from
36284         gettext/autoconf-lib-link.
36285         * tests/havelib/rpathlz/Makefile.am: New file, from
36286         gettext/autoconf-lib-link.
36287         * tests/havelib/rpathlz/configure.ac: New file, from
36288         gettext/autoconf-lib-link with modifications.
36289         * tests/havelib/rpathlyx/usey.c: New file, from
36290         gettext/autoconf-lib-link.
36291         * tests/havelib/rpathlyx/Makefile.am: New file, from
36292         gettext/autoconf-lib-link.
36293         * tests/havelib/rpathlyx/configure.ac: New file, from
36294         gettext/autoconf-lib-link with modifications.
36295         * tests/havelib/rpathlzyx/usez.c: New file, from
36296         gettext/autoconf-lib-link.
36297         * tests/havelib/rpathlzyx/Makefile.am: New file, from
36298         gettext/autoconf-lib-link.
36299         * tests/havelib/rpathlzyx/configure.ac: New file, from
36300         gettext/autoconf-lib-link with modifications.
36301         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
36302         with modifications.
36303
36304 2010-04-02  Bruno Haible  <bruno@clisp.org>
36305
36306         gnulib-tool: Create distributed built sources also for the tests.
36307         * gnulib-tool (func_create_testdir): Also generate distributed built
36308         sources in the tests directory.
36309
36310 2010-04-02  Bruno Haible  <bruno@clisp.org>
36311
36312         gnulib-tool: Obey user's environment variables.
36313         * gnulib-tool (func_create_testdir): When creating built sources,
36314         respect the environment variables for autoconf, automake, etc. given by
36315         the user.
36316
36317 2010-04-02  Bruno Haible  <bruno@clisp.org>
36318
36319         gnulib-tool: Provide the value of --m4-base to modules.
36320         * gnulib-tool (func_import, func_create_testdir): Emit a definition
36321         of gl_m4_base.
36322
36323 2010-04-02  Eric Blake  <eblake@redhat.com>
36324
36325         maint.mk: fix some fallout
36326         * NEWS: Document the incompatible change, and its effect on cfg.mk.
36327         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
36328
36329 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36330
36331         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
36332         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
36333         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
36334         (sc_cast_of_x_alloc_return_value): Likewise.
36335         (sc_cast_of_alloca_return_value): Likewise.
36336         (sc_space_tab): Likewise.
36337         (sc_prohibit_atoi_atof): Likewise.
36338         (sc_prohibit_magic_number_exit): Likewise.
36339         (sc_error_exit_success): Likewise.
36340         (sc_file_system): Likewise.
36341         (sc_prohibit_have_config_h): Likewise.
36342         (sc_require_config_h): Likewise.
36343         (sc_prohibit_HAVE_MBRTOWC): Likewise.
36344         (sc_obsolete_symbols): Likewise.
36345         (sc_changelog): Likewise.
36346         (sc_program_name): Likewise.
36347         (sc_the_the): Likewise.
36348         (sc_trailing_blank): Likewise.
36349         (sc_two_space_separator_in_usage): Likewise.
36350         (sc_useless_cpp_parens): Likewise.
36351         (sc_GPL_version): Likewise.
36352         (sc_GFDL_version): Likewise.
36353         (sc_texinfo_acronym): Likewise.
36354         (sc_prohibit_cvs_keyword): Likewise.
36355         (sc_prohibit_stat_st_blocks): Likewise.
36356         (sc_prohibit_S_IS_definition): Likewise.
36357         (sc_redundant_const): Likewise.
36358         (sc_makefile_TAB_only_indentation): Likewise.
36359         (sc_m4_quote_check): Likewise.
36360         (sc_makefile_path_separator_check): Likewise.
36361         (sc_copyright_check): Likewise.
36362         (sc_Wundef_boolean): Likewise.
36363         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
36364
36365         maint.mk: match 0 or more whitespace-before-function-call '('
36366         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
36367         that have zero or two-and-more spaces between the function name
36368         and the open parenthesis.
36369         (sc_error_message_warn_fatal): Likewise.
36370         (sc_error_message_uppercase): Likewise.
36371         (sc_error_message_period): Likewise.
36372
36373 2010-03-31  Eric Blake  <eblake@redhat.com>
36374
36375         maint.mk: check for [ as well as test
36376         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
36377         Based on a libvirt report by Matthias Bolte.
36378
36379         gnumakefile: don't squelch _version output
36380         * top/GNUmakefile (_version): Create one-shot dependency rather
36381         than using $(shell) when version must be regenerated.
36382         (_autoreconf): Run verbosely, by default.
36383
36384         sys_time: avoid compiler warnings
36385         * lib/sys_time.in.h (includes): Ensure gcc pragma is
36386         unconditional, fixing regression from 2010-03-29.
36387         Reported by Simon Josefsson.
36388
36389 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
36390
36391         maint.mk: s/_header_without_use/_sc_header_without_use/
36392         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
36393         (sc_prohibit_assert_without_use): Use the new name.
36394         (sc_prohibit_close_stream_without_use): Likewise.
36395         (sc_prohibit_getopt_without_use): Likewise.
36396         (sc_prohibit_quotearg_without_use): Likewise.
36397         (sc_prohibit_quote_without_use): Likewise.
36398         (sc_prohibit_long_options_without_use): Likewise.
36399         (sc_prohibit_inttostr_without_use): Likewise.
36400         (sc_prohibit_ignore_value_without_use): Likewise.
36401         (sc_prohibit_error_without_use): Likewise.
36402         (sc_prohibit_xalloc_without_use): Likewise.
36403         (sc_prohibit_hash_without_use): Likewise.
36404         (sc_prohibit_hash_pjw_without_use): Likewise.
36405         (sc_prohibit_safe_read_without_use): Likewise.
36406         (sc_prohibit_argmatch_without_use): Likewise.
36407         (sc_prohibit_canonicalize_without_use): Likewise.
36408         (sc_prohibit_root_dev_ino_without_use): Likewise.
36409         (sc_prohibit_openat_without_use): Likewise.
36410         (sc_prohibit_c_ctype_without_use): Likewise.
36411         (sc_prohibit_signal_without_use): Likewise.
36412         (sc_prohibit_intprops_without_use): Likewise.
36413
36414 2010-03-30  Eric Blake  <eblake@redhat.com>
36415
36416         maint: improve module indicators
36417         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
36418         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
36419         columns, and avoid extra macro expansion.
36420
36421         fdopendir: work around FreeBSD bug
36422         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36423         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
36424         * modules/dirent (Makefile.am): Substitute it.
36425         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
36426         declaration.
36427         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
36428         fix.
36429         Reported by Christian Weisgerber <naddy@mips.inka.de>.
36430
36431 2010-03-29  Bruno Haible  <bruno@clisp.org>
36432
36433         Emit #pragma system_header after the inclusion guard, not before.
36434         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
36435         guard that spans the entire file, not before. This enables an
36436         optimization in GCC's preprocessor.
36437         * lib/ctype.in.h: Likewise.
36438         * lib/dirent.in.h: Likewise.
36439         * lib/errno.in.h: Likewise.
36440         * lib/float.in.h: Likewise.
36441         * lib/getopt.in.h: Likewise.
36442         * lib/iconv.in.h: Likewise.
36443         * lib/langinfo.in.h: Likewise.
36444         * lib/locale.in.h: Likewise.
36445         * lib/math.in.h: Likewise.
36446         * lib/netdb.in.h: Likewise.
36447         * lib/netinet_in.in.h: Likewise.
36448         * lib/pty.in.h: Likewise.
36449         * lib/sched.in.h: Likewise.
36450         * lib/se-selinux.in.h: Likewise.
36451         * lib/search.in.h: Likewise.
36452         * lib/spawn.in.h: Likewise.
36453         * lib/stdarg.in.h: Likewise.
36454         * lib/stdint.in.h: Likewise.
36455         * lib/string.in.h: Likewise.
36456         * lib/strings.in.h: Likewise.
36457         * lib/sys_file.in.h: Likewise.
36458         * lib/sys_ioctl.in.h: Likewise.
36459         * lib/sys_time.in.h: Likewise.
36460         * lib/sys_times.in.h: Likewise.
36461         * lib/sys_utsname.in.h: Likewise.
36462         * lib/sys_wait.in.h: Likewise.
36463         * lib/sysexits.in.h: Likewise.
36464         * lib/wctype.in.h: Likewise.
36465
36466 2010-03-28  James Youngman  <jay@gnu.org>
36467
36468         save-cwd: don't leak a file descriptor when the caller execs.
36469         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
36470         saved file descriptor.
36471         * modules/save-cwd (Depends-on): Depend on cloexec.
36472
36473 2010-03-29  Bruno Haible  <bruno@clisp.org>
36474
36475         Remove vestiges of fts-lgpl module.
36476         * lib/fts_.h: Assume GNULIB_FTS is 1.
36477         * lib/fts.c: Likewise.
36478         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36479
36480 2010-03-28  Bruno Haible  <bruno@clisp.org>
36481
36482         Fix definition of tests witness macro.
36483         * gnulib-tool (func_import): Fix definition of witness macro.
36484
36485 2010-03-28  Bruno Haible  <bruno@clisp.org>
36486
36487         Fix ioctl's protoype on glibc systems.
36488         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
36489         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
36490         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
36491         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
36492         signature. If not, arrange to replace the ioctl function.
36493         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
36494         REPLACE_IOCTL.
36495         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
36496         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
36497         Reported by Ludovic Courtès <ludo@gnu.org>.
36498
36499 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
36500
36501         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
36502         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
36503         made it so grep -r --include=GLOB* ... did not work.
36504
36505 2010-03-26  Jim Meyering  <meyering@redhat.com>
36506             Eric Blake  <eblake@redhat.com>
36507
36508         maint.mk: prohibit use of test's -o and -a operators
36509         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
36510
36511 2010-03-28  Bruno Haible  <bruno@clisp.org>
36512
36513         Remove unused GNULIB_XYZ macro definitions.
36514         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
36515         invocation.
36516
36517 2010-03-28  Bruno Haible  <bruno@clisp.org>
36518
36519         Mark privileged tests modules.
36520         * modules/idpriv-drop-tests (Status): New section.
36521         * modules/idpriv-droptemp-tests (Status): New section.
36522
36523 2010-03-28  Bruno Haible  <bruno@clisp.org>
36524
36525         Split C++ tests into separate tests modules.
36526         * modules/dirent-c++-tests: New file, extracted from
36527         modules/dirent-tests.
36528         * modules/dirent-tests: Depend on it.
36529         * modules/fcntl-h-c++-tests: New file, extracted from
36530         modules/fcntl-h-tests.
36531         * modules/fcntl-h-tests: Depend on it.
36532         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
36533         * modules/glob-tests: Depend on it.
36534         * modules/iconv-h-c++-tests: New file, extracted from
36535         modules/iconv-h-tests.
36536         * modules/iconv-h-tests: Depend on it.
36537         * modules/langinfo-c++-tests: New file, extracted from
36538         modules/langinfo-tests.
36539         * modules/langinfo-tests: Depend on it.
36540         * modules/locale-c++-tests: New file, extracted from
36541         modules/locale-tests.
36542         * modules/locale-tests: Depend on it.
36543         * modules/math-c++-tests: New file, extracted from modules/math-tests.
36544         * modules/math-tests: Depend on it.
36545         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
36546         * modules/pty-tests: Depend on it.
36547         * modules/search-c++-tests: New file, extracted from
36548         modules/search-tests.
36549         * modules/search-tests: Depend on it.
36550         * modules/signal-c++-tests: New file, extracted from
36551         modules/signal-tests.
36552         * modules/signal-tests: Depend on it.
36553         * modules/spawn-c++-tests: New file, extracted from
36554         modules/spawn-tests.
36555         * modules/spawn-tests: Depend on it.
36556         * modules/stdio-c++-tests: New file, extracted from
36557         modules/stdio-tests.
36558         * modules/stdio-tests: Depend on it.
36559         * modules/stdlib-c++-tests: New file, extracted from
36560         modules/stdlib-tests.
36561         * modules/stdlib-tests: Depend on it.
36562         * modules/string-c++-tests: New file, extracted from
36563         modules/string-tests.
36564         * modules/string-tests: Depend on it.
36565         * modules/sys_ioctl-c++-tests: New file, extracted from
36566         modules/sys_ioctl-tests.
36567         * modules/sys_ioctl-tests: Depend on it.
36568         * modules/sys_select-c++-tests: New file, extracted from
36569         modules/sys_select-tests.
36570         * modules/sys_select-tests: Depend on it.
36571         * modules/sys_socket-c++-tests: New file, extracted from
36572         modules/sys_socket-tests.
36573         * modules/sys_socket-tests: Depend on it.
36574         * modules/sys_stat-c++-tests: New file, extracted from
36575         modules/sys_stat-tests.
36576         * modules/sys_stat-tests: Depend on it.
36577         * modules/sys_time-c++-tests: New file, extracted from
36578         modules/sys_time-tests.
36579         * modules/sys_time-tests: Depend on it.
36580         * modules/time-c++-tests: New file, extracted from modules/time-tests.
36581         * modules/time-tests: Depend on it.
36582         * modules/unistd-c++-tests: New file, extracted from
36583         modules/unistd-tests.
36584         * modules/unistd-tests: Depend on it.
36585         * modules/wchar-c++-tests: New file, extracted from
36586         modules/wchar-tests.
36587         * modules/wchar-tests: Depend on it.
36588         * modules/wctype-c++-tests: New file, extracted from
36589         modules/wctype-tests.
36590         * modules/wctype-tests: Depend on it.
36591         Reported by Simon Josefsson.
36592
36593 2010-03-28  Bruno Haible  <bruno@clisp.org>
36594
36595         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
36596         * gnulib-tool (func_exists_module): New function, extracted from
36597         func_verify_module.
36598         (func_verify_module): Use it.
36599         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
36600         'foo' only if 'foo' exists.
36601         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
36602         module.
36603
36604 2010-03-28  Bruno Haible  <bruno@clisp.org>
36605
36606         gnulib-tool: Add support for special categories of tests.
36607         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
36608         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
36609         (func_usage): Document them.
36610         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
36611         inc_unportable_tests, inc_all_tests): New variables.
36612         (func_acceptable): Consider these variables.
36613         (func_modules_transitive_closure): Make it work when the 'Status' field
36614         consists of multiple words.
36615         (func_import): Store and restore the values of inc_cxx_tests,
36616         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
36617         inc_all_tests in gnulib-comp.m4.
36618         (func_create_testdir): Set inc_all_tests to true.
36619         * doc/gnulib.texi (Extra tests modules): New section.
36620         Suggested by Jim Meyering.
36621
36622 2010-03-28  Bruno Haible  <bruno@clisp.org>
36623
36624         ansi-c++-opt: Allow turning off the C++ build by default.
36625         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
36626         gl_CXX_CHOICE_DEFAULT_NO is defined.
36627         Requested by Eric Blake.
36628
36629 2010-03-28  Bruno Haible  <bruno@clisp.org>
36630
36631         unistd: Avoid #define replacements in C++ mode.
36632         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
36633         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
36634         setsockopt, shutdown, select): In C++, attach a warning to the function
36635         if possible, rather than #defining the symbol to a dysfunctional alias.
36636         Reported by John W. Eaton <jwe@gnu.org>.
36637
36638 2010-03-28  Bruno Haible  <bruno@clisp.org>
36639
36640         Fix link errors on mingw.
36641         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
36642         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
36643         $(LIBSOCKET).
36644         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
36645         $(LIBSOCKET).
36646
36647 2010-03-28  Bruno Haible  <bruno@clisp.org>
36648             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36649
36650         lib-ignore: Determine different options for different compilers.
36651         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
36652         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
36653         Add comments.
36654         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
36655         * NEWS: Mention the change.
36656
36657 2010-03-27  Bruno Haible  <bruno@clisp.org>
36658
36659         Remove unused GNULIB_XYZ macro definitions.
36660         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
36661         * modules/fseek (configure.ac): Likewise.
36662         * modules/ioctl (configure.ac): Likewise.
36663         * modules/open (configure.ac): Likewise.
36664         * modules/stdlib-safer (configure.ac): Likewise.
36665
36666 2010-03-27  Bruno Haible  <bruno@clisp.org>
36667
36668         Add a remark about certain modules.
36669         * modules/malloc (Comment): New section.
36670         * modules/realloc (Comment): Likewise.
36671         * modules/sigpipe (Comment): Likewise.
36672
36673 2010-03-27  Bruno Haible  <bruno@clisp.org>
36674
36675         Resolve conflict between the two kinds of module indicators.
36676         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
36677         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
36678         * modules/canonicalize (configure.ac): Invoke
36679         gl_MODULE_INDICATOR_FOR_TESTS.
36680         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
36681         GNULIB_XYZ.
36682         * tests/test-dirent-c++.cc: Likewise.
36683         * tests/test-dirent-safer.c: Likewise.
36684         * tests/test-dup2.c: Likewise.
36685         * tests/test-fchdir.c: Likewise.
36686         * tests/test-fcntl-h-c++.cc: Likewise.
36687         * tests/test-getopt.c: Likewise.
36688         * tests/test-getopt.h: Likewise.
36689         * tests/test-langinfo-c++.cc: Likewise.
36690         * tests/test-locale-c++.cc: Likewise.
36691         * tests/test-math-c++.cc: Likewise.
36692         * tests/test-pty-c++.cc: Likewise.
36693         * tests/test-search-c++.cc: Likewise.
36694         * tests/test-signal-c++.cc: Likewise.
36695         * tests/test-spawn-c++.cc: Likewise.
36696         * tests/test-stdio-c++.cc: Likewise.
36697         * tests/test-stdlib-c++.cc: Likewise.
36698         * tests/test-string-c++.cc: Likewise.
36699         * tests/test-sys_ioctl-c++.cc: Likewise.
36700         * tests/test-sys_select-c++.cc: Likewise.
36701         * tests/test-sys_socket-c++.cc: Likewise.
36702         * tests/test-sys_stat-c++.cc: Likewise.
36703         * tests/test-sys_time-c++.cc: Likewise.
36704         * tests/test-time-c++.cc: Likewise.
36705         * tests/test-unistd-c++.cc: Likewise.
36706         * tests/test-wchar-c++.cc: Likewise.
36707         * tests/uninorm/test-u8-nfc.c: Likewise.
36708         * tests/uninorm/test-u8-nfd.c: Likewise.
36709         * tests/uninorm/test-u8-nfkc.c: Likewise.
36710         * tests/uninorm/test-u8-nfkd.c: Likewise.
36711         * tests/uninorm/test-u16-nfc.c: Likewise.
36712         * tests/uninorm/test-u16-nfd.c: Likewise.
36713         * tests/uninorm/test-u16-nfkc.c: Likewise.
36714         * tests/uninorm/test-u16-nfkd.c: Likewise.
36715         * tests/uninorm/test-u32-nfc.c: Likewise.
36716         * tests/uninorm/test-u32-nfc-big.c: Likewise.
36717         * tests/uninorm/test-u32-nfd.c: Likewise.
36718         * tests/uninorm/test-u32-nfd-big.c: Likewise.
36719         * tests/uninorm/test-u32-nfkc.c: Likewise.
36720         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
36721         * tests/uninorm/test-u32-nfkd.c: Likewise.
36722         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
36723         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36724
36725 2010-03-27  Bruno Haible  <bruno@clisp.org>
36726
36727         Distinguish two kinds of module indicators.
36728         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
36729         gl_MODULE_INDICATOR.
36730         (gl_MODULE_INDICATOR): New macro.
36731         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
36732         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
36733         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36734         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36735         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36736         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36737         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36738         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36739         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36740         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36741         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36742         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36744         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36745         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36746         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36747         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36748         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36749         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36750         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36751         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36752         * modules/cloexec (configure.ac): Likewise.
36753         * modules/getopt-gnu (configure.ac): Likewise.
36754         * modules/uninorm/u8-normalize (configure.ac): Likewise.
36755         * modules/uninorm/u16-normalize (configure.ac): Likewise.
36756         * modules/uninorm/u32-normalize (configure.ac): Likewise.
36757         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
36758
36759 2010-03-27  Bruno Haible  <bruno@clisp.org>
36760
36761         New module description field 'Comment'.
36762         * gnulib-tool: New option --extract-comment.
36763         (func_usage): Document it.
36764         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
36765         (func_get_comment): New function.
36766         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
36767
36768 2010-03-27  Bruno Haible  <bruno@clisp.org>
36769
36770         Addendum to 2010-02-07 commit.
36771         * gnulib-tool (func_usage): Document --extract-applicability option.
36772
36773 2010-03-27  Bruno Haible  <bruno@clisp.org>
36774
36775         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
36776         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
36777         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
36778         rather than link errors.
36779
36780 2010-03-27  Bruno Haible  <bruno@clisp.org>
36781
36782         Avoid side effects from tests-related modules on the compilation of lib.
36783         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
36784         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
36785         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
36786         parameter. Emit into AM_CPPFLAGS a definition of the designated C
36787         macro.
36788         (func_import): Define a witness macro. Assign it a value that depends
36789         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
36790         tests-related modules.
36791         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
36792         Reported by Jim Meyering.
36793
36794 2010-03-27  Bruno Haible  <bruno@clisp.org>
36795
36796         Factorize common .m4 code.
36797         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
36798         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
36799         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
36800         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
36801         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
36802         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
36803         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
36804         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
36805         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
36806         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
36807         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
36808         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
36809         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
36810         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
36811         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
36812         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
36813         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
36814         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
36815         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
36816         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
36817         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
36818         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
36819         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
36820         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
36821         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
36822         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
36823         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
36824         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
36825         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
36826         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
36827         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
36828         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
36829
36830 2010-03-27  Bruno Haible  <bruno@clisp.org>
36831
36832         Fix a compilation error on Cygwin with g++ >= 4.3.
36833         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
36834         if it is undefined or if we alias it to chmod.
36835         (lstat): Don't warn about the use of this function if it is undefined
36836         or if we alias it to stat.
36837         Reported by Simon Josefsson.
36838
36839 2010-03-27  Bruno Haible  <bruno@clisp.org>
36840
36841         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
36842         * modules/getlogin (configure.ac): Update.
36843
36844         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
36845         * modules/getlogin_r (configure.ac): Update.
36846
36847         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
36848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
36849         * modules/inet_ntop (configure.ac): Update.
36850
36851         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
36852         * modules/inet_pton (configure.ac): Update.
36853
36854         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
36855         * modules/mbslen (configure.ac): Update.
36856
36857         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
36858         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
36859         * modules/forkpty (configure.ac): Update.
36860         * modules/openpty (configure.ac): Update.
36861
36862 2010-03-26  Simon Josefsson  <simon@josefsson.org>
36863
36864         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
36865         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
36866
36867 2010-03-25  Eric Blake  <eblake@redhat.com>
36868
36869         maint: use pragma consistently across replacement headers
36870         * lib/ctype.in.h (system_header): Hoist for consistent placement.
36871         * lib/dirent.in.h (system_header): Likewise.
36872         * lib/errno.in.h (system_header): Likewise.
36873         * lib/float.in.h (system_header): Likewise.
36874         * lib/getopt.in.h (system_header): Likewise.
36875         * lib/iconv.in.h (system_header): Likewise.
36876         * lib/inttypes.in.h (system_header): Likewise.
36877         * lib/langinfo.in.h (system_header): Likewise.
36878         * lib/locale.in.h (system_header): Likewise.
36879         * lib/math.in.h (system_header): Likewise.
36880         * lib/netdb.in.h (system_header): Likewise.
36881         * lib/netinet_in.in.h (system_header): Likewise.
36882         * lib/pty.in.h (system_header): Likewise.
36883         * lib/sched.in.h (system_header): Likewise.
36884         * lib/se-selinux.in.h (system_header): Likewise.
36885         * lib/search.in.h (system_header): Likewise.
36886         * lib/spawn.in.h (system_header): Likewise.
36887         * lib/stdarg.in.h (system_header): Likewise.
36888         * lib/stdint.in.h (system_header): Likewise.
36889         * lib/string.in.h (system_header): Likewise.
36890         * lib/strings.in.h (system_header): Likewise.
36891         * lib/sys_file.in.h (system_header): Likewise.
36892         * lib/sys_ioctl.in.h (system_header): Likewise.
36893         * lib/sys_socket.in.h (system_header): Likewise.
36894         * lib/sys_times.in.h (system_header): Likewise.
36895         * lib/sys_utsname.in.h (system_header): Likewise.
36896         * lib/sys_wait.in.h (system_header): Likewise.
36897         * lib/sysexits.in.h (system_header): Likewise.
36898         * lib/unistd.in.h (system_header): Likewise.
36899         * lib/wctype.in.h (system_header): Likewise.
36900
36901         arpa/inet: fix mingw compilation warning
36902         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
36903         Reported by Matthew Bolte.
36904
36905 2010-03-25  Bruno Haible  <bruno@clisp.org>
36906
36907         Avoid collision between gnulib wrapper and libintl wrapper.
36908         * lib/printf.c (printf): Don't define if a printf wrapper is already
36909         defined in intl/printf.c.
36910         Reported by Michel Boaventura <michel@michelboaventura.com>.
36911
36912 2010-03-25  Bruno Haible  <bruno@clisp.org>
36913
36914         Use ANSI C.
36915         * lib/readutmp.h (getutent): Provide ANSI C prototype.
36916
36917 2010-03-25  Bruno Haible  <bruno@clisp.org>
36918
36919         Minor formatting changes.
36920         * lib/acosl.c: Insert space before function argument list.
36921         * lib/argz.c: Likewise.
36922         * lib/asinl.c: Likewise.
36923         * lib/expl.c: Likewise.
36924         * lib/gen-uni-tables.c: Likewise.
36925         * lib/gettext.h: Likewise.
36926         * lib/glthread/lock.h: Likewise.
36927         * lib/tanl.c: Likewise.
36928         * lib/uniname/uniname.c: Likewise.
36929         * tests/test-idpriv-drop.c: Likewise.
36930         * tests/test-idpriv-droptemp.c: Likewise.
36931         * tests/test-lock.c: Likewise.
36932         * tests/test-tls.c: Likewise.
36933         * lib/argp-help.c: Insert space before function-like macro argument
36934         list.
36935         * lib/memcmp.c: Likewise.
36936         * tests/test-base64.c: Likewise.
36937         * lib/localename.c: Insert space before sizeof's argument list.
36938         * lib/safe-alloc.h: Likewise.
36939         * lib/file-set.h: Insert space before macro argument list.
36940         * tests/test-argp.c: Likewise.
36941         * lib/argp-namefrob.h: Insert space before function parameter list.
36942         * lib/getaddrinfo.c: Likewise.
36943         * lib/netdb.in.h: Likewise.
36944         * lib/parse-duration.h: Likewise.
36945         * lib/parse-duration.c: Likewise.
36946         * lib/poll.c: Likewise.
36947         * lib/select.c: Likewise.
36948         * lib/trim.h: Likewise.
36949         * tests/test-usleep.c: Likewise.
36950         * lib/ldexpl.c: Insert space before function parameter list and before
36951         function argument list.
36952         * lib/logl.c: Likewise.
36953         * lib/sqrtl.c: Likewise.
36954         * lib/trim.c: Likewise.
36955         * lib/cosl.c: Use GNU style indentation. Insert space before function
36956         argument list.
36957         * lib/sinl.c: Likewise.
36958         * lib/tsearch.c: Insert space after 'for'.
36959         Reported by Jim Meyering.
36960
36961 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
36962
36963         * maint.mk (sc_Wundef_boolean): Check for the presence of the
36964         config header before grepping, as it's not present before
36965         autoreconf/configure are run.  Reported by Simon Josefsson.
36966
36967 2010-03-23  Bruno Haible  <bruno@clisp.org>
36968
36969         pt_chown: Make it work with automake < 1.11.
36970         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
36971         Reported by Simon Josefsson.
36972
36973 2010-03-23  Bruno Haible  <bruno@clisp.org>
36974
36975         pt_chown: Don't depend on GPLed modules.
36976         * lib/pt_chown.c: Don't include idpriv.h.
36977         (main): Don't drop privileges.
36978         * modules/pt_chown (Depends-on): Remove idpriv-drop.
36979         Reported by Simon Josefsson.
36980
36981 2010-03-24  Simon Josefsson  <simon@josefsson.org>
36982
36983         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
36984         suggestions from karl@freefriends.org (Karl Berry).
36985
36986 2010-03-22  Eric Blake  <eblake@redhat.com>
36987
36988         gethostname: further tweaks
36989         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
36990         are overriding gethostname.
36991         Suggested by Bruno Haible.
36992
36993 2010-03-21  Bruno Haible  <bruno@clisp.org>
36994
36995         Fix comments.
36996         * lib/forkpty.c (rpl_forkpty): Fix comment.
36997         * lib/openpty.c (rpl_openpty): Likewise.
36998         Reported by Eric Blake.
36999
37000 2010-03-22  Eric Blake  <eblake@redhat.com>
37001
37002         gethostname: fix build on mingw
37003         * lib/unistd.in.h (includes): Work around fact that mingw
37004         <winsock2.h> re-includes <unistd.h>, by avoiding any
37005         redeclarations if we are being included by <winsock2.h>.
37006         Reported by Matthias Bolte.
37007
37008 2010-03-21  Bruno Haible  <bruno@clisp.org>
37009
37010         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
37011         * lib/forkpty.c (forkpty): New replacement function, from glibc with
37012         modifications.
37013         * lib/pty.in.h (forkpty): Update declaration. Add comments.
37014         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
37015         provide the replacement.
37016         * modules/forkpty (Depends-on): Add openpty, login_tty.
37017         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
37018         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
37019         * doc/glibc-functions/forkpty.texi: More supported platforms.
37020         * config/srclist.txt: Add forkpty.c (commented).
37021
37022 2010-03-21  Bruno Haible  <bruno@clisp.org>
37023
37024         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
37025         (Makefile.am): Verify that PTY_LIB is defined.
37026
37027         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
37028
37029 2010-03-21  Bruno Haible  <bruno@clisp.org>
37030
37031         Tests for module 'login_tty'.
37032         * modules/login_tty-tests: New file.
37033         * tests/test-login_tty.c: New file.
37034
37035         New module 'login_tty'.
37036         * lib/login_tty.c: New file.
37037         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
37038         * modules/login_tty: New file.
37039         * doc/glibc-functions/login_tty.texi: Mention the new module.
37040
37041 2010-03-21  Bruno Haible  <bruno@clisp.org>
37042
37043         login_tty: Documentation.
37044         * doc/glibc-functions/login_tty.texi: New file.
37045         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
37046
37047 2010-03-21  Bruno Haible  <bruno@clisp.org>
37048
37049         pty: Consistent macro naming.
37050         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
37051         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
37052         * modules/pty (configure.ac): Update.
37053
37054 2010-03-21  Bruno Haible  <bruno@clisp.org>
37055
37056         Tests for openpty: Make stricter.
37057         * tests/test-openpty.c (main): Add test of canonical processing and
37058         erase.
37059         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
37060
37061         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
37062         * lib/openpty.c (openpty): New replacement function.
37063         * lib/pty.in.h: Include <termios.h>.
37064         (openpty): Update declaration. Add comments.
37065         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
37066         is not declared, arrange to provide the replacement. Check for _getpty
37067         and posix_openpt.
37068         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
37069         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
37070         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
37071         * modules/pty-tests (test_pty_c___LDADD): New variable.
37072         * doc/glibc-functions/openpty.texi: More supported platforms.
37073
37074 2010-03-21  Bruno Haible  <bruno@clisp.org>
37075
37076         setenv: Tweaks.
37077         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
37078         the test program.
37079         * doc/posix-functions/setenv.texi: Update platforms list.
37080
37081 2010-03-21  Bruno Haible  <bruno@clisp.org>
37082
37083         New module 'unlockpt'.
37084         * lib/unlockpt.c: New file, from glibc with modifications.
37085         * m4/unlockpt.m4: New file.
37086         * modules/unlockpt: New file.
37087         * lib/stdlib.in.h (unlockpt): New declaration.
37088         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
37089         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
37090         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
37091         HAVE_UNLOCKPT.
37092         * doc/posix-functions/unlockpt.texi: Mention the new module.
37093         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
37094         * config/srclist.txt: Add unlockpt.c (commented).
37095
37096 2010-03-21  Jim Meyering  <meyering@redhat.com>
37097
37098         maint.mk: prohibit inclusion of "intprops.h" without use
37099         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
37100
37101 2010-03-21  Bruno Haible  <bruno@clisp.org>
37102
37103         New module 'grantpt'.
37104         * lib/grantpt.c: New file, from glibc with modifications.
37105         * m4/grantpt.m4: New file.
37106         * modules/grantpt: New file.
37107         * lib/stdlib.in.h (grantpt): New declaration.
37108         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
37109         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
37110         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
37111         HAVE_GRANTPT.
37112         * doc/posix-functions/grantpt.texi: Mention the new module.
37113         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
37114         * config/srclist.txt: Add grantpt.c (commented).
37115
37116 2010-03-21  Bruno Haible  <bruno@clisp.org>
37117
37118         New module 'pt_chown'.
37119         * lib/pt_chown.c: New file, from glibc with modifications.
37120         * lib/pty-private.h: New file, from glibc with modifications.
37121         * modules/pt_chown: New file.
37122         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
37123
37124 2010-03-21  Bruno Haible  <bruno@clisp.org>
37125
37126         Tests for module 'ptsname'.
37127         * modules/ptsname-tests: New file.
37128         * tests/test-ptsname.c: New file.
37129
37130         New module 'ptsname'.
37131         * lib/ptsname.c: New file, from glibc with modifications.
37132         * m4/ptsname.m4: New file.
37133         * modules/ptsname: New file.
37134         * lib/stdlib.in.h (ptsname): New declaration.
37135         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
37136         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
37137         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
37138         HAVE_PTSNAME.
37139         * doc/posix-functions/ptsname.texi: Mention the new module.
37140         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
37141         * config/srclist.txt: Add ptsname.c (commented).
37142
37143 2010-03-21  Bruno Haible  <bruno@clisp.org>
37144
37145         Tests for module 'ttyname_r'.
37146         * modules/ttyname_r-tests: New file.
37147         * tests/test-ttyname_r.c: New file.
37148
37149         New module 'ttyname_r'.
37150         * lib/ttyname_r.c: New file.
37151         * m4/ttyname_r.m4: New file.
37152         * modules/ttyname_r: New file.
37153         * lib/unistd.in.h (ttyname_r): New declaration.
37154         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
37155         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
37156         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
37157         HAVE_TTYNAME_R.
37158         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
37159         * doc/posix-functions/ttyname_r.texi: Mention the new module.
37160
37161 2010-03-20  Bruno Haible  <bruno@clisp.org>
37162
37163         signal: Undefine macro definitions in C++ mode.
37164         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
37165         sigfillset): Undefine macro definitions from the system header in C++
37166         mode.
37167         Reported by John W. Eaton <jwe@gnu.org>.
37168
37169 2010-03-20  Bruno Haible  <bruno@clisp.org>
37170
37171         Ensure no #include statements inside extern "C" { ... }.
37172         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
37173         contain #include statements.
37174         * lib/time.in.h: Likewise.
37175
37176 2010-03-20  Bruno Haible  <bruno@clisp.org>
37177
37178         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
37179         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
37180         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
37181         Reported by John W. Eaton <jwe@gnu.org>.
37182
37183 2010-03-20  Bruno Haible  <bruno@clisp.org>
37184
37185         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
37186         Reported by Jim Meyering.
37187
37188 2010-03-20  Bruno Haible  <bruno@clisp.org>
37189
37190         pipe: Set errno upon failure.
37191         * lib/pipe.h: Specify that when -1 is returned, errno is set.
37192         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
37193         errno value in error message.
37194
37195 2010-03-20  Bruno Haible  <bruno@clisp.org>
37196             Jim Meyering  <meyering@redhat.com>
37197
37198         lchown: Avoid "unused variable" warning.
37199         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
37200
37201 2010-03-20  Bruno Haible  <bruno@clisp.org>
37202
37203         Work around unlink() bug on MacOS X 10.5.6.
37204         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
37205         attempting to unlink a parent directory.
37206         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
37207         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
37208         activate for the replacement function.
37209         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
37210
37211 2010-03-20  Bruno Haible  <bruno@clisp.org>
37212
37213         Fix link errors on Solaris 8.
37214         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
37215         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
37216
37217 2010-03-19  Jim Meyering  <meyering@redhat.com>
37218
37219         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
37220         The _LIBC implementation of build_range_exp correctly honors the
37221         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
37222         However, the non-_LIBC implementation would ignore that syntax-bit
37223         flag and return REG_ERANGE unconditionally.
37224         This change makes it honor that flag.
37225         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
37226         Make two pointer parameters "const".
37227         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
37228         (parse_bracket_exp): Update caller.
37229
37230         regex.m4: correct the reversed range endpoint ([b-a]) test
37231         * m4/regex.m4: When requiring that [b-a] evoke failure,
37232         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
37233         test pass once again for x86-based systems.
37234
37235 2010-03-19  Bruno Haible  <bruno@clisp.org>
37236
37237         scandir: Fix link error on Solaris 8.
37238         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
37239         macros.
37240
37241 2010-03-19  Bruno Haible  <bruno@clisp.org>
37242
37243         getusershell: Fix documentation.
37244         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
37245         module.
37246         * doc/glibc-functions/setusershell.texi: Likewise.
37247
37248         getusershell: Provide declaration, missing on Solaris 9.
37249         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
37250         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
37251         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
37252         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
37253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37254         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
37255         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
37256         HAVE_GETUSERSHELL.
37257         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
37258
37259 2010-03-19  Bruno Haible  <bruno@clisp.org>
37260
37261         wctype: Provide iswblank function.
37262         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
37263         exists and is fine.
37264         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
37265         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
37266         * tests/test-wctype.c (main): Re-enable the iswblank tests.
37267         * doc/posix-functions/iswblank.texi: Update.
37268
37269 2010-03-19  Bruno Haible  <bruno@clisp.org>
37270
37271         Tests of module 'pty' in C++ mode.
37272         * modules/pty-tests: New file.
37273         * tests/test-pty-c++.cc: New file.
37274         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37275
37276 2010-03-19  Eric Blake  <eblake@redhat.com>
37277
37278         logb: fix documentation
37279         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
37280         1.5 declaration bug.
37281
37282         forkpty, openpty: prefer glibc's const-safe prototype
37283         * lib/forkpty.c (rpl_forkpty): New file.
37284         * lib/openpty.c (rpl_openpty): Likewise.
37285         * modules/forkpty (Files): Distribute it.
37286         * modules/openpty (Files): Likewise.
37287         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
37288         check...
37289         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
37290         replacement for for non-const BSD signature.
37291         * modules/pty (Makefile.am): Substitute witnesses.
37292         * lib/pty.in.h (forkpty, openpty): Declare replacements.
37293         * tests/test-forkpty.c: Update signature check.
37294         * tests/test-openpty.c: Likewise.
37295         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
37296         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37297
37298         forkpty, openpty: split functions into new modules
37299         * modules/pty (Makefile.am): Substitute new witnesses.
37300         (Libraries): Move library detection...
37301         * modules/forkpty: ...into new module.
37302         * modules/openpty: Another new module.
37303         * modules/pty-tests: Rename and split...
37304         * modules/forkpty-tests: ...to this...
37305         * modules/openpty-tests: ...and this.
37306         * tests/test-pty.c: Rename and split...
37307         * tests/test-forkpty.c: ...to this...
37308         * tests/test-openpty.c: ...and this.
37309         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
37310         (gl_PTY): Split library searching...
37311         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
37312         (gl_FORKPTY, gl_OPENPTY): New macros.
37313         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
37314         * NEWS: Mention the split.
37315         * MODULES.html.sh (Misc): Document the modules.
37316         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
37317         * doc/glibc-functions/openpty.texi (openpty): Likewise.
37318
37319         pty: improve replacement header
37320         * lib/pty.in.h: New file.
37321         * modules/pty (Files): Ship it.
37322         (Makefile.am): Always build replacement.
37323         * m4/pty.m4: Rename...
37324         * m4/pty_h.m4: ...to this.
37325         (gl_PTY): Modernize setting of witness macros; update check of
37326         forkpty to take proper advantage of cache.
37327         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
37328
37329         getopt: avoid compiler warning
37330         * lib/getopt.c (attribute_hidden): Remove unused macro.
37331
37332 2010-03-18  Bruno Haible  <bruno@clisp.org>
37333
37334         Fix link errors on Solaris 8.
37335         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
37336         * modules/search-tests (test_search_c___LDADD): Likewise.
37337         * modules/signal-tests (test_signal_c___LDADD): Likewise.
37338         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
37339         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
37340         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
37341         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
37342         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
37343         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
37344
37345 2010-03-18  Bruno Haible  <bruno@clisp.org>
37346
37347         Fix bug introduced on 2010-03-14.
37348         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
37349         (gl_SPAWN_H): Require it.
37350         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
37351         Reported by Simon Josefsson.
37352
37353 2010-03-18  Bruno Haible  <bruno@clisp.org>
37354
37355         Fix typo introduced on 2009-12-31.
37356         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
37357         posix_spawn_file_actions_adddup2.
37358
37359 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
37360         and Eric Blake  <eblake@redhat.com>
37361
37362         test-vc-list-files-git: make more robust
37363         * tests/test-vc-list-files-git.sh: Unset problematic environment
37364         variables.  Chain commands together.
37365
37366 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
37367
37368         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
37369         `AC_CHECK_DECL' invocation.
37370
37371 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
37372
37373         * lib/inttostr.c (inttostr): Make sure the invocation of verify
37374         appears before executable statements. Suggested by Petr Sumbera
37375         <Petr.Sumbera@Sun.COM>.
37376
37377 2010-03-14  Bruno Haible  <bruno@clisp.org>
37378
37379         * tests/test-flock.c (test_exclusive): Comment out a test that causes
37380         portability problems. Instead use a simpler test.
37381         (main): Check that invalid arguments are rejected only on Linux.
37382
37383 2010-03-14  Bruno Haible  <bruno@clisp.org>
37384
37385         Fix bug introduced on 2009-12-31.
37386         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37387         gl_PREREQ_SYS_H_WINSOCK2 always.
37388         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
37389         SYS_SOCKET_H variable.
37390         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
37391         Update comments.
37392         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
37393         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37394         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37395         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37396         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
37397
37398 2010-03-14  Bruno Haible  <bruno@clisp.org>
37399
37400         Fix values returned by sinl, cosl.
37401         * lib/trigl.h: Add specification comments.
37402         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
37403         that combines the values from the precomputed table with the values of
37404         the Chebyshev polynomials.
37405
37406 2010-03-14  Bruno Haible  <bruno@clisp.org>
37407
37408         Fix compilation error when modules 'posix_spawn[p]' are not used.
37409         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
37410         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
37411
37412 2010-03-14  Bruno Haible  <bruno@clisp.org>
37413
37414         Fix compilation error on mingw when module 'time_r' is not used.
37415         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
37416         is 1.
37417         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
37418         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37419         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
37420         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
37421
37422 2010-03-14  Bruno Haible  <bruno@clisp.org>
37423
37424         Fix compilation error with Sun C.
37425         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
37426         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
37427         instead of GCC specific ULONG_LONG_MAX.
37428         * lib/xstrtoll.c: Likewise.
37429         * lib/xstrtoull.c: Likewise.
37430
37431 2010-03-13  Bruno Haible  <bruno@clisp.org>
37432
37433         Allow the user to disable C++ code and tests.
37434         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
37435         (gl_PROG_ANSI_CXX): Require it.
37436
37437 2010-03-13  Bruno Haible  <bruno@clisp.org>
37438
37439         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
37440         cases.
37441
37442 2010-03-13  Bruno Haible  <bruno@clisp.org>
37443
37444         Test that gnulib does not break the standard C++ headers.
37445         * tests/test-locale-c++2.cc: New file.
37446         * modules/locale-tests (Files): Add it.
37447         (Makefile.am): Compile it for test-locale-c++.
37448         * tests/test-math-c++2.cc: New file.
37449         * modules/math-tests (Files): Add it.
37450         (Makefile.am): Compile it for test-math-c++.
37451         * tests/test-signal-c++2.cc: New file.
37452         * modules/signal-tests (Files): Add it.
37453         (Makefile.am): Compile it for test-signal-c++.
37454         * tests/test-stdio-c++2.cc: New file.
37455         * modules/stdio-tests (Files): Add it.
37456         (Makefile.am): Compile it for test-stdio-c++.
37457         * tests/test-stdlib-c++2.cc: New file.
37458         * modules/stdlib-tests (Files): Add it.
37459         (Makefile.am): Compile it for test-stdlib-c++.
37460         * tests/test-string-c++2.cc: New file.
37461         * modules/string-tests (Files): Add it.
37462         (Makefile.am): Compile it for test-string-c++.
37463         * tests/test-time-c++2.cc: New file.
37464         * modules/time-tests (Files): Add it.
37465         (Makefile.am): Compile it for test-time-c++.
37466         Reported by John W. Eaton <jwe@gnu.org>.
37467
37468 2010-03-13  Bruno Haible  <bruno@clisp.org>
37469
37470         * gnulib-tool (func_usage): Clarify which options are available for
37471         --create-testdir and --create-megatestdir.
37472
37473 2010-03-13  Bruno Haible  <bruno@clisp.org>
37474
37475         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
37476         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
37477         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
37478         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
37479         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
37480         when appropriate.
37481         Reported by Jim Meyering.
37482
37483 2010-03-12  Simon Josefsson  <simon@josefsson.org>
37484
37485         * gnulib-tool (func_import): Explain origin of code.
37486
37487 2010-03-12  Bruno Haible  <bruno@clisp.org>
37488
37489         Fix problem with automake's definition of CXXLINK.
37490         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
37491         Reported by Simon Josefsson and Ludovic Courtès.
37492
37493 2010-03-12  Bruno Haible  <bruno@clisp.org>
37494
37495         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
37496         stable releases.
37497
37498 2010-03-11  Bruno Haible  <bruno@clisp.org>
37499
37500         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
37501         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
37502         whether the system provides one variant or multiple variants of the
37503         function.
37504         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
37505         C++ compilers.
37506         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
37507         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
37508         Reported by Jim Meyering.
37509
37510 2010-03-09  Simon Josefsson  <simon@josefsson.org>
37511
37512         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
37513
37514 2010-03-08  Bruno Haible  <bruno@clisp.org>
37515
37516         gnulib-tool: Add support for --libtool in --create-testdir.
37517         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
37518         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
37519
37520 2010-03-08  Eric Blake  <eblake@redhat.com>
37521
37522         gnulib-tool.texi: mention possibility of git submodule
37523         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
37524         submodules.
37525         * doc/.gitignore: Ignore another generated file.
37526
37527 2010-03-08  Karl Berry  <karl@gnu.org>
37528
37529         * doc/gnulib-tool.texi (VCS Issues): Mention third option
37530         of committing gnulib files while skipping others.
37531
37532 2010-03-07  Bruno Haible  <bruno@clisp.org>
37533
37534         Tests of module 'wctype' in C++ mode.
37535         * tests/test-wctype-c++.cc: New file.
37536         * modules/wctype-tests (Files): Add it and tests/signature.h.
37537         (Depends-on): Add ansi-c++-opt.
37538         (Makefile.am): Arrange to compile and run test-wctype-c++.
37539
37540         Tests of module 'wchar' in C++ mode.
37541         * tests/test-wchar-c++.cc: New file.
37542         * modules/wchar-tests (Files): Add it and tests/signature.h.
37543         (Depends-on): Add ansi-c++-opt.
37544         (Makefile.am): Arrange to compile and run test-wchar-c++.
37545         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
37546         gl_MODULE_INDICATOR.
37547
37548         Tests of module 'unistd' in C++ mode.
37549         * tests/test-unistd-c++.cc: New file.
37550         * modules/unistd-tests (Files): Add it and tests/signature.h.
37551         (Depends-on): Add ansi-c++-opt.
37552         (Makefile.am): Arrange to compile and run test-unistd-c++.
37553         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
37554         gl_MODULE_INDICATOR.
37555
37556         Tests of module 'time' in C++ mode.
37557         * tests/test-time-c++.cc: New file.
37558         * modules/time-tests (Files): Add it and tests/signature.h.
37559         (Depends-on): Add ansi-c++-opt.
37560         (Makefile.am): Arrange to compile and run test-time-c++.
37561         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37562
37563         Tests of module 'sys_time' in C++ mode.
37564         * tests/test-sys_time-c++.cc: New file.
37565         * modules/sys_time-tests (Files): Add it and tests/signature.h.
37566         (Depends-on): Add ansi-c++-opt.
37567         (Makefile.am): Arrange to compile and run test-sys_time-c++.
37568         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
37569         gl_MODULE_INDICATOR.
37570
37571         Tests of module 'sys_stat' in C++ mode.
37572         * tests/test-sys_stat-c++.cc: New file.
37573         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
37574         (Depends-on): Add ansi-c++-opt.
37575         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
37576         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
37577         gl_MODULE_INDICATOR.
37578
37579         Tests of module 'sys_socket' in C++ mode.
37580         * tests/test-sys_socket-c++.cc: New file.
37581         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
37582         (Depends-on): Add ansi-c++-opt.
37583         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
37584         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
37585         gl_MODULE_INDICATOR.
37586
37587         Tests of module 'sys_select' in C++ mode.
37588         * tests/test-sys_select-c++.cc: New file.
37589         * modules/sys_select-tests (Files): Add it and tests/signature.h.
37590         (Depends-on): Add ansi-c++-opt.
37591         (Makefile.am): Arrange to compile and run test-sys_select-c++.
37592         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
37593         gl_MODULE_INDICATOR.
37594
37595         Tests of module 'sys_ioctl' in C++ mode.
37596         * tests/test-sys_ioctl-c++.cc: New file.
37597         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
37598         (Depends-on): Add ansi-c++-opt.
37599         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
37600         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
37601         gl_MODULE_INDICATOR.
37602
37603         Tests of module 'string' in C++ mode.
37604         * tests/test-string-c++.cc: New file.
37605         * modules/string-tests (Files): Add it and tests/signature.h.
37606         (Depends-on): Add ansi-c++-opt.
37607         (Makefile.am): Arrange to compile and run test-string-c++.
37608         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
37609         gl_MODULE_INDICATOR.
37610
37611         Tests of module 'stdlib' in C++ mode.
37612         * tests/test-stdlib-c++.cc: New file.
37613         * modules/stdlib-tests (Files): Add it and tests/signature.h.
37614         (Depends-on): Add ansi-c++-opt.
37615         (Makefile.am): Arrange to compile and run test-stdlib-c++.
37616         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
37617         gl_MODULE_INDICATOR.
37618
37619         Tests of module 'stdio' in C++ mode.
37620         * tests/test-stdio-c++.cc: New file.
37621         * modules/stdio-tests (Files): Add it and tests/signature.h.
37622         (Depends-on): Add ansi-c++-opt.
37623         (Makefile.am): Arrange to compile and run test-stdio-c++.
37624         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
37625         gl_MODULE_INDICATOR.
37626
37627         Tests of module 'spawn' in C++ mode.
37628         * tests/test-spawn-c++.cc: New file.
37629         * modules/spawn-tests (Files): Add it and tests/signature.h.
37630         (Depends-on): Add ansi-c++-opt.
37631         (Makefile.am): Arrange to compile and run test-spawn-c++.
37632         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
37633         gl_MODULE_INDICATOR.
37634
37635         Tests of module 'signal' in C++ mode.
37636         * tests/test-signal-c++.cc: New file.
37637         * modules/signal-tests (Files): Add it and tests/signature.h.
37638         (Depends-on): Add ansi-c++-opt.
37639         (Makefile.am): Arrange to compile and run test-signal-c++.
37640         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
37641         gl_MODULE_INDICATOR.
37642
37643         Tests of module 'search' in C++ mode.
37644         * tests/test-search-c++.cc: New file.
37645         * modules/search-tests (Files): Add it and tests/signature.h.
37646         (Depends-on): Add ansi-c++-opt.
37647         (Makefile.am): Arrange to compile and run test-search-c++.
37648         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
37649         gl_MODULE_INDICATOR.
37650
37651         Tests of module 'math' in C++ mode.
37652         * tests/test-math-c++.cc: New file.
37653         * modules/math-tests (Files): Add it and tests/signature.h.
37654         (Depends-on): Add ansi-c++-opt.
37655         (Makefile.am): Arrange to compile and run test-math-c++.
37656         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
37657
37658         Tests of module 'locale' in C++ mode.
37659         * tests/test-locale-c++.cc: New file.
37660         * modules/locale-tests (Files): Add it and tests/signature.h.
37661         (Depends-on): Add ansi-c++-opt.
37662         (Makefile.am): Arrange to compile and run test-locale-c++.
37663         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
37664         gl_MODULE_INDICATOR.
37665
37666         Tests of module 'langinfo' in C++ mode.
37667         * tests/test-langinfo-c++.cc: New file.
37668         * modules/langinfo-tests (Files): Add it and tests/signature.h.
37669         (Depends-on): Add ansi-c++-opt.
37670         (Makefile.am): Arrange to compile and run test-langinfo-c++.
37671         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
37672         gl_MODULE_INDICATOR.
37673
37674         Tests of module 'iconv-h' in C++ mode.
37675         * tests/test-iconv-h-c++.cc: New file.
37676         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
37677         (Depends-on): Add ansi-c++-opt.
37678         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
37679
37680         Tests of module 'glob' in C++ mode.
37681         * tests/test-glob-c++.cc: New file.
37682         * modules/glob-tests (Files): Add it.
37683         (Depends-on): Add ansi-c++-opt.
37684         (Makefile.am): Arrange to compile and run test-glob-c++.
37685
37686         Tests of module 'fcntl-h' in C++ mode.
37687         * tests/test-fcntl-h-c++.cc: New file.
37688         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
37689         (Depends-on): Add ansi-c++-opt.
37690         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
37691         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
37692         gl_MODULE_INDICATOR.
37693
37694         Tests of module 'dirent' in C++ mode.
37695         * tests/test-dirent-c++.cc: New file.
37696         * modules/dirent-tests (Files): Add it and tests/signature.h.
37697         (Depends-on): Add ansi-c++-opt.
37698         (Makefile.am): Arrange to compile and run test-dirent-c++.
37699         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
37700         gl_MODULE_INDICATOR.
37701
37702         New module 'ansi-c++-opt'.
37703         * modules/ansi-c++-opt: New file.
37704         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
37705
37706         Document C++ namespace mode.
37707         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
37708
37709         wctype: Avoid #define replacements in C++ mode.
37710         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
37711         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
37712         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
37713         In C++, define a namespaced alias symbol.
37714         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
37715         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
37716         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
37717         rule.
37718
37719         wchar: Avoid #define replacements in C++ mode.
37720         * lib/wchar.in.h: Include c++defs.h.
37721         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
37722         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
37723         symbol.
37724         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
37725         * modules/wchar (Depends-on): Add c++defs.
37726         (Makefile.am): Update wchar.h rule.
37727
37728         unistd: Avoid #define replacements in C++ mode.
37729         * lib/unistd.in.h: Include c++defs.h.
37730         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
37731         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
37732         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
37733         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
37734         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
37735         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
37736         symbol.
37737         (environ): Update.
37738         * modules/unistd (Depends-on): Add c++defs.
37739         (Makefile.am): Update unistd.h rule.
37740
37741         time: Avoid #define replacements in C++ mode.
37742         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
37743         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
37744         define a namespaced alias symbol.
37745         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
37746         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
37747         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
37748         * modules/time (Depends-on): Add c++defs, warn-on-use.
37749         (Makefile.am): Update time.h rule.
37750         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
37751         * modules/nanosleep (configure.ac): Likewise.
37752         * modules/strptime (configure.ac): Likewise.
37753         * modules/timegm (configure.ac): Likewise.
37754
37755         sys_time: Avoid #define replacements in C++ mode.
37756         * lib/sys_time.in.h: Include c++defs.h.
37757         (gettimeofday): In C++, define a namespaced alias symbol.
37758         * modules/sys_time (Depends-on): Add c++defs.
37759         (Makefile.am): Update sys/time.h rule.
37760
37761         sys_stat: Avoid #define replacements in C++ mode.
37762         * lib/sys_stat.in.h: Include c++defs.h.
37763         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
37764         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
37765         namespaced alias symbol.
37766         In C++, define a namespaced alias symbol.
37767         * modules/sys_stat (Depends-on): Add c++defs.
37768         (Makefile.am): Update sys/stat.h rule.
37769
37770         sys_socket: Avoid #define replacements in C++ mode.
37771         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
37772         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
37773         definitions also when the system has a <sys/socket.h>.
37774         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
37775         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
37776         In C++, define a namespaced alias symbol.
37777         * modules/sys_socket (Depends-on): Add c++defs.
37778         (Makefile.am): Update sys/socket.h rule.
37779
37780         sys_select: Avoid #define replacements in C++ mode.
37781         * lib/sys_select.in.h: Include c++defs.h. Enable the function
37782         definitions also when the system has a <sys/select.h>.
37783         (select): In C++, define a namespaced alias symbol.
37784         * modules/sys_select (Depends-on): Add c++defs.
37785         (Makefile.am): Update sys/select.h rule.
37786
37787         sys_ioctl: Avoid #define replacements in C++ mode.
37788         * lib/sys_ioctl.in.h: Include c++defs.h.
37789         (ioctl): In C++, define a namespaced alias symbol.
37790         * modules/sys_ioctl (Depends-on): Add c++defs.
37791         (Makefile.am): Update sys/ioctl.h rule.
37792
37793         string: Avoid #define replacements in C++ mode.
37794         * lib/string.in.h: Include c++defs.h.
37795         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
37796         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37797         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37798         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
37799         strsignal, strverscmp): In C++, define a namespaced alias symbol.
37800         * modules/string (Depends-on): Add c++defs.
37801         (Makefile.am): Update string.h rule.
37802
37803         stdlib: Avoid #define replacements in C++ mode.
37804         * lib/stdlib.in.h: Include c++defs.h.
37805         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
37806         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
37807         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
37808         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
37809         symbol.
37810         * modules/stdlib (Depends-on): Add c++defs.
37811         (Makefile.am): Update stdlib.h rule.
37812
37813         stdio: Avoid #define replacements in C++ mode.
37814         * lib/stdio.in.h: Include c++defs.h.
37815         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
37816         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
37817         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
37818         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
37819         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
37820         namespaced alias symbol.
37821         * modules/stdio (Depends-on): Add c++defs.
37822         (Makefile.am): Update stdio.h rule.
37823
37824         spawn: Avoid #define replacements in C++ mode.
37825         * lib/spawn.in.h: Include c++defs.h.
37826         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37827         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37828         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37829         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37830         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37831         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37832         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37833         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37834         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37835         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37836         In C++, define a namespaced alias symbol.
37837         * modules/spawn (Depends-on): Add c++defs.
37838         (Makefile.am): Update spawn.h rule.
37839
37840         signal: Avoid #define replacements in C++ mode.
37841         * lib/signal.in.h: Include c++defs.h.
37842         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37843         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
37844         namespaced alias symbol.
37845         * modules/signal (Depends-on): Add c++defs.
37846         (Makefile.am): Update signal.h rule.
37847
37848         search: Avoid #define replacements in C++ mode.
37849         * lib/search.in.h: Include c++defs.h.
37850         (_gl_search_compar_fn, _gl_search_action_fn): New types.
37851         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
37852         symbol.
37853         * modules/search (Depends-on): Add c++defs.
37854         (Makefile.am): Update search.h rule.
37855
37856         math: Avoid #define replacements in C++ mode.
37857         * lib/math.in.h: Include c++defs.h.
37858         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
37859         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
37860         trunc, truncl): In C++, define a namespaced alias symbol.
37861         * modules/math (Depends-on): Add c++defs.
37862         (Makefile.am): Update math.h rule.
37863
37864         locale: Avoid #define replacements in C++ mode.
37865         * lib/locale.in.h: Include c++defs.h.
37866         (duplocale): In C++, define a namespaced alias symbol.
37867         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
37868         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
37869         * modules/locale (Depends-on): Add c++defs.
37870         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
37871
37872         langinfo: Avoid #define replacements in C++ mode.
37873         * lib/langinfo.in.h: Include c++defs.h.
37874         (nl_langinfo): In C++, define a namespaced alias symbol.
37875         * modules/langinfo (Depends-on): Add c++defs.
37876         (Makefile.am): Update langinfo.h rule.
37877
37878         iconv-h: Avoid #define replacements in C++ mode.
37879         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
37880         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
37881         symbol.
37882         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37883         whenever iconv is present.
37884         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
37885         (Makefile.am): Update iconv.h rule.
37886
37887         glob: Avoid #define replacements in C++ mode.
37888         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
37889         (_gl_glob_errfunc_fn): New type.
37890         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
37891         symbol.
37892         * modules/glob (Depends-on): Add c++defs, warn-on-use.
37893         (Makefile.am): Update glob.h rule.
37894
37895         fcntl-h: Avoid #define replacements in C++ mode.
37896         * lib/fcntl.in.h: Include c++defs.h.
37897         (fcntl, open, openat): In C++, define a namespaced alias symbol.
37898         * modules/fcntl-h (Depends-on): Add c++defs.
37899         (Makefile.am): Update fcntl.h rule.
37900
37901         dirent: Avoid #define replacements in C++ mode.
37902         * lib/dirent.in.h: Include c++defs.h.
37903         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
37904         namespaced alias symbol.
37905         (dirfd): Update declaration.
37906         * modules/dirent (Depends-on): Add c++defs.
37907         (Makefile.am): Update dirent.h rule.
37908
37909         ctype: Make it usable in C++ code.
37910         * lib/ctype.in.h: Include c++defs.h.
37911         (isblank): Declare as extern "C".
37912         * modules/ctype (Depends-on): Add c++defs.
37913         (Makefile.am): Update ctype.h rule.
37914
37915         New module 'c++defs'.
37916         * modules/c++defs: New file.
37917         * build-aux/c++defs.h: New file.
37918         Reported by John W. Eaton <jwe@gnu.org>.
37919
37920 2010-03-07  Bruno Haible  <bruno@clisp.org>
37921
37922         logb: Provide missing declaration for Cygwin.
37923         * lib/math.in.h (logb): New declaration.
37924         * m4/logb.m4: New file.
37925         * modules/logb (Files): Add m4/logb.m4.
37926         (Depends-on): Add math.
37927         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
37928         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
37929         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
37930         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
37931         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
37932
37933 2010-03-07  Bruno Haible  <bruno@clisp.org>
37934
37935         Fix test-cond link error.
37936         * tests/test-cond.c: Include <stdio.h>.
37937
37938 2010-03-07  Bruno Haible  <bruno@clisp.org>
37939
37940         Fix test-dirent-safer link error.
37941         * modules/dirent-safer-tests (Makefile.am): Define
37942         test_dirent_safer_LDADD.
37943
37944 2010-03-07  Bruno Haible  <bruno@clisp.org>
37945
37946         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
37947         among default module list.
37948
37949 2010-03-07  Bruno Haible  <bruno@clisp.org>
37950
37951         Fix link error on platforms with GNU libiconv.
37952         * modules/unistr/u8-strcoll-tests (Makefile): Define
37953         test_u8_strcoll_LDADD.
37954         * modules/unistr/u16-strcoll-tests (Makefile): Define
37955         test_u16_strcoll_LDADD.
37956         * modules/unistr/u32-strcoll-tests (Makefile): Define
37957         test_u32_strcoll_LDADD.
37958
37959 2010-03-07  Bruno Haible  <bruno@clisp.org>
37960
37961         Use POSIX declarations for socket functions.
37962         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
37963         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
37964         rpl_sendto): Change declaration to match POSIX.
37965         * lib/connect.c (rpl_connect): Likewise.
37966         * lib/accept.c (rpl_accept): Likewise.
37967         * lib/bind.c (rpl_bind): Likewise.
37968         * lib/getpeername.c (rpl_getpeername): Likewise.
37969         * lib/getsockname.c (rpl_getsockname): Likewise.
37970         * lib/recv.c (rpl_recv): Likewise.
37971         * lib/send.c (rpl_send): Likewise.
37972         * lib/recvfrom.c (rpl_recvfrom): Likewise.
37973         * lib/sendto.c (rpl_sendto): Likewise.
37974
37975 2010-03-06  Bruno Haible  <bruno@clisp.org>
37976
37977         Clarify access, euidaccess, faccessat.
37978         * doc/posix-functions/faccessat.texi: Mention security problem under
37979         "Other problems", not "Portability problems".
37980         * doc/posix-functions/access.texi: Likewise. Mention a related security
37981         problem.
37982         * doc/glibc-functions/euidaccess.texi: Mention security problems.
37983         * lib/euidaccess.c: Add comments about platforms.
37984         * lib/unistd.in.h (access, euidaccess): Add warnings.
37985
37986 2010-03-07  Bruno Haible  <bruno@clisp.org>
37987
37988         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
37989         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
37990         (POSIX_SPAWN_SETSCHEDULER): Likewise.
37991         (POSIX_SPAWN_USEVFORK): Define in a way that works when
37992         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
37993         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
37994         declare when POSIX_SPAWN_SETSCHEDULER is zero.
37995         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
37996         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
37997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
37998         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
37999         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
38000         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
38001         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
38002         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
38003         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
38004         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
38005         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
38006         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
38007         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
38008         Likewise.
38009         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
38010         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
38011         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
38012         Likewise.
38013         * tests/test-spawn.c (main): Make it work when
38014         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
38015
38016 2010-03-07  Bruno Haible  <bruno@clisp.org>
38017
38018         Fix incorrect Makefile.am generation in German locale.
38019         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38020         Execute sed command with character range in C locale.
38021
38022 2010-03-06  Bruno Haible  <bruno@clisp.org>
38023
38024         Tests for module 'iconv-h'.
38025         * modules/iconv-h-tests: New file.
38026         * tests/test-iconv-h.c: New file.
38027
38028         New module 'iconv-h'.
38029         * modules/iconv-h: New file.
38030         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
38031         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
38032         (configure.ac): Remove gl_ICONV_H.
38033         (Makefile.am): Remove rule for iconv.h.
38034
38035 2010-03-06  Bruno Haible  <bruno@clisp.org>
38036
38037         More consistent naming of *.m4 files.
38038         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
38039         * modules/wctype (Files): Update.
38040
38041         More consistent naming of *.m4 files.
38042         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
38043         * modules/wchar (Files): Update.
38044
38045 2010-03-06  Jim Meyering  <meyering@redhat.com>
38046
38047         euidaccess: relax license to LGPLv2+
38048         * modules/euidaccess (License): Relax to LGPLv2+.
38049
38050 2010-03-06  Bruno Haible  <bruno@clisp.org>
38051
38052         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
38053         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
38054         (Makefile.am): Augment lib_SOURCES instead.
38055
38056 2010-03-04  Jim Meyering  <meyering@redhat.com>
38057
38058         utime: remove obsolete module
38059         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
38060         unnecessary for years, and has been marked as obsolete for 10 months.
38061         * modules/utime: Remove file.
38062         * lib/utime.c: Remove file.
38063         * m4/utime.m4: Remove file.
38064         * m4/utimes-null.m4: Remove file.
38065         * doc/posix-functions/utime.texi (utime): Remove reference to
38066         the module.  Move the sole "fixed by gnulib" item into the
38067         "problems not fixed by Gnulib" list.
38068         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
38069
38070 2010-03-05  Simon Josefsson  <simon@josefsson.org>
38071
38072         * modules/exit (License): Relax license to LGPLv2+.
38073         (Status): Mark as obsolete.
38074         * NEWS: Mention deprecated 'exit' module.
38075         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
38076         of now obsolete 'exit'.
38077
38078 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38079
38080         fts-lgpl: remove unused module
38081         * modules/fts-lgpl: Remove.
38082         * MODULES.html.sh (func_all_modules): Adjust.
38083         * check-module (find_included_lib_files): Adjust.
38084         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
38085
38086 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
38087
38088         copy-acl: enhance Solaris ACL error handling
38089         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
38090         * lib/set-mode-acl.c (qset_acl): Likewise.
38091
38092 2010-03-02  Bruno Haible  <bruno@clisp.org>
38093
38094         spawn: Don't override the system defined values on FreeBSD 8.
38095         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
38096         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
38097         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
38098         if HAVE_POSIX_SPAWN is 1.
38099         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
38100
38101 2010-03-01  Bruno Haible  <bruno@clisp.org>
38102
38103         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
38104         regarding Automake.
38105
38106 2010-02-25  Bruno Haible  <bruno@clisp.org>
38107
38108         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
38109         * gnulib-tool: Define 'echo' as a function only before the ksh alias
38110         setting, not afterwards.
38111         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
38112
38113 2010-02-24  Eric Blake  <eblake@redhat.com>
38114
38115         bootstrap, git-version-gen: use timestamp
38116         * build-aux/git-version-gen (scriptversion): Force UTC.
38117         * build-aux/bootstrap (scriptversion): New variable.
38118
38119         bootstrap: allow older git
38120         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
38121         older than 1.6.4.  Requested by the libvirt project.
38122
38123 2010-02-23  Eric Blake  <eblake@redhat.com>
38124
38125         warn-on-use: work with old autoconf
38126         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
38127         AS_VAR semantics of autoconf 2.60.
38128         Reported by Bruno Haible.
38129
38130         bootstrap: improve some comments
38131         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
38132         clarification comments.
38133
38134         gettimeofday: provide correct function
38135         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
38136         when replacement is declared, otherwise provide gettimeofday.
38137         Reported by Michael Goffioul.
38138
38139 2010-02-23  Jim Meyering  <meyering@redhat.com>
38140
38141         lib-ignore: relax license to "unlimited", not LGPLv2+
38142         * modules/lib-ignore (License): Relax to "unlimited".
38143
38144 2010-02-23  Jim Meyering  <meyering@redhat.com>
38145
38146         lib-ignore: relax license to LGPLv2+
38147         * modules/lib-ignore (License): Relax to LGPLv2+.
38148
38149 2010-02-22  Eric Blake  <eblake@redhat.com>
38150
38151         lseek: avoid bash 3.2 broken pipe bug
38152         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
38153         warning from bash 3.2.
38154         Reported by Ben Pfaff, with analysis from Bruno Haible.
38155
38156         bootstrap: support non-FSF copyright holder
38157         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
38158         bootstrap.conf override of COPYRIGHT_HOLDER.
38159         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
38160
38161         bootstrap: interoperate with gettext 0.14.1
38162         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
38163
38164         bootstrap: allow for alternate submodule location
38165         * build-aux/bootstrap (gnulib_path): New variable; use instead of
38166         hardcoding submodule location.
38167         (gnulib_mk): Allow direct use of Makefile.am.
38168
38169         bootstrap: use GNULIB_SRCDIR to reduce disk usage
38170         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
38171         rather than reconfiguring where the submodule points.
38172
38173         gettimeofday: restore support for platforms that lack function
38174         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
38175         replacement if function is missing.
38176         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
38177         * modules/sys_time (Makefile.am): Substitute it.
38178         * lib/sys_time.in.h (gettimeofday): Check it.
38179         Reported by Michael Goffioul.
38180
38181 2010-02-21  Bruno Haible  <bruno@clisp.org>
38182
38183         * lib/stdio.in.h (obstack_printf): Fix typo.
38184
38185 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
38186
38187         vc-list-files: use bzr ls's -R option
38188         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
38189         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
38190
38191 2010-02-21  Jim Meyering  <meyering@redhat.com>
38192
38193         init.sh: fix EXEEXT shims to work also for names like test-prog
38194         * tests/init.sh: Re-exec a better shell, when needed.
38195         If the current shell lacks support for posix $(...), an init.sh-using
38196         test will now try to find a shell that supports that.  If EXEEXT is
38197         nonempty, we also require support for hyphen-in-alias-name and shell
38198         substitutions like ${var#glob}.  Failure to find such a shell results
38199         in a skipped test.
38200
38201 2010-02-21  Bruno Haible  <bruno@clisp.org>
38202
38203         Really work around around "broken pipe" error message from bash 3.2.
38204         * gnulib-tool (func_reset_sigpipe): Remove function.
38205         (echo): In bash 3.2, define to a function that uses printf.
38206         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
38207
38208 2010-02-20  Bruno Haible  <bruno@clisp.org>
38209
38210         Restore support for automake 1.9.6 with autoconf 2.61.
38211         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
38212         Reported by James Youngman <jay@gnu.org>.
38213
38214 2010-02-20  Bruno Haible  <bruno@clisp.org>
38215
38216         Improve *printf warning condition.
38217         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
38218         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
38219         and the function is overridden due to SIGPIPE emulation.
38220
38221 2010-02-20  Bruno Haible  <bruno@clisp.org>
38222
38223         * lib/stdio.in.h: Tweak comments.
38224
38225 2010-02-19  Bruno Haible  <bruno@clisp.org>
38226
38227         Make it easier to find modules. New gnulib-tool option '--find'.
38228         * gnulib-tool: New option --find.
38229         (func_usage): Document it.
38230         (func_sanitize_modulelist): New function, extracted from
38231         func_all_modules.
38232         (func_all_modules): Invoke it.
38233         * doc/gnulib-tool.texi (Which modules?): New node.
38234
38235 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
38236
38237         * lib/sys_select.in.h: Provide select replacement even if
38238         sys/select.h exists on a system, for Interix.
38239
38240 2010-02-18  Jim Meyering  <meyering@redhat.com>
38241
38242         init.sh: don't use $(...) just yet
38243         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
38244         to accommodate e.g., Solaris' /bin/sh.
38245
38246 2010-02-17  Bruno Haible  <bruno@clisp.org>
38247
38248         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
38249         Reported by Ludovic Courtès <ludo@gnu.org>.
38250
38251 2010-02-16  Simon Josefsson  <simon@josefsson.org>
38252
38253         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
38254         linking with -lintl.
38255
38256 2010-02-17  Simon Josefsson  <simon@josefsson.org>
38257
38258         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
38259         if not provided by the system's netdb.h.  Reported by
38260         ludo@gnu.org (Ludovic Courtès).
38261
38262 2010-02-15  Jim Meyering  <meyering@redhat.com>
38263
38264         init.sh: improve portability and efficiency
38265         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
38266         "dummy" in a for loop.
38267         Use '!', not '^' to select the complement of a character set used
38268         in a "case" statement.
38269         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
38270         Suggestions from Eric Blake.
38271
38272         init.sh: automatically accommodate programs with the .exe suffix
38273         Automatically arrange for an invocation of "prog" to execute the
38274         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
38275         may use the simpler "prog", yet still work when built on a system
38276         that requires specifying the added suffix.
38277         Do this by constructing a function named "prog" that invokes
38278         "prog.exe" for each .exe file in selected directories.
38279         * tests/init.sh (find_exe_basenames_): New function.
38280         (create_exe_shim_functions_): New function.
38281         (path_prepend_): Use it.
38282
38283         maint.mk: mark syntax-check sc_*.m rules as .PHONY
38284         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
38285         "make -t syntax-check" doesn't create a ton of sc_*.m files.
38286
38287 2010-02-14  Jim Meyering  <meyering@redhat.com>
38288
38289         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
38290         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
38291         (sc_prohibit_hash_pjw_without_use): New rule.
38292
38293         maint.mk: allow the default upload destination dir to be overridden
38294         * top/maint.mk (upload_dest_dir_): Define with a default that
38295         preserves the status quo.
38296         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
38297         Reported by Peter Simons.
38298
38299         maint.mk: prohibit inclusion of "hash.h" without_use
38300         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
38301
38302 2010-02-10  Jim Meyering  <meyering@redhat.com>
38303
38304         maint.mk: prohibit inclusion of "ignore-value.h" without_use
38305         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
38306
38307 2010-02-09  Eric Blake  <ebb9@byu.net>
38308         and Bruno Haible  <bruno@clisp.org>
38309
38310         obstack-printf-posix: ensure declaration
38311         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
38312         extracted from gl_FUNC_OBSTACK_PRINTF.
38313         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
38314         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38315         Likewise.
38316         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
38317         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
38318         0.
38319
38320 2010-02-08  Bruno Haible  <bruno@clisp.org>
38321
38322         gnulib-tool: Fix typo in 2010-02-07 commit.
38323         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
38324         Reported by Eric Blake.
38325
38326 2010-02-07  Bruno Haible  <bruno@clisp.org>
38327
38328         gnulib-tool: Fix up caching patches.
38329         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
38330         option --no-cache. Use associative arrays when supported by the shell.
38331         (sed_comments): New variable.
38332         (modcache): Renamed from do_cache.
38333         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
38334         abbreviate unnecessarily.
38335         (have_associative): New variable.
38336         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
38337         way also for ksh and zsh.
38338         (func_init_sed_convert_to_cache_statements): New function, extracted
38339         from func_cache_lookup_module. Add support for associative arrays.
38340         Don't set the c_MODULE_cached variable here. Ignore all lines before
38341         the first field header. Remove only the final newline, not all trailing
38342         newlines. Support empty fields correctly. Limit the use of 'eval' to
38343         assignments.
38344         (func_get_description, func_get_status, func_get_notice,
38345         func_get_applicability, func_get_filelist, func_get_dependencies,
38346         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
38347         func_get_automake_snippet, func_get_include_directive,
38348         func_get_link_directive, func_get_license, func_get_maintainer):
38349         Update documentation. List the unoptimized code first. Add support for
38350         associative arrays. Limit the use of 'eval' to assignments.
38351         (func_get_applicability): Undo stylistic pessimisations.
38352         (func_get_automake_snippet, func_get_include_directive): Reduce code
38353         duplication.
38354         (func_modules_transitive_closure, func_modules_add_dummy,
38355         func_modules_notice, func_modules_to_filelist, func_add_file,
38356         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
38357         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
38358         func_create_testdir, func_create_megatestdir): Update documentation.
38359
38360 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38361
38362         * gnulib-tool (func_cache_lookup_module): Store the module name
38363         belonging to the cache variable; error out if two different
38364         module names map to the same cache variable name.
38365
38366 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38367
38368         gnulib-tool: Make caching optional.
38369         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
38370         Update matching short versions of --no-changelog.
38371         (func_usage): Update.
38372         (sed_extract_cache_prog): Renamed from ...
38373         (sed_extract_prog): ... this; revert to old extraction script.
38374         (func_get_description, func_get_status)
38375         (func_get_notice, func_get_applicability, func_get_filelist)
38376         (func_get_dependencies, func_get_autoconf_early_snippet)
38377         (func_get_autoconf_snippet, func_get_automake_snippet)
38378         (func_get_include_directive, func_get_link_directive)
38379         (func_get_license, func_get_maintainer): If $do_cache is false,
38380         use old, non-caching extraction scripts.
38381         Suggestion by Bruno Haible.
38382
38383 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38384
38385         gnulib-tool: cache module metainformation.
38386         * gnulib-tool (sed_extract_prog): Match newline before each
38387         header, and rewrite header to a shell variable suffix.
38388         (func_cache_var, func_cache_lookup_module): New functions,
38389         to turn a module name into a cache variable prefix, and to
38390         look up and cache module metainformation.
38391         (func_get_description, func_get_status)
38392         (func_get_notice, func_get_applicability, func_get_filelist)
38393         (func_get_dependencies, func_get_autoconf_early_snippet)
38394         (func_get_autoconf_snippet, func_get_automake_snippet)
38395         (func_get_include_directive, func_get_link_directive)
38396         (func_get_license, func_get_maintainer): Use
38397         func_cache_lookup_module.
38398
38399 2010-02-07  Bruno Haible  <bruno@clisp.org>
38400
38401         fnctl: Fix missing dependency.
38402         * modules/fcntl (Depends-on): Add getdtablesize.
38403         Reported by John W. Eaton <jwe@gnu.org>.
38404
38405 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38406
38407         Argp: fix recognition of short alias options.
38408
38409         * lib/argp-parse.c (convert_options): Fix improper use of
38410         `|' between character values.
38411         * tests/test-argp.c (group1_option): New alias option
38412         --read (-r).
38413         (group1_parser): Special handling for 'r'.
38414         (test15): New test case.
38415         (test_fun): Add test15.
38416         * tests/test-argp-2.sh: Update expected --help and --usage
38417         outputs.
38418
38419 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38420
38421         * tests/test-argp.c: Fix indentation.
38422
38423 2010-02-04  Eric Blake  <ebb9@byu.net>
38424
38425         gettimeofday: expose type of second argument
38426         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
38427         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
38428         * tests/test-gettimeofday.c: Use it to silence warning.
38429         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
38430         the issue.
38431
38432 2010-02-03  Jim Meyering  <meyering@redhat.com>
38433
38434         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
38435         * lib/regcomp.c (TYPE_SIGNED): Define.
38436         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
38437
38438         regcomp.c: avoid a new -Wshadow warning
38439         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
38440
38441 2010-02-01  Jim Meyering  <meyering@redhat.com>
38442
38443         removing useless parentheses in cpp #define directives
38444         For motivation, see commit c0221df4, "define STREQ(a,b)
38445         consistently, removing useless parentheses"
38446         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
38447         * lib/mountlist.c (MNT_IGNORE): Likewise.
38448         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
38449
38450 2010-02-01  Eric Blake  <ebb9@byu.net>
38451
38452         sys_time: use link-warning
38453         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
38454         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
38455         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
38456         * modules/sys_time (Depends-on): Add warn-on-use.
38457         (Makefile.am): Always build replacement.
38458         (configure.ac): Update substitutions.
38459         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
38460         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
38461         bother with SYS_TIME_H.
38462         * modules/gettimeofday (configure.ac): Declare indicator.
38463         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
38464         in use.
38465
38466         closein-tests: silence compiler warning
38467         * tests/test-closein.c (main): Ignore fread result.
38468         * modules/closein-tests (Depends-on): Add ignore-value.
38469
38470         tests: silence warning about system return
38471         * tests/test-areadlink-with-size.c (main): Ignore system result.
38472         * tests/test-areadlink.c (main): Likewise.
38473         * tests/test-areadlinkat-with-size.c (main): Likewise.
38474         * tests/test-areadlinkat.c (main): Likewise.
38475         * tests/test-canonicalize-lgpl.c (main): Likewise.
38476         * tests/test-canonicalize.c (main): Likewise.
38477         * tests/test-chown.c (main): Likewise.
38478         * tests/test-fchownat.c (main): Likewise.
38479         * tests/test-fdutimensat.c (main): Likewise.
38480         * tests/test-fstatat.c (main): Likewise.
38481         * tests/test-futimens.c (main): Likewise.
38482         * tests/test-lchown.c (main): Likewise.
38483         * tests/test-link.c (main): Likewise.
38484         * tests/test-linkat.c (main): Likewise.
38485         * tests/test-lstat.c (main): Likewise.
38486         * tests/test-mkdir.c (main): Likewise.
38487         * tests/test-mkdirat.c (main): Likewise.
38488         * tests/test-mkfifo.c (main): Likewise.
38489         * tests/test-mkfifoat.c (main): Likewise.
38490         * tests/test-mknod.c (main): Likewise.
38491         * tests/test-readlink.c (main): Likewise.
38492         * tests/test-remove.c (main): Likewise.
38493         * tests/test-rename.c (main): Likewise.
38494         * tests/test-renameat.c (main): Likewise.
38495         * tests/test-rmdir.c (main): Likewise.
38496         * tests/test-symlink.c (main): Likewise.
38497         * tests/test-symlinkat.c (main): Likewise.
38498         * tests/test-unlink.c (main): Likewise.
38499         * tests/test-unlinkat.c (main): Likewise.
38500         * tests/test-utimens.c (main): Likewise.
38501         * tests/test-utimensat.c (main): Likewise.
38502         * modules/areadlink-tests (Depends-on): Add ignore-value.
38503         * modules/areadlink-with-size-tests (Depends-on): Likewise.
38504         * modules/areadlinkat-tests (Depends-on): Likewise.
38505         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
38506         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
38507         * modules/canonicalize-tests (Depends-on): Likewise.
38508         * modules/chown-tests (Depends-on): Likewise.
38509         * modules/fdutimensat-tests (Depends-on): Likewise.
38510         * modules/futimens-tests (Depends-on): Likewise.
38511         * modules/lchown-tests (Depends-on): Likewise.
38512         * modules/link-tests (Depends-on): Likewise.
38513         * modules/linkat-tests (Depends-on): Likewise.
38514         * modules/lstat-tests (Depends-on): Likewise.
38515         * modules/mkdir-tests (Depends-on): Likewise.
38516         * modules/mkfifo-tests (Depends-on): Likewise.
38517         * modules/mkfifoat-tests (Depends-on): Likewise.
38518         * modules/mknod-tests (Depends-on): Likewise.
38519         * modules/openat-tests (Depends-on): Likewise.
38520         * modules/readlink-tests (Depends-on): Likewise.
38521         * modules/remove-tests (Depends-on): Likewise.
38522         * modules/rename-tests (Depends-on): Likewise.
38523         * modules/renameat-tests (Depends-on): Likewise.
38524         * modules/rmdir-tests (Depends-on): Likewise.
38525         * modules/symlink-tests (Depends-on): Likewise.
38526         * modules/symlinkat-tests (Depends-on): Likewise.
38527         * modules/unlink-tests (Depends-on): Likewise.
38528         * modules/utimens-tests (Depends-on): Likewise.
38529         * modules/utimensat-tests (Depends-on): Likewise.
38530
38531 2010-01-31  Bruno Haible  <bruno@clisp.org>
38532
38533         Perform the same test for many <math.h> functions.
38534         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
38535         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
38536         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
38537         of gl_MATHFUNC.
38538         * modules/acos (configure.ac): Likewise.
38539         * modules/asin (configure.ac): Likewise.
38540         * modules/atan (configure.ac): Likewise.
38541         * modules/atan2 (configure.ac): Likewise.
38542         * modules/cbrt (configure.ac): Likewise.
38543         * modules/copysign (configure.ac): Likewise.
38544         * modules/cos (configure.ac): Likewise.
38545         * modules/cosh (configure.ac): Likewise.
38546         * modules/erf (configure.ac): Likewise.
38547         * modules/erfc (configure.ac): Likewise.
38548         * modules/exp (configure.ac): Likewise.
38549         * modules/fmod (configure.ac): Likewise.
38550         * modules/hypot (configure.ac): Likewise.
38551         * modules/j0 (configure.ac): Likewise.
38552         * modules/j1 (configure.ac): Likewise.
38553         * modules/jn (configure.ac): Likewise.
38554         * modules/lgamma (configure.ac): Likewise.
38555         * modules/log (configure.ac): Likewise.
38556         * modules/log10 (configure.ac): Likewise.
38557         * modules/log1p (configure.ac): Likewise.
38558         * modules/pow (configure.ac): Likewise.
38559         * modules/remainder (configure.ac): Likewise.
38560         * modules/sin (configure.ac): Likewise.
38561         * modules/sinh (configure.ac): Likewise.
38562         * modules/tan (configure.ac): Likewise.
38563         * modules/tanh (configure.ac): Likewise.
38564         * modules/y0 (configure.ac): Likewise.
38565         * modules/y1 (configure.ac): Likewise.
38566         * modules/yn (configure.ac): Likewise.
38567         Suggested by Paolo Bonzini.
38568
38569 2010-01-31  Bruno Haible  <bruno@clisp.org>
38570
38571         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
38572
38573 2010-01-31  Bruno Haible  <bruno@clisp.org>
38574
38575         Work around getdelim() bug on FreeBSD 8.0.
38576         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
38577         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
38578         not work.
38579         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
38580         is 1.
38581         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
38582         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
38583         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
38584         a non-zero size.
38585         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
38586
38587 2010-01-31  Bruno Haible  <bruno@clisp.org>
38588
38589         Work around getline() bug on FreeBSD 8.0.
38590         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
38591         and a non-zero size.
38592         * tests/test-getline.c (main): Likewise.
38593         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
38594         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
38595
38596 2010-01-28  Eric Blake  <ebb9@byu.net>
38597
38598         regex: fix build failure
38599         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
38600         platforms.
38601
38602 2010-01-28  Jim Meyering  <meyering@redhat.com>
38603
38604         regex: do not ignore memory allocation failure
38605         * lib/regex_internal.c (create_cd_newstate): Detect
38606         re_node_set_init_copy failure.   Extracted from glibc commit
38607         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38608
38609         regex: sync more white-space changes from libc
38610         * lib/regex_internal.c: White-space only changes.
38611         * lib/regexec.c: Likewise.
38612
38613         regex: add many uses of __attribute_warn_unused_result__
38614         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
38615         * lib/regexec.c: Likewise.
38616         Extracted from a messy glibc commit.
38617
38618         regcomp.c: spelling and merge-artifact from glibc
38619         * lib/regcomp.c: Merge remainder of glibc's
38620         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38621
38622         regcomp.c: sync white-space changes from glibc
38623         * lib/regcomp.c: Merge to accommodate white space
38624         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
38625
38626         regcomp.c: do not ignore internal return values
38627         * lib/regcomp.c: Do not ignore internal return values.
38628         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
38629         but without its white-space changes and spelling fixes.
38630
38631         regex_internal.h: define __attribute_warn_unused_result__
38632         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
38633
38634         maint: add a syntax-check rule to check for vulnerable Makefile.in
38635         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
38636
38637 2010-01-27  Jim Meyering  <meyering@redhat.com>
38638
38639         ncftpput-ftp: clean up spaces
38640         * build-aux/ncftpput-ftp: Make Copyright line consistent.
38641         Remove trailing blanks.
38642
38643 2010-01-27  Simon Josefsson  <simon@josefsson.org>
38644
38645         * build-aux/git-version-gen: Fix copyright statement.
38646         * build-aux/gnupload: Likewise.
38647         * tests/test-arcfour.c: Likewise.
38648         * tests/test-arctwo.c: Likewise.
38649         * tests/test-count-one-bits.c: Likewise.
38650         * tests/test-crc.c: Likewise.
38651         * tests/test-des.c: Likewise.
38652         * tests/test-gc-arcfour.c: Likewise.
38653         * tests/test-gc-arctwo.c: Likewise.
38654         * tests/test-gc-des.c: Likewise.
38655         * tests/test-gc-hmac-md5.c: Likewise.
38656         * tests/test-gc-hmac-sha1.c: Likewise.
38657         * tests/test-gc-md2.c: Likewise.
38658         * tests/test-gc-md4.c: Likewise.
38659         * tests/test-gc-md5.c: Likewise.
38660         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38661         * tests/test-gc-rijndael.c: Likewise.
38662         * tests/test-gc-sha1.c: Likewise.
38663         * tests/test-gc.c: Likewise.
38664         * tests/test-gethostname.c: Likewise.
38665         * tests/test-gettimeofday.c: Likewise.
38666         * tests/test-hash.c: Likewise.
38667         * tests/test-hmac-md5.c: Likewise.
38668         * tests/test-hmac-sha1.c: Likewise.
38669         * tests/test-md2.c: Likewise.
38670         * tests/test-md4.c: Likewise.
38671         * tests/test-md5.c: Likewise.
38672         * tests/test-memchr.c: Likewise.
38673         * tests/test-memchr2.c: Likewise.
38674         * tests/test-memcmp.c: Likewise.
38675         * tests/test-memmem.c: Likewise.
38676         * tests/test-memrchr.c: Likewise.
38677         * tests/test-rawmemchr.c: Likewise.
38678         * tests/test-read-file.c: Likewise.
38679         * tests/test-rijndael.c: Likewise.
38680         * tests/test-sockets.c: Likewise.
38681         * tests/test-strchrnul.c: Likewise.
38682         * tests/test-strstr.c: Likewise.
38683         * tests/test-strtod.c: Likewise.
38684         * build-aux/ncftpput-ftp: Likewise.
38685
38686 2010-01-26  Eric Blake  <ebb9@byu.net>
38687
38688         ignore-value: update recommended header name
38689         * modules/ignore-value (Include): Only use <> for headers that
38690         exist in glibc.
38691
38692 2010-01-26  Jim Meyering  <meyering@redhat.com>
38693
38694         test-userspec.c: avoid compiler warnings
38695         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
38696         and "initialization discards qualifiers..." warnings.
38697         Put the first "uid" in its own scope, and make char* members "const".
38698
38699 2010-01-25  Bruno Haible  <bruno@clisp.org>
38700
38701         gnulib-tool: Make warning diagnostics consistent.
38702         * gnulib-tool (func_warning): New function.
38703         Use it everywhere where gnulib-tool produces output to stderr and it is
38704         not a fatal error.
38705
38706 2010-01-25  Bruno Haible  <bruno@clisp.org>
38707
38708         Fix test dependencies.
38709         * modules/xstrtol-tests (Depends-on): Add inttypes.
38710         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
38711
38712 2010-01-25 Pádraig Brady <P@draigBrady.com>
38713
38714         syntax-check: detect incorrect boolean macro values in config.h
38715         * modules/maintainer-makefile (configure.ac): Parameterize the location
38716         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
38717         The logic is from Eric Blake and the location indicated by Jim Meyering.
38718         Note the more natural CONFIG_HEADER name is prohibited by automake
38719         for backwards compatibility reasons.
38720         * top/maint.mk (sc_Wundef_boolean): New rule.
38721
38722 2010-01-25  Jim Meyering  <meyering@redhat.com>
38723
38724         bootstrap: detect MacOS 10.6's shasum, too
38725         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
38726         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
38727
38728 2010-01-23  Jim Meyering  <meyering@redhat.com>
38729
38730         xstrtoll: new module
38731         * modules/xstrtoll: New file.
38732         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
38733         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
38734         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
38735         ./configure fails if you use this module and lack "long long".
38736         * modules/xstrtoll-tests: New module.
38737         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
38738         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
38739         new init.sh-based test framework.
38740
38741 2010-01-24  Bruno Haible  <bruno@clisp.org>
38742
38743         Tests for module 'yn'.
38744         * modules/yn-tests: New file.
38745         * tests/test-yn.c: New file.
38746
38747         Tests for module 'y1'.
38748         * modules/y1-tests: New file.
38749         * tests/test-y1.c: New file.
38750
38751         Tests for module 'y0'.
38752         * modules/y0-tests: New file.
38753         * tests/test-y0.c: New file.
38754
38755         Tests for module 'tanh'.
38756         * modules/tanh-tests: New file.
38757         * tests/test-tanh.c: New file.
38758
38759         Tests for module 'tan'.
38760         * modules/tan-tests: New file.
38761         * tests/test-tan.c: New file.
38762
38763         Tests for module 'sqrt'.
38764         * modules/sqrt-tests: New file.
38765         * tests/test-sqrt.c: New file.
38766
38767         Tests for module 'sinh'.
38768         * modules/sinh-tests: New file.
38769         * tests/test-sinh.c: New file.
38770
38771         Tests for module 'sin'.
38772         * modules/sin-tests: New file.
38773         * tests/test-sin.c: New file.
38774
38775         Tests for module 'rint'.
38776         * modules/rint-tests: New file.
38777         * tests/test-rint.c: New file.
38778
38779         Tests for module 'remainder'.
38780         * modules/remainder-tests: New file.
38781         * tests/test-remainder.c: New file.
38782
38783         Tests for module 'pow'.
38784         * modules/pow-tests: New file.
38785         * tests/test-pow.c: New file.
38786
38787         Tests for module 'nextafter'.
38788         * modules/nextafter-tests: New file.
38789         * tests/test-nextafter.c: New file.
38790
38791         Tests for module 'modf'.
38792         * modules/modf-tests: New file.
38793         * tests/test-modf.c: New file.
38794
38795         Tests for module 'logb'.
38796         * modules/logb-tests: New file.
38797         * tests/test-logb.c: New file.
38798
38799         Tests for module 'log1p'.
38800         * modules/log1p-tests: New file.
38801         * tests/test-log1p.c: New file.
38802
38803         Tests for module 'log10'.
38804         * modules/log10-tests: New file.
38805         * tests/test-log10.c: New file.
38806
38807         Tests for module 'log'.
38808         * modules/log-tests: New file.
38809         * tests/test-log.c: New file.
38810
38811         Tests for module 'lgamma'.
38812         * modules/lgamma-tests: New file.
38813         * tests/test-lgamma.c: New file.
38814
38815         Tests for module 'ldexp'.
38816         * modules/ldexp-tests: New file.
38817         * tests/test-ldexp.c: New file.
38818
38819         Tests for module 'jn'.
38820         * modules/jn-tests: New file.
38821         * tests/test-jn.c: New file.
38822
38823         Tests for module 'j1'.
38824         * modules/j1-tests: New file.
38825         * tests/test-j1.c: New file.
38826
38827         Tests for module 'j0'.
38828         * modules/j0-tests: New file.
38829         * tests/test-j0.c: New file.
38830
38831         Tests for module 'hypot'.
38832         * modules/hypot-tests: New file.
38833         * tests/test-hypot.c: New file.
38834
38835         Tests for module 'fmod'.
38836         * modules/fmod-tests: New file.
38837         * tests/test-fmod.c: New file.
38838
38839         Tests for module 'fabs'.
38840         * modules/fabs-tests: New file.
38841         * tests/test-fabs.c: New file.
38842
38843         Tests for module 'exp'.
38844         * modules/exp-tests: New file.
38845         * tests/test-exp.c: New file.
38846
38847         Tests for module 'erfc'.
38848         * modules/erfc-tests: New file.
38849         * tests/test-erfc.c: New file.
38850
38851         Tests for module 'erf'.
38852         * modules/erf-tests: New file.
38853         * tests/test-erf.c: New file.
38854
38855         Tests for module 'cosh'.
38856         * modules/cosh-tests: New file.
38857         * tests/test-cosh.c: New file.
38858
38859         Tests for module 'cos'.
38860         * modules/cos-tests: New file.
38861         * tests/test-cos.c: New file.
38862
38863         Tests for module 'copysign'.
38864         * modules/copysign-tests: New file.
38865         * tests/test-copysign.c: New file.
38866
38867         Tests for module 'cbrt'.
38868         * modules/cbrt-tests: New file.
38869         * tests/test-cbrt.c: New file.
38870
38871         Tests for module 'atan2'.
38872         * modules/atan2-tests: New file.
38873         * tests/test-atan2.c: New file.
38874
38875         Tests for module 'atan'.
38876         * modules/atan-tests: New file.
38877         * tests/test-atan.c: New file.
38878
38879         Tests for module 'asin'.
38880         * modules/asin-tests: New file.
38881         * tests/test-asin.c: New file.
38882
38883         Tests for module 'acos'.
38884         * modules/acos-tests: New file.
38885         * tests/test-acos.c: New file.
38886
38887 2010-01-24  Bruno Haible  <bruno@clisp.org>
38888
38889         Fix tests for common <math.h> functions.
38890         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
38891         code snippet that references the function pointer, rather than merely
38892         calling the function. Substitute the FUNC_LIBM variable.
38893         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
38894         * modules/acos (configure.ac): Likewise.
38895         * modules/asin (configure.ac): Likewise.
38896         * modules/atan (configure.ac): Likewise.
38897         * modules/atan2 (configure.ac): Likewise.
38898         * modules/cbrt (configure.ac): Likewise.
38899         * modules/copysign (configure.ac): Likewise.
38900         * modules/cos (configure.ac): Likewise.
38901         * modules/cosh (configure.ac): Likewise.
38902         * modules/erf (configure.ac): Likewise.
38903         * modules/erfc (configure.ac): Likewise.
38904         * modules/exp (configure.ac): Likewise.
38905         * modules/fabs (configure.ac): Likewise.
38906         * modules/fmod (configure.ac): Likewise.
38907         * modules/hypot (configure.ac): Likewise.
38908         * modules/j0 (configure.ac): Likewise.
38909         * modules/j1 (configure.ac): Likewise.
38910         * modules/jn (configure.ac): Likewise.
38911         * modules/ldexp (configure.ac): Likewise.
38912         * modules/lgamma (configure.ac): Likewise.
38913         * modules/log (configure.ac): Likewise.
38914         * modules/log10 (configure.ac): Likewise.
38915         * modules/log1p (configure.ac): Likewise.
38916         * modules/logb (configure.ac): Likewise.
38917         * modules/modf (configure.ac): Likewise.
38918         * modules/nextafter (configure.ac): Likewise.
38919         * modules/pow (configure.ac): Likewise.
38920         * modules/remainder (configure.ac): Likewise.
38921         * modules/rint (configure.ac): Likewise.
38922         * modules/sin (configure.ac): Likewise.
38923         * modules/sinh (configure.ac): Likewise.
38924         * modules/tan (configure.ac): Likewise.
38925         * modules/tanh (configure.ac): Likewise.
38926         * modules/y0 (configure.ac): Likewise.
38927         * modules/y1 (configure.ac): Likewise.
38928         * modules/yn (configure.ac): Likewise.
38929
38930 2010-01-24  Bruno Haible  <bruno@clisp.org>
38931
38932         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
38933         * tests/test-acosl.c (x): New variable.
38934         (main): Store argument in x and fetch it from x.
38935         * tests/test-asinl.c (x): New variable.
38936         (main): Store argument in x and fetch it from x.
38937         * tests/test-atanl.c (x): New variable.
38938         (main): Store argument in x and fetch it from x.
38939         * tests/test-cosl.c (x): New variable.
38940         (main): Store argument in x and fetch it from x.
38941         * tests/test-expl.c (x): New variable.
38942         (main): Store argument in x and fetch it from x.
38943         * tests/test-logl.c (x): New variable.
38944         (main): Store argument in x and fetch it from x.
38945         * tests/test-sinl.c (x): New variable.
38946         (main): Store argument in x and fetch it from x.
38947         * tests/test-sqrtl.c (x): New variable.
38948         (main): Store argument in x and fetch it from x.
38949         * tests/test-tanl.c (x): New variable.
38950         (main): Store argument in x and fetch it from x.
38951
38952 2010-01-24  Bruno Haible  <bruno@clisp.org>
38953
38954         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
38955         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
38956         assignments to the initial TESTS_ENVIRONMENT.
38957         * doc/gnulib.texi (Unit test modules): Document it.
38958         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
38959         TESTS_ENVIRONMENT.
38960         * modules/btowc-tests (Makefile.am): Likewise.
38961         * modules/c-stack-tests (Makefile.am): Likewise.
38962         * modules/c-strcase-tests (Makefile.am): Likewise.
38963         * modules/copy-file-tests (Makefile.am): Likewise.
38964         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
38965         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
38966         * modules/mbrtowc-tests (Makefile.am): Likewise.
38967         * modules/mbscasecmp-tests (Makefile.am): Likewise.
38968         * modules/mbscasestr-tests (Makefile.am): Likewise.
38969         * modules/mbschr-tests (Makefile.am): Likewise.
38970         * modules/mbscspn-tests (Makefile.am): Likewise.
38971         * modules/mbsinit-tests (Makefile.am): Likewise.
38972         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
38973         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
38974         * modules/mbspbrk-tests (Makefile.am): Likewise.
38975         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
38976         * modules/mbsrchr-tests (Makefile.am): Likewise.
38977         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
38978         * modules/mbsspn-tests (Makefile.am): Likewise.
38979         * modules/mbsstr-tests (Makefile.am): Likewise.
38980         * modules/nl_langinfo-tests (Makefile.am): Likewise.
38981         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
38982         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
38983         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
38984         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
38985         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
38986         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
38987         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
38988         * modules/wcrtomb-tests (Makefile.am): Likewise.
38989         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
38990         * modules/wcsrtombs-tests (Makefile.am): Likewise.
38991         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
38992         assignments from TESTS_ENVIRONMENT.
38993         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
38994         augmentation.
38995         * modules/argp-version-etc-tests (Makefile.am): Likewise.
38996         * modules/atexit-tests (Makefile.am): Likewise.
38997         * modules/binary-io-tests (Makefile.am): Likewise.
38998         * modules/closein-tests (Makefile.am): Likewise.
38999         * modules/dprintf-posix-tests (Makefile.am): Likewise.
39000         * modules/exclude-tests (Makefile.am): Likewise.
39001         * modules/fflush-tests (Makefile.am): Likewise.
39002         * modules/fpending-tests (Makefile.am): Likewise.
39003         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39004         * modules/freadahead-tests (Makefile.am): Likewise.
39005         * modules/freadptr-tests (Makefile.am): Likewise.
39006         * modules/freadseek-tests (Makefile.am): Likewise.
39007         * modules/fseek-tests (Makefile.am): Likewise.
39008         * modules/fseeko-tests (Makefile.am): Likewise.
39009         * modules/ftell-tests (Makefile.am): Likewise.
39010         * modules/ftello-tests (Makefile.am): Likewise.
39011         * modules/idpriv-drop-tests (Makefile.am): Likewise.
39012         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
39013         * modules/lseek-tests (Makefile.am): Likewise.
39014         * modules/parse-duration-tests (Makefile.am): Likewise.
39015         * modules/perror-tests (Makefile.am): Likewise.
39016         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
39017         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
39018         * modules/pipe-tests (Makefile.am): Likewise.
39019         * modules/pread-tests (Makefile.am): Likewise.
39020         * modules/printf-posix-tests (Makefile.am): Likewise.
39021         * modules/select-tests (Makefile.am): Likewise.
39022         * modules/sigpipe-tests (Makefile.am): Likewise.
39023         * modules/tsearch-tests (Makefile.am): Likewise.
39024         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
39025         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
39026         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39027         * modules/uniwidth/width-tests (Makefile.am): Likewise.
39028         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
39029         * modules/version-etc-tests (Makefile.am): Likewise.
39030         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39031         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39032         * modules/xalloc-die-tests (Makefile.am): Likewise.
39033         * modules/xprintf-posix-tests (Makefile.am): Likewise.
39034         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39035         * modules/xstrtol-tests (Makefile.am): Likewise.
39036         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39037         * modules/yesno-tests (Makefile.am): Likewise.
39038         Suggested by Jim Meyering.
39039
39040 2010-01-24  Bruno Haible  <bruno@clisp.org>
39041
39042         More documentation.
39043         * doc/gnulib.texi (Writing modules): New chapter.
39044         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
39045         the new chapter.
39046
39047 2010-01-24  Jim Meyering  <meyering@redhat.com>
39048
39049         maint.mk: do not prepend "./" after filtering
39050         * top/maint.mk (_prepend_srcdir_prefix): New variable
39051         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
39052         "./" when $(srcdir) is ".".
39053
39054         define STREQ(a,b) consistently, removing useless parentheses
39055         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
39056         since the only risk is that "a" or "b" contains an unparenthesized
39057         comma, but if either did that, STREQ would have 3 or more arguments.
39058         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
39059         * lib/fts.c (STREQ): Remove unnecessary parentheses.
39060         * lib/hash-triple.c (STREQ): Likewise.
39061         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
39062         * lib/getugroups.c (STREQ): Likewise.
39063
39064 2010-01-23  Jim Meyering  <meyering@redhat.com>
39065
39066         maint.mk: fix syntax-check in a non-srcdir build directory
39067         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
39068         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
39069
39070 2010-01-22  Jim Meyering  <meyering@redhat.com>
39071
39072         userspec: add unit tests
39073         * tests/test-userspec.c: New file.
39074         * modules/userspec-tests: Likewise.
39075
39076 2010-01-21  Jim Meyering  <meyering@redhat.com>
39077
39078         maint.mk: handle source file names containing "." robustly
39079         * top/maint.mk (_dot_escaped_srcdir): Define.
39080         (VC_LIST): Use it in LHS of sed substitution.
39081
39082 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
39083
39084         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
39085         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
39086         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
39087         from a non-srcdir build.
39088
39089 2010-01-20  Eric Blake  <ebb9@byu.net>
39090
39091         warn-on-use: use instead of link-warning
39092         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
39093         * modules/unistd (Depends-on, Makefile.am): Likewise.
39094         * modules/arpa_inet (Depends-on): Replace link-warning with
39095         warn-on-use.
39096         (Makefile.am): Update rules accordingly.
39097         * modules/ctype (Depends-on, Makefile.am): Likewise.
39098         * modules/dirent (Depends-on, Makefile.am): Likewise.
39099         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
39100         * modules/inttypes (Depends-on, Makefile.am): Likewise.
39101         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39102         * modules/locale (Depends-on, Makefile.am): Likewise.
39103         * modules/math (Depends-on, Makefile.am): Likewise.
39104         * modules/search (Depends-on, Makefile.am): Likewise.
39105         * modules/signal (Depends-on, Makefile.am): Likewise.
39106         * modules/spawn (Depends-on, Makefile.am): Likewise.
39107         * modules/stdlib (Depends-on, Makefile.am): Likewise.
39108         * modules/string (Depends-on, Makefile.am): Likewise.
39109         * modules/strings (Depends-on, Makefile.am): Likewise.
39110         * modules/sys_file (Depends-on, Makefile.am): Likewise.
39111         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
39112         * modules/sys_select (Depends-on, Makefile.am): Likewise.
39113         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
39114         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
39115         * modules/sys_times (Depends-on, Makefile.am): Likewise.
39116         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
39117         * modules/wchar (Depends-on, Makefile.am): Likewise.
39118         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
39119         should be poisoned.
39120         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
39121         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
39122         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
39123         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39124         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
39125         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39126         * m4/math_h.m4 (gl_MATH_H): Likewise.
39127         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39128         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39129         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39130         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39131         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39132         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39133         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
39134         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
39135         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
39136         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39137         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39139         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
39140         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
39141         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39142         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39143         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
39144         GL_LINK_WARNING.
39145         * lib/ctype.in.h: Likewise.
39146         * lib/dirent.in.h: Likewise.
39147         * lib/fcntl.in.h: Likewise.
39148         * lib/inttypes.in.h: Likewise.
39149         * lib/langinfo.in.h: Likewise.
39150         * lib/locale.in.h: Likewise.
39151         * lib/math.in.h: Likewise.
39152         * lib/search.in.h: Likewise.
39153         * lib/signal.in.h: Likewise.
39154         * lib/spawn.in.h: Likewise.
39155         * lib/stdio.in.h: Likewise.
39156         * lib/stdlib.in.h: Likewise.
39157         * lib/string.in.h: Likewise.
39158         * lib/strings.in.h: Likewise.
39159         * lib/sys_file.in.h: Likewise.
39160         * lib/sys_ioctl.in.h: Likewise.
39161         * lib/sys_select.in.h: Likewise.
39162         * lib/sys_socket.in.h: Likewise.
39163         * lib/sys_stat.in.h: Likewise.
39164         * lib/sys_times.in.h: Likewise.
39165         * lib/sys_utsname.in.h: Likewise.
39166         * lib/unistd.in.h: Likewise.
39167         * lib/wchar.in.h: Likewise.
39168
39169 2010-01-20  Bruno Haible  <bruno@clisp.org>
39170
39171         Avoid duplicate -lm.
39172         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
39173         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
39174         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
39175         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
39176         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
39177         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
39178         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
39179         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
39180         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
39181         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
39182         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
39183         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
39184         Reported by Paolo Bonzini.
39185
39186 2010-01-19  Bruno Haible  <bruno@clisp.org>
39187
39188         langinfo, nl_langinfo: Relicense under LGPLv2+.
39189         * modules/langinfo (License): Change to LGPLv2+.
39190         * modules/nl_langinfo (License): Likewise.
39191         Patch by David Lutterkort <lutter@redhat.com>.
39192
39193 2010-01-19  Bruno Haible  <bruno@clisp.org>
39194
39195         Avoid compilation error with cc on OSF/1 5.1.
39196         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
39197         statement, not before.
39198         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39199
39200 2010-01-18  Bruno Haible  <bruno@clisp.org>
39201
39202         Avoid a link error due to the __printf__ symbol.
39203         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
39204         and 2.6.x.
39205         (__format__, __printf__): Remove definitions.
39206         * lib/argp-fmtstream.h: Likewise.
39207         * lib/argp.h: Likewise.
39208         * lib/error.h: Likewise.
39209         * lib/vasnprintf.h: Likewise.
39210         * lib/xprintf.h: Likewise.
39211         * lib/xvasprintf.h: Likewise.
39212         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39213
39214 2010-01-18  Bruno Haible  <bruno@clisp.org>
39215
39216         Tests for module 'tanl'.
39217         * modules/tanl-tests: New file.
39218         * tests/test-tanl.c: New file.
39219
39220         Tests for module 'sqrtl'.
39221         * modules/sqrtl-tests: New file.
39222         * tests/test-sqrtl.c: New file.
39223
39224         Tests for module 'sinl'.
39225         * modules/sinl-tests: New file.
39226         * tests/test-sinl.c: New file.
39227
39228         Tests for module 'logl'.
39229         * modules/logl-tests: New file.
39230         * tests/test-logl.c: New file.
39231
39232         Tests for module 'expl'.
39233         * modules/expl-tests: New file.
39234         * tests/test-expl.c: New file.
39235
39236         Tests for module 'cosl'.
39237         * modules/cosl-tests: New file.
39238         * tests/test-cosl.c: New file.
39239
39240         Tests for module 'atanl'.
39241         * modules/atanl-tests: New file.
39242         * tests/test-atanl.c: New file.
39243
39244         Tests for module 'asinl'.
39245         * modules/asinl-tests: New file.
39246         * tests/test-asinl.c: New file.
39247
39248         Tests for module 'acosl'.
39249         * modules/acosl-tests: New file.
39250         * tests/test-acosl.c: New file.
39251
39252         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39253         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
39254         tanl): Use the standard gnulib idiom.
39255         * lib/cosl.c: Don't include trigl.c and sincosl.c.
39256         * lib/sinl.c: Likewise.
39257         * lib/tanl.c: Don't include trigl.c.
39258         (kernel_tanl): Make static.
39259         * lib/sincosl.c: Include trigl.h first.
39260         * lib/trigl.c: Likewise.
39261         * m4/acosl.m4: New file.
39262         * m4/asinl.m4: New file.
39263         * m4/atanl.m4: New file.
39264         * m4/cosl.m4: New file.
39265         * m4/expl.m4: New file.
39266         * m4/logl.m4: New file.
39267         * m4/sinl.m4: New file.
39268         * m4/sqrtl.m4: New file.
39269         * m4/tanl.m4: New file.
39270         * m4/mathl.m4: Remove file.
39271         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
39272         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
39273         Don't initialize GNULIB_MATHL.
39274         * modules/acosl: New file.
39275         * modules/asinl: New file.
39276         * modules/atanl: New file.
39277         * modules/cosl: New file.
39278         * modules/expl: New file.
39279         * modules/logl: New file.
39280         * modules/sinl: New file.
39281         * modules/sqrtl: New file.
39282         * modules/tanl: New file.
39283         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
39284         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
39285         substitute GNULIB_MATHL.
39286         * modules/mathl: Rewritten.
39287         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
39288         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
39289         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
39290         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
39291         * doc/posix-functions/expl.texi: Mention the 'expl' module.
39292         * doc/posix-functions/logl.texi: Mention the 'logl' module.
39293         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
39294         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
39295         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
39296
39297 2010-01-18  Bruno Haible  <bruno@clisp.org>
39298
39299         sqrt: Make gl_FUNC_SQRT requirable.
39300         * m4/sqrt.m4: New file.
39301         * modules/sqrt (Files): Add it.
39302         (configure.ac): Invoke gl_FUNC_SQRT.
39303
39304 2010-01-18  Bruno Haible  <bruno@clisp.org>
39305
39306         New modules for common <math.h> functions.
39307         * m4/mathfunc.m4: New file.
39308         * modules/acos: New file.
39309         * modules/asin: New file.
39310         * modules/atan: New file.
39311         * modules/atan2: New file.
39312         * modules/cbrt: New file.
39313         * modules/copysign: New file.
39314         * modules/cos: New file.
39315         * modules/cosh: New file.
39316         * modules/erf: New file.
39317         * modules/erfc: New file.
39318         * modules/exp: New file.
39319         * modules/fabs: New file.
39320         * modules/fmod: New file.
39321         * modules/hypot: New file.
39322         * modules/j0: New file.
39323         * modules/j1: New file.
39324         * modules/jn: New file.
39325         * modules/ldexp: New file.
39326         * modules/lgamma: New file.
39327         * modules/log: New file.
39328         * modules/log10: New file.
39329         * modules/log1p: New file.
39330         * modules/logb: New file.
39331         * modules/modf: New file.
39332         * modules/nextafter: New file.
39333         * modules/pow: New file.
39334         * modules/remainder: New file.
39335         * modules/rint: New file.
39336         * modules/sin: New file.
39337         * modules/sinh: New file.
39338         * modules/sqrt: New file.
39339         * modules/tan: New file.
39340         * modules/tanh: New file.
39341         * modules/y0: New file.
39342         * modules/y1: New file.
39343         * modules/yn: New file.
39344         * doc/posix-functions/acos.texi: Mention the 'acos' module.
39345         * doc/posix-functions/asin.texi: Mention the 'asin' module.
39346         * doc/posix-functions/atan.texi: Mention the 'atan' module.
39347         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
39348         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
39349         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
39350         * doc/posix-functions/cos.texi: Mention the 'cos' module.
39351         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
39352         * doc/posix-functions/erf.texi: Mention the 'erf' module.
39353         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
39354         * doc/posix-functions/exp.texi: Mention the 'exp' module.
39355         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
39356         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
39357         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
39358         * doc/posix-functions/j0.texi: Mention the 'j0' module.
39359         * doc/posix-functions/j1.texi: Mention the 'j1' module.
39360         * doc/posix-functions/jn.texi: Mention the 'jn' module.
39361         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
39362         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
39363         * doc/posix-functions/log.texi: Mention the 'log' module.
39364         * doc/posix-functions/log10.texi: Mention the 'log10' module.
39365         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
39366         * doc/posix-functions/logb.texi: Mention the 'logb' module.
39367         * doc/posix-functions/modf.texi: Mention the 'modf' module.
39368         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
39369         * doc/posix-functions/pow.texi: Mention the 'pow' module.
39370         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
39371         * doc/posix-functions/rint.texi: Mention the 'rint' module.
39372         * doc/posix-functions/sin.texi: Mention the 'sin' module.
39373         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
39374         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
39375         * doc/posix-functions/tan.texi: Mention the 'tan' module.
39376         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
39377         * doc/posix-functions/y0.texi: Mention the 'y0' module.
39378         * doc/posix-functions/y1.texi: Mention the 'y1' module.
39379         * doc/posix-functions/yn.texi: Mention the 'yn' module.
39380
39381 2010-01-18  Jim Meyering  <meyering@redhat.com>
39382
39383         ignore-value: relax license to LGPLv2+
39384         * modules/ignore-value (License): Relax to LGPLv2+.
39385
39386         getdate: don't leak when TZ contains two or more '"'s
39387         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
39388         double quote in TZ after the first one.
39389
39390         readtokens: do not leak internal token_lengths buffer
39391         * lib/readtokens.c (readtokens): Free the local, lengths,
39392         when the supplied "token_lengths" parameter is NULL.
39393
39394 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39395
39396         Fix a couple of missing LIBTHREAD link failures on AIX.
39397         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
39398         $(LIBTHREAD).
39399         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
39400
39401         Link test-poll against INET_PTON_LIB.
39402         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
39403         for inet_pton on Solaris 10.
39404
39405 2010-01-17  Bruno Haible  <bruno@clisp.org>
39406
39407         unistdio/*-sprintf: Fix typo in module description.
39408         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
39409         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
39410         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
39411         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
39412         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
39413         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
39414         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
39415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39416
39417 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39418
39419         gnulib-tool: fix filelist for AIX, HP-UX ksh.
39420         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
39421         variables in shell case patterns, for AIX and HP-UX ksh.
39422
39423         Split large sed scripts, for HP-UX sed.
39424         * modules/stdio: Split sed scripts around 50 sed commands,
39425         to avoid HP-UX limit of 99 commands, in the near future.
39426         * modules/string: Likewise.
39427         * modules/unistd: Likewise.
39428
39429         gnulib-tool: avoid writing in the current directory.
39430         * gnulib-tool (func_emit_lib_Makefile_am)
39431         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
39432         not in the current directory, so concurrent gnulib-tool
39433         instances do not interfere.
39434
39435 2010-01-16  Jim Meyering  <meyering@redhat.com>
39436
39437         doc: update users.txt
39438         * users.txt: Add grep.
39439         (diffutils, gzip): Update URLs.
39440
39441 2010-01-12  Bruno Haible  <bruno@clisp.org>
39442
39443         posix_spawn: Avoid test failure on Cygwin.
39444         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
39445         characters.
39446         Reported by Simon Josefsson.
39447
39448 2010-01-12  Bruno Haible  <bruno@clisp.org>
39449
39450         * tests/test-cond.c (main): When skipping the test, show the reason.
39451
39452 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39453
39454         * lib/striconv.c (str_cd_iconv): Avoid if before free.
39455
39456 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39457
39458         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
39459         VC_LIST_ALWAYS_EXCLUDE_REGEX.
39460
39461 2010-01-12  Eric Blake  <ebb9@byu.net>
39462
39463         build: guarantee AS_VAR_IF
39464         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
39465         (gl_AS_VAR_IF): Move...
39466         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
39467         Reported by Simon Josefsson.
39468
39469 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39470
39471         * lib/stdio.in.h: Fix typo.
39472
39473 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39474
39475         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
39476         libgpg-error.
39477
39478 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39479
39480         * tests/test-xalloc-die.sh: Use $EXEEXT.
39481
39482 2010-01-12  Simon Josefsson  <simon@josefsson.org>
39483             Bruno Haible  <bruno@clisp.org>
39484
39485         getlogin, getlogin_r: Avoid test failure.
39486         * tests/test-getlogin.c: Include <stdio.h>.
39487         (main): Skip the test when the function fails because stdin is not a
39488         tty.
39489         * tests/test-getlogin_r.c: Include <stdio.h>.
39490         (main): Skip the test when the function fails because stdin is not a
39491         tty.
39492
39493 2010-01-11  Eric Blake  <ebb9@byu.net>
39494
39495         tests: avoid more large file warnings
39496         * tests/test-fflush.c: Avoid warning about ftell use.
39497         * tests/test-fseek.c: Avoid warning about fseek use.
39498
39499 2010-01-10  Bruno Haible  <bruno@clisp.org>
39500
39501         nproc: Work better on Linux when /proc and /sys are not mounted.
39502         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
39503         as lower bound when, on glibc/Linux systems,
39504         sysconf (_SC_NPROCESSORS_CONF) returns 1.
39505         Suggested by Pádraig Brady <P@draigbrady.com>.
39506         Reported by Dmitry V. Levin <ldv@altlinux.org>.
39507
39508         nproc: Refactor.
39509         * lib/nproc.c (num_processors_via_affinity_mask): New function,
39510         extracted from num_processors.
39511         (num_processors): Call it.
39512
39513 2010-01-11  Jim Meyering  <meyering@redhat.com>
39514
39515         utimecmp: avoid new warning from upcoming gcc-4.5.0
39516         * lib/utimecmp.c (BILLION): Define using #define rather than an
39517         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
39518
39519 2010-01-11  Eric Blake  <ebb9@byu.net>
39520
39521         math: add portability warnings for classification macros
39522         * modules/math (Depends-on): Add warn-on-use.
39523         (Makefile.am): Provide new substitutions.
39524         * m4/math_h.m4 (gl_MATH_H): Require inline.
39525         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
39526         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
39527         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
39528         implement warnings.
39529
39530         unistd: warn on use of environ without module
39531         * modules/unistd (Depends-on): Add warn-on-use.
39532         (Makefile.am): Provide new substitutions.
39533         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
39534         * lib/unistd.in.h (environ): Wrap with a warning helper function.
39535
39536         stdio: warn on suspicious uses
39537         * modules/stdio (Depends-on): Add warn-on-use.
39538         (Makefile.am): Provide new substitutions.
39539         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
39540         fseeko.
39541         * lib/stdio.in.h (gets): Always warn on use.
39542         (fseek, ftell): Adjust when warnings are issued, and honor
39543         _GL_NO_LARGE_FILES as a way to silence the warning.
39544         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
39545         any warning about large file offsets.
39546         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
39547         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
39548         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
39549         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
39550         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
39551         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
39552         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
39553         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
39554
39555         warn-on-use: new module
39556         * modules/warn-on-use: New file.
39557         * build-aux/warn-on-use.h: Likewise.
39558         * m4/warn-on-use.m4: Likewise.
39559         * MODULES.html.sh (Support for building): Mention it.
39560
39561 2010-01-10  Bruno Haible  <bruno@clisp.org>
39562
39563         Tests for module 'unistr/u32-strdup'.
39564         * modules/unistr/u32-strdup-tests: New file.
39565         * tests/unistr/test-u32-strdup.c: New file.
39566
39567         Tests for module 'unistr/u16-strdup'.
39568         * modules/unistr/u16-strdup-tests: New file.
39569         * tests/unistr/test-u16-strdup.c: New file.
39570
39571         Tests for module 'unistr/u8-strdup'.
39572         * modules/unistr/u8-strdup-tests: New file.
39573         * tests/unistr/test-u8-strdup.c: New file.
39574         * tests/unistr/test-strdup.h: New file.
39575
39576         Tests for module 'unistr/u32-strncmp'.
39577         * modules/unistr/u32-strncmp-tests: New file.
39578         * tests/unistr/test-u32-strncmp.c: New file.
39579
39580         Tests for module 'unistr/u16-strncmp'.
39581         * modules/unistr/u16-strncmp-tests: New file.
39582         * tests/unistr/test-u16-strncmp.c: New file.
39583
39584         Tests for module 'unistr/u8-strncmp'.
39585         * modules/unistr/u8-strncmp-tests: New file.
39586         * tests/unistr/test-u8-strncmp.c: New file.
39587         * tests/unistr/test-strncmp.h: New file.
39588
39589         Tests for module 'unistr/u32-strcoll'.
39590         * modules/unistr/u32-strcoll-tests: New file.
39591         * tests/unistr/test-u32-strcoll.c: New file.
39592
39593         Tests for module 'unistr/u16-strcoll'.
39594         * modules/unistr/u16-strcoll-tests: New file.
39595         * tests/unistr/test-u16-strcoll.c: New file.
39596
39597         Tests for module 'unistr/u8-strcoll'.
39598         * modules/unistr/u8-strcoll-tests: New file.
39599         * tests/unistr/test-u8-strcoll.c: New file.
39600
39601         Tests for module 'unistr/u32-strcmp'.
39602         * modules/unistr/u32-strcmp-tests: New file.
39603         * tests/unistr/test-u32-strcmp.c: New file.
39604         * tests/unistr/test-u32-strcmp.h: New file.
39605
39606         Tests for module 'unistr/u16-strcmp'.
39607         * modules/unistr/u16-strcmp-tests: New file.
39608         * tests/unistr/test-u16-strcmp.c: New file.
39609         * tests/unistr/test-u16-strcmp.h: New file.
39610
39611         Tests for module 'unistr/u8-strcmp'.
39612         * modules/unistr/u8-strcmp-tests: New file.
39613         * tests/unistr/test-u8-strcmp.c: New file.
39614         * tests/unistr/test-u8-strcmp.h: New file.
39615         * tests/unistr/test-strcmp.h: New file.
39616
39617         Tests for module 'unistr/u32-strncat'.
39618         * modules/unistr/u32-strncat-tests: New file.
39619         * tests/unistr/test-u32-strncat.c: New file.
39620
39621         Tests for module 'unistr/u16-strncat'.
39622         * modules/unistr/u16-strncat-tests: New file.
39623         * tests/unistr/test-u16-strncat.c: New file.
39624
39625         Tests for module 'unistr/u8-strncat'.
39626         * modules/unistr/u8-strncat-tests: New file.
39627         * tests/unistr/test-u8-strncat.c: New file.
39628         * tests/unistr/test-strncat.h: New file.
39629
39630         Tests for module 'unistr/u32-strcat'.
39631         * modules/unistr/u32-strcat-tests: New file.
39632         * tests/unistr/test-u32-strcat.c: New file.
39633
39634         Tests for module 'unistr/u16-strcat'.
39635         * modules/unistr/u16-strcat-tests: New file.
39636         * tests/unistr/test-u16-strcat.c: New file.
39637
39638         Tests for module 'unistr/u8-strcat'.
39639         * modules/unistr/u8-strcat-tests: New file.
39640         * tests/unistr/test-u8-strcat.c: New file.
39641         * tests/unistr/test-strcat.h: New file.
39642
39643         Tests for module 'unistr/u32-stpncpy'.
39644         * modules/unistr/u32-stpncpy-tests: New file.
39645         * tests/unistr/test-u32-stpncpy.c: New file.
39646
39647         Tests for module 'unistr/u16-stpncpy'.
39648         * modules/unistr/u16-stpncpy-tests: New file.
39649         * tests/unistr/test-u16-stpncpy.c: New file.
39650
39651         Tests for module 'unistr/u8-stpncpy'.
39652         * modules/unistr/u8-stpncpy-tests: New file.
39653         * tests/unistr/test-u8-stpncpy.c: New file.
39654         * tests/unistr/test-stpncpy.h: New file.
39655
39656         Tests for module 'unistr/u32-strncpy'.
39657         * modules/unistr/u32-strncpy-tests: New file.
39658         * tests/unistr/test-u32-strncpy.c: New file.
39659
39660         Tests for module 'unistr/u16-strncpy'.
39661         * modules/unistr/u16-strncpy-tests: New file.
39662         * tests/unistr/test-u16-strncpy.c: New file.
39663
39664         Tests for module 'unistr/u8-strncpy'.
39665         * modules/unistr/u8-strncpy-tests: New file.
39666         * tests/unistr/test-u8-strncpy.c: New file.
39667         * tests/unistr/test-strncpy.h: New file.
39668
39669         Tests for module 'unistr/u32-stpcpy'.
39670         * modules/unistr/u32-stpcpy-tests: New file.
39671         * tests/unistr/test-u32-stpcpy.c: New file.
39672
39673         Tests for module 'unistr/u16-stpcpy'.
39674         * modules/unistr/u16-stpcpy-tests: New file.
39675         * tests/unistr/test-u16-stpcpy.c: New file.
39676
39677         Tests for module 'unistr/u8-stpcpy'.
39678         * modules/unistr/u8-stpcpy-tests: New file.
39679         * tests/unistr/test-u8-stpcpy.c: New file.
39680         * tests/unistr/test-stpcpy.h: New file.
39681
39682         Tests for module 'unistr/u32-strcpy'.
39683         * modules/unistr/u32-strcpy-tests: New file.
39684         * tests/unistr/test-u32-strcpy.c: New file.
39685
39686         Tests for module 'unistr/u16-strcpy'.
39687         * modules/unistr/u16-strcpy-tests: New file.
39688         * tests/unistr/test-u16-strcpy.c: New file.
39689
39690         Tests for module 'unistr/u8-strcpy'.
39691         * modules/unistr/u8-strcpy-tests: New file.
39692         * tests/unistr/test-u8-strcpy.c: New file.
39693         * tests/unistr/test-strcpy.h: New file.
39694
39695         Tests for module 'unistr/u32-strnlen'.
39696         * modules/unistr/u32-strnlen-tests: New file.
39697         * tests/unistr/test-u32-strnlen.c: New file.
39698
39699         Tests for module 'unistr/u16-strnlen'.
39700         * modules/unistr/u16-strnlen-tests: New file.
39701         * tests/unistr/test-u16-strnlen.c: New file.
39702
39703         Tests for module 'unistr/u8-strnlen'.
39704         * modules/unistr/u8-strnlen-tests: New file.
39705         * tests/unistr/test-u8-strnlen.c: New file.
39706         * tests/unistr/test-strnlen.h: New file.
39707
39708         Tests for module 'unistr/u32-strlen'.
39709         * modules/unistr/u32-strlen-tests: New file.
39710         * tests/unistr/test-u32-strlen.c: New file.
39711
39712         Tests for module 'unistr/u16-strlen'.
39713         * modules/unistr/u16-strlen-tests: New file.
39714         * tests/unistr/test-u16-strlen.c: New file.
39715
39716         Tests for module 'unistr/u8-strlen'.
39717         * modules/unistr/u8-strlen-tests: New file.
39718         * tests/unistr/test-u8-strlen.c: New file.
39719
39720         Tests for module 'unistr/u32-prev'.
39721         * modules/unistr/u32-prev-tests: New file.
39722         * tests/unistr/test-u32-prev.c: New file.
39723
39724         Tests for module 'unistr/u16-prev'.
39725         * modules/unistr/u16-prev-tests: New file.
39726         * tests/unistr/test-u16-prev.c: New file.
39727
39728         Tests for module 'unistr/u8-prev'.
39729         * modules/unistr/u8-prev-tests: New file.
39730         * tests/unistr/test-u8-prev.c: New file.
39731
39732         Tests for module 'unistr/u32-next'.
39733         * modules/unistr/u32-next-tests: New file.
39734         * tests/unistr/test-u32-next.c: New file.
39735
39736         Tests for module 'unistr/u16-next'.
39737         * modules/unistr/u16-next-tests: New file.
39738         * tests/unistr/test-u16-next.c: New file.
39739
39740         Tests for module 'unistr/u8-next'.
39741         * modules/unistr/u8-next-tests: New file.
39742         * tests/unistr/test-u8-next.c: New file.
39743
39744         Tests for module 'unistr/u32-strmbtouc'.
39745         * modules/unistr/u32-strmbtouc-tests: New file.
39746         * tests/unistr/test-u32-strmbtouc.c: New file.
39747
39748         Tests for module 'unistr/u16-strmbtouc'.
39749         * modules/unistr/u16-strmbtouc-tests: New file.
39750         * tests/unistr/test-u16-strmbtouc.c: New file.
39751
39752         Tests for module 'unistr/u8-strmbtouc'.
39753         * modules/unistr/u8-strmbtouc-tests: New file.
39754         * tests/unistr/test-u8-strmbtouc.c: New file.
39755
39756         Tests for module 'unistr/u32-strmblen'.
39757         * modules/unistr/u32-strmblen-tests: New file.
39758         * tests/unistr/test-u32-strmblen.c: New file.
39759
39760         Tests for module 'unistr/u16-strmblen'.
39761         * modules/unistr/u16-strmblen-tests: New file.
39762         * tests/unistr/test-u16-strmblen.c: New file.
39763
39764         Tests for module 'unistr/u8-strmblen'.
39765         * modules/unistr/u8-strmblen-tests: New file.
39766         * tests/unistr/test-u8-strmblen.c: New file.
39767
39768         Tests for module 'unistr/u32-cpy-alloc'.
39769         * modules/unistr/u32-cpy-alloc-tests: New file.
39770         * tests/unistr/test-u32-cpy-alloc.c: New file.
39771
39772         Tests for module 'unistr/u16-cpy-alloc'.
39773         * modules/unistr/u16-cpy-alloc-tests: New file.
39774         * tests/unistr/test-u16-cpy-alloc.c: New file.
39775
39776         Tests for module 'unistr/u8-cpy-alloc'.
39777         * modules/unistr/u8-cpy-alloc-tests: New file.
39778         * tests/unistr/test-u8-cpy-alloc.c: New file.
39779         * tests/unistr/test-cpy-alloc.h: New file.
39780
39781         Tests for module 'unistr/u32-mbsnlen'.
39782         * modules/unistr/u32-mbsnlen-tests: New file.
39783         * tests/unistr/test-u32-mbsnlen.c: New file.
39784
39785         Tests for module 'unistr/u16-mbsnlen'.
39786         * modules/unistr/u16-mbsnlen-tests: New file.
39787         * tests/unistr/test-u16-mbsnlen.c: New file.
39788
39789         Tests for module 'unistr/u8-mbsnlen'.
39790         * modules/unistr/u8-mbsnlen-tests: New file.
39791         * tests/unistr/test-u8-mbsnlen.c: New file.
39792
39793         Tests for module 'unistr/u32-chr'.
39794         * modules/unistr/u32-chr-tests: New file.
39795         * tests/unistr/test-u32-chr.c: New file.
39796
39797         Tests for module 'unistr/u16-chr'.
39798         * modules/unistr/u16-chr-tests: New file.
39799         * tests/unistr/test-u16-chr.c: New file.
39800
39801         Tests for module 'unistr/u8-chr'.
39802         * modules/unistr/u8-chr-tests: New file.
39803         * tests/unistr/test-u8-chr.c: New file.
39804         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
39805
39806         Tests for module 'unistr/u32-cmp2'.
39807         * modules/unistr/u32-cmp2-tests: New file.
39808         * tests/unistr/test-u32-cmp2.c: New file.
39809
39810         Tests for module 'unistr/u16-cmp2'.
39811         * modules/unistr/u16-cmp2-tests: New file.
39812         * tests/unistr/test-u16-cmp2.c: New file.
39813
39814         Tests for module 'unistr/u8-cmp2'.
39815         * modules/unistr/u8-cmp2-tests: New file.
39816         * tests/unistr/test-u8-cmp2.c: New file.
39817         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
39818
39819         Tests for module 'unistr/u32-cmp'.
39820         * modules/unistr/u32-cmp-tests: New file.
39821         * tests/unistr/test-u32-cmp.c: New file.
39822
39823         Tests for module 'unistr/u16-cmp'.
39824         * modules/unistr/u16-cmp-tests: New file.
39825         * tests/unistr/test-u16-cmp.c: New file.
39826
39827         Tests for module 'unistr/u8-cmp'.
39828         * modules/unistr/u8-cmp-tests: New file.
39829         * tests/unistr/test-u8-cmp.c: New file.
39830         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
39831
39832         Tests for module 'unistr/u32-set'.
39833         * modules/unistr/u32-set-tests: New file.
39834         * tests/unistr/test-u32-set.c: New file.
39835
39836         Tests for module 'unistr/u16-set'.
39837         * modules/unistr/u16-set-tests: New file.
39838         * tests/unistr/test-u16-set.c: New file.
39839
39840         Tests for module 'unistr/u8-set'.
39841         * modules/unistr/u8-set-tests: New file.
39842         * tests/unistr/test-u8-set.c: New file.
39843         * tests/unistr/test-set.h: New file.
39844
39845         Tests for module 'unistr/u32-move'.
39846         * modules/unistr/u32-move-tests: New file.
39847         * tests/unistr/test-u32-move.c: New file.
39848
39849         Tests for module 'unistr/u16-move'.
39850         * modules/unistr/u16-move-tests: New file.
39851         * tests/unistr/test-u16-move.c: New file.
39852
39853         Tests for module 'unistr/u8-move'.
39854         * modules/unistr/u8-move-tests: New file.
39855         * tests/unistr/test-u8-move.c: New file.
39856         * tests/unistr/test-move.h: New file.
39857
39858         Tests for module 'unistr/u32-cpy'.
39859         * modules/unistr/u32-cpy-tests: New file.
39860         * tests/unistr/test-u32-cpy.c: New file.
39861
39862         Tests for module 'unistr/u16-cpy'.
39863         * modules/unistr/u16-cpy-tests: New file.
39864         * tests/unistr/test-u16-cpy.c: New file.
39865
39866         Tests for module 'unistr/u8-cpy'.
39867         * modules/unistr/u8-cpy-tests: New file.
39868         * tests/unistr/test-u8-cpy.c: New file.
39869         * tests/unistr/test-cpy.h: New file.
39870
39871 2010-01-09  Bruno Haible  <bruno@clisp.org>
39872
39873         Tests for module 'unistr/u32-uctomb'.
39874         * modules/unistr/u32-uctomb-tests: New file.
39875         * tests/unistr/test-u32-uctomb.c: New file.
39876
39877         Tests for module 'unistr/u16-uctomb'.
39878         * modules/unistr/u16-uctomb-tests: New file.
39879         * tests/unistr/test-u16-uctomb.c: New file.
39880
39881         Tests for module 'unistr/u8-uctomb'.
39882         * modules/unistr/u8-uctomb-tests: New file.
39883         * tests/unistr/test-u8-uctomb.c: New file.
39884
39885         Tests for module 'unistr/u32-mbtoucr'.
39886         * modules/unistr/u32-mbtoucr-tests: New file.
39887         * tests/unistr/test-u32-mbtoucr.c: New file.
39888
39889         Tests for module 'unistr/u16-mbtoucr'.
39890         * modules/unistr/u16-mbtoucr-tests: New file.
39891         * tests/unistr/test-u16-mbtoucr.c: New file.
39892
39893         Tests for module 'unistr/u8-mbtoucr'.
39894         * modules/unistr/u8-mbtoucr-tests: New file.
39895         * tests/unistr/test-u8-mbtoucr.c: New file.
39896
39897         Tests for module 'unistr/u32-mbtouc'.
39898         * modules/unistr/u32-mbtouc-tests: New file.
39899         * tests/unistr/test-u32-mbtouc.c: New file.
39900
39901         Tests for module 'unistr/u16-mbtouc'.
39902         * modules/unistr/u16-mbtouc-tests: New file.
39903         * tests/unistr/test-u16-mbtouc.c: New file.
39904
39905         Tests for module 'unistr/u8-mbtouc'.
39906         * modules/unistr/u8-mbtouc-tests: New file.
39907         * tests/unistr/test-u8-mbtouc.c: New file.
39908
39909         Tests for module 'unistr/u32-mbtouc-unsafe'.
39910         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
39911         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
39912         * tests/unistr/test-u32-mbtouc.h: New file.
39913
39914         Tests for module 'unistr/u16-mbtouc-unsafe'.
39915         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
39916         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
39917         * tests/unistr/test-u16-mbtouc.h: New file.
39918
39919         Tests for module 'unistr/u8-mbtouc-unsafe'.
39920         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
39921         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
39922         * tests/unistr/test-u8-mbtouc.h: New file.
39923
39924         Tests for module 'unistr/u32-mblen'.
39925         * modules/unistr/u32-mblen-tests: New file.
39926         * tests/unistr/test-u32-mblen.c: New file.
39927
39928         Tests for module 'unistr/u16-mblen'.
39929         * modules/unistr/u16-mblen-tests: New file.
39930         * tests/unistr/test-u16-mblen.c: New file.
39931
39932         Tests for module 'unistr/u8-mblen'.
39933         * modules/unistr/u8-mblen-tests: New file.
39934         * tests/unistr/test-u8-mblen.c: New file.
39935
39936         Tests for module 'unistr/u32-to-u16'.
39937         * modules/unistr/u32-to-u16-tests: New file.
39938         * tests/unistr/test-u32-to-u16.c: New file.
39939
39940         Tests for module 'unistr/u32-to-u8'.
39941         * modules/unistr/u32-to-u8-tests: New file.
39942         * tests/unistr/test-u32-to-u8.c: New file.
39943
39944         Tests for module 'unistr/u16-to-u32'.
39945         * modules/unistr/u16-to-u32-tests: New file.
39946         * tests/unistr/test-u16-to-u32.c: New file.
39947
39948         Tests for module 'unistr/u16-to-u8'.
39949         * modules/unistr/u16-to-u8-tests: New file.
39950         * tests/unistr/test-u16-to-u8.c: New file.
39951
39952         Tests for module 'unistr/u8-to-u32'.
39953         * modules/unistr/u8-to-u32-tests: New file.
39954         * tests/unistr/test-u8-to-u32.c: New file.
39955
39956         Tests for module 'unistr/u8-to-u16'.
39957         * modules/unistr/u8-to-u16-tests: New file.
39958         * tests/unistr/test-u8-to-u16.c: New file.
39959
39960         Tests for module 'unistr/u32-check'.
39961         * modules/unistr/u32-check-tests: New file.
39962         * tests/unistr/test-u32-check.c: New file.
39963
39964         Tests for module 'unistr/u16-check'.
39965         * modules/unistr/u16-check-tests: New file.
39966         * tests/unistr/test-u16-check.c: New file.
39967
39968         Tests for module 'unistr/u8-check'.
39969         * modules/unistr/u8-check-tests: New file.
39970         * tests/unistr/test-u8-check.c: New file.
39971
39972         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
39973         (category_equals): New function.
39974         (main): Add more tests.
39975         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
39976
39977         * tests/unictype/test-bidi_byname.c (main): Add more tests.
39978
39979 2010-01-10  Bruno Haible  <bruno@clisp.org>
39980
39981         unistr/u*-strcoll: Try harder to distinguish different strings.
39982         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
39983         compare s1 and s2 to see if they are different.
39984
39985 2010-01-10  Bruno Haible  <bruno@clisp.org>
39986
39987         unistr/u*-stpncpy: Fix the return value.
39988         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
39989         description of the return value consistent with stpncpy in glibc.
39990         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
39991         written non-NUL unit.
39992
39993 2010-01-10  Bruno Haible  <bruno@clisp.org>
39994
39995         unistr/u*-next: Add missing dependencies.
39996         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
39997         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
39998         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
39999
40000 2010-01-10  Bruno Haible  <bruno@clisp.org>
40001
40002         unistr/u8-mbsnlen: Fix return value for incomplete character.
40003         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
40004         u8_mblen.
40005         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
40006         Remove unistr/u8-mblen.
40007         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
40008         u16_mblen.
40009         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
40010         Remove unistr/u16-mblen.
40011
40012 2010-01-10  Bruno Haible  <bruno@clisp.org>
40013
40014         wchar: Fix compilation error when <wchar.h> is used from coreutils.
40015         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
40016         Reported by Brian Gough <bjg@gnu.org> and
40017         Chris Clayton <chris2553@googlemail.com> via
40018         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
40019
40020 2010-01-09  Bruno Haible  <bruno@clisp.org>
40021
40022         unistr/u16-to-u32: Reject invalid input.
40023         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
40024         u16_mbtouc.
40025         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
40026         Remove unistr/u16-mbtouc.
40027
40028         unistr/u16-to-u8: Reject invalid input.
40029         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
40030         u16_mbtouc.
40031         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
40032         Remove unistr/u16-mbtouc.
40033
40034         unistr/u8-to-u32: Reject invalid input.
40035         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
40036         u8_mbtouc.
40037         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
40038         Remove unistr/u8-mbtouc.
40039
40040         unistr/u8-to-u16: Reject invalid input.
40041         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
40042         u8_mbtouc.
40043         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
40044         Remove unistr/u8-mbtouc.
40045
40046 2010-01-09  Bruno Haible  <bruno@clisp.org>
40047
40048         Tests for module 'getlogin'.
40049         * modules/getlogin-tests: New file.
40050         * tests/test-getlogin.c: New file.
40051
40052         New module 'getlogin'.
40053         * lib/unistd.in.h (getlogin): New declaration.
40054         * lib/getlogin.c: New file.
40055         * m4/getlogin.m4: New file.
40056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
40057         HAVE_GETLOGIN.
40058         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
40059         HAVE_GETLOGIN.
40060         * modules/getlogin: New file.
40061         * doc/posix-functions/getlogin.texi: Mention the new module.
40062         Reported by John W. Eaton <jwe@gnu.org>.
40063
40064 2010-01-09  Bruno Haible  <bruno@clisp.org>
40065
40066         getlogin_r: Support for native Windows.
40067         * lib/getlogin_r.c: Include <windows.h>
40068         (getlogin_r): Implement for native Windows.
40069         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
40070         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
40071         via John W. Eaton <jwe@gnu.org>.
40072
40073 2010-01-09  Bruno Haible  <bruno@clisp.org>
40074
40075         getlogin_r: Small fixes.
40076         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
40077         succeeds.
40078         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
40079         before testing whether getlogin_r is declared. No need to set
40080         HAVE_DECL_GETLOGIN_R to 1.
40081         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
40082
40083 2010-01-09  Bruno Haible  <bruno@clisp.org>
40084
40085         * lib/unistd.in.h (getlogin_r): Add comment.
40086
40087 2010-01-09  Bruno Haible  <bruno@clisp.org>
40088
40089         Tests for module 'getlogin_r'.
40090         * modules/getlogin_r-tests: New file.
40091         * tests/test-getlogin_r.c: New file.
40092
40093 2010-01-09  Jim Meyering  <meyering@redhat.com>
40094
40095         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
40096         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
40097         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
40098
40099 2010-01-08  Simon Josefsson  <simon@josefsson.org>
40100
40101         * lib/dup2.c (rpl_dup2): Improve comment.
40102
40103 2010-01-08  Eric Blake  <ebb9@byu.net>
40104
40105         maint.mk: allow packages to add makefile @@ exceptions
40106         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
40107         (sc_makefile_check): Rename...
40108         (sc_makefile_at_at_check): ...to this, and use hook.
40109
40110         dup2: work around mingw bug
40111         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
40112         Reported by Simon Josefsson.
40113
40114 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
40115
40116         glob: Fix C++ compilation.
40117         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
40118         C++.
40119
40120 2010-01-07  Bruno Haible  <bruno@clisp.org>
40121
40122         Fix indentation of wctype.in.h, broken since 2007-01-06.
40123         * lib/wctype.in.h: Fix indentation of preprocessor directives.
40124
40125 2010-01-07  Bruno Haible  <bruno@clisp.org>
40126
40127         mbslen: Avoid collision with system function.
40128         * lib/string.in.h [MirBSD]: Include <wchar.h>.
40129         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
40130         * m4/mbslen.m4: New file.
40131         * modules/mbslen (Files): Add it.
40132         (configure.ac): Invoke gl_MBSLEN.
40133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
40134         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
40135         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
40136         via Ian Beckwith <ianb@erislabs.net>.
40137
40138 2010-01-07  Bruno Haible  <bruno@clisp.org>
40139
40140         dirent: Document the last fix.
40141         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
40142
40143 2010-01-07  Bruno Haible  <bruno@clisp.org>
40144
40145         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
40146         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
40147         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
40148         va_list are defined.
40149         * doc/posix-headers/stdio.texi: Document the bug of missing types.
40150         Reported by Eric Blake.
40151
40152 2010-01-07  Bruno Haible  <bruno@clisp.org>
40153
40154         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
40155         * modules/xlist (Depends-on): Add 'list',
40156         * modules/xoset (Depends-on): Add 'oset'.
40157         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40158
40159 2010-01-07  Bruno Haible  <bruno@clisp.org>
40160
40161         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
40162         * doc/posix-functions/strncasecmp.texi: Likewise.
40163
40164 2010-01-07  Bruno Haible  <bruno@clisp.org>
40165
40166         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
40167
40168 2010-01-07  John W. Eaton  <jwe@octave.org>
40169
40170         wctype: allow C++ use
40171         * lib/wctype.in.h: Add extern "C" block for C++.
40172
40173 2010-01-06  Eric Blake  <ebb9@byu.net>
40174
40175         maint.mk: detect incorrect GFDL usage
40176         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
40177
40178 2010-01-06  Jim Meyering  <meyering@redhat.com>
40179         and Eric Blake  <ebb9@byu.net>
40180
40181         maint.mk: ignore multi-line copyright in NEWS
40182         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
40183
40184 2010-01-06  Eric Blake  <ebb9@byu.net>
40185
40186         select: add missing dependency
40187         * modules/select-tests (Depends-on): Move sockets dependency...
40188         * modules/select (Depends-on): ...here.
40189         Reported by Ian Beckwith.
40190
40191         doc: regenerate INSTALL
40192         * doc/INSTALL: Reflect recent autoconf update.
40193         * doc/INSTALL.ISO: Likewise.
40194         * doc/INSTALL.UTF-8: Likewise.
40195
40196         pread: fix compilation on glibc
40197         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
40198         Reported by Ralf Wildenhues.
40199
40200         dirent: fix test failure
40201         * lib/dirent.in.h (includes): Guarantee ino_t.
40202         Reported by Ralf Wildenhues.
40203
40204 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
40205
40206         linkat, renameat: avoid bad free
40207         * lib/at-func2.c (at_func2): Fix typo.
40208         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
40209
40210 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40211
40212         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
40213         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
40214         to avoid failure of symlink test later.
40215
40216 2010-01-06  Eric Blake  <ebb9@byu.net>
40217
40218         stdio, unistd: guarantee ssize_t
40219         * lib/unistd.in.h (includes): Ensure that types required by POSIX
40220         2008 are exposed when needed.
40221         * lib/stdio.in.h (includes): Likewise.
40222         Reported by Ralf Wildenhues.
40223
40224 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
40225
40226         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
40227         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
40228         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
40229
40230 2010-01-06  Jim Meyering  <meyering@redhat.com>
40231
40232         readtokens: this module *does* require xalloc.h
40233         It uses only functions that were omitted by the old syntax-check rule.
40234         * lib/readtokens.c: Include "xalloc.h" once again.
40235         * modules/readtokens (Depends-on): Add xalloc.
40236         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
40237
40238 2010-01-05  Eric Blake  <ebb9@byu.net>
40239
40240         maint: support 'make announcement' from a VPATH build
40241         * top/maint.mk (announcement): Look for correct NEWS file.
40242
40243 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
40244
40245         utimens (fdutimens): ignore a negative FD, per contract
40246         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
40247         when we have a valid file descriptor.  Otherwise, using a brand
40248         new glibc (with just-patched futimens that now fails with EBADF)
40249         would cause this function to fail with ENOSYS.
40250         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
40251         See also http://bugzilla.redhat.com/552320.
40252
40253 2010-01-05  Eric Blake  <ebb9@byu.net>
40254
40255         strcase: document what it provides
40256         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
40257         gnulib module.
40258         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
40259         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
40260
40261 2010-01-05  Jim Meyering  <meyering@redhat.com>
40262
40263         maint: remove useless inclusions of "xalloc.h"
40264         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
40265         * lib/readtokens.c: Likewise.
40266         * lib/same.c: Likewise.
40267         * modules/getloadavg (Depends-on): Remove xalloc.
40268         * modules/readtokens: Likewise.
40269         * modules/same: Likewise.
40270
40271         maint.mk: include 4 more function names in alloca.h-checking regexp
40272         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
40273         regexp.  Before, we would give a false-positive (saying alloca.h
40274         is included unnecessarily) when the only uses involved omitted symbols.
40275
40276         xalloc.h: use consistent formatting
40277         * lib/xalloc.h: Move declarations to start in the first column.
40278
40279 2010-01-05  Eric Blake  <ebb9@byu.net>
40280
40281         mkdir: avoid xalloc
40282         * lib/mkdir.c (includes): Drop unused header.
40283         Reported by John W. Eaton.
40284
40285 2010-01-04  Jim Meyering  <meyering@redhat.com>
40286
40287         nl_langinfo: avoid configure-time syntax error
40288         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
40289         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
40290         the empty string.  Don't let that provoke a shell syntax error.
40291
40292         regcomp, regexec, fnmatch: avoid array bounds read error
40293         * lib/regcomp.c (build_equiv_class): From glibc:
40294         Use only the low 24 bits of a findidx return value as an index
40295         into the weights array.  Patch by Ulrich Drepper:
40296         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
40297         * lib/regexec.c (check_node_accept_bytes): Likewise.
40298         * lib/fnmatch_loop.c (FCT): Likewise.
40299
40300         regcomp: skip collseq lookup when there are no rules
40301         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
40302         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
40303
40304         regcomp: recognize ill-formed { } expressions
40305         * lib/regcomp.c (parse_dup_op): From glibc:
40306         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
40307
40308         regcomp: fix typo in comment
40309         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
40310         s/satisfy/satisfies/.
40311
40312         regcomp: sync from glibc: remove dead store
40313         * lib/regcomp.c (duplicate_node_closure): Remove useless
40314         search_duplicated_node call and dead store.
40315
40316         regcomp: sync from glibc; always use nl_langinfo
40317         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
40318         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
40319         * modules/regex (Depends-on): Add nl_langinfo.
40320
40321 2010-01-04  Eric Blake  <ebb9@byu.net>
40322
40323         fdopendir: fix configure test
40324         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
40325
40326 2010-01-01  Bruno Haible  <bruno@clisp.org>
40327
40328         wchar: Remove unused configure check.
40329         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
40330
40331 2010-01-01  Eric Blake  <ebb9@byu.net>
40332
40333         headers: make check of system header explicit
40334         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
40335         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
40336         ourselves.
40337         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
40338         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40339         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
40340         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
40341         internals.
40342         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
40343         missing.
40344         Suggested by Bruno Haible.
40345
40346 2010-01-01  Jim Meyering  <meyering@redhat.com>
40347
40348         ChangeLog: tweak to eliminate unnecessary copyright line
40349         * ChangeLog: Remove a copyright line that was mistakenly updated
40350         by today's update-copyright run.  Reported by Eric Blake.
40351
40352         test-update-copyright: don't let envvar setting cause test failure
40353         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
40354
40355 2010-01-01  Bruno Haible  <bruno@clisp.org>
40356
40357         localename: Avoid gcc warning.
40358         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
40359         function if it is not used.
40360
40361 2010-01-01  Jim Meyering  <meyering@redhat.com>
40362
40363         update nearly all FSF copyright year lists to include 2010
40364         Use the same procedure as for 2009, outlined in
40365         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
40366
40367         version-etc: set COPYRIGHT_YEAR to 2010
40368         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
40369
40370 2009-12-31  Eric Blake  <ebb9@byu.net>
40371
40372         doc: correct availability of cygwin 1.5.x getopt
40373         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
40374         variables.
40375         * doc/posix-functions/opterr.texi (opterr): Likewise.
40376         * doc/posix-functions/optind.texi (optind): Likewise.
40377         * doc/posix-functions/optopt.texi (optopt): Likewise.
40378         * doc/posix-functions/tzname.texi (tzname): Likewise.
40379
40380         openat: update maintainer
40381         * modules/openat (Maintainer): Add myself.
40382
40383         utimens: avoid shadowing warning
40384         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
40385         buffers into one, to avoid shadowing, as well as avoiding a
40386         redundant stat.
40387         Reported by Jim Meyering.
40388
40389         test-dup2: avoid compiler warning
40390         * tests/test-dup2.c (is_inheritable): Only define if used.
40391
40392 2010-01-01  Bruno Haible  <bruno@clisp.org>
40393
40394         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
40395         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
40396         defined, use wctomb instead of wcrtomb.
40397
40398 2010-01-01  Bruno Haible  <bruno@clisp.org>
40399
40400         iconv: Reject native Solaris iconv.
40401         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
40402         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
40403
40404 2009-12-31  Bruno Haible  <bruno@clisp.org>
40405
40406         * tests/test-signal.c (main): Remove test of 'SIG'.
40407
40408 2009-12-31  Bruno Haible  <bruno@clisp.org>
40409
40410         spawn: Fix incomplete fix.
40411         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40412         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40413         warnings for GNULIB_POSIXCHECK again.
40414         Reported by Eric Blake.
40415
40416 2009-12-31  Bruno Haible  <bruno@clisp.org>
40417
40418         Avoid namespace pollution on glibc systems.
40419         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
40420         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
40421         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
40422         glibc systems.
40423
40424 2009-12-31  Bruno Haible  <bruno@clisp.org>
40425
40426         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
40427         (gl_REPLACE_WCHAR_H): Turn into a no-op.
40428         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
40429         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40430         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40431         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40432         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40433
40434 2009-12-31  Bruno Haible  <bruno@clisp.org>
40435
40436         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
40437         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
40438         afterwards.
40439
40440 2009-12-31  Bruno Haible  <bruno@clisp.org>
40441
40442         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
40443         SYS_UTSNAME_H.
40444
40445 2009-12-31  Bruno Haible  <bruno@clisp.org>
40446
40447         spawn: Fix misapplied patch.
40448         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
40449         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
40450         warnings for GNULIB_POSIXCHECK.
40451
40452 2009-12-31  Bruno Haible  <bruno@clisp.org>
40453
40454         times: Update after sys_times changed.
40455         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
40456         * modules/times (Files): Add it.
40457         (configure.ac): Invoke gl_FUNC_TIMES.
40458
40459 2009-12-31  Bruno Haible  <bruno@clisp.org>
40460
40461         Use AC_C_INLINE where necessary.
40462         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
40463         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
40464         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40465         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
40466         * m4/mbfile.m4 (gl_MBFILE): Likewise.
40467         * m4/mbiter.m4 (gl_MBITER): Likewise.
40468         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
40469         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40470         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
40471         * modules/u64 (configure.ac): Likewise.
40472
40473 2009-12-31  Bruno Haible  <bruno@clisp.org>
40474
40475         Use AC_C_INLINE instead of module 'inline' where possible.
40476         * modules/inline (Description): Clarify purpose.
40477         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
40478         * modules/count-one-bits (Depends-on): Remove inline.
40479         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
40480         * modules/openat (Depends-on): Remove inline.
40481         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
40482         instead of depending on module 'inline'.
40483         * modules/filevercmp (Depends-on, configure.ac): Likewise.
40484         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
40485         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
40486         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
40487         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
40488         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
40489         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
40490         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
40491         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
40492         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
40493         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
40494         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
40495         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
40496         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
40497         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
40498         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
40499         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
40500         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
40501         Likewise.
40502         * modules/unictype/property-ascii-hex-digit (Depends-on,
40503         configure.ac): Likewise.
40504         * modules/unictype/property-bidi-arabic-digit (Depends-on,
40505         configure.ac): Likewise.
40506         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
40507         configure.ac): Likewise.
40508         * modules/unictype/property-bidi-block-separator (Depends-on,
40509         configure.ac): Likewise.
40510         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
40511         configure.ac): Likewise.
40512         * modules/unictype/property-bidi-common-separator (Depends-on,
40513         configure.ac): Likewise.
40514         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
40515         Likewise.
40516         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
40517         configure.ac): Likewise.
40518         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
40519         configure.ac): Likewise.
40520         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
40521         configure.ac): Likewise.
40522         * modules/unictype/property-bidi-european-digit (Depends-on,
40523         configure.ac): Likewise.
40524         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
40525         configure.ac): Likewise.
40526         * modules/unictype/property-bidi-left-to-right (Depends-on,
40527         configure.ac): Likewise.
40528         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
40529         configure.ac): Likewise.
40530         * modules/unictype/property-bidi-other-neutral (Depends-on,
40531         configure.ac): Likewise.
40532         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
40533         Likewise.
40534         * modules/unictype/property-bidi-segment-separator (Depends-on,
40535         configure.ac): Likewise.
40536         * modules/unictype/property-bidi-whitespace (Depends-on,
40537         configure.ac): Likewise.
40538         * modules/unictype/property-combining (Depends-on, configure.ac):
40539         Likewise.
40540         * modules/unictype/property-composite (Depends-on, configure.ac):
40541         Likewise.
40542         * modules/unictype/property-currency-symbol (Depends-on,
40543         configure.ac): Likewise.
40544         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
40545         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
40546         Likewise.
40547         * modules/unictype/property-default-ignorable-code-point (Depends-on,
40548         configure.ac): Likewise.
40549         * modules/unictype/property-deprecated (Depends-on, configure.ac):
40550         Likewise.
40551         * modules/unictype/property-diacritic (Depends-on, configure.ac):
40552         Likewise.
40553         * modules/unictype/property-extender (Depends-on, configure.ac):
40554         Likewise.
40555         * modules/unictype/property-format-control (Depends-on, configure.ac):
40556         Likewise.
40557         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
40558         Likewise.
40559         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
40560         Likewise.
40561         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
40562         Likewise.
40563         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
40564         Likewise.
40565         * modules/unictype/property-hyphen (Depends-on, configure.ac):
40566         Likewise.
40567         * modules/unictype/property-id-continue (Depends-on, configure.ac):
40568         Likewise.
40569         * modules/unictype/property-id-start (Depends-on, configure.ac):
40570         Likewise.
40571         * modules/unictype/property-ideographic (Depends-on, configure.ac):
40572         Likewise.
40573         * modules/unictype/property-ids-binary-operator (Depends-on,
40574         configure.ac): Likewise.
40575         * modules/unictype/property-ids-trinary-operator (Depends-on,
40576         configure.ac): Likewise.
40577         * modules/unictype/property-ignorable-control (Depends-on,
40578         configure.ac): Likewise.
40579         * modules/unictype/property-iso-control (Depends-on, configure.ac):
40580         Likewise.
40581         * modules/unictype/property-join-control (Depends-on, configure.ac):
40582         Likewise.
40583         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
40584         Likewise.
40585         * modules/unictype/property-line-separator (Depends-on, configure.ac):
40586         Likewise.
40587         * modules/unictype/property-logical-order-exception (Depends-on,
40588         configure.ac): Likewise.
40589         * modules/unictype/property-lowercase (Depends-on, configure.ac):
40590         Likewise.
40591         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
40592         * modules/unictype/property-non-break (Depends-on, configure.ac):
40593         Likewise.
40594         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
40595         Likewise.
40596         * modules/unictype/property-numeric (Depends-on, configure.ac):
40597         Likewise.
40598         * modules/unictype/property-other-alphabetic (Depends-on,
40599         configure.ac): Likewise.
40600         * modules/unictype/property-other-default-ignorable-code-point
40601         (Depends-on, configure.ac): Likewise.
40602         * modules/unictype/property-other-grapheme-extend (Depends-on,
40603         configure.ac): Likewise.
40604         * modules/unictype/property-other-id-continue (Depends-on,
40605         configure.ac): Likewise.
40606         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
40607         Likewise.
40608         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
40609         Likewise.
40610         * modules/unictype/property-other-math (Depends-on, configure.ac):
40611         Likewise.
40612         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
40613         Likewise.
40614         * modules/unictype/property-paired-punctuation (Depends-on,
40615         configure.ac): Likewise.
40616         * modules/unictype/property-paragraph-separator (Depends-on,
40617         configure.ac): Likewise.
40618         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
40619         Likewise.
40620         * modules/unictype/property-pattern-white-space (Depends-on,
40621         configure.ac): Likewise.
40622         * modules/unictype/property-private-use (Depends-on, configure.ac):
40623         Likewise.
40624         * modules/unictype/property-punctuation (Depends-on, configure.ac):
40625         Likewise.
40626         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
40627         Likewise.
40628         * modules/unictype/property-radical (Depends-on, configure.ac):
40629         Likewise.
40630         * modules/unictype/property-sentence-terminal (Depends-on,
40631         configure.ac): Likewise.
40632         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
40633         Likewise.
40634         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
40635         * modules/unictype/property-terminal-punctuation (Depends-on,
40636         configure.ac): Likewise.
40637         * modules/unictype/property-titlecase (Depends-on, configure.ac):
40638         Likewise.
40639         * modules/unictype/property-unassigned-code-value (Depends-on,
40640         configure.ac): Likewise.
40641         * modules/unictype/property-unified-ideograph (Depends-on,
40642         configure.ac): Likewise.
40643         * modules/unictype/property-uppercase (Depends-on, configure.ac):
40644         Likewise.
40645         * modules/unictype/property-variation-selector (Depends-on,
40646         configure.ac): Likewise.
40647         * modules/unictype/property-white-space (Depends-on, configure.ac):
40648         Likewise.
40649         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
40650         Likewise.
40651         * modules/unictype/property-xid-start (Depends-on, configure.ac):
40652         Likewise.
40653         * modules/unictype/property-zero-width (Depends-on, configure.ac):
40654         Likewise.
40655         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
40656         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
40657         Likewise.
40658
40659 2009-12-31  Bruno Haible  <bruno@clisp.org>
40660
40661         Remove unnecessary AC_C_INLINE invocation.
40662         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
40663         since 2009-08-21.
40664
40665 2009-12-31  Jim Meyering  <meyering@redhat.com>
40666
40667         maint.mk: don't require explicit gpg_key_ID in cfg.mk
40668         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
40669         With this change, we can all remove the gpg_key_ID = ... definition
40670         from our respective cfg.mk files.
40671
40672         maint.mk: create announcement template in ~/, not in /tmp
40673         * top/maint.mk (emit_upload_commands): Adjust.
40674         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
40675         Remove temporary file, .ci-msg.
40676
40677 2009-12-31  Eric Blake  <ebb9@byu.net>
40678
40679         link-warning: always build headers with link warnings
40680         * modules/arpa_inet (Makefile.am): Always build replacement
40681         header.
40682         * modules/ctype (Makefile.am): Likewise.
40683         * modules/dirent (Makefile.am): Likewise.
40684         * modules/inttypes (Makefile.am): Likewise.
40685         * modules/langinfo (Makefile.am): Likewise.
40686         * modules/locale (Makefile.am): Likewise.
40687         * modules/spawn (Makefile.am): Likewise.
40688         * modules/sys_file (Makefile.am): Likewise.
40689         * modules/sys_ioctl (Makefile.am): Likewise.
40690         * modules/sys_select (Makefile.am): Likewise.
40691         * modules/sys_socket (Makefile.am): Likewise.
40692         * modules/sys_times (Makefile.am): Likewise.
40693         * modules/sys_utsname (Makefile.am): Likewise.
40694         * modules/sys_wait (Makefile.am): Likewise.
40695         * modules/wchar (Makefile.am): Likewise.
40696         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
40697         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
40698         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
40699         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
40700         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
40701         Likewise.
40702         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
40703         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
40704         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
40705         Likewise.
40706         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
40707         Likewise.
40708         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
40709         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
40710         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
40711         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
40712         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
40713         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40714         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40715         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
40716         (gl_WCHAR_H_DEFAULTS): Likewise.
40717
40718 2009-12-31  Eric Blake  <ebb9@byu.net>
40719
40720         signal, spawn: use link warnings
40721         * lib/signal.in.h (sigset_t): Make unconditional.
40722         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
40723         (sigpending, sigprocmask, sigaction): Add link warnings.
40724         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
40725         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
40726         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
40727         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
40728         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
40729         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
40730         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
40731         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
40732         (posix_spawn_file_actions_destroy)
40733         (posix_spawn_file_actions_addopen)
40734         (posix_spawn_file_actions_addclose)
40735         (posix_spawn_file_actions_adddup2): Likewise.
40736         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
40737         * tests/test-signal.c (main): Enhance test.
40738
40739         spawn: improve wrapper support
40740         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
40741         (gl_SPAWN_H_DEFAULTS): New defaults.
40742         * modules/spawn (Makefile.am): Substitute them.
40743         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
40744         Only declare if missing or broken.
40745
40746         sys_times, sys_utsname: use include_next
40747         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
40748         header.
40749         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
40750         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
40751         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
40752         * modules/sys_times (Depends-on): Add include_next.
40753         (Makefile.am): Substitute additional values.
40754         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
40755         * lib/sys_times.in.h (includes): Include native header, if
40756         available.
40757         * lib/sys_utsname.in.h (includes): Likewise.
40758         * tests/test-sys_times.c (main): Enhance test.
40759
40760         fdutimensat: revert prior patch
40761         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
40762         utimens.h.
40763         Reported by Bruno Haible.
40764
40765 2009-12-30  Eric Blake  <ebb9@byu.net>
40766
40767         sys_wait: drop link-warning dependency
40768         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
40769         link-warning efforts.
40770         * lib/sys_wait.in.h: Likewise.
40771
40772         fdutimensat: remove bogus dependency
40773         * modules/fdutimensat (Depends-on): Drop inline.
40774
40775         unistd: fix typo
40776         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
40777
40778 2009-12-30  Bruno Haible  <bruno@clisp.org>
40779
40780         Fix compilation error with Solaris cc.
40781         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
40782         * lib/unicase/u16-is-invariant.c: Likewise.
40783         * lib/unicase/u32-is-invariant.c: Likewise.
40784         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
40785
40786 2009-12-30  Bruno Haible  <bruno@clisp.org>
40787
40788         Fix test crash.
40789         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
40790         locales.
40791         Reported by Simon Josefsson <simon@josefsson.org>.
40792
40793 2009-12-30  Bruno Haible  <bruno@clisp.org>
40794
40795         Fix compilation error on most platforms.
40796         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
40797         Reported by Simon Josefsson <simon@josefsson.org>
40798         and Nelson H. F. Beebe <beebe@math.utah.edu>.
40799
40800 2009-12-30  Eric Blake  <ebb9@byu.net>
40801
40802         futimens, utimensat: work around ntfs-3g bug
40803         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
40804         a ctime bug is present, and expand workaround to cover ntfs-3g.
40805         * lib/utimens.c (fdutimens, lutimens): Likewise.
40806         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
40807         (validate_timespec): Adjust return value.
40808         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
40809         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40810         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
40811
40812 2009-12-29  Eric Blake  <ebb9@byu.net>
40813
40814         link-warning: make usage consistent
40815         * modules/ctype (Depends-on): Add link-warning.
40816         (Makefile.am): Update rules accordingly.
40817         * modules/langinfo (Depends-on, Makefile.am): Likewise.
40818         * modules/locale (Depends-on, Makefile.am): Likewise.
40819         * modules/sys_file (Makefile.am): Likewise.
40820         * modules/getopt-posix (Makefile.am): Delete unused link warning
40821         efforts.
40822         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
40823         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
40824         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
40825         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
40826
40827         stdio: remove unused variables
40828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
40829         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
40830         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
40831
40832         tests: test more substitute headers
40833         * modules/ctype-tests: New file.
40834         * modules/dirent-tests: Likewise.
40835         * modules/spawn-tests: Likewise.
40836         * modules/sys_file-tests: Likewise.
40837         * modules/sys_ioctl-tests: Likewise.
40838         * modules/sys_wait-tests: Likewise.
40839         * tests/test-ctype.c: Likewise.
40840         * tests/test-dirent.c: Likewise.
40841         * tests/test-spawn.c: Likewise.
40842         * tests/test-sys_file.c: Likewise.
40843         * tests/test-sys_ioctl.c: Likewise.
40844         * tests/test-sys_wait.c: Likewise.
40845         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
40846         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
40847         whether or not flock is in use.
40848
40849         tests: remove License section from module
40850         * modules/arpa_inet-tests: Remove unneeded section.
40851         * modules/byteswap-tests: Likewise.
40852         * modules/ceilf-tests: Likewise.
40853         * modules/ceill-tests: Likewise.
40854         * modules/crypto/des-tests: Likewise.
40855         * modules/crypto/gc-arcfour-tests: Likewise.
40856         * modules/crypto/gc-arctwo-tests: Likewise.
40857         * modules/crypto/gc-des-tests: Likewise.
40858         * modules/crypto/gc-hmac-md5-tests: Likewise.
40859         * modules/crypto/gc-hmac-sha1-tests: Likewise.
40860         * modules/crypto/gc-md2-tests: Likewise.
40861         * modules/crypto/gc-md4-tests: Likewise.
40862         * modules/crypto/gc-md5-tests: Likewise.
40863         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
40864         * modules/crypto/gc-rijndael-tests: Likewise.
40865         * modules/crypto/gc-sha1-tests: Likewise.
40866         * modules/crypto/gc-tests: Likewise.
40867         * modules/crypto/md2-tests: Likewise.
40868         * modules/crypto/md4-tests: Likewise.
40869         * modules/fcntl-h-tests: Likewise.
40870         * modules/floorf-tests: Likewise.
40871         * modules/floorl-tests: Likewise.
40872         * modules/frexp-nolibm-tests: Likewise.
40873         * modules/frexp-tests: Likewise.
40874         * modules/frexpl-nolibm-tests: Likewise.
40875         * modules/frexpl-tests: Likewise.
40876         * modules/getaddrinfo-tests: Likewise.
40877         * modules/inttypes-tests: Likewise.
40878         * modules/isfinite-tests: Likewise.
40879         * modules/isinf-tests: Likewise.
40880         * modules/ldexpl-tests: Likewise.
40881         * modules/locale-tests: Likewise.
40882         * modules/math-tests: Likewise.
40883         * modules/netdb-tests: Likewise.
40884         * modules/netinet_in-tests: Likewise.
40885         * modules/printf-frexp-tests: Likewise.
40886         * modules/printf-frexpl-tests: Likewise.
40887         * modules/priv-set-tests: Likewise.
40888         * modules/random_r-tests: Likewise.
40889         * modules/round-tests: Likewise.
40890         * modules/roundf-tests: Likewise.
40891         * modules/roundl-tests: Likewise.
40892         * modules/search-tests: Likewise.
40893         * modules/select-tests: Likewise.
40894         * modules/signal-tests: Likewise.
40895         * modules/stdbool-tests: Likewise.
40896         * modules/stddef-tests: Likewise.
40897         * modules/stdint-tests: Likewise.
40898         * modules/stdio-tests: Likewise.
40899         * modules/stdlib-tests: Likewise.
40900         * modules/string-tests: Likewise.
40901         * modules/strings-tests: Likewise.
40902         * modules/sys_select-tests: Likewise.
40903         * modules/sys_socket-tests: Likewise.
40904         * modules/sys_stat-tests: Likewise.
40905         * modules/sys_time-tests: Likewise.
40906         * modules/sys_utsname-tests: Likewise.
40907         * modules/sysexits-tests: Likewise.
40908         * modules/time-tests: Likewise.
40909         * modules/trunc-tests: Likewise.
40910         * modules/truncf-tests: Likewise.
40911         * modules/truncl-tests: Likewise.
40912         * modules/tsearch-tests: Likewise.
40913         * modules/unistd-tests: Likewise.
40914         * modules/wchar-tests: Likewise.
40915         * modules/wctype-tests: Likewise.
40916
40917         tests: fix license on several tests
40918         * tests/test-des.c: Update to GPLv3+.
40919         * tests/test-flock.c: Likewise.
40920         * tests/test-fsync.c: Likewise.
40921         * tests/test-futimens.h: Likewise.
40922         * tests/test-gc-arcfour.c: Likewise.
40923         * tests/test-gc-arctwo.c: Likewise.
40924         * tests/test-gc-des.c: Likewise.
40925         * tests/test-gc-hmac-md5.c: Likewise.
40926         * tests/test-gc-hmac-sha1.c: Likewise.
40927         * tests/test-gc-md2.c: Likewise.
40928         * tests/test-gc-md4.c: Likewise.
40929         * tests/test-gc-md5.c: Likewise.
40930         * tests/test-gc-pbkdf2-sha1.c: Likewise.
40931         * tests/test-gc-rijndael.c: Likewise.
40932         * tests/test-gc-sha1.c: Likewise.
40933         * tests/test-gc.c: Likewise.
40934         * tests/test-getcwd.c: Likewise.
40935         * tests/test-link.c: Likewise.
40936         * tests/test-link.h: Likewise.
40937         * tests/test-lutimens.h: Likewise.
40938         * tests/test-md2.c: Likewise.
40939         * tests/test-md4.c: Likewise.
40940         * tests/test-mkdir.h: Likewise.
40941         * tests/test-rename.c: Likewise.
40942         * tests/test-rename.h: Likewise.
40943         * tests/test-safe-alloc.c: Likewise.
40944         * tests/test-utimens-common.h: Likewise.
40945         * tests/test-utimens.h: Likewise.
40946
40947         maint: sync license texts
40948         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
40949         * doc/gpl-3.0.texi: Revert copyright year update.
40950         * doc/lgpl-3.0.texi: Likewise.
40951
40952 2009-12-29  Jim Meyering  <meyering@redhat.com>
40953
40954         update nearly all FSF copyright year lists to include 2009
40955         The files named by the following are exempted:
40956             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
40957               test -f "$dst" && { echo "$dst"; continue; }
40958               test -d "$dst" || continue
40959               echo "$dst"/$(basename "$src")
40960             done > exempt
40961             git ls-files tests/unictype >> exempt
40962         In the remaining files, convert to all-interval notation if
40963         - there is already at least one year interval like 2000-2003
40964         - the file is maintained by me
40965         - the file is in lib/uni*/, where that style already prevails
40966         Otherwise, use update-copyright's default.
40967
40968 2009-12-29  Simon Josefsson  <simon@josefsson.org>
40969         and Eric Blake  <ebb9@byu.net>
40970
40971         tests: don't require debug system() to pass
40972         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
40973         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40974         * tests/test-unlink.h (test_unlink_func): Likewise.
40975         * tests/test-fstatat.c (main): ...into callers.
40976         * tests/test-lstat.c (main): Likewise.
40977         * tests/test-rmdir.c (main): Likewise.
40978         * tests/test-unlink.c (main): Likewise.
40979         * tests/test-unlinkat.c (main): Likewise.
40980         * tests/test-areadlink-with-size.c (main): Don't require a
40981         debug-only system call to pass, aiding cross-testing to mingw.
40982         * tests/test-areadlink.c (main): Likewise.
40983         * tests/test-areadlinkat-with-size.c (main): Likewise.
40984         * tests/test-areadlinkat.c (main): Likewise.
40985         * tests/test-canonicalize-lgpl.c (main): Likewise.
40986         * tests/test-canonicalize.c (main): Likewise.
40987         * tests/test-chown.c (main): Likewise.
40988         * tests/test-fchownat.c (main): Likewise.
40989         * tests/test-lchown.c (main): Likewise.
40990         * tests/test-fdutimensat.c (main): Likewise.
40991         * tests/test-futimens.c (main): Likewise.
40992         * tests/test-link.c (main): Likewise.
40993         * tests/test-linkat.c (main): Likewise.
40994         * tests/test-mkdir.c (main): Likewise.
40995         * tests/test-mkdirat.c (main): Likewise.
40996         * tests/test-mkfifo.c (main): Likewise.
40997         * tests/test-mkfifoat.c (main): Likewise.
40998         * tests/test-mknod.c (main): Likewise.
40999         * tests/test-readlink.c (main): Likewise.
41000         * tests/test-remove.c (main): Likewise.
41001         * tests/test-rename.c (main): Likewise.
41002         * tests/test-renameat.c (main): Likewise.
41003         * tests/test-symlink.c (main): Likewise.
41004         * tests/test-symlinkat.c (main): Likewise.
41005         * tests/test-utimens.c (main): Likewise.
41006         * tests/test-utimensat.c (main): Likewise.
41007
41008 2009-12-29  Simon Josefsson  <simon@josefsson.org>
41009
41010         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
41011         on $(UNUSED_PARAMETER_H) to avoid build failure.
41012
41013 2009-12-28  Jim Meyering  <meyering@redhat.com>
41014
41015         update-copyright: you may specify a max. line length other than 72
41016         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
41017
41018         maint: use consistent FSF copyright line syntax
41019         * lib/posixtm.c: Add missing comma in FSF copyright line.
41020         * lib/posixtm.h: Likewise.
41021         * lib/getugroups.c: Add missing ", Inc.".
41022
41023         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
41024         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
41025         FSF copyright line.  Remove trailing blanks.
41026
41027 2009-12-28  Eric Blake  <ebb9@byu.net>
41028
41029         test-dup2: reduce dependencies
41030         * modules/cloexec (Configure.ac): Set witness.
41031         * modules/dup2-tests (Depends-on): Drop cloexec.
41032         * tests/test-dup2.c (main): Skip portion of test if cloexec module
41033         not present.
41034         Suggested by Bruno Haible.
41035
41036 2009-12-26  Bruno Haible  <bruno@clisp.org>
41037
41038         Remove an unneeded dependency.
41039         * modules/fseterr (Depends-on): Remove dup2.
41040
41041 2009-12-26  Eric Blake  <ebb9@byu.net>
41042
41043         tests: use macros.h in more places
41044         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
41045         (ASSERT_STREAM): Provide default of stderr.
41046         * tests/test-dirent-safer.c: Include macros.h, using alternate
41047         stream for assertions.
41048         * tests/test-dup-safer.c: Likewise.
41049         * tests/test-freopen-safer.c: Likewise.
41050         * tests/test-getopt.c: Likewise.
41051         * tests/test-openat-safer.c: Likewise.
41052         * tests/test-pipe.c: Likewise.
41053         * tests/test-popen-safer.c: Likewise.
41054         * modules/dirent-safer-tests (Files): Include macros.h.
41055         * modules/unistd-safer-tests (Files): Likewise.
41056         * modules/freopen-safer-tests (Files): Likewise.
41057         * modules/getopt-posix-tests (Files): Likewise.
41058         * modules/openat-safer-tests (Files): Likewise.
41059         * modules/pipe-tests (Files): Likewise.
41060
41061 2009-12-26  Bruno Haible  <bruno@clisp.org>
41062
41063         javacomp: Portability fix.
41064         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
41065         that it also works on Solaris.
41066
41067 2009-12-26  Bruno Haible  <bruno@clisp.org>
41068
41069         localename: Fix storage allocation of gl_locale_name_thread's result.
41070         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
41071         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
41072         all platforms that have 'uselocale'.
41073         (gl_locale_name_thread_unsafe): New function, extracted from
41074         gl_locale_name_thread.
41075         (gl_locale_name_thread): Call struniq on all platforms that have
41076         'uselocale'.
41077         * tests/test-localename.c (test_locale_name_thread): Check that the
41078         resulting strings are permanently allocated.
41079         * modules/localename-tests (Depends-on): Add strdup.
41080
41081 2009-12-26  Bruno Haible  <bruno@clisp.org>
41082
41083         * tests/test-localename.c (categories): Fill in the strings.
41084
41085 2009-12-26  Jim Meyering  <meyering@redhat.com>
41086
41087         isdir: complete the removal of m4/isdir.m4
41088         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
41089
41090         isdir: clean up, since at least grep still uses it
41091         * lib/isdir.c: Include "isdir.h".
41092         (S_ISDIR): Remove now-unneeded definition.
41093         * modules/isdir (Files): Add lib/isdir.h.
41094         * lib/isdir.h: New file, with declaration.
41095         * m4/isdir.m4: Remove file -- unneeded.
41096
41097 2009-12-25  Bruno Haible  <bruno@clisp.org>
41098
41099         selinux-h: Make generated .h files standalone.
41100         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
41101         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
41102         * lib/se-selinux.in.h: Likewise.
41103         * modules/selinux-h (Depends-on): Add unused-parameter.
41104         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
41105         selinux/selinux.h and selinux/context.h.
41106         Suggested by Eric Blake.
41107
41108 2009-12-25  Bruno Haible  <bruno@clisp.org>
41109
41110         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
41111         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
41112         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
41113         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
41114         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
41115
41116 2009-12-24  Bruno Haible  <bruno@clisp.org>
41117
41118         openat: Fix warning.
41119         * lib/openat-proc.c: Include <unistd.h>.
41120
41121 2009-12-24  Bruno Haible  <bruno@clisp.org>
41122
41123         New module 'unused-parameter'.
41124         * build-aux/unused-parameter.h: New file, extracted from earlier
41125         gnulib-common.m4.
41126         * modules/unused-parameter: New file.
41127         * lib/unistr.h: Include unused-parameter.h.
41128         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
41129         _GL_UNUSED.
41130         * modules/unistr/base (Depends-on): Add unused-parameter.
41131
41132 2009-12-24  Bruno Haible  <bruno@clisp.org>
41133
41134         Add missing dependencies to 'extensions' module.
41135         * m4/extensions.m4: Add comment.
41136         * modules/accept4 (Depends-on): Add extensions.
41137         * modules/dup3 (Depends-on): Likewise.
41138         * modules/fcntl (Depends-on): Likewise.
41139         * modules/futimens (Depends-on): Likewise.
41140         * modules/mknod (Depends-on): Likewise.
41141         * modules/pipe2 (Depends-on): Likewise.
41142         * modules/stat-time (Depends-on): Likewise.
41143         * modules/strcasestr-simple (Depends-on): Likewise.
41144         * modules/strsignal (Depends-on): Likewise.
41145         * modules/utimensat (Depends-on): Likewise.
41146         * modules/localcharset (Depends-on): Likewise. Needed because of
41147         gl_FCNTL_O_FLAGS.
41148         * modules/wcrtomb (Depends-on): Likewise. Needed because of
41149         AC_TYPE_MBSTATE_T.
41150         * modules/wcsnrtombs (Depends-on): Likewise.
41151         * modules/wcsrtombs (Depends-on): Likewise.
41152
41153 2009-12-24  Bruno Haible  <bruno@clisp.org>
41154
41155         binary-io: Avoid gcc warning due to SET_BINARY.
41156         * lib/binary-io.h (SET_BINARY): Cast the result to void.
41157         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
41158
41159 2009-12-24  Bruno Haible  <bruno@clisp.org>
41160
41161         Avoid future namespace pollution on glibc systems.
41162         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
41163         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
41164         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
41165         glibc systems.
41166
41167 2009-12-24  Bruno Haible  <bruno@clisp.org>
41168
41169         Refactor common macros used in tests.
41170         * tests/macros.h: New file.
41171         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
41172         and/or <stdlib.h>, if appropriate.
41173         (ASSERT, SIZEOF): Remove macros.
41174         * tests/test-areadlink-with-size.c: Likewise.
41175         * tests/test-areadlinkat.c: Likewise.
41176         * tests/test-areadlinkat-with-size.c: Likewise.
41177         * tests/test-argmatch.c: Likewise.
41178         * tests/test-argv-iter.c: Likewise.
41179         * tests/test-array-mergesort.c: Likewise.
41180         * tests/test-array_list.c: Likewise.
41181         * tests/test-array_oset.c: Likewise.
41182         * tests/test-avltree_list.c: Likewise.
41183         * tests/test-avltree_oset.c: Likewise.
41184         * tests/test-avltreehash_list.c: Likewise.
41185         * tests/test-base64.c: Likewise.
41186         * tests/test-binary-io.c: Likewise.
41187         * tests/test-bitrotate.c: Likewise.
41188         * tests/test-btowc.c: Likewise.
41189         * tests/test-byteswap.c: Likewise.
41190         * tests/test-c-ctype.c: Likewise.
41191         * tests/test-c-stack.c: Likewise.
41192         * tests/test-c-strcasecmp.c: Likewise.
41193         * tests/test-c-strcasestr.c: Likewise.
41194         * tests/test-c-strncasecmp.c: Likewise.
41195         * tests/test-c-strstr.c: Likewise.
41196         * tests/test-canonicalize-lgpl.c: Likewise.
41197         * tests/test-canonicalize.c: Likewise.
41198         * tests/test-carray_list.c: Likewise.
41199         * tests/test-ceilf1.c: Likewise.
41200         * tests/test-ceilf2.c: Likewise.
41201         * tests/test-ceill.c: Likewise.
41202         * tests/test-chown.c: Likewise.
41203         * tests/test-cloexec.c: Likewise.
41204         * tests/test-copy-acl.c: Likewise.
41205         * tests/test-copy-file.c: Likewise.
41206         * tests/test-count-one-bits.c: Likewise.
41207         * tests/test-dprintf-posix.c: Likewise.
41208         * tests/test-dup2.c: Likewise.
41209         * tests/test-dup3.c: Likewise.
41210         * tests/test-duplocale.c: Likewise.
41211         * tests/test-fbufmode.c: Likewise.
41212         * tests/test-fchdir.c: Likewise.
41213         * tests/test-fchownat.c: Likewise.
41214         * tests/test-fcntl-safer.c: Likewise.
41215         * tests/test-fcntl.c: Likewise.
41216         * tests/test-fdopendir.c: Likewise.
41217         * tests/test-fdutimensat.c: Likewise.
41218         * tests/test-fflush2.c: Likewise.
41219         * tests/test-file-has-acl.c: Likewise.
41220         * tests/test-filevercmp.c: Likewise.
41221         * tests/test-flock.c: Likewise.
41222         * tests/test-floorf1.c: Likewise.
41223         * tests/test-floorf2.c: Likewise.
41224         * tests/test-floorl.c: Likewise.
41225         * tests/test-fnmatch.c: Likewise.
41226         * tests/test-fopen.h: Likewise.
41227         * tests/test-fpending.c: Likewise.
41228         * tests/test-fprintf-posix.c: Likewise.
41229         * tests/test-fpurge.c: Likewise.
41230         * tests/test-freadable.c: Likewise.
41231         * tests/test-freadahead.c: Likewise.
41232         * tests/test-freading.c: Likewise.
41233         * tests/test-freadptr.c: Likewise.
41234         * tests/test-freadptr2.c: Likewise.
41235         * tests/test-freadseek.c: Likewise.
41236         * tests/test-freopen.c: Likewise.
41237         * tests/test-frexp.c: Likewise.
41238         * tests/test-frexpl.c: Likewise.
41239         * tests/test-fseek.c: Likewise.
41240         * tests/test-fseeko.c: Likewise.
41241         * tests/test-fstatat.c: Likewise.
41242         * tests/test-fstrcmp.c: Likewise.
41243         * tests/test-fsync.c: Likewise.
41244         * tests/test-ftell.c: Likewise.
41245         * tests/test-ftello.c: Likewise.
41246         * tests/test-func.c: Likewise.
41247         * tests/test-futimens.c: Likewise.
41248         * tests/test-fwritable.c: Likewise.
41249         * tests/test-fwriting.c: Likewise.
41250         * tests/test-getcwd.c: Likewise.
41251         * tests/test-getdate.c: Likewise.
41252         * tests/test-getdelim.c: Likewise.
41253         * tests/test-getdtablesize.c: Likewise.
41254         * tests/test-getgroups.c: Likewise.
41255         * tests/test-getline.c: Likewise.
41256         * tests/test-getndelim2.c: Likewise.
41257         * tests/test-glob.c: Likewise.
41258         * tests/test-hash.c: Likewise.
41259         * tests/test-i-ring.c: Likewise.
41260         * tests/test-iconv-utf.c: Likewise.
41261         * tests/test-iconv.c: Likewise.
41262         * tests/test-idpriv-drop.c: Likewise.
41263         * tests/test-idpriv-droptemp.c: Likewise.
41264         * tests/test-inet_ntop.c: Likewise.
41265         * tests/test-inet_pton.c: Likewise.
41266         * tests/test-isblank.c: Likewise.
41267         * tests/test-isfinite.c: Likewise.
41268         * tests/test-isinf.c: Likewise.
41269         * tests/test-isnan.c: Likewise.
41270         * tests/test-isnand.h: Likewise.
41271         * tests/test-isnanf.h: Likewise.
41272         * tests/test-isnanl.h: Likewise.
41273         * tests/test-lchown.c: Likewise.
41274         * tests/test-ldexpl.c: Likewise.
41275         * tests/test-link.c: Likewise.
41276         * tests/test-linkat.c: Likewise.
41277         * tests/test-linked_list.c: Likewise.
41278         * tests/test-linkedhash_list.c: Likewise.
41279         * tests/test-localename.c: Likewise.
41280         * tests/test-lseek.c: Likewise.
41281         * tests/test-lstat.c: Likewise.
41282         * tests/test-mbmemcasecmp.c: Likewise.
41283         * tests/test-mbmemcasecoll.c: Likewise.
41284         * tests/test-mbrtowc.c: Likewise.
41285         * tests/test-mbscasecmp.c: Likewise.
41286         * tests/test-mbscasestr1.c: Likewise.
41287         * tests/test-mbscasestr2.c: Likewise.
41288         * tests/test-mbscasestr3.c: Likewise.
41289         * tests/test-mbscasestr4.c: Likewise.
41290         * tests/test-mbschr.c: Likewise.
41291         * tests/test-mbscspn.c: Likewise.
41292         * tests/test-mbsinit.c: Likewise.
41293         * tests/test-mbsncasecmp.c: Likewise.
41294         * tests/test-mbsnrtowcs.c: Likewise.
41295         * tests/test-mbspbrk.c: Likewise.
41296         * tests/test-mbspcasecmp.c: Likewise.
41297         * tests/test-mbsrchr.c: Likewise.
41298         * tests/test-mbsrtowcs.c: Likewise.
41299         * tests/test-mbsspn.c: Likewise.
41300         * tests/test-mbsstr1.c: Likewise.
41301         * tests/test-mbsstr2.c: Likewise.
41302         * tests/test-mbsstr3.c: Likewise.
41303         * tests/test-memchr.c: Likewise.
41304         * tests/test-memchr2.c: Likewise.
41305         * tests/test-memcmp.c: Likewise.
41306         * tests/test-memmem.c: Likewise.
41307         * tests/test-memrchr.c: Likewise.
41308         * tests/test-mkdir.c: Likewise.
41309         * tests/test-mkdirat.c: Likewise.
41310         * tests/test-mkfifo.c: Likewise.
41311         * tests/test-mkfifoat.c: Likewise.
41312         * tests/test-mknod.c: Likewise.
41313         * tests/test-nanosleep.c: Likewise.
41314         * tests/test-nl_langinfo.c: Likewise.
41315         * tests/test-obstack-printf.c: Likewise.
41316         * tests/test-open.c: Likewise.
41317         * tests/test-openat.c: Likewise.
41318         * tests/test-pipe-filter-gi1.c: Likewise.
41319         * tests/test-pipe-filter-gi2-main.c: Likewise.
41320         * tests/test-pipe-filter-ii1.c: Likewise.
41321         * tests/test-pipe-filter-ii2-main.c: Likewise.
41322         * tests/test-pipe2.c: Likewise.
41323         * tests/test-popen.h: Likewise.
41324         * tests/test-posixtm.c: Likewise.
41325         * tests/test-pread.c: Likewise.
41326         * tests/test-printf-frexp.c: Likewise.
41327         * tests/test-printf-frexpl.c: Likewise.
41328         * tests/test-printf-posix.c: Likewise.
41329         * tests/test-priv-set.c: Likewise.
41330         * tests/test-quotearg.c: Likewise.
41331         * tests/test-random_r.c: Likewise.
41332         * tests/test-rawmemchr.c: Likewise.
41333         * tests/test-rbtree_list.c: Likewise.
41334         * tests/test-rbtree_oset.c: Likewise.
41335         * tests/test-rbtreehash_list.c: Likewise.
41336         * tests/test-readlink.c: Likewise.
41337         * tests/test-remove.c: Likewise.
41338         * tests/test-rename.c: Likewise.
41339         * tests/test-renameat.c: Likewise.
41340         * tests/test-rmdir.c: Likewise.
41341         * tests/test-round1.c: Likewise.
41342         * tests/test-roundf1.c: Likewise.
41343         * tests/test-roundl.c: Likewise.
41344         * tests/test-safe-alloc.c: Likewise.
41345         * tests/test-sameacls.c: Likewise.
41346         * tests/test-set-mode-acl.c: Likewise.
41347         * tests/test-setenv.c: Likewise.
41348         * tests/test-sigaction.c: Likewise.
41349         * tests/test-signbit.c: Likewise.
41350         * tests/test-sleep.c: Likewise.
41351         * tests/test-snprintf-posix.c: Likewise.
41352         * tests/test-snprintf.c: Likewise.
41353         * tests/test-sprintf-posix.c: Likewise.
41354         * tests/test-stat-time.c: Likewise.
41355         * tests/test-stat.c: Likewise.
41356         * tests/test-strcasestr.c: Likewise.
41357         * tests/test-strchrnul.c: Likewise.
41358         * tests/test-strerror.c: Likewise.
41359         * tests/test-striconv.c: Likewise.
41360         * tests/test-striconveh.c: Likewise.
41361         * tests/test-striconveha.c: Likewise.
41362         * tests/test-strsignal.c: Likewise.
41363         * tests/test-strstr.c: Likewise.
41364         * tests/test-strtod.c: Likewise.
41365         * tests/test-strverscmp.c: Likewise.
41366         * tests/test-symlink.c: Likewise.
41367         * tests/test-symlinkat.c: Likewise.
41368         * tests/test-trunc1.c: Likewise.
41369         * tests/test-trunc2.c: Likewise.
41370         * tests/test-truncf1.c: Likewise.
41371         * tests/test-truncf2.c: Likewise.
41372         * tests/test-truncl.c: Likewise.
41373         * tests/test-uname.c: Likewise.
41374         * tests/test-unlink.c: Likewise.
41375         * tests/test-unlinkat.c: Likewise.
41376         * tests/test-unsetenv.c: Likewise.
41377         * tests/test-usleep.c: Likewise.
41378         * tests/test-utimens.c: Likewise.
41379         * tests/test-utimensat.c: Likewise.
41380         * tests/test-vasnprintf-posix.c: Likewise.
41381         * tests/test-vasnprintf-posix2.c: Likewise.
41382         * tests/test-vasnprintf.c: Likewise.
41383         * tests/test-vasprintf-posix.c: Likewise.
41384         * tests/test-vasprintf.c: Likewise.
41385         * tests/test-vdprintf-posix.c: Likewise.
41386         * tests/test-vfprintf-posix.c: Likewise.
41387         * tests/test-vprintf-posix.c: Likewise.
41388         * tests/test-vsnprintf-posix.c: Likewise.
41389         * tests/test-vsnprintf.c: Likewise.
41390         * tests/test-vsprintf-posix.c: Likewise.
41391         * tests/test-wcrtomb.c: Likewise.
41392         * tests/test-wcsnrtombs.c: Likewise.
41393         * tests/test-wcsrtombs.c: Likewise.
41394         * tests/test-wctype.c: Likewise.
41395         * tests/test-wcwidth.c: Likewise.
41396         * tests/test-xfprintf-posix.c: Likewise.
41397         * tests/test-xmemdup0.c: Likewise.
41398         * tests/test-xprintf-posix.c: Likewise.
41399         * tests/test-xvasprintf.c: Likewise.
41400         * tests/unicase/test-locale-language.c: Likewise.
41401         * tests/unicase/test-mapping-part1.h: Likewise.
41402         * tests/unicase/test-predicate-part1.h: Likewise.
41403         * tests/unicase/test-u8-casecmp.c: Likewise.
41404         * tests/unicase/test-u8-casecoll.c: Likewise.
41405         * tests/unicase/test-u8-casefold.c: Likewise.
41406         * tests/unicase/test-u8-is-cased.c: Likewise.
41407         * tests/unicase/test-u8-is-casefolded.c: Likewise.
41408         * tests/unicase/test-u8-is-lowercase.c: Likewise.
41409         * tests/unicase/test-u8-is-titlecase.c: Likewise.
41410         * tests/unicase/test-u8-is-uppercase.c: Likewise.
41411         * tests/unicase/test-u8-tolower.c: Likewise.
41412         * tests/unicase/test-u8-totitle.c: Likewise.
41413         * tests/unicase/test-u8-toupper.c: Likewise.
41414         * tests/unicase/test-u16-casecmp.c: Likewise.
41415         * tests/unicase/test-u16-casecoll.c: Likewise.
41416         * tests/unicase/test-u16-casefold.c: Likewise.
41417         * tests/unicase/test-u16-is-cased.c: Likewise.
41418         * tests/unicase/test-u16-is-casefolded.c: Likewise.
41419         * tests/unicase/test-u16-is-lowercase.c: Likewise.
41420         * tests/unicase/test-u16-is-titlecase.c: Likewise.
41421         * tests/unicase/test-u16-is-uppercase.c: Likewise.
41422         * tests/unicase/test-u16-tolower.c: Likewise.
41423         * tests/unicase/test-u16-totitle.c: Likewise.
41424         * tests/unicase/test-u16-toupper.c: Likewise.
41425         * tests/unicase/test-u32-casecmp.c: Likewise.
41426         * tests/unicase/test-u32-casecoll.c: Likewise.
41427         * tests/unicase/test-u32-casefold.c: Likewise.
41428         * tests/unicase/test-u32-is-cased.c: Likewise.
41429         * tests/unicase/test-u32-is-casefolded.c: Likewise.
41430         * tests/unicase/test-u32-is-lowercase.c: Likewise.
41431         * tests/unicase/test-u32-is-titlecase.c: Likewise.
41432         * tests/unicase/test-u32-is-uppercase.c: Likewise.
41433         * tests/unicase/test-u32-tolower.c: Likewise.
41434         * tests/unicase/test-u32-totitle.c: Likewise.
41435         * tests/unicase/test-u32-toupper.c: Likewise.
41436         * tests/unicase/test-ulc-casecmp.c: Likewise.
41437         * tests/unicase/test-ulc-casecoll.c: Likewise.
41438         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41439         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
41440         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41441         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41442         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
41443         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
41444         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41445         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41446         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41447         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
41448         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41449         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41450         * tests/unictype/test-bidi_byname.c: Likewise.
41451         * tests/unictype/test-bidi_name.c: Likewise.
41452         * tests/unictype/test-bidi_of.c: Likewise.
41453         * tests/unictype/test-bidi_test.c: Likewise.
41454         * tests/unictype/test-block_list.c: Likewise.
41455         * tests/unictype/test-block_of.c: Likewise.
41456         * tests/unictype/test-block_test.c: Likewise.
41457         * tests/unictype/test-categ_and.c: Likewise.
41458         * tests/unictype/test-categ_and_not.c: Likewise.
41459         * tests/unictype/test-categ_byname.c: Likewise.
41460         * tests/unictype/test-categ_name.c: Likewise.
41461         * tests/unictype/test-categ_none.c: Likewise.
41462         * tests/unictype/test-categ_of.c: Likewise.
41463         * tests/unictype/test-categ_or.c: Likewise.
41464         * tests/unictype/test-categ_test_withtable.c: Likewise.
41465         * tests/unictype/test-combining.c: Likewise.
41466         * tests/unictype/test-decdigit.c: Likewise.
41467         * tests/unictype/test-digit.c: Likewise.
41468         * tests/unictype/test-mirror.c: Likewise.
41469         * tests/unictype/test-numeric.c: Likewise.
41470         * tests/unictype/test-pr_byname.c: Likewise.
41471         * tests/unictype/test-pr_test.c: Likewise.
41472         * tests/unictype/test-predicate-part1.h: Likewise.
41473         * tests/unictype/test-scripts.c: Likewise.
41474         * tests/unictype/test-sy_c_ident.c: Likewise.
41475         * tests/unictype/test-sy_java_ident.c: Likewise.
41476         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
41477         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
41478         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
41479         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
41480         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
41481         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
41482         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
41483         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
41484         * tests/uninorm/test-canonical-decomposition.c: Likewise.
41485         * tests/uninorm/test-compat-decomposition.c: Likewise.
41486         * tests/uninorm/test-composition.c: Likewise.
41487         * tests/uninorm/test-decomposing-form.c: Likewise.
41488         * tests/uninorm/test-decomposition.c: Likewise.
41489         * tests/uninorm/test-u8-nfc.c: Likewise.
41490         * tests/uninorm/test-u8-nfd.c: Likewise.
41491         * tests/uninorm/test-u8-nfkc.c: Likewise.
41492         * tests/uninorm/test-u8-nfkd.c: Likewise.
41493         * tests/uninorm/test-u8-normcmp.c: Likewise.
41494         * tests/uninorm/test-u8-normcoll.c: Likewise.
41495         * tests/uninorm/test-u16-nfc.c: Likewise.
41496         * tests/uninorm/test-u16-nfd.c: Likewise.
41497         * tests/uninorm/test-u16-nfkc.c: Likewise.
41498         * tests/uninorm/test-u16-nfkd.c: Likewise.
41499         * tests/uninorm/test-u16-normcmp.c: Likewise.
41500         * tests/uninorm/test-u16-normcoll.c: Likewise.
41501         * tests/uninorm/test-u32-nfc.c: Likewise.
41502         * tests/uninorm/test-u32-nfd.c: Likewise.
41503         * tests/uninorm/test-u32-nfkc.c: Likewise.
41504         * tests/uninorm/test-u32-nfkd.c: Likewise.
41505         * tests/uninorm/test-u32-normalize-big.c: Likewise.
41506         * tests/uninorm/test-u32-normcmp.c: Likewise.
41507         * tests/uninorm/test-u32-normcoll.c: Likewise.
41508         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
41509         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
41510         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
41511         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
41512         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
41513         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
41514         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
41515         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
41516         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
41517         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
41518         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
41519         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
41520         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
41521         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
41522         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
41523         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
41524         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
41525         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
41526         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
41527         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
41528         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
41529         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
41530         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
41531         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
41532         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
41533         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
41534         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
41535         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
41536         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
41537         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
41538         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
41539         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
41540         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
41541         * tests/uniwidth/test-u8-strwidth.c: Likewise.
41542         * tests/uniwidth/test-u8-width.c: Likewise.
41543         * tests/uniwidth/test-u16-strwidth.c: Likewise.
41544         * tests/uniwidth/test-u16-width.c: Likewise.
41545         * tests/uniwidth/test-u32-strwidth.c: Likewise.
41546         * tests/uniwidth/test-u32-width.c: Likewise.
41547         * tests/uniwidth/test-uc_width.c: Likewise.
41548         * tests/uniwidth/test-uc_width2.c: Likewise.
41549         * modules/acl-tests (Files): Add tests/macros.h.
41550         * modules/areadlink-tests (Files): Likewise.
41551         * modules/areadlink-with-size-tests (Files): Likewise.
41552         * modules/areadlinkat-tests (Files): Likewise.
41553         * modules/areadlinkat-with-size-tests (Files): Likewise.
41554         * modules/argmatch-tests (Files): Likewise.
41555         * modules/argv-iter-tests (Files): Likewise.
41556         * modules/array-list-tests (Files): Likewise.
41557         * modules/array-mergesort-tests (Files): Likewise.
41558         * modules/array-oset-tests (Files): Likewise.
41559         * modules/avltree-list-tests (Files): Likewise.
41560         * modules/avltree-oset-tests (Files): Likewise.
41561         * modules/avltreehash-list-tests (Files): Likewise.
41562         * modules/base64-tests (Files): Likewise.
41563         * modules/binary-io-tests (Files): Likewise.
41564         * modules/bitrotate-tests (Files): Likewise.
41565         * modules/btowc-tests (Files): Likewise.
41566         * modules/byteswap-tests (Files): Likewise.
41567         * modules/c-ctype-tests (Files): Likewise.
41568         * modules/c-stack-tests (Files): Likewise.
41569         * modules/c-strcase-tests (Files): Likewise.
41570         * modules/c-strcasestr-tests (Files): Likewise.
41571         * modules/c-strstr-tests (Files): Likewise.
41572         * modules/canonicalize-lgpl-tests (Files): Likewise.
41573         * modules/canonicalize-tests (Files): Likewise.
41574         * modules/carray-list-tests (Files): Likewise.
41575         * modules/ceilf-tests (Files): Likewise.
41576         * modules/ceill-tests (Files): Likewise.
41577         * modules/chown-tests (Files): Likewise.
41578         * modules/cloexec-tests (Files): Likewise.
41579         * modules/copy-file-tests (Files): Likewise.
41580         * modules/count-one-bits-tests (Files): Likewise.
41581         * modules/dprintf-posix-tests (Files): Likewise.
41582         * modules/dup2-tests (Files): Likewise.
41583         * modules/dup3-tests (Files): Likewise.
41584         * modules/duplocale-tests (Files): Likewise.
41585         * modules/fbufmode-tests (Files): Likewise.
41586         * modules/fchdir-tests (Files): Likewise.
41587         * modules/fcntl-safer-tests (Files): Likewise.
41588         * modules/fcntl-tests (Files): Likewise.
41589         * modules/fdopendir-tests (Files): Likewise.
41590         * modules/fdutimensat-tests (Files): Likewise.
41591         * modules/fflush-tests (Files): Likewise.
41592         * modules/filevercmp-tests (Files): Likewise.
41593         * modules/flock-tests (Files): Likewise.
41594         * modules/floorf-tests (Files): Likewise.
41595         * modules/floorl-tests (Files): Likewise.
41596         * modules/fnmatch-tests (Files): Likewise.
41597         * modules/fopen-safer-tests (Files): Likewise.
41598         * modules/fopen-tests (Files): Likewise.
41599         * modules/fpending-tests (Files): Likewise.
41600         * modules/fprintf-posix-tests (Files): Likewise.
41601         * modules/fpurge-tests (Files): Likewise.
41602         * modules/freadable-tests (Files): Likewise.
41603         * modules/freadahead-tests (Files): Likewise.
41604         * modules/freading-tests (Files): Likewise.
41605         * modules/freadptr-tests (Files): Likewise.
41606         * modules/freadseek-tests (Files): Likewise.
41607         * modules/freopen-tests (Files): Likewise.
41608         * modules/frexp-nolibm-tests (Files): Likewise.
41609         * modules/frexp-tests (Files): Likewise.
41610         * modules/frexpl-nolibm-tests (Files): Likewise.
41611         * modules/frexpl-tests (Files): Likewise.
41612         * modules/fseek-tests (Files): Likewise.
41613         * modules/fseeko-tests (Files): Likewise.
41614         * modules/fstrcmp-tests (Files): Likewise.
41615         * modules/fsync-tests (Files): Likewise.
41616         * modules/ftell-tests (Files): Likewise.
41617         * modules/ftello-tests (Files): Likewise.
41618         * modules/func-tests (Files): Likewise.
41619         * modules/futimens-tests (Files): Likewise.
41620         * modules/fwritable-tests (Files): Likewise.
41621         * modules/fwriting-tests (Files): Likewise.
41622         * modules/getcwd-tests (Files): Likewise.
41623         * modules/getdate-tests (Files): Likewise.
41624         * modules/getdelim-tests (Files): Likewise.
41625         * modules/getdtablesize-tests (Files): Likewise.
41626         * modules/getgroups-tests (Files): Likewise.
41627         * modules/getline-tests (Files): Likewise.
41628         * modules/getndelim2-tests (Files): Likewise.
41629         * modules/glob-tests (Files): Likewise.
41630         * modules/hash-tests (Files): Likewise.
41631         * modules/i-ring-tests (Files): Likewise.
41632         * modules/iconv-tests (Files): Likewise.
41633         * modules/iconv_open-utf-tests (Files): Likewise.
41634         * modules/idpriv-drop-tests (Files): Likewise.
41635         * modules/idpriv-droptemp-tests (Files): Likewise.
41636         * modules/inet_ntop-tests (Files): Likewise.
41637         * modules/inet_pton-tests (Files): Likewise.
41638         * modules/isblank-tests (Files): Likewise.
41639         * modules/isfinite-tests (Files): Likewise.
41640         * modules/isinf-tests (Files): Likewise.
41641         * modules/isnan-tests (Files): Likewise.
41642         * modules/isnand-nolibm-tests (Files): Likewise.
41643         * modules/isnand-tests (Files): Likewise.
41644         * modules/isnanf-nolibm-tests (Files): Likewise.
41645         * modules/isnanf-tests (Files): Likewise.
41646         * modules/isnanl-nolibm-tests (Files): Likewise.
41647         * modules/isnanl-tests (Files): Likewise.
41648         * modules/lchown-tests (Files): Likewise.
41649         * modules/ldexpl-tests (Files): Likewise.
41650         * modules/link-tests (Files): Likewise.
41651         * modules/linkat-tests (Files): Likewise.
41652         * modules/linked-list-tests (Files): Likewise.
41653         * modules/linkedhash-list-tests (Files): Likewise.
41654         * modules/localename-tests (Files): Likewise.
41655         * modules/lseek-tests (Files): Likewise.
41656         * modules/lstat-tests (Files): Likewise.
41657         * modules/mbmemcasecmp-tests (Files): Likewise.
41658         * modules/mbmemcasecoll-tests (Files): Likewise.
41659         * modules/mbrtowc-tests (Files): Likewise.
41660         * modules/mbscasecmp-tests (Files): Likewise.
41661         * modules/mbscasestr-tests (Files): Likewise.
41662         * modules/mbschr-tests (Files): Likewise.
41663         * modules/mbscspn-tests (Files): Likewise.
41664         * modules/mbsinit-tests (Files): Likewise.
41665         * modules/mbsncasecmp-tests (Files): Likewise.
41666         * modules/mbsnrtowcs-tests (Files): Likewise.
41667         * modules/mbspbrk-tests (Files): Likewise.
41668         * modules/mbspcasecmp-tests (Files): Likewise.
41669         * modules/mbsrchr-tests (Files): Likewise.
41670         * modules/mbsrtowcs-tests (Files): Likewise.
41671         * modules/mbsspn-tests (Files): Likewise.
41672         * modules/mbsstr-tests (Files): Likewise.
41673         * modules/memchr-tests (Files): Likewise.
41674         * modules/memchr2-tests (Files): Likewise.
41675         * modules/memcmp-tests (Files): Likewise.
41676         * modules/memmem-tests (Files): Likewise.
41677         * modules/memrchr-tests (Files): Likewise.
41678         * modules/mkdir-tests (Files): Likewise.
41679         * modules/mkfifo-tests (Files): Likewise.
41680         * modules/mkfifoat-tests (Files): Likewise.
41681         * modules/mknod-tests (Files): Likewise.
41682         * modules/nanosleep-tests (Files): Likewise.
41683         * modules/nl_langinfo-tests (Files): Likewise.
41684         * modules/obstack-printf-tests (Files): Likewise.
41685         * modules/open-tests (Files): Likewise.
41686         * modules/openat-tests (Files): Likewise.
41687         * modules/pipe-filter-gi-tests (Files): Likewise.
41688         * modules/pipe-filter-ii-tests (Files): Likewise.
41689         * modules/pipe2-tests (Files): Likewise.
41690         * modules/popen-safer-tests (Files): Likewise.
41691         * modules/popen-tests (Files): Likewise.
41692         * modules/posixtm-tests (Files): Likewise.
41693         * modules/pread-tests (Files): Likewise.
41694         * modules/printf-frexp-tests (Files): Likewise.
41695         * modules/printf-frexpl-tests (Files): Likewise.
41696         * modules/printf-posix-tests (Files): Likewise.
41697         * modules/priv-set-tests (Files): Likewise.
41698         * modules/quotearg-tests (Files): Likewise.
41699         * modules/random_r-tests (Files): Likewise.
41700         * modules/rawmemchr-tests (Files): Likewise.
41701         * modules/rbtree-list-tests (Files): Likewise.
41702         * modules/rbtree-oset-tests (Files): Likewise.
41703         * modules/rbtreehash-list-tests (Files): Likewise.
41704         * modules/readlink-tests (Files): Likewise.
41705         * modules/remove-tests (Files): Likewise.
41706         * modules/rename-tests (Files): Likewise.
41707         * modules/renameat-tests (Files): Likewise.
41708         * modules/rmdir-tests (Files): Likewise.
41709         * modules/round-tests (Files): Likewise.
41710         * modules/roundf-tests (Files): Likewise.
41711         * modules/roundl-tests (Files): Likewise.
41712         * modules/safe-alloc-tests (Files): Likewise.
41713         * modules/setenv-tests (Files): Likewise.
41714         * modules/sigaction-tests (Files): Likewise.
41715         * modules/signbit-tests (Files): Likewise.
41716         * modules/sleep-tests (Files): Likewise.
41717         * modules/snprintf-posix-tests (Files): Likewise.
41718         * modules/snprintf-tests (Files): Likewise.
41719         * modules/sprintf-posix-tests (Files): Likewise.
41720         * modules/stat-tests (Files): Likewise.
41721         * modules/stat-time-tests (Files): Likewise.
41722         * modules/strcasestr-tests (Files): Likewise.
41723         * modules/strchrnul-tests (Files): Likewise.
41724         * modules/strerror-tests (Files): Likewise.
41725         * modules/striconv-tests (Files): Likewise.
41726         * modules/striconveh-tests (Files): Likewise.
41727         * modules/striconveha-tests (Files): Likewise.
41728         * modules/strsignal-tests (Files): Likewise.
41729         * modules/strstr-tests (Files): Likewise.
41730         * modules/strtod-tests (Files): Likewise.
41731         * modules/strverscmp-tests (Files): Likewise.
41732         * modules/symlink-tests (Files): Likewise.
41733         * modules/symlinkat-tests (Files): Likewise.
41734         * modules/trunc-tests (Files): Likewise.
41735         * modules/truncf-tests (Files): Likewise.
41736         * modules/truncl-tests (Files): Likewise.
41737         * modules/uname-tests (Files): Likewise.
41738         * modules/unicase/cased-tests (Files): Likewise.
41739         * modules/unicase/ignorable-tests (Files): Likewise.
41740         * modules/unicase/locale-language-tests (Files): Likewise.
41741         * modules/unicase/tolower-tests (Files): Likewise.
41742         * modules/unicase/totitle-tests (Files): Likewise.
41743         * modules/unicase/toupper-tests (Files): Likewise.
41744         * modules/unicase/u8-casecmp-tests (Files): Likewise.
41745         * modules/unicase/u8-casecoll-tests (Files): Likewise.
41746         * modules/unicase/u8-casefold-tests (Files): Likewise.
41747         * modules/unicase/u8-is-cased-tests (Files): Likewise.
41748         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
41749         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
41750         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
41751         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
41752         * modules/unicase/u8-tolower-tests (Files): Likewise.
41753         * modules/unicase/u8-totitle-tests (Files): Likewise.
41754         * modules/unicase/u8-toupper-tests (Files): Likewise.
41755         * modules/unicase/u16-casecmp-tests (Files): Likewise.
41756         * modules/unicase/u16-casecoll-tests (Files): Likewise.
41757         * modules/unicase/u16-casefold-tests (Files): Likewise.
41758         * modules/unicase/u16-is-cased-tests (Files): Likewise.
41759         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
41760         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
41761         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
41762         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
41763         * modules/unicase/u16-tolower-tests (Files): Likewise.
41764         * modules/unicase/u16-totitle-tests (Files): Likewise.
41765         * modules/unicase/u16-toupper-tests (Files): Likewise.
41766         * modules/unicase/u32-casecmp-tests (Files): Likewise.
41767         * modules/unicase/u32-casecoll-tests (Files): Likewise.
41768         * modules/unicase/u32-casefold-tests (Files): Likewise.
41769         * modules/unicase/u32-is-cased-tests (Files): Likewise.
41770         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
41771         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
41772         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
41773         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
41774         * modules/unicase/u32-tolower-tests (Files): Likewise.
41775         * modules/unicase/u32-totitle-tests (Files): Likewise.
41776         * modules/unicase/u32-toupper-tests (Files): Likewise.
41777         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
41778         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
41779         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
41780         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
41781         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
41782         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
41783         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
41784         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
41785         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
41786         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
41787         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
41788         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
41789         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
41790         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
41791         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
41792         * modules/unictype/bidicategory-name-tests (Files): Likewise.
41793         * modules/unictype/bidicategory-of-tests (Files): Likewise.
41794         * modules/unictype/bidicategory-test-tests (Files): Likewise.
41795         * modules/unictype/block-list-tests (Files): Likewise.
41796         * modules/unictype/block-of-tests (Files): Likewise.
41797         * modules/unictype/block-test-tests (Files): Likewise.
41798         * modules/unictype/category-C-tests (Files): Likewise.
41799         * modules/unictype/category-Cc-tests (Files): Likewise.
41800         * modules/unictype/category-Cf-tests (Files): Likewise.
41801         * modules/unictype/category-Cn-tests (Files): Likewise.
41802         * modules/unictype/category-Co-tests (Files): Likewise.
41803         * modules/unictype/category-Cs-tests (Files): Likewise.
41804         * modules/unictype/category-L-tests (Files): Likewise.
41805         * modules/unictype/category-Ll-tests (Files): Likewise.
41806         * modules/unictype/category-Lm-tests (Files): Likewise.
41807         * modules/unictype/category-Lo-tests (Files): Likewise.
41808         * modules/unictype/category-Lt-tests (Files): Likewise.
41809         * modules/unictype/category-Lu-tests (Files): Likewise.
41810         * modules/unictype/category-M-tests (Files): Likewise.
41811         * modules/unictype/category-Mc-tests (Files): Likewise.
41812         * modules/unictype/category-Me-tests (Files): Likewise.
41813         * modules/unictype/category-Mn-tests (Files): Likewise.
41814         * modules/unictype/category-N-tests (Files): Likewise.
41815         * modules/unictype/category-Nd-tests (Files): Likewise.
41816         * modules/unictype/category-Nl-tests (Files): Likewise.
41817         * modules/unictype/category-No-tests (Files): Likewise.
41818         * modules/unictype/category-P-tests (Files): Likewise.
41819         * modules/unictype/category-Pc-tests (Files): Likewise.
41820         * modules/unictype/category-Pd-tests (Files): Likewise.
41821         * modules/unictype/category-Pe-tests (Files): Likewise.
41822         * modules/unictype/category-Pf-tests (Files): Likewise.
41823         * modules/unictype/category-Pi-tests (Files): Likewise.
41824         * modules/unictype/category-Po-tests (Files): Likewise.
41825         * modules/unictype/category-Ps-tests (Files): Likewise.
41826         * modules/unictype/category-S-tests (Files): Likewise.
41827         * modules/unictype/category-Sc-tests (Files): Likewise.
41828         * modules/unictype/category-Sk-tests (Files): Likewise.
41829         * modules/unictype/category-Sm-tests (Files): Likewise.
41830         * modules/unictype/category-So-tests (Files): Likewise.
41831         * modules/unictype/category-Z-tests (Files): Likewise.
41832         * modules/unictype/category-Zl-tests (Files): Likewise.
41833         * modules/unictype/category-Zp-tests (Files): Likewise.
41834         * modules/unictype/category-Zs-tests (Files): Likewise.
41835         * modules/unictype/category-and-not-tests (Files): Likewise.
41836         * modules/unictype/category-and-tests (Files): Likewise.
41837         * modules/unictype/category-byname-tests (Files): Likewise.
41838         * modules/unictype/category-name-tests (Files): Likewise.
41839         * modules/unictype/category-none-tests (Files): Likewise.
41840         * modules/unictype/category-of-tests (Files): Likewise.
41841         * modules/unictype/category-or-tests (Files): Likewise.
41842         * modules/unictype/category-test-withtable-tests (Files): Likewise.
41843         * modules/unictype/combining-class-tests (Files): Likewise.
41844         * modules/unictype/ctype-alnum-tests (Files): Likewise.
41845         * modules/unictype/ctype-alpha-tests (Files): Likewise.
41846         * modules/unictype/ctype-blank-tests (Files): Likewise.
41847         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
41848         * modules/unictype/ctype-digit-tests (Files): Likewise.
41849         * modules/unictype/ctype-graph-tests (Files): Likewise.
41850         * modules/unictype/ctype-lower-tests (Files): Likewise.
41851         * modules/unictype/ctype-print-tests (Files): Likewise.
41852         * modules/unictype/ctype-punct-tests (Files): Likewise.
41853         * modules/unictype/ctype-space-tests (Files): Likewise.
41854         * modules/unictype/ctype-upper-tests (Files): Likewise.
41855         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
41856         * modules/unictype/decimal-digit-tests (Files): Likewise.
41857         * modules/unictype/digit-tests (Files): Likewise.
41858         * modules/unictype/mirror-tests (Files): Likewise.
41859         * modules/unictype/numeric-tests (Files): Likewise.
41860         * modules/unictype/property-alphabetic-tests (Files): Likewise.
41861         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
41862         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
41863         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
41864         Likewise.
41865         * modules/unictype/property-bidi-block-separator-tests (Files):
41866         Likewise.
41867         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
41868         Likewise.
41869         * modules/unictype/property-bidi-common-separator-tests (Files):
41870         Likewise.
41871         * modules/unictype/property-bidi-control-tests (Files): Likewise.
41872         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
41873         Likewise.
41874         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
41875         Likewise.
41876         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
41877         Likewise.
41878         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
41879         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
41880         Likewise.
41881         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
41882         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
41883         Likewise.
41884         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
41885         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
41886         * modules/unictype/property-bidi-segment-separator-tests (Files):
41887         Likewise.
41888         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
41889         * modules/unictype/property-byname-tests (Files): Likewise.
41890         * modules/unictype/property-combining-tests (Files): Likewise.
41891         * modules/unictype/property-composite-tests (Files): Likewise.
41892         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
41893         * modules/unictype/property-dash-tests (Files): Likewise.
41894         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
41895         * modules/unictype/property-default-ignorable-code-point-tests (Files):
41896         Likewise.
41897         * modules/unictype/property-deprecated-tests (Files): Likewise.
41898         * modules/unictype/property-diacritic-tests (Files): Likewise.
41899         * modules/unictype/property-extender-tests (Files): Likewise.
41900         * modules/unictype/property-format-control-tests (Files): Likewise.
41901         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
41902         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
41903         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
41904         * modules/unictype/property-hex-digit-tests (Files): Likewise.
41905         * modules/unictype/property-hyphen-tests (Files): Likewise.
41906         * modules/unictype/property-id-continue-tests (Files): Likewise.
41907         * modules/unictype/property-id-start-tests (Files): Likewise.
41908         * modules/unictype/property-ideographic-tests (Files): Likewise.
41909         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
41910         * modules/unictype/property-ids-trinary-operator-tests (Files):
41911         Likewise.
41912         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
41913         * modules/unictype/property-iso-control-tests (Files): Likewise.
41914         * modules/unictype/property-join-control-tests (Files): Likewise.
41915         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
41916         * modules/unictype/property-line-separator-tests (Files): Likewise.
41917         * modules/unictype/property-logical-order-exception-tests (Files):
41918         Likewise.
41919         * modules/unictype/property-lowercase-tests (Files): Likewise.
41920         * modules/unictype/property-math-tests (Files): Likewise.
41921         * modules/unictype/property-non-break-tests (Files): Likewise.
41922         * modules/unictype/property-not-a-character-tests (Files): Likewise.
41923         * modules/unictype/property-numeric-tests (Files): Likewise.
41924         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
41925         * modules/unictype/property-other-default-ignorable-code-point-tests
41926         (Files): Likewise.
41927         * modules/unictype/property-other-grapheme-extend-tests (Files):
41928         Likewise.
41929         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
41930         * modules/unictype/property-other-id-start-tests (Files): Likewise.
41931         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
41932         * modules/unictype/property-other-math-tests (Files): Likewise.
41933         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
41934         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
41935         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
41936         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
41937         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
41938         * modules/unictype/property-private-use-tests (Files): Likewise.
41939         * modules/unictype/property-punctuation-tests (Files): Likewise.
41940         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
41941         * modules/unictype/property-radical-tests (Files): Likewise.
41942         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
41943         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
41944         * modules/unictype/property-space-tests (Files): Likewise.
41945         * modules/unictype/property-terminal-punctuation-tests (Files):
41946         Likewise.
41947         * modules/unictype/property-test-tests (Files): Likewise.
41948         * modules/unictype/property-titlecase-tests (Files): Likewise.
41949         * modules/unictype/property-unassigned-code-value-tests (Files):
41950         Likewise.
41951         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
41952         * modules/unictype/property-uppercase-tests (Files): Likewise.
41953         * modules/unictype/property-variation-selector-tests (Files): Likewise.
41954         * modules/unictype/property-white-space-tests (Files): Likewise.
41955         * modules/unictype/property-xid-continue-tests (Files): Likewise.
41956         * modules/unictype/property-xid-start-tests (Files): Likewise.
41957         * modules/unictype/property-zero-width-tests (Files): Likewise.
41958         * modules/unictype/scripts-tests (Files): Likewise.
41959         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
41960         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
41961         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
41962         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
41963         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
41964         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
41965         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
41966         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
41967         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
41968         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
41969         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
41970         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
41971         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
41972         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
41973         * modules/uninorm/composition-tests (Files): Likewise.
41974         * modules/uninorm/decomposing-form-tests (Files): Likewise.
41975         * modules/uninorm/decomposition-tests (Files): Likewise.
41976         * modules/uninorm/filter-tests (Files): Likewise.
41977         * modules/uninorm/nfc-tests (Files): Likewise.
41978         * modules/uninorm/nfd-tests (Files): Likewise.
41979         * modules/uninorm/nfkc-tests (Files): Likewise.
41980         * modules/uninorm/nfkd-tests (Files): Likewise.
41981         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
41982         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
41983         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
41984         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
41985         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
41986         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
41987         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
41988         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
41989         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
41990         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
41991         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
41992         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
41993         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
41994         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
41995         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
41996         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
41997         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
41998         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
41999         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
42000         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
42001         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
42002         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
42003         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
42004         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
42005         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
42006         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
42007         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
42008         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
42009         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
42010         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
42011         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
42012         * modules/uniwidth/u8-width-tests (Files): Likewise.
42013         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
42014         * modules/uniwidth/u16-width-tests (Files): Likewise.
42015         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
42016         * modules/uniwidth/u32-width-tests (Files): Likewise.
42017         * modules/uniwidth/width-tests (Files): Likewise.
42018         * modules/unlink-tests (Files): Likewise.
42019         * modules/unsetenv-tests (Files): Likewise.
42020         * modules/usleep-tests (Files): Likewise.
42021         * modules/utimens-tests (Files): Likewise.
42022         * modules/utimensat-tests (Files): Likewise.
42023         * modules/vasnprintf-posix-tests (Files): Likewise.
42024         * modules/vasnprintf-tests (Files): Likewise.
42025         * modules/vasprintf-posix-tests (Files): Likewise.
42026         * modules/vasprintf-tests (Files): Likewise.
42027         * modules/vdprintf-posix-tests (Files): Likewise.
42028         * modules/vfprintf-posix-tests (Files): Likewise.
42029         * modules/vprintf-posix-tests (Files): Likewise.
42030         * modules/vsnprintf-posix-tests (Files): Likewise.
42031         * modules/vsnprintf-tests (Files): Likewise.
42032         * modules/vsprintf-posix-tests (Files): Likewise.
42033         * modules/wcrtomb-tests (Files): Likewise.
42034         * modules/wcsnrtombs-tests (Files): Likewise.
42035         * modules/wcsrtombs-tests (Files): Likewise.
42036         * modules/wctype-tests (Files): Likewise.
42037         * modules/wcwidth-tests (Files): Likewise.
42038         * modules/xmemdup0-tests (Files): Likewise.
42039         * modules/xprintf-posix-tests (Files): Likewise.
42040         * modules/xvasprintf-tests (Files): Likewise.
42041
42042 2009-12-24  Eric Blake  <ebb9@byu.net>
42043
42044         test-nanosleep: fix typo
42045         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
42046         patch.
42047         Reported by Bruno Haible.
42048
42049 2009-12-24  Bruno Haible  <bruno@clisp.org>
42050
42051         Reduce namespace pollution on glibc systems.
42052         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
42053         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
42054         systems.
42055         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
42056         <getopt.h> on glibc systems.
42057         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
42058         systems.
42059         * lib/fcntl.c: Include <unistd.h> here instead.
42060
42061 2009-12-24  Bruno Haible  <bruno@clisp.org>
42062
42063         * lib/stdlib.in.h (includes): Fix typo in today's commit.
42064
42065 2009-12-24  Eric Blake  <ebb9@byu.net>
42066
42067         tests: add signature checks
42068         * tests/signature.h (SIGNATURE_CHECK): New file.
42069         * modules/atexit-tests (Files): Use it.
42070         * modules/btowc-tests (Files): Likewise.
42071         * modules/canonicalize-lgpl-tests (Files): Likewise.
42072         * modules/ceilf-tests (Files): Likewise.
42073         * modules/ceill-tests (Files): Likewise.
42074         * modules/chown-tests (Files): Likewise.
42075         * modules/dprintf-posix-tests (Files): Likewise.
42076         * modules/dup2-tests (Files): Likewise.
42077         * modules/dup3-tests (Files): Likewise.
42078         * modules/duplocale-tests (Files): Likewise.
42079         * modules/fchdir-tests (Files): Likewise.
42080         * modules/fcntl-tests (Files): Likewise.
42081         * modules/fdopendir-tests (Files): Likewise.
42082         * modules/fflush-tests (Files): Likewise.
42083         * modules/flock-tests (Files): Likewise.
42084         * modules/floorf-tests (Files): Likewise.
42085         * modules/floorl-tests (Files): Likewise.
42086         * modules/fnmatch-tests (Files): Likewise.
42087         * modules/fopen-tests (Files): Likewise.
42088         * modules/fprintf-posix-tests (Files): Likewise.
42089         * modules/freopen-tests (Files): Likewise.
42090         * modules/frexp-nolibm-tests (Files): Likewise.
42091         * modules/frexp-tests (Files): Likewise.
42092         * modules/frexpl-nolibm-tests (Files): Likewise.
42093         * modules/frexpl-tests (Files): Likewise.
42094         * modules/fseek-tests (Files): Likewise.
42095         * modules/fseeko-tests (Files): Likewise.
42096         * modules/fsync-tests (Files): Likewise.
42097         * modules/ftell-tests (Files): Likewise.
42098         * modules/ftello-tests (Files): Likewise.
42099         * modules/futimens-tests (Files): Likewise.
42100         * modules/getaddrinfo-tests (Files): Likewise.
42101         * modules/getcwd-tests (Files): Likewise.
42102         * modules/getdelim-tests (Files): Likewise.
42103         * modules/getdtablesize-tests (Files): Likewise.
42104         * modules/getgroups-tests (Files): Likewise.
42105         * modules/gethostname-tests (Files): Likewise.
42106         * modules/getline-tests (Files): Likewise.
42107         * modules/getopt-posix-tests (Files): Likewise.
42108         * modules/gettimeofday-tests (Files): Likewise.
42109         * modules/glob-tests (Files): Likewise.
42110         * modules/iconv-tests (Files): Likewise.
42111         * modules/inet_ntop-tests (Files): Likewise.
42112         * modules/inet_pton-tests (Files): Likewise.
42113         * modules/isblank-tests (Files): Likewise.
42114         * modules/lchown-tests (Files): Likewise.
42115         * modules/ldexpl-tests (Files): Likewise.
42116         * modules/link-tests (Files): Likewise.
42117         * modules/linkat-tests (Files): Likewise.
42118         * modules/lseek-tests (Files): Likewise.
42119         * modules/lstat-tests (Files): Likewise.
42120         * modules/mbrtowc-tests (Files): Likewise.
42121         * modules/mbsinit-tests (Files): Likewise.
42122         * modules/mbsnrtowcs-tests (Files): Likewise.
42123         * modules/mbsrtowcs-tests (Files): Likewise.
42124         * modules/memchr-tests (Files): Likewise.
42125         * modules/memcmp-tests (Files): Likewise.
42126         * modules/memmem-tests (Files): Likewise.
42127         * modules/memrchr-tests (Files): Likewise.
42128         * modules/mkdir-tests (Files): Likewise.
42129         * modules/mkfifo-tests (Files): Likewise.
42130         * modules/mkfifoat-tests (Files): Likewise.
42131         * modules/mknod-tests (Files): Likewise.
42132         * modules/nanosleep-tests (Files): Likewise.
42133         * modules/nl_langinfo-tests (Files): Likewise.
42134         * modules/obstack-printf-tests (Files): Likewise.
42135         * modules/open-tests (Files): Likewise.
42136         * modules/openat-tests (Files): Likewise.
42137         * modules/perror-tests (Files): Likewise.
42138         * modules/pipe2-tests (Files): Likewise.
42139         * modules/poll-tests (Files): Likewise.
42140         * modules/popen-tests (Files): Likewise.
42141         * modules/posix_spawn-tests (Files): Likewise.
42142         * modules/posix_spawnp-tests (Files): Likewise.
42143         * modules/pread-tests (Files): Likewise.
42144         * modules/printf-posix-tests (Files): Likewise.
42145         * modules/pty-tests (Files): Likewise.
42146         * modules/random_r-tests (Files): Likewise.
42147         * modules/rawmemchr-tests (Files): Likewise.
42148         * modules/readlink-tests (Files): Likewise.
42149         * modules/remove-tests (Files): Likewise.
42150         * modules/rename-tests (Files): Likewise.
42151         * modules/renameat-tests (Files): Likewise.
42152         * modules/rmdir-tests (Files): Likewise.
42153         * modules/round-tests (Files): Likewise.
42154         * modules/roundf-tests (Files): Likewise.
42155         * modules/roundl-tests (Files): Likewise.
42156         * modules/select-tests (Files): Likewise.
42157         * modules/setenv-tests (Files): Likewise.
42158         * modules/sigaction-tests (Files): Likewise.
42159         * modules/sleep-tests (Files): Likewise.
42160         * modules/snprintf-posix-tests (Files): Likewise.
42161         * modules/snprintf-tests (Files): Likewise.
42162         * modules/sprintf-posix-tests (Files): Likewise.
42163         * modules/stat-tests (Files): Likewise.
42164         * modules/strcasestr-tests (Files): Likewise.
42165         * modules/strchrnul-tests (Files): Likewise.
42166         * modules/strerror-tests (Files): Likewise.
42167         * modules/strsignal-tests (Files): Likewise.
42168         * modules/strstr-tests (Files): Likewise.
42169         * modules/strtod-tests (Files): Likewise.
42170         * modules/strverscmp-tests (Files): Likewise.
42171         * modules/symlink-tests (Files): Likewise.
42172         * modules/symlinkat-tests (Files): Likewise.
42173         * modules/times-tests (Files): Likewise.
42174         * modules/trunc-tests (Files): Likewise.
42175         * modules/truncf-tests (Files): Likewise.
42176         * modules/truncl-tests (Files): Likewise.
42177         * modules/tsearch-tests (Files): Likewise.
42178         * modules/uname-tests (Files): Likewise.
42179         * modules/unlink-tests (Files): Likewise.
42180         * modules/unsetenv-tests (Files): Likewise.
42181         * modules/usleep-tests (Files): Likewise.
42182         * modules/utimensat-tests (Files): Likewise.
42183         * modules/vasprintf-tests (Files): Likewise.
42184         * modules/vdprintf-posix-tests (Files): Likewise.
42185         * modules/vfprintf-posix-tests (Files): Likewise.
42186         * modules/vprintf-posix-tests (Files): Likewise.
42187         * modules/vsnprintf-posix-tests (Files): Likewise.
42188         * modules/vsnprintf-tests (Files): Likewise.
42189         * modules/vsprintf-posix-tests (Files): Likewise.
42190         * modules/wcrtomb-tests (Files): Likewise.
42191         * modules/wcsnrtombs-tests (Files): Likewise.
42192         * modules/wcsrtombs-tests (Files): Likewise.
42193         * modules/wcwidth-tests (Files): Likewise.
42194         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
42195         * tests/test-isinf.c (isinf): Likewise.
42196         * tests/test-isnan.c (isnan): Likewise.
42197         * tests/test-signbit.c (signbit): Likewise.
42198         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
42199         declaration, either as macro or with correct signature.
42200         (select): Ensure function under test is declared with correct
42201         signature in correct header.
42202         * tests/test-atexit.c (atexit): Likewise.
42203         * tests/test-btowc.c (btowc): Likewise.
42204         * tests/test-canonicalize-lgpl.c (realpath)
42205         (canonicalize_file_name): Likewise.
42206         * tests/test-ceilf1.c (ceilf): Likewise.
42207         * tests/test-ceill.c (ceill): Likewise.
42208         * tests/test-chown.c (chown): Likewise.
42209         * tests/test-dprintf-posix.c (dprintf): Likewise.
42210         * tests/test-dup2.c (dup2): Likewise.
42211         * tests/test-dup3.c (dup3): Likewise.
42212         * tests/test-duplocale.c (duplocale): Likewise.
42213         * tests/test-fchdir.c (fchdir): Likewise.
42214         * tests/test-fchownat.c (fchownat): Likewise.
42215         * tests/test-fcntl.c (fcntl): Likewise.
42216         * tests/test-fdopendir.c (fdopendir): Likewise.
42217         * tests/test-fflush.c (fflush): Likewise.
42218         * tests/test-flock.c (flock): Likewise.
42219         * tests/test-floorf1.c (floorf): Likewise.
42220         * tests/test-floorl.c (floorl): Likewise.
42221         * tests/test-fnmatch.c (fnmatch): Likewise.
42222         * tests/test-fopen.c (fopen): Likewise.
42223         * tests/test-fprintf-posix.c (fprintf): Likewise.
42224         * tests/test-freopen.c (freopen): Likewise.
42225         * tests/test-frexp.c (frexp): Likewise.
42226         * tests/test-frexpl.c (frexpl): Likewise.
42227         * tests/test-fseek.c (fseek): Likewise.
42228         * tests/test-fseeko.c (fseeko): Likewise.
42229         * tests/test-fstatat.c (fstatat): Likewise.
42230         * tests/test-fsync.c (fsync): Likewise.
42231         * tests/test-ftell.c (ftell): Likewise.
42232         * tests/test-ftello.c (ftello): Likewise.
42233         * tests/test-futimens.c (futimens): Likewise.
42234         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
42235         (gai_strerror): Likewise.
42236         * tests/test-getcwd.c (getcwd): Likewise.
42237         * tests/test-getdelim.c (getdelim): Likewise.
42238         * tests/test-getdtablesize.c (getdtablesize): Likewise.
42239         * tests/test-getgroups.c (getgroups): Likewise.
42240         * tests/test-gethostname.c (gethostname): Likewise.
42241         * tests/test-getline.c (getline): Likewise.
42242         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
42243         Likewise.
42244         * tests/test-gettimeofday.c (gettimeofday): Likewise.
42245         * tests/test-glob.c (glob, globfree): Likewise.
42246         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
42247         * tests/test-inet_ntop.c (inet_ntop): Likewise.
42248         * tests/test-inet_pton.c (inet_pton): Likewise.
42249         * tests/test-isblank.c (isblank): Likewise.
42250         * tests/test-lchown.c (lchown): Likewise.
42251         * tests/test-ldexpl.c (ldexpl): Likewise.
42252         * tests/test-link.c (link): Likewise.
42253         * tests/test-linkat.c (linkat): Likewise.
42254         * tests/test-lseek.c (lseek): Likewise.
42255         * tests/test-lstat.c (lstat): Likewise.
42256         * tests/test-mbrtowc.c (mbrtowc): Likewise.
42257         * tests/test-mbsinit.c (mbsinit): Likewise.
42258         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
42259         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
42260         * tests/test-memchr.c (memchr): Likewise.
42261         * tests/test-memcmp.c (memcmp): Likewise.
42262         * tests/test-memmem.c (memmem): Likewise.
42263         * tests/test-memrchr.c (memrchr): Likewise.
42264         * tests/test-mkdir.c (mkdir): Likewise.
42265         * tests/test-mkdirat.c (mkdirat): Likewise.
42266         * tests/test-mkfifo.c (mkfifo): Likewise.
42267         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
42268         * tests/test-mknod.c (mknod): Likewise.
42269         * tests/test-nanosleep.c (nanosleep): Likewise.
42270         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
42271         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
42272         Likewise.
42273         * tests/test-open.c (open): Likewise.
42274         * tests/test-openat.c (openat): Likewise.
42275         * tests/test-perror.c (perror): Likewise.
42276         * tests/test-pipe2.c (pipe2): Likewise.
42277         * tests/test-poll.c (poll): Likewise.
42278         * tests/test-popen.c (popen, pclose): Likewise.
42279         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
42280         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
42281         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
42282         (posix_spawn_file_actions_destroy)
42283         (posix_spawn_file_actions_addclose)
42284         (posix_spawn_file_actions_addopen)
42285         (posix_spawn_file_actions_adddup2): Likewise.
42286         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
42287         * tests/test-pread.c (pread): Likewise.
42288         * tests/test-printf-posix.c (printf): Likewise.
42289         * tests/test-pty.c (openpty, forkpty): Likewise.
42290         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
42291         (random_r): Likewise.
42292         * tests/test-rawmemchr.c (rawmemchr): Likewise.
42293         * tests/test-readlink.c (readlink): Likewise.
42294         * tests/test-remove.c (remove): Likewise.
42295         * tests/test-rename.c (rename): Likewise.
42296         * tests/test-renameat.c (renameat): Likewise.
42297         * tests/test-rmdir.c (rmdir): Likewise.
42298         * tests/test-round1.c (round): Likewise.
42299         * tests/test-roundf1.c (roundf): Likewise.
42300         * tests/test-roundl.c (roundl): Likewise.
42301         * tests/test-setenv.c (setenv): Likewise.
42302         * tests/test-sigaction.c (sigaction): Likewise.
42303         * tests/test-sleep.c (sleep): Likewise.
42304         * tests/test-snprintf.c (snprintf): Likewise.
42305         * tests/test-sprintf-posix.c (sprintf): Likewise.
42306         * tests/test-stat.c (stat): Likewise.
42307         * tests/test-stpncpy.c (stpncpy): Likewise.
42308         * tests/test-strcasestr.c (strcasestr): Likewise.
42309         * tests/test-strchrnul.c (strchrnul): Likewise.
42310         * tests/test-strerror.c (strerror): Likewise.
42311         * tests/test-strsignal.c (strsignal): Likewise.
42312         * tests/test-strstr.c (strstr): Likewise.
42313         * tests/test-strtod.c (strtod): Likewise.
42314         * tests/test-strverscmp.c (strverscmp): Likewise.
42315         * tests/test-symlink.c (symlink): Likewise.
42316         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
42317         * tests/test-times.c (times): Likewise.
42318         * tests/test-trunc1.c (trunc): Likewise.
42319         * tests/test-truncf1.c (truncf): Likewise.
42320         * tests/test-truncl.c (truncl): Likewise.
42321         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
42322         Likewise.
42323         * tests/test-uname.c (uname): Likewise.
42324         * tests/test-unlink.c (unlink): Likewise.
42325         * tests/test-unlinkat.c (unlinkat): Likewise.
42326         * tests/test-unsetenv.c (unsetenv): Likewise.
42327         * tests/test-usleep.c (usleep): Likewise.
42328         * tests/test-utimensat.c (utimensat): Likewise.
42329         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
42330         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
42331         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
42332         * tests/test-vprintf-posix.c (vprintf): Likewise.
42333         * tests/test-vsnprintf.c (vsnprintf): Likewise.
42334         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
42335         * tests/test-wcrtomb.c (wcrtomb): Likewise.
42336         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
42337         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
42338         * tests/test-wcwidth.c (wcwidth): Likewise.
42339
42340         build: pull in conditional headers during GNULIB_POSIXCHECK
42341         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
42342         definitions from any conditionally-included headers.
42343         * lib/stdlib.in.h (includes): Likewise.
42344         * lib/unistd.in.h (includes): Likewise.
42345
42346 2009-12-24  Bruno Haible  <bruno@clisp.org>
42347
42348         * tests/test-argv-iter.c: Include header file being tested immediately
42349         after config.h.
42350         * tests/test-base64.c: Likewise.
42351         * tests/test-flock.c: Likewise.
42352         * tests/test-fsync.c: Likewise.
42353         * tests/test-getdate.c: Likewise.
42354         * tests/test-getndelim2.c: Likewise.
42355         * tests/test-isfinite.c: Likewise.
42356         * tests/test-isinf.c: Likewise.
42357         * tests/test-strerror.c: Likewise.
42358         * tests/test-strsignal.c: Likewise.
42359
42360 2009-12-23  Eric Blake  <ebb9@byu.net>
42361
42362         unistd: work around cygwin bug
42363         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
42364         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
42365         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42366
42367 2009-12-23  Bruno Haible  <bruno@clisp.org>
42368
42369         localename: More tests.
42370         * tests/test-localename.c (SIZEOF): New macro.
42371         (categories): New variable.
42372         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
42373         test_locale_name_default): Add test w.r.t. thread locale.
42374         (test_locale_name_thread): New function.
42375         (main): Invoke it.
42376
42377         localename: Make aware of thread locale.
42378         * lib/localename.h (gl_locale_name_thread): New declaration.
42379         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
42380         behaviour with respect to thread locale.
42381         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
42382         <langinfo.h>, glthread/lock.h.
42383         (SIZE_BITS): New macro.
42384         (string_hash): New function.
42385         (struct hash_node): New type.
42386         (HASH_TABLE_SIZE): New macro.
42387         (struniq_hash_table, struniq_lock): New variables.
42388         (struniq): New function.
42389         (gl_locale_name_thread): New function.
42390         (gl_locale_name): Invoke it.
42391         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
42392         * modules/localename (Depends-on): Add lock.
42393         Reported by Mike Gran <spk121@yahoo.com>.
42394
42395 2009-12-23  Eric Blake  <ebb9@byu.net>
42396
42397         va-args: new module
42398         * modules/va-args: New file.
42399         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
42400         * MODULES.html.sh (Core language properties): Mention it.
42401
42402         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
42403         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
42404         named alias for __attribute__((__unused__)).
42405         * lib/chown.c: Update client.
42406         * lib/fchmodat.c: Likewise.
42407         * lib/fts.c: Likewise.
42408         * lib/getdate.y: Likewise.
42409         * lib/getgroups.c: Likewise.
42410         * lib/getopt.c: Likewise.
42411         * lib/getugroups.c: Likewise.
42412         * lib/mkdir.c: Likewise.
42413         * lib/mkfifo.c: Likewise.
42414         * lib/mkfifoat.c: Likewise.
42415         * lib/mknod.c: Likewise.
42416         * lib/mknodat.c: Likewise.
42417         * lib/readlink.c: Likewise.
42418         * lib/se-context.in.h: Likewise.
42419         * lib/se-selinux.in.h: Likewise.
42420         * lib/sockets.c: Likewise.
42421         * lib/symlink.c: Likewise.
42422         * lib/symlinkat.c: Likewise.
42423         * lib/unicodeio.c: Likewise.
42424         * lib/unistr.h: Likewise.
42425         * tests/test-areadlink.c: Likewise.
42426         * tests/test-areadlinkat.c: Likewise.
42427         * tests/test-filenamecat.c: Likewise.
42428         * tests/test-fseeko.c: Likewise.
42429         * tests/test-ftello.c: Likewise.
42430         * tests/test-getdate.c: Likewise.
42431         * tests/test-getgroups.c: Likewise.
42432         * tests/test-gethostname.c: Likewise.
42433         * tests/test-quotearg.c: Likewise.
42434         * tests/test-version-etc.c: Likewise.
42435         * tests/test-xalloc-die.c: Likewise.
42436         * tests/test-xfprintf-posix.c: Likewise.
42437         * tests/test-xprintf-posix.c: Likewise.
42438         * tests/test-xvasprintf.c: Likewise.
42439
42440         tests: avoid compiler warnings
42441         * tests/test-fcntl.c (main): Delete unused parameters.
42442         * tests/test-freopen-safer.c (main): Likewise.
42443         * tests/test-xalloc-die.c (main): Mark unused parameters.
42444         * tests/test-fseeko.c (main): Likewise.
42445         * tests/test-ftello.c (main): Likewise.
42446         * tests/test-nanosleep.c (main): Avoid declaration warning.
42447         * tests/test-sleep.c (main): Likewise.
42448         * tests/test-unsetenv.c (main): Silence warning about string
42449         literal.
42450         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
42451
42452 2009-12-23  Bruno Haible  <bruno@clisp.org>
42453
42454         * tests/test-localename.c (test_locale_name): New function, extracted
42455         from main. Also test mixed situations.
42456         (test_locale_name_posix, test_locale_name_environ,
42457         test_locale_name_default): New functions.
42458         (main): Invoke them all.
42459         * modules/localename-tests (configure.ac): Test for newlocale.
42460
42461 2009-12-23  Bruno Haible  <bruno@clisp.org>
42462
42463         unistd: Ensure getcwd gets declared before being overridden.
42464         * lib/unistd.in.h: Conditionally include <io.h>.
42465
42466 2009-12-22  Bruno Haible  <bruno@clisp.org>
42467
42468         wchar: Diagnose broken combination of glibc and gcc versions and flags.
42469         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
42470         (gl_WCHAR_H): Invoke it.
42471         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
42472         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
42473         Reported by Karl Berry <karl@freefriends.org>.
42474
42475 2009-12-22  Eric Blake  <ebb9@byu.net>
42476
42477         math, unistd: avoid redundant includes
42478         * lib/math.in.h (isnan): No need to re-include <math.h>.
42479         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
42480
42481         getsubopt: work around cygwin bug
42482         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
42483         avoid conflicting with system getsubopt.
42484         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
42485         bug.
42486
42487         getopt: synchronize from glibc
42488         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
42489         parameter order.  Adjust all callers.
42490         (_getopt_internal_r, main): Adjust quoting in error messages.
42491         Drop considerations for outdated POSIX 1003.2 error message.
42492         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
42493         callers.
42494         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
42495
42496         test-getopt: test stderr behavior
42497         * modules/getopt-posix-tests (Depends-on): Add dup2.
42498         * tests/test-getopt.c (ASSERT): Avoid stderr.
42499         (main): Move stderr to a temporary file.
42500         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
42501         Instead, add parameter to inform caller if output occurred.
42502         (test_getopt): Adjust all existing tests to expect silence, and
42503         add new tests of leading ":".
42504         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42505         glibc shortcomings with leading "-:" or "+:" in optstring.
42506         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42507         Likewise.
42508         * doc/posix-functions/getopt.texi (getopt): Likewise.
42509
42510         test-getopt: enhance test
42511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
42512         supports optind=0.
42513         * tests/test-getopt.c (OPTIND_MIN): Move...
42514         * tests/test-getopt.h (OPTIND_MIN): ...here.
42515         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
42516         Require that optind=0 works, since modern BSD supports it in
42517         addition to optreset, and since coreutils expects it.
42518         (test_getopt_long_only): New test.
42519         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
42520         glibc shortcomings with 'W;', and enforcement of optind=0.
42521         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
42522         Likewise.
42523
42524 2009-12-21  Bruno Haible  <bruno@clisp.org>
42525
42526         localename: Improvements for MacOS X and Cygwin.
42527         * lib/localename.h (gl_locale_name_environ): New declaration.
42528         * lib/localename.c (gl_locale_name_environ): New function, extracted from
42529         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
42530         (gl_locale_name_posix): Invoke it.
42531         (gl_locale_name_default): Add comments. Use Windows native API also on
42532         Cygwin.
42533
42534 2009-12-21  Bruno Haible  <bruno@clisp.org>
42535
42536         Update list of Win32 locale ids.
42537         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
42538         (LANG_SAMI): Renamed from LANG_SAAMI.
42539         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
42540         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
42541         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
42542         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
42543         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
42544         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
42545         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
42546         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
42547         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
42548         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
42549         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
42550         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
42551         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
42552         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
42553         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
42554         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
42555         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
42556         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
42557         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
42558         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
42559         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
42560         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
42561         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
42562         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
42563         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
42564         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
42565         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
42566         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
42567         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
42568         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
42569         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
42570         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
42571         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
42572         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
42573         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
42574         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
42575         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
42576         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
42577         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
42578         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
42579         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
42580         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
42581         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
42582         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
42583         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
42584         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
42585         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
42586         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
42587         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
42588         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
42589         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
42590         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
42591         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
42592         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
42593         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
42594         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
42595         Add more languages and countries for Sami, Sorbian. Add more countries
42596         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
42597         for Pashto. Change country for Syriac, Tswana.
42598
42599 2009-12-21  Eric Blake  <ebb9@byu.net>
42600
42601         test-utimens: avoid spurious failure
42602         * tests/test-chown.h (nap): Factor...
42603         * tests/nap.h: ...into new file.
42604         * tests/test-lchown.h (nap): Avoid duplication.
42605         * tests/test-utimens-common.h (nap): Use shared implementation,
42606         necessary on file systems with 1-second resolution.
42607         * modules/chown-tests (Files): Include new file.
42608         * modules/fdutimensat-tests (Files): Likewise.
42609         * modules/futimens-tests (Files): Likewise.
42610         * modules/lchown-tests (Files): Likewise.
42611         * modules/openat-tests (Files): Likewise.
42612         * modules/utimens-tests (Files): Likewise.
42613         * modules/utimensat-tests (Files): Likewise.
42614
42615 2009-12-19  Eric Blake  <ebb9@byu.net>
42616
42617         futimens, utimensat: work around Linux bug
42618         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
42619         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42620         * lib/utimensat.c (rpl_utimensat): Work around it.
42621         * lib/futimens.c (rpl_futimens): Adjust comment.
42622
42623         utimens: work around Linux ctime bug
42624         * lib/utimens.c (detect_ctime_bug): New helper function.
42625         (update_timespec): Differentiate between workaround needed for
42626         this bug vs. what is needed for systems that lack utimensat.
42627         (fdutimens, lutimens): Work around bug.
42628
42629         utimens: check for ctime update
42630         * tests/test-utimens-common.h (check_ctime): Define.
42631         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
42632         * tests/test-futimens.h (test_futimens): Likewise.
42633         * tests/test-lutimens.h (test_lutimens): Likewise.
42634         * doc/posix-functions/futimens.texi (futimens): Document the bug.
42635         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42636
42637 2009-12-19  Bruno Haible  <bruno@clisp.org>
42638
42639         dprintf-posix: Check against memory leak fixed on 2009-12-15.
42640         * tests/test-dprintf-posix2.sh: New file.
42641         * tests/test-dprintf-posix2.c: New file.
42642         * modules/dprintf-posix-tests (Files): Add them.
42643         (configure.ac): Check for getrlimit and setrlimit.
42644         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42645
42646 2009-12-19  Bruno Haible  <bruno@clisp.org>
42647
42648         fprintf-posix: Check against memory leak fixed on 2009-12-15.
42649         * tests/test-fprintf-posix3.sh: New file.
42650         * tests/test-fprintf-posix3.c: New file.
42651         * modules/fprintf-posix-tests (Files): Add them.
42652         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
42653
42654 2009-12-19  Eric Blake  <ebb9@byu.net>
42655
42656         dirfd: fix prototype
42657         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
42658         * lib/dirfd.c (dirfd): Likewise.
42659
42660         canonicalize: reduce memory usage
42661         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
42662         allocation to size.
42663         Reported by Solar Designer <solar@openwall.com>.
42664
42665 2009-12-19  Bruno Haible  <bruno@clisp.org>
42666
42667         New module attribute 'Applicability'.
42668         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
42669         * gnulib-tool: New option --extract-applicability.
42670         (func_usage): Document it.
42671         (sed_extract_prog): Recognize it.
42672         (func_get_applicability): New function.
42673         (func_import): Generalize handling of 'link-warning' module.
42674         * modules/link-warning (Applicability): New section.
42675         * modules/arg-nonnull (Applicability): New section.
42676         Repoted by Simon Josefsson <simon@josefsson.org>.
42677
42678 2009-12-19  Bruno Haible  <bruno@clisp.org>
42679
42680         fflush: tweak
42681         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
42682         * lib/fseeko.c (rpl_fseeko): Likewise.
42683
42684 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
42685
42686         * lib/gl_list.h: Fix typo in comment.
42687
42688 2009-12-16  Eric Blake  <ebb9@byu.net>
42689
42690         fcntl: use to simplify other modules
42691         * modules/cloexec (Depends-on): Add fcntl.
42692         * modules/fchdir (Depends-on): Likewise.
42693         * modules/fd-safer-flag (Depends-on): Likewise.
42694         * modules/unistd-safer (Depends-on): Likewise.
42695         * modules/dup3 (configure.ac): Set module indicator.
42696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
42697         missing.
42698         * lib/fchdir.c (_gl_register_dup): Fix comment.
42699         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
42700         * lib/dup-safer.c (dup_safer): Likewise.
42701         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
42702         * lib/dup3.c (dup3): Likewise.
42703         * tests/test-fchdir.c (main): Enhance test.
42704         Fixes a dup_cloexec bug reported by Ondřej Vašík.
42705
42706         fcntl: port portions of fcntl to mingw
42707         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
42708         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
42709         replacement for mingw.
42710         * modules/fcntl (Description): Update.
42711         (Depends-on): Add dup2.
42712         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
42713         * modules/fcntl-h (Makefile.am): Substitute it.
42714         * lib/fcntl.in.h (fcntl): Update declaration.
42715         (F_DUPFD, F_GETFD): New macros, when needed.
42716         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42717         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
42718         * tests/test-fcntl.c (check_flags, main): Enhance test for items
42719         we now guarantee.
42720
42721         fcntl: work around cygwin bug in F_DUPFD
42722         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
42723         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
42724         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
42725         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
42726         * doc/posix-functions/fcntl.texi (fcntl): Document it.
42727
42728         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
42729         * modules/fcntl (Files): List new files.
42730         (configure.ac): Run a test.
42731         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
42732         * lib/fcntl.c (rpl_fcntl): Likewise.
42733         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
42734         (gl_FCNTL_H): Always replace fcntl.h.
42735         * modules/fcntl-h (Makefile.am): Substitute witnesses.
42736         * lib/fcntl.in.h (fcntl): Declare replacement.
42737         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
42738         needed, plus a witness.
42739         * doc/posix-functions/fcntl.texi (fcntl): Document this.
42740         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42741         * tests/test-fcntl.c: New file.
42742         * modules/fcntl-tests: Likewise.
42743
42744         binary-io: avoid potential compilation warning
42745         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
42746         directives.
42747
42748         fflush: avoid compilation error on NetBSD
42749         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
42750         between off_t and fpos_t, since the latter is sometimes a struct.
42751         * lib/fseeko.c (rpl_fseeko): Likewise.
42752         Reported by Alexander Nasonov <alnsn@yandex.ru>.
42753
42754 2009-12-15  Eric Blake  <ebb9@byu.net>
42755
42756         fcntl-h, stdio, sys_ioctl: fix declarations
42757         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
42758         function must not take arguments.
42759         * lib/sys_ioctl.in.h (ioctl): Likewise.
42760         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
42761         (open): Add a link warning.
42762
42763 2009-12-15  Jim Meyering  <meyering@redhat.com>
42764
42765         areadlink, areadlink-with-size: relax license to LGPLv2+
42766         * modules/areadlink (License): Relax to LGPLv2+.
42767         * modules/areadlink-with-size (License): Likewise.
42768
42769 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
42770             Bruno Haible  <bruno@clisp.org>
42771
42772         *printf: Fix memory leak.
42773         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
42774         * lib/vfprintf.c (vfprintf): Likewise.
42775         * lib/dprintf.c (dprintf): Likewise.
42776         * lib/vdprintf.c (vdprintf): Likewise.
42777
42778 2009-12-14  Eric Blake  <ebb9@byu.net>
42779
42780         accept4: adjust module dependencies
42781         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
42782
42783         utimens: one more try at avoiding compiler warning
42784         * lib/utimens.c (lutimens): Lower scope of result.
42785
42786 2009-12-13  Bruno Haible  <bruno@clisp.org>
42787
42788         Move the malloc checking from module 'list' to new module 'xlist'.
42789         * modules/xlist: New file.
42790         * lib/gl_xlist.h: New file.
42791         * lib/gl_xlist.c: New file.
42792         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
42793         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
42794         gl_list_add_last, gl_list_add_before, gl_list_add_after,
42795         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
42796         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
42797         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
42798         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
42799         gl_sortedlist_nx_add): New declarations.
42800         (struct gl_list_implementation): Rename and change methods accordingly.
42801         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
42802         (gl_list_nx_create): Renamed from gl_list_create.
42803         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42804         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42805         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42806         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42807         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42808         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42809         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42810         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42811         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
42812         gl_list_create_empty.
42813         (gl_list_nx_create): Renamed from gl_list_create.
42814         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
42815         (gl_list_nx_set_at): Renamed from gl_list_set_at.
42816         (gl_list_nx_add_first): Renamed from gl_list_add_first.
42817         (gl_list_nx_add_last): Renamed from gl_list_add_last.
42818         (gl_list_nx_add_before): Renamed from gl_list_add_before.
42819         (gl_list_nx_add_after): Renamed from gl_list_add_after.
42820         (gl_list_nx_add_at): Renamed from gl_list_add_at.
42821         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
42822         * lib/gl_array_list.c: Don't include xalloc.h.
42823         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
42824         NULL upon out-of-memory.
42825         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
42826         out-of-memory.
42827         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
42828         Change return type to 'int'.
42829         (gl_array_nx_set_at): Renamed from gl_array_set_at.
42830         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42831         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
42832         upon out-of-memory.
42833         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
42834         upon out-of-memory.
42835         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
42836         upon out-of-memory.
42837         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
42838         upon out-of-memory.
42839         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
42840         out-of-memory.
42841         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
42842         Update.
42843         (gl_array_list_implementation): Update.
42844         * lib/gl_carray_list.c: Don't include xalloc.h.
42845         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
42846         Return NULL upon out-of-memory.
42847         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
42848         out-of-memory.
42849         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
42850         Change return type to 'int'.
42851         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
42852         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
42853         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
42854         upon out-of-memory.
42855         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
42856         upon out-of-memory.
42857         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
42858         out-of-memory.
42859         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
42860         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
42861         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
42862         Update.
42863         (gl_carray_list_implementation): Update.
42864         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
42865         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
42866         gl_linked_create_empty. Return NULL upon out-of-memory.
42867         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
42868         out-of-memory.
42869         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
42870         Change return type to 'int'. Return -1 upon out-of-memory.
42871         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
42872         out-of-memory.
42873         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
42874         upon out-of-memory.
42875         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
42876         upon out-of-memory.
42877         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
42878         NULL upon out-of-memory.
42879         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
42880         upon out-of-memory.
42881         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
42882         out-of-memory.
42883         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
42884         Update.
42885         * lib/gl_linked_list.c: Don't include xalloc.h.
42886         (gl_linked_list_implementation): Update.
42887         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
42888         (add_to_bucket): Change return type to 'int'.
42889         (gl_linkedhash_list_implementation): Update.
42890         * lib/gl_anytree_list1.h (free_subtree): New function.
42891         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
42892         gl_tree_create_empty. Return NULL upon out-of-memory.
42893         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
42894         Change return type to 'int'. Return -1 upon out-of-memory.
42895         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
42896         out-of-memory.
42897         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
42898         (gl_tree_remove_node): New function, moved here from
42899         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
42900         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
42901         Update.
42902         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
42903         malloc, not xmalloc. Return NULL upon out-of-memory.
42904         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42905         out-of-memory.
42906         (gl_tree_remove_node_from_tree): New function, extracted from
42907         gl_tree_remove_node.
42908         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42909         upon out-of-memory.
42910         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42911         out-of-memory.
42912         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42913         upon out-of-memory.
42914         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42915         upon out-of-memory.
42916         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42917         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
42918         not xmalloc. Return NULL upon out-of-memory.
42919         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
42920         out-of-memory.
42921         (gl_tree_remove_node_from_tree): New function, extracted from
42922         gl_tree_remove_node.
42923         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
42924         upon out-of-memory.
42925         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
42926         out-of-memory.
42927         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
42928         upon out-of-memory.
42929         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
42930         upon out-of-memory.
42931         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
42932         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
42933         gl_anytree_list1.h before gl_anyavltree_list2.h.
42934         (gl_avltree_list_implementation): Update.
42935         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
42936         gl_anytree_list1.h before gl_anyavltree_list2.h.
42937         (gl_rbtree_list_implementation): Update.
42938         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
42939         Change return type to 'int'. Return -1 upon out-of-memory. Use
42940         __builtin_expect.
42941         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
42942         (gl_avltreehash_list_implementation): Update.
42943         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
42944         (gl_rbtreehash_list_implementation): Update.
42945         * modules/array-list (Depends-on): Remove xalloc.
42946         * modules/carray-list (Depends-on): Likewise.
42947         * modules/linked-list (Depends-on): Likewise.
42948         * modules/linkedhash-list (Depends-on): Likewise.
42949         * modules/avltree-list (Depends-on): Likewise.
42950         * modules/rbtree-list (Depends-on): Likewise.
42951         * modules/avltreehash-list (Depends-on): Likewise.
42952         * modules/rbtreehash-list (Depends-on): Likewise.
42953
42954         * modules/xsublist: New file.
42955         * lib/gl_xsublist.h: New file.
42956         * lib/gl_xsublist.c: New file.
42957         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
42958         (gl_sublist_nx_create): New declaration.
42959         * lib/gl_sublist.c: Don't include xalloc.h.
42960         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
42961         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
42962         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
42963         Change return type to 'int'. Return -1 upon out-of-memory.
42964         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
42965         upon out-of-memory.
42966         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
42967         NULL upon out-of-memory.
42968         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
42969         upon out-of-memory.
42970         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
42971         NULL upon out-of-memory.
42972         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
42973         NULL upon out-of-memory.
42974         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
42975         upon out-of-memory.
42976         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
42977         (gl_sublist_list_implementation): Update.
42978         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
42979         upon out-of-memory.
42980         * modules/sublist (Depends-on): Remove xalloc.
42981
42982         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
42983         * tests/test-carray_list.c: Likewise.
42984         * tests/test-linked_list.c: Likewise.
42985         * tests/test-linkedhash_list.c: Likewise.
42986         * tests/test-avltree_list.c: Likewise.
42987         * tests/test-rbtree_list.c: Likewise.
42988         * tests/test-avltreehash_list.c: Likewise.
42989         * tests/test-rbtreehash_list.c: Likewise.
42990         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
42991         * modules/carray-list-tests (Makefile.am): Likewise.
42992         * modules/linked-list-tests (Makefile.am): Likewise.
42993         * modules/linkedhash-list-tests (Makefile.am): Likewise.
42994         * modules/avltree-list-tests (Makefile.am): Likewise.
42995         * modules/rbtree-list-tests (Makefile.am): Likewise.
42996         * modules/avltreehash-list-tests (Makefile.am): Likewise.
42997         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
42998
42999         * NEWS: Mention the changes.
43000
43001         * lib/clean-temp.c: Include gl_xlist.h.
43002         * modules/clean-temp (Depends-on): Add xlist.
43003
43004         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
43005         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
43006
43007         * tests/test-array_oset.c: Include gl_xlist.h.
43008         * modules/array-oset-tests (Depends-on): Add xlist.
43009
43010         Reported by José E. Marchesi <jemarch@gnu.org>.
43011
43012 2009-12-13  Bruno Haible  <bruno@clisp.org>
43013
43014         Move the malloc checking from module 'oset' to new module 'xoset'.
43015         * modules/xoset: New file.
43016         * lib/gl_xoset.h: New file.
43017         * lib/gl_xoset.c: New file.
43018         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
43019         declarations.
43020         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
43021         (struct gl_oset_implementation): Rename and change methods accordingly.
43022         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
43023         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
43024         'int'. Mark as __warn_unused_result__.
43025         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
43026         gl_oset_create_empty.
43027         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
43028         'int'.
43029         * lib/gl_array_oset.c: Don't include xalloc.h.
43030         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
43031         malloc, not xmalloc.
43032         (grow): Change return type to 'int'. Don't call xalloc_die.
43033         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
43034         to 'int'.
43035         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
43036         'int'.
43037         (gl_array_oset_implementation): Update.
43038         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
43039         gl_tree_create_empty.
43040         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
43041         'int'.
43042         * lib/gl_avltree_oset.c: Don't include xalloc.h.
43043         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
43044         xmalloc.
43045         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
43046         not xmalloc.
43047         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
43048         xmalloc.
43049         (gl_avltree_oset_implementation): Update.
43050         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
43051         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
43052         xmalloc.
43053         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
43054         not xmalloc.
43055         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
43056         xmalloc.
43057         (gl_rbtree_oset_implementation): Update.
43058         * modules/array-oset (Depends-on): Remove xalloc.
43059         * modules/avltree-oset (Depends-on): Likewise.
43060         * modules/rbtree-oset (Depends-on): Likewise.
43061         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
43062         * tests/test-avltree_oset.c: Likewise.
43063         * tests/test-rbtree_oset.c: Likewise.
43064         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
43065         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
43066         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43067         * NEWS: Mention the change.
43068
43069 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
43070
43071         maint.mk: allow a project to override release-prep commands
43072         * top/maint.mk (alpha, beta, stable): Move release-preparatory
43073         commands into a new rule.
43074         (release-prep): New rule.
43075         (release-prep-hook): New overridable variable.
43076
43077 2009-12-13  Bruno Haible  <bruno@clisp.org>
43078
43079         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
43080
43081 2009-12-13  Jim Meyering  <meyering@redhat.com>
43082
43083         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
43084         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
43085
43086 2009-12-12  Bruno Haible  <bruno@clisp.org>
43087
43088         duplocale: Tweak.
43089         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
43090
43091 2009-12-12  Karl Berry  <karl@gnu.org>
43092
43093         * config/srclist.txt (strtoll.c): tab changes, no more sync.
43094
43095 2009-12-12  Bruno Haible  <bruno@clisp.org>
43096
43097         * m4/po.m4: Undo incorrect untabification.
43098
43099 2009-12-12  Bruno Haible  <bruno@clisp.org>
43100
43101         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
43102         * modules/c-strtod (Depends-on): Add locale.
43103         * modules/c-strtold (Depends-on): Likewise.
43104
43105 2009-12-12  Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
43108
43109 2009-12-11  Eric Blake  <ebb9@byu.net>
43110
43111         setenv: relax requirement in light of POSIX ruling
43112         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
43113         not NULL.
43114         * tests/test-setenv.c (main): Relax test.
43115         * tests/test-unsetenv.c (main): Likewise.
43116         * doc/posix-functions/setenv.texi (setenv): Document this.
43117         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
43118
43119 2009-12-11  Bruno Haible  <bruno@clisp.org>
43120
43121         New module 'fd-safer-flag'.
43122         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
43123         * lib/dup-safer.c (dup_safer_flag): Remove function.
43124         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
43125         * lib/fd-safer.c (fd_safer_flag): Remove function.
43126         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
43127         * modules/cloexec (configure.ac): Drop indicator macro.
43128         * modules/fd-safer-flag: New file.
43129         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
43130         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
43131         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
43132
43133 2009-12-11  Bruno Haible  <bruno@clisp.org>
43134
43135         Tests for module 'nl_langinfo'.
43136         * modules/nl_langinfo-tests: New file.
43137         * tests/test-nl_langinfo.sh: New file.
43138         * tests/test-nl_langinfo.c: New file.
43139
43140         New module 'nl_langinfo'.
43141         * lib/nl_langinfo.c: New file.
43142         * m4/nl_langinfo.m4: New file.
43143         * modules/nl_langinfo: New file.
43144         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
43145
43146 2009-12-11  Bruno Haible  <bruno@clisp.org>
43147
43148         Tests for module 'langinfo'.
43149         * modules/langinfo-tests: New file.
43150         * tests/test-langinfo.c: New file.
43151
43152         New module 'langinfo'.
43153         * lib/langinfo.in.h: New file.
43154         * m4/langinfo_h.m4: New file.
43155         * modules/langinfo: New file.
43156         * doc/posix-headers/langinfo.texi: Mention the new module.
43157
43158 2009-12-11  Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/config.charset: Untabify.
43161
43162 2009-12-11  Bruno Haible  <bruno@clisp.org>
43163
43164         * modules/unistd-safer (configure.ac): Drop indicator macro.
43165
43166 2009-12-11  Bruno Haible  <bruno@clisp.org>
43167
43168         Move pipe2-safer code to its own file.
43169         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
43170         * lib/pipe-safer.c (pipe2_safer): Remove function.
43171         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
43172         (Makefile.am): Add it to lib_SOURCES.
43173
43174 2009-12-10  Bruno Haible  <bruno@clisp.org>
43175
43176         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
43177
43178 2009-12-10  Bruno Haible  <bruno@clisp.org>
43179
43180         Declare which arguments expect non-NULL values, for GCC and clang.
43181         * build-aux/arg-nonnull.h: New file.
43182         * modules/arg-nonnull: New file.
43183         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
43184         (inet_ntop, inet_pton): Use it.
43185         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
43186         (closedir, dirfd, opendir, scandir, alphasort): Use it.
43187         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
43188         (open, openat): Use it.
43189         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
43190         (fnmatch): Use it.
43191         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
43192         (getopt, getopt_long, getopt_long_only): Use it.
43193         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
43194         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
43195         Use it.
43196         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
43197         (iconv_open): Use it.
43198         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
43199         (strtoimax, strtoumax): Use it.
43200         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
43201         (duplocale): Use it.
43202         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
43203         (frexp, frexpl): Use it.
43204         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
43205         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
43206         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
43207         (tsearch, tfind, tdelete, twalk): Use it.
43208         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
43209         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
43210         sigpending): Use it.
43211         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
43212         (posix_spawn, posix_spawnp, posix_spawnattr_init,
43213         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
43214         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
43215         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
43216         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
43217         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
43218         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
43219         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
43220         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
43221         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
43222         Use it.
43223         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
43224         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
43225         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
43226         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
43227         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
43228         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
43229         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
43230         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
43231         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
43232         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
43233         strtoull, unsetenv): Use it.
43234         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
43235         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
43236         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
43237         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
43238         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
43239         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
43240         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
43241         (strcasecmp, strncasecmp): Use it.
43242         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
43243         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
43244         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
43245         rpl_setsockopt): Use it.
43246         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
43247         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
43248         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
43249         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
43250         (gettimeofday): Use it.
43251         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
43252         (times): Use it.
43253         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
43254         (uname): Use it.
43255         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
43256         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
43257         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
43258         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
43259         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
43260         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
43261         unlinkat, write): Use it.
43262         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
43263         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
43264         * lib/argv-iter.h: Include arg-nonnull.h.
43265         (_ATTRIBUTE_NONNULL_): Remove macro.
43266         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
43267         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
43268         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
43269         optimization.
43270         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
43271         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
43272         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
43273         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
43274         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
43275         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
43276         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
43277         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
43278         * modules/arpa_inet (Depends-on): Add arg-nonnull.
43279         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
43280         * modules/dirent (Depends-on): Add arg-nonnull.
43281         (Makefile.am): Insert arg-nonnull.h into dirent.h.
43282         * modules/fcntl-h (Depends-on): Add arg-nonnull.
43283         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
43284         * modules/fnmatch (Depends-on): Add arg-nonnull.
43285         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
43286         * modules/getopt-posix (Depends-on): Add arg-nonnull.
43287         (Makefile.am): Insert arg-nonnull.h into getopt.h.
43288         * modules/glob (Depends-on): Add arg-nonnull.
43289         (Makefile.am): Insert arg-nonnull.h into glob.h.
43290         * modules/iconv_open (Depends-on): Add arg-nonnull.
43291         (Makefile.am): Insert arg-nonnull.h into iconv.h.
43292         * modules/inttypes (Depends-on): Add arg-nonnull.
43293         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
43294         * modules/locale (Depends-on): Add arg-nonnull.
43295         (Makefile.am): Insert arg-nonnull.h into locale.h.
43296         * modules/math (Depends-on): Add arg-nonnull.
43297         (Makefile.am): Insert arg-nonnull.h into math.h.
43298         * modules/netdb (Depends-on): Add arg-nonnull.
43299         (Makefile.am): Insert arg-nonnull.h into netdb.h.
43300         * modules/search (Depends-on): Add arg-nonnull.
43301         (Makefile.am): Insert arg-nonnull.h into search.h.
43302         * modules/signal (Depends-on): Add arg-nonnull.
43303         (Makefile.am): Insert arg-nonnull.h into signal.h.
43304         * modules/spawn (Depends-on): Add arg-nonnull.
43305         (Makefile.am): Insert arg-nonnull.h into spawn.h.
43306         * modules/stdio (Depends-on): Add arg-nonnull.
43307         (Makefile.am): Insert arg-nonnull.h into stdio.h.
43308         * modules/stdlib (Depends-on): Add arg-nonnull.
43309         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
43310         * modules/string (Depends-on): Add arg-nonnull.
43311         (Makefile.am): Insert arg-nonnull.h into string.h.
43312         * modules/strings (Depends-on): Add arg-nonnull.
43313         (Makefile.am): Insert arg-nonnull.h into strings.h.
43314         * modules/sys_socket (Depends-on): Add arg-nonnull.
43315         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
43316         * modules/sys_stat (Depends-on): Add arg-nonnull.
43317         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
43318         * modules/sys_time (Depends-on): Add arg-nonnull.
43319         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
43320         * modules/sys_times (Depends-on): Add arg-nonnull.
43321         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
43322         * modules/sys_utsname (Depends-on): Add arg-nonnull.
43323         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
43324         * modules/time (Depends-on): Add arg-nonnull.
43325         (Makefile.am): Insert arg-nonnull.h into time.h.
43326         * modules/unistd (Depends-on): Add arg-nonnull.
43327         (Makefile.am): Insert arg-nonnull.h into unistd.h.
43328         * modules/wchar (Depends-on): Add arg-nonnull.
43329         (Makefile.am): Insert arg-nonnull.h into wchar.h.
43330         * modules/argv-iter (Depends-on): Add arg-nonnull.
43331         * tests/test-canonicalize.c (null_ptr): New function.
43332         (main): Use it.
43333         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
43334         (main): Use it.
43335         * tests/test-memmem.c (null_ptr): New function.
43336         (main): Use it.
43337         Reported by Jim Meyering.
43338
43339 2009-12-10  Bruno Haible  <bruno@clisp.org>
43340
43341         Use spaces for indentation, not tabs.
43342         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
43343         * m4/*.m4: Untabify.
43344         * build-aux/*.h: Untabify.
43345         * tests/**/*.[hc]: Untabify.
43346         * README: New section "Indent with spaces, not TABs", based on
43347         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
43348         * NEWS: Mention the change.
43349
43350 2009-12-10  Bruno Haible  <bruno@clisp.org>
43351
43352         pty test: Fix link error.
43353         * modules/pty-tests (Makefile.am): Add the default LDADD value to
43354         test_pty_LDADD.
43355
43356 2009-12-07  Simon Josefsson  <simon@josefsson.org>
43357
43358         * modules/pty: New file.
43359         * modules/pty-tests: New file.
43360         * m4/pty.m4: New file.
43361         * tests/test-pty.c: New file.
43362         * doc/glibc-headers/pty.texi: Modified.
43363         * doc/glibc-functions/forkpty.texi: Modified.
43364         * doc/glibc-functions/openpty.texi: Modified.
43365
43366 2009-12-10  Bruno Haible  <bruno@clisp.org>
43367
43368         Avoid syntax error in C++ mode.
43369         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
43370
43371 2009-12-10  Bruno Haible  <bruno@clisp.org>
43372
43373         Use sed with option -e.
43374         * gnulib-tool (func_version, func_emit_copyright_notice,
43375         func_emit_initmacro_end, func_import, func_create_testdir): Pass
43376         option -e to sed.
43377         * modules/link-warning (Makefile.am): Likewise.
43378
43379 2009-12-10  Jim Meyering  <meyering@redhat.com>
43380
43381         mgetgroups: do not write bytes beyond end of malloc'd buffer
43382         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
43383         username, we call getgroups with a one-element-shorter buffer,
43384         but still told it the length was original, max_n_groups.
43385
43386 2009-12-09  Eric Blake  <ebb9@byu.net>
43387
43388         cloexec: relax license
43389         * modules/cloexec (Maintainer): Add myself.
43390         (License): Use LGPL, not GPL.
43391
43392         link-warning: optimize generation
43393         * modules/link-warning (Makefile.am): Reduce process usage.
43394
43395 2009-12-09  Bruno Haible  <bruno@clisp.org>
43396
43397         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
43398         workaround was added on 2009-11-17.
43399
43400 2009-12-09  Jim Meyering  <meyering@redhat.com>
43401             Bruno Haible  <bruno@clisp.org>
43402
43403         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
43404         * modules/link-warning (Makefile.am): Make the comment-removing sed
43405         command more robust in the face of bootstrap-prepended comment lines.
43406
43407 2009-12-09  Bruno Haible  <bruno@clisp.org>
43408
43409         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
43410         most one group.
43411
43412 2009-12-09  Simon Josefsson <simon@josefsson.org>
43413             Bruno Haible  <bruno@clisp.org>
43414
43415         * build-aux/link-warning.h: Add copyright notice.
43416         * modules/link-warning (Makefile.am): Generate link-warning.h from
43417         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
43418         * NEWS: Mention change in link-warning module.
43419         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
43420         * modules/dirent (Makefile.am): Add dependency to dirent.h.
43421         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
43422         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
43423         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
43424         * modules/math (Makefile.am): Add dependency to math.h.
43425         * modules/search (Makefile.am): Add dependency to search.h.
43426         * modules/signal (Makefile.am): Add dependency to signal.h.
43427         * modules/spawn (Makefile.am): Add dependency to spawn.h.
43428         * modules/stdio (Makefile.am): Add dependency to stdio.h.
43429         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
43430         * modules/string (Makefile.am): Add dependency to string.h.
43431         * modules/strings (Makefile.am): Add dependency to strings.h.
43432         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
43433         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
43434         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
43435         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
43436         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
43437         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
43438         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
43439         * modules/unistd (Makefile.am): Add dependency to unistd.h.
43440         * modules/wchar (Makefile.am): Add dependency to wchar.h.
43441
43442 2009-12-09  Bruno Haible  <bruno@clisp.org>
43443
43444         fchdir: Optimize away rpl_fstat when possible.
43445         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
43446         REPLACE_OPEN_DIRECTORY.
43447         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
43448
43449 2009-12-09  Bruno Haible  <bruno@clisp.org>
43450
43451         * lib/fchdir.c: Update comment.
43452
43453 2009-12-09  Bruno Haible  <bruno@clisp.org>
43454
43455         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
43456
43457 2009-12-08  Eric Blake  <ebb9@byu.net>
43458
43459         fchdir: avoid memory leak on re-registration.
43460         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
43461
43462 2009-12-08  Jim Meyering  <meyering@redhat.com>
43463
43464         init.sh: avoid Solaris 10 /bin/sh portability problem
43465         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
43466         sourced script:
43467           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
43468           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
43469           bar
43470         tests/init.sh relied on that, accepting a --set-path=DIR argument,
43471         and two tests used that idiom.
43472         * tests/init.sh: Update suggested usage comments.
43473         (path_prepend_): New function, to be used in place
43474         of the --src-path=DIR option.
43475         (setup_): Move PATH-prepending code into path_prepend_.
43476         * tests/test-pread.sh: Adapt to new usage.
43477         * tests/test-xalloc-die.sh: Likewise.
43478
43479 2009-12-08  Simon Josefsson  <simon@josefsson.org>
43480
43481         * doc/gnulib.texi (Glibc pty.h): Add.
43482         * doc/glibc-functions/forkpty.texi: Add.
43483         * doc/glibc-functions/openpty.texi: Add.
43484         Suggested by Bruno Haible.
43485
43486 2009-12-08  Eric Blake  <ebb9@byu.net>
43487
43488         fchdir: fix logic bugs
43489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
43490         * tests/test-fchdir.c (main): Enhance test.
43491         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
43492         is in use.
43493
43494         dup2: fix logic bugs
43495         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
43496         REPLACE_DUP2 to decide when rpl_dup2 is needed.
43497         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
43498         exists.
43499         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
43500
43501 2009-12-07  Eric Blake  <ebb9@byu.net>
43502
43503         unlink: fix m4 detection
43504         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
43505
43506         unistd-safer: add unit test
43507         * modules/unistd-safer-tests: New file.
43508         * tests/test-dup-safer.c: Likewise.
43509         * tests/test-cloexec.c (setmode): Avoid compiler warning.
43510         * tests/test-dup2.c (setmode): Likewise.
43511         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
43512
43513         cloexec: preserve text vs. binary across dup_cloexec
43514         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
43515         mode.
43516         * modules/dup2-tests (Depends-on): Add binary-io.
43517         * modules/cloexec-tests (Depends-on): Likewise.
43518         * tests/test-dup2.c (setmode, is_mode): New helpers.
43519         (main): Add tests that translation mode is preserved.
43520         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
43521         Reported by Bruno Haible.
43522
43523         mgetgroups: reduce duplicate listings
43524         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
43525         resulting array.
43526         * tests/test-chown.h (test_chown): Simplify client.
43527         * tests/test-lchown.h (test_lchown): Likewise.
43528
43529 2009-12-06  Bruno Haible  <bruno@clisp.org>
43530
43531         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
43532         value.
43533
43534 2009-12-06  Bruno Haible  <bruno@clisp.org>
43535
43536         * lib/progname.c: Include stdio.h, stdlib.h.
43537         (set_program_name): Reject a NULL argument.
43538
43539 2009-12-05  Eric Blake  <ebb9@byu.net>
43540
43541         pipe2-safer: new module
43542         * modules/pipe2-safer: New file.
43543         * lib/unistd-safer.h (pipe2_safer): New prototype.
43544         * lib/unistd--.h (pipe2): New wrapper.
43545         * lib/pipe-safer.c (pipe2_safer): New function.
43546         * modules/pipe (Depends-on): Add pipe2-safer.
43547         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
43548
43549         stdlib-safer: preserve cloexec flag for mkostemp[s]
43550         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
43551         fd_safer_flag.
43552
43553         unistd-safer: allow preservation of cloexec status via flag
43554         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
43555         prototypes.
43556         * lib/dup-safer.c (dup_safer_flag): New function.
43557         * lib/fd-safer.c (fd_safer_flag): Likewise.
43558         * modules/cloexec (configure.ac): Set witness.
43559
43560         test-dup2: enhance test
43561         * modules/dup2-tests (Depends-on): Add cloexec.
43562         * tests/test-dup2.c (main): Enhance test.
43563
43564         cloexec: add dup_cloexec
43565         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
43566         header and comments.
43567         * lib/cloexec.c (set_cloexec_flag): Add comments.
43568         (dup_cloexec): New function, with mingw implementation borrowed
43569         from...
43570         * lib/w32spawn.h (dup_noinherit): ...here.
43571         * modules/execute (Depends-on): Add cloexec.
43572         * modules/pipe (Depends-on): Likewise.
43573         * modules/cloexec (Depends-on): Add dup2.
43574         * modules/cloexec-tests (Files): New file.
43575         * tests/test-cloexec.c: Likewise.
43576
43577         test-xalloc-die: fix test for mingw
43578         * modules/xalloc-die-tests (Files): Add tests/init.sh.
43579         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
43580         directory and .exe suffix off argv[0] output.
43581
43582         test-fseeko: fix test for mingw
43583         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
43584         than undefining fseek, so test will pass on mingw.
43585
43586 2009-12-05  Bruno Haible  <bruno@clisp.org>
43587
43588         * lib/progname.h (set_program_name): Clarify specification.
43589         * lib/progname.c (set_program_name): Likewise.
43590         Reported by Jim Meyering.
43591
43592 2009-12-05  Jim Meyering  <meyering@redhat.com>
43593
43594         maint.mk: backslash-escape parens in default regexp
43595         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
43596         backslash-escape the literal parentheses.
43597
43598         maint.mk: news-date-check: use grep -E
43599         * top/maint.mk (today): Define a Make variable, not a...
43600         (news-date-check): ...shell variable.
43601         (news-date-regexp): Use the Make variable.
43602         Use grep's -E option.  Change the failing diagnostic to mention
43603         the variable, $(news-date-regexp).
43604
43605 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
43606
43607         maintainer-makefile: allow customization of NEWS entry format
43608         * top/maint.mk (news-date-regexp): New overridable variable.
43609         (news-date-check): Use it.
43610
43611 2009-12-04  Eric Blake  <ebb9@byu.net>
43612
43613         mgetgroups: add xgetgroups, and avoid ENOSYS failures
43614         * lib/mgetgroups.h (xgetgroups): New prototype.
43615         * lib/mgetgroups.c (xgetgroups): New wrapper.
43616         (mgetgroups): Handle ENOSYS.
43617         * modules/mgetgroups (Depends-on): Add realloc.
43618         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
43619
43620         mgetgroups: avoid argument promotion issues with -1
43621         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
43622         for invalid gid_t.
43623         * tests/test-chown.h (getegid, test_chown): Likewise.
43624         * tests/test-lchown.h (getegid, test_lchown): Likewise.
43625
43626 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
43627
43628         exclude: Fix header file problems.
43629         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
43630
43631 2009-12-01  Jim Meyering  <meyering@redhat.com>
43632
43633         fts: fts_open: do not let an empty string cause immediate failure
43634         This is required in support of GNU rm, for which the command
43635         "rm A '' B" must process and remove both A and B, in spite of
43636         the empty string argument.
43637         * lib/fts.c (fts_open): Do not let the presence of an empty string
43638         cause fts_open to fail immediately.  Most fts-using tools must be
43639         able to process all arguments, in order, and can be expected to
43640         diagnose such arguments themselves.
43641
43642 2009-11-30  Eric Blake  <ebb9@byu.net>
43643
43644         utimens: fix compilation error
43645         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
43646         Declare variable at right scope.
43647
43648 2009-11-29  Jim Meyering  <meyering@redhat.com>
43649
43650         bootstrap: handle perl-5.11's changed --version output
43651         * build-aux/bootstrap (get_version): Handle perl separately,
43652         since perl-5.11's --version output is different.
43653
43654 2009-11-28  Jim Meyering  <meyering@redhat.com>
43655
43656         userspec: depend on the inttostr module, too
43657         * modules/userspec (Depends-on): Add inttostr.
43658
43659         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
43660         * lib/userspec.c (parse_with_separator): Do not accept a user ID
43661         number of MAXUID when it evaluates to (uid_t) -1.
43662         Likewise for group ID.  Reported by Matt McCutchen in
43663         <http://savannah.gnu.org/bugs/?28113>
43664
43665         userspec: reformat to use spaces, not TABs
43666         * lib/userspec.c: Expand TABs to spaces.
43667         Add Emacs' "indent-tabs-mode: nil" hint.
43668
43669 2009-11-27  Eric Blake  <ebb9@byu.net>
43670
43671         getopt-gnu: flush out another BSD bug
43672         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
43673         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
43674         flush out BSD bug.
43675         * tests/test-getopt.h (test_getopt): End lists with NULL.
43676         * tests/test-getopt_long.h (test_getopt_long): Likewise.
43677         (test_getopt_long_posix): Enhance test.
43678         * modules/getopt-posix-tests (Depends-on): Add stdbool.
43679         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
43680         getopt-gnu.
43681         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
43682         Likewise.
43683
43684 2009-11-27  Simon Josefsson  <simon@josefsson.org>
43685
43686         * modules/idpriv-droptemp-tests (Notice): Fix text.
43687
43688 2009-11-27  Jim Meyering  <meyering@redhat.com>
43689
43690         test-xalloc-die: avoid spurious failure due to libtool argv difference
43691         In a libtool-enabled project, this test would fail due to a difference
43692         in the emitted program name, e.g.,
43693         -test-xalloc-die: memory exhausted
43694         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
43695         Use program to avoid that.
43696         * modules/xalloc-die-tests (Depends-on): Add progname.
43697         * tests/test-xalloc-die.c: Include progname.h".
43698         (program_name): Remove decl.
43699         (main): Call set_program_name.
43700         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
43701
43702 2009-11-26  Richard Jones  <rjones@redhat.com>
43703
43704         w32sock: leave win32 error in place.
43705         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
43706
43707 2009-11-26  Eric Blake  <ebb9@byu.net>
43708
43709         init.sh: suggest to use skip_ and fail_ functions in comments
43710         * tests/init.sh: Add a sentence.
43711
43712 2009-11-25  Bruno Haible  <bruno@clisp.org>
43713
43714         init.sh: add documentation in comments
43715         * tests/init.sh: Add some developer and user documentation.
43716
43717 2009-11-26  Jim Meyering  <meyering@redhat.com>
43718
43719         init.sh: accommodate even those who specify bogus srcdir manually
43720         * tests/init.sh: Normally, srcdir is guaranteed by automake and
43721         configure-time tests to be sanitized, so that there is no need to
43722         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
43723         (with no double quotes) suffices.  However, since tests may be
43724         invoked manually, and since you may explicitly set srcdir to the
43725         name of a directory containing spaces, do quote its uses here.
43726         * tests/test-pread.sh: Likewise.
43727         Suggested by Bruno Haible.
43728
43729         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
43730         * tests/test-pread.sh: Write no data into the pipe, because
43731         test-pread actually reads none.  This avoids a diagnostic,
43732         "bash: echo: write error: Broken pipe", that arises in the unusual
43733         event something is ignoring SIGPIPE, and might be interpreted
43734         as some sort of failure.  Reported by Bruno Haible.
43735
43736 2009-11-25  Jim Meyering  <meyering@redhat.com>
43737
43738         test-pread: cover failure with ESPIPE and EINVAL
43739         * tests/test-pread.c (main): Test for failure, too.
43740         * tests/test-pread.sh: Invoke with stdin on a pipe.
43741         Suggested by Eric Blake.
43742
43743         pread: improvement and fix
43744         * modules/pread (Depends-on): Depend on lseek, for portability to
43745         e.g., mingw.  Suggested by Eric Blake.
43746         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
43747
43748         unistd.in.h: correct declaration of pread
43749         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
43750         Reported by Richard W.M. Jones.
43751
43752         test-pread.sh: distribute the test script
43753         * modules/pread-tests (Files): Include test-pread.sh.
43754
43755         test-pread.sh: clean up
43756         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
43757         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
43758         That is unnecessary, since it's always ".".
43759         Suggestion from Eric Blake.
43760
43761         test-pread.sh: make executable
43762         * tests/test-pread.sh: Set executable bit.
43763         Reported by Eric Blake.
43764
43765         correct typo in test-pread.sh
43766         * tests/test-pread.sh: Add #! line.
43767
43768         test pread
43769         * tests/test-pread.c: New file.
43770         * tests/test-pread.sh: Likewise.
43771         * modules/pread-tests: Likewise.
43772
43773         pread: new module
43774         * modules/pread: New file.
43775         * lib/unistd.in.h (pread): Define/declare.
43776         * lib/pread.c (pread): New file.
43777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
43778         * modules/unistd (Makefile.am): Substitute witnesses.
43779         * doc/posix-functions/pread.texi (pread): Update.
43780         * MODULES.html.sh: Add pread.
43781
43782 2009-11-25  Jim Meyering  <meyering@redhat.com>
43783
43784         tests/init.sh: new file to be used via most *.sh tests
43785         * tests/init.sh: New file.
43786
43787 2009-11-25  Eric Blake  <ebb9@byu.net>
43788
43789         utimens: work around older Linux failure with symlinks
43790         * lib/utimens.c (lutimensat_works_really): New variable.
43791         (fdutimens, lutimens): Use it to manage kernels that support
43792         nanosecond times on files, but not on symlinks.
43793         Reported by Ondřej Vašík.
43794
43795         utimes: fix configure grammar
43796         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
43797
43798 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
43799
43800         regex: Fix fastmap for multibyte character ranges.
43801         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
43802         characters when a multibyte character range is included.
43803
43804 2009-11-22  Andy Wingo  <wingo@pobox.com>
43805
43806         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
43807         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
43808
43809 2009-11-24  Bruno Haible  <bruno@clisp.org>
43810
43811         doc: Most *_l functions exist in MacOS X 10.5.
43812         * doc/posix-functions/duplocale.texi: Update platforms list.
43813         * doc/posix-functions/freelocale.texi: Likewise.
43814         * doc/posix-functions/newlocale.texi: Likewise.
43815         * doc/posix-functions/uselocale.texi: Likewise.
43816         * doc/posix-functions/isalnum_l.texi: Likewise.
43817         * doc/posix-functions/isalpha_l.texi: Likewise.
43818         * doc/posix-functions/isblank_l.texi: Likewise.
43819         * doc/posix-functions/iscntrl_l.texi: Likewise.
43820         * doc/posix-functions/isdigit_l.texi: Likewise.
43821         * doc/posix-functions/isgraph_l.texi: Likewise.
43822         * doc/posix-functions/islower_l.texi: Likewise.
43823         * doc/posix-functions/isprint_l.texi: Likewise.
43824         * doc/posix-functions/ispunct_l.texi: Likewise.
43825         * doc/posix-functions/isspace_l.texi: Likewise.
43826         * doc/posix-functions/isupper_l.texi: Likewise.
43827         * doc/posix-functions/iswalnum_l.texi: Likewise.
43828         * doc/posix-functions/iswalpha_l.texi: Likewise.
43829         * doc/posix-functions/iswblank_l.texi: Likewise.
43830         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43831         * doc/posix-functions/iswctype_l.texi: Likewise.
43832         * doc/posix-functions/iswdigit_l.texi: Likewise.
43833         * doc/posix-functions/iswgraph_l.texi: Likewise.
43834         * doc/posix-functions/iswlower_l.texi: Likewise.
43835         * doc/posix-functions/iswprint_l.texi: Likewise.
43836         * doc/posix-functions/iswpunct_l.texi: Likewise.
43837         * doc/posix-functions/iswspace_l.texi: Likewise.
43838         * doc/posix-functions/iswupper_l.texi: Likewise.
43839         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43840         * doc/posix-functions/isxdigit_l.texi: Likewise.
43841         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
43842         * doc/posix-functions/strcasecmp_l.texi: Likewise.
43843         * doc/posix-functions/strcoll_l.texi: Likewise.
43844         * doc/posix-functions/strfmon_l.texi: Likewise.
43845         * doc/posix-functions/strftime_l.texi: Likewise.
43846         * doc/posix-functions/strncasecmp_l.texi: Likewise.
43847         * doc/posix-functions/strxfrm_l.texi: Likewise.
43848         * doc/posix-functions/tolower_l.texi: Likewise.
43849         * doc/posix-functions/toupper_l.texi: Likewise.
43850         * doc/posix-functions/towctrans_l.texi: Likewise.
43851         * doc/posix-functions/towlower_l.texi: Likewise.
43852         * doc/posix-functions/towupper_l.texi: Likewise.
43853         * doc/posix-functions/wcscoll_l.texi: Likewise.
43854         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43855         * doc/posix-functions/wctrans_l.texi: Likewise.
43856         * doc/posix-functions/wctype_l.texi: Likewise.
43857         * doc/glibc-functions/strptime_l.texi: Likewise.
43858         * doc/glibc-functions/strtod_l.texi: Likewise.
43859         * doc/glibc-functions/strtof_l.texi: Likewise.
43860         * doc/glibc-functions/strtol_l.texi: Likewise.
43861         * doc/glibc-functions/strtold_l.texi: Likewise.
43862         * doc/glibc-functions/strtoll_l.texi: Likewise.
43863         * doc/glibc-functions/strtoul_l.texi: Likewise.
43864         * doc/glibc-functions/strtoull_l.texi: Likewise.
43865         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43866         * doc/glibc-functions/wcstod_l.texi: Likewise.
43867         * doc/glibc-functions/wcstof_l.texi: Likewise.
43868         * doc/glibc-functions/wcstol_l.texi: Likewise.
43869         * doc/glibc-functions/wcstold_l.texi: Likewise.
43870         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43871         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43872         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43873
43874 2009-11-24  Bruno Haible  <bruno@clisp.org>
43875
43876         duplocale: Fix logic bug.
43877         * lib/duplocale.c: Don't include <langinfo.h>.
43878         (_NL_LOCALE_NAME): Remove macro.
43879         (rpl_duplocale): Use setlocale instead of nl_langinfo.
43880         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
43881
43882 2009-11-23  Jim Meyering  <meyering@redhat.com>
43883
43884         test-update-copyright: don't hard-code /usr/bin/perl
43885         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
43886         perl to print the current year.  Gilles Espinasse reported that
43887         the replaced use of perl was hard-coded as /usr/bin/perl.
43888
43889 2009-11-23  Bruno Haible  <bruno@clisp.org>
43890
43891         duplocale: Add support for glibc 2.3.x.
43892         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
43893
43894 2009-11-22  Bruno Haible  <bruno@clisp.org>
43895
43896         vasnprintf: Tiny optimization.
43897         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
43898         MacOS X.
43899
43900 2009-11-22  Bruno Haible  <bruno@clisp.org>
43901
43902         Tests for module 'duplocale'.
43903         * modules/duplocale-tests: New file.
43904         * tests/test-duplocale.c: New file.
43905
43906         New module 'duplocale'.
43907         * m4/duplocale.m4: New file.
43908         * lib/locale.in.h (duplocale): New declaration.
43909         * lib/duplocale.c: New file.
43910         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
43911         gl_LOCALE_H_DEFAULTS): New macros.
43912         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
43913         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
43914         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
43915         REPLACE_DUPLOCALE.
43916         * modules/duplocale: New file.
43917         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
43918
43919 2009-11-22  Bruno Haible  <bruno@clisp.org>
43920
43921         * modules/locale-tests (configure.ac): Test for newlocale function.
43922         * tests/test-locale.c: When the system has extended locale functions,
43923         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
43924
43925         locale: Make locale_t available when possible.
43926         * lib/locale.in.h: Include <xlocale.h> when it exists.
43927         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
43928         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
43929         * modules/locale (Depends-on): Add extensions.
43930         (Makefile.am): Also substitute HAVE_XLOCALE_H.
43931         * doc/posix-headers/locale.texi: Document the problem with locale_t.
43932
43933 2009-11-22  Bruno Haible  <bruno@clisp.org>
43934
43935         Add comments.
43936         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
43937         invocation.
43938         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
43939         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
43940         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43941
43942 2009-11-22  Bruno Haible  <bruno@clisp.org>
43943
43944         error: account for the possibility of freopen (stdout).
43945         * lib/error.c: Include <unistd.h>.
43946         (flush_stdout): New function, extracted from error and error_at_line.
43947         Determine stdout's fd dynamically.
43948         (error, error_at_line): Invoke flush_stdout.
43949         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
43950         * modules/error (Depends-on): Add unistd.
43951
43952 2009-11-22  Bruno Haible  <bruno@clisp.org>
43953
43954         diffseq: Add comment.
43955         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
43956
43957 2009-11-22  Jim Meyering  <meyering@redhat.com>
43958
43959         c-stack: avoid defining an unused static function
43960         * lib/c-stack.c (find_stack_direction): Do not define this function
43961         when it will not be used.
43962
43963         diffseq: avoid spurious gcc warnings
43964         * lib/diffseq.h (IF_LINT2): Define.
43965         (compareseq): Use it to initialize two members of "part".
43966         This avoids two used-uninitialized warnings.
43967
43968 2009-11-21  Jim Meyering  <meyering@redhat.com>
43969
43970         c-stack: avoid "ignoring return value of `write'" warning
43971         * lib/c-stack.c: Include "ignore-value.h".
43972         (die): Explicitly ignore each write return value.
43973         * modules/c-stack (Depends-on): Add ignore-value.
43974
43975 2009-11-21  Bruno Haible  <bruno@clisp.org>
43976
43977         diffseq: reduce scope of variable 'best'.
43978         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
43979         variable, earlier used for two different purposes.
43980
43981 2009-11-21  Jim Meyering  <meyering@redhat.com>
43982
43983         diffseq: remove useless assignment to "best"
43984         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
43985         assignment.  At that point "best" is already guaranteed to be zero.
43986
43987 2009-11-20  Eric Blake  <ebb9@byu.net>
43988
43989         build: mention ftp redirector in release announcements
43990         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
43991         values that used to come from cfg.mk; mention FTP redirect URL.
43992         * build-aux/announce-gen: Mention the mirror list.
43993         Suggested by Karl Berry.
43994
43995         nanosleep: improve port to mingw
43996         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
43997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
43998         LIB_NANOSLEEP, but only when needed.
43999         * modules/select (Link): Document LIBSOCKET.
44000         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
44001         enough.
44002
44003         nanosleep: work around cygwin bug
44004         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
44005         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
44006         bug.
44007         (getnow): Delete, not needed.
44008         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
44009         LIB_CLOCK_GETTIME.
44010         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
44011         clock-time, gettime.
44012         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
44013         bug.
44014         * modules/nanosleep-tests: New test.
44015         * tests/test-nanosleep.c: New file.
44016
44017         sleep: work around cygwin bug
44018         * lib/sleep.c (rpl_sleep): Work around the bug.
44019         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
44020         (gl_PREREQ_SLEEP): Delete unused macro.
44021         * modules/sleep (Depends-on): Add verify.
44022         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44023         * modules/unistd (Makefile.am): Substitute witness.
44024         * lib/unistd.in.h (sleep): Update prototype.
44025         * doc/posix-functions/sleep.texi (sleep): Document the bug.
44026         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
44027         * modules/sleep-tests (Depends-on): Check for alarm.
44028
44029 2009-11-20  Jim Meyering  <meyering@redhat.com>
44030
44031         maint.mk: improve sc_prohibit_magic_number_exit
44032         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
44033         so it does not match uses like System.exit(1).
44034         Add comments showing how to correct all offenders.
44035
44036 2009-11-19  Eric Blake  <ebb9@byu.net>
44037
44038         xalloc-die-tests: add missing library
44039         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
44040
44041         test-xvasprintf: silence compiler warnings
44042         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
44043         empty string from gcc.
44044
44045 2009-11-19  Jim Meyering  <meyering@redhat.com>
44046
44047         xfreopen: new module, from coreutils
44048         * modules/xfreopen: New module.
44049         * lib/xfreopen.c: New file.
44050         * lib/xfreopen.h: New file.
44051         * MODULES.html.sh (File stream based Input/Output"): Add it.
44052
44053 2009-11-19  Eric Blake  <ebb9@byu.net>
44054
44055         manywarnings: depend on warnings
44056         * modules/manywarnings (Depends-on): Add warnings.
44057
44058         build: avoid compiler warnings
44059         * lib/select.c (rpl_select): Delete unused variable.
44060         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
44061
44062 2009-11-18  Eric Blake  <ebb9@byu.net>
44063
44064         tests: avoid false negative with --with-packager
44065         * tests/test-version-etc.sh: Discard packager information.
44066         * tests/test-argp-version-etc-1.sh: Likewise.
44067         Reported by Mike Frysinger.
44068
44069         utimens: fix regression on Solaris
44070         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
44071         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
44072         can only change fd timestamps via futimesat.  Instead, use an
44073         additional witness macro to avoid BSD bug.
44074         Reported by Jim Meyering.
44075
44076 2009-11-17  Eric Blake  <ebb9@byu.net>
44077
44078         usleep: use it to simplify tests
44079         * modules/stat-time-tests (Depends-on): Add usleep.
44080         (configure.ac): Drop usleep check.
44081         * modules/chown-tests (Depends-on, configure.ac): Likewise.
44082         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
44083         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
44084         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
44085         * modules/openat-tests (Depends-on, configure.ac): Likewise.
44086         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
44087         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
44088         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
44089         Likewise.
44090         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
44091         * tests/test-lchown.h (nap): Likewise.
44092         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
44093         * tests/test-stat-time.c (nap): Likewise.
44094         * tests/test-utimens-common.h (nap): Update comments.
44095
44096         usleep: new module
44097         * modules/usleep: New file.
44098         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
44099         * lib/usleep.c (usleep): Likewise.
44100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44101         * modules/unistd (Makefile.am): Substitute witnesses.
44102         * lib/unistd.in.h (usleep): Add declaration.
44103         * doc/pastposix-functions/usleep.texi (usleep): Document this.
44104         * MODULES.html.sh (Date and time): Likewise.
44105         * modules/usleep-tests (Depends-on): New test.
44106         * tests/test-usleep.c: New file.
44107
44108         chown: work around OpenBSD bug
44109         * lib/chown.c (rpl_chown): Work around the bug.
44110         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
44111         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
44112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
44113         * modules/chown (Depends-on): Add stdbool.
44114         * modules/lchown (Depends-on): Likewise.
44115         * doc/posix-functions/chown.texi (chown): Document the bug.
44116         * doc/posix-functions/lchown.texi (lchown): Likewise.
44117         * tests/test-lchown.h (test_chown): Relax test.
44118
44119         mkstemp: avoid conflict with C++ keyword template
44120         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
44121         * lib/mkostemp.c (mkostemp): Likewise.
44122         * lib/mkostemps.c (mkostemps): Likewise.
44123         * lib/mkstemp.c (mkstemp): Likewise.
44124         * lib/mkstemps.c (mkstemps): Likewise.
44125
44126         xalloc-die-tests: optimize
44127         * tests/test-xalloc-die.sh: Reduce number of processes.
44128
44129 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44130
44131         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
44132         patch from ludo@gnu.org (Ludovic Courtès).
44133
44134 2009-11-17  Jim Meyering  <meyering@redhat.com>
44135
44136         version-etc: use proper license string
44137         * modules/version-etc (License): Use LGPL, not LGPLv3+.
44138         * modules/version-etc-fsf: Likewise.
44139
44140 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44141
44142         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
44143         printed to stdout.  Deal with EOL differences.
44144
44145 2009-11-17  Eric Blake  <ebb9@byu.net>
44146
44147         unsetenv: work around Solaris bug
44148         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
44149         * lib/unsetenv.c (rpl_unsetenv): Work around it.
44150         Reported by Jim Meyering.
44151
44152         vasnprintf: avoid compiler warnings
44153         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
44154         variables.
44155         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
44156
44157 2009-11-17  Simon Josefsson  <simon@josefsson.org>
44158
44159         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
44160         settings since xalloc-die is no longer the self test,
44161         xalloc-die.sh is.
44162
44163 2009-11-17  Jim Meyering  <meyering@redhat.com>
44164
44165         test-xalloc-die.sh: make the code agree with the commit log
44166         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
44167         at the end, just in case you happen to have a test-xalloc-die
44168         program in some other PATH directory.
44169
44170         test-xalloc-die.sh: fix a portability bug
44171         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
44172         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
44173         Otherwise, argv[0] (as often seen in diagnostics) would be too
44174         system-dependent, sometimes with, and sometimes without the leading "./".
44175
44176         version-etc-fsf: relax license to LGPLv3+
44177         * modules/version-etc-fsf (License): Relax license.
44178
44179 2009-11-16  Eric Blake  <ebb9@byu.net>
44180
44181         xalloc-die-tests: avoid printing null pointer
44182         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
44183         shell script.
44184         * tests/test-xalloc-die.c (program_name): Declare.
44185         * tests/test-xalloc-die.sh (tmpfiles): New file.
44186
44187         setenv, unsetenv: work around various bugs
44188         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
44189         (setenv) [HAVE_SETENV]: Work around bugs.
44190         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
44191         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
44192         for bugs.
44193         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
44194         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
44195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
44196         * modules/stdlib (Makefile.am): Update substitutions.
44197         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
44198         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
44199         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
44200         * modules/setenv-tests: New test.
44201         * modules/unsetenv-tests: Likewise.
44202         * tests/test-setenv.c: New file.
44203         * tests/test-unsetenv.c: Likewise.
44204
44205 2009-11-16  Jim Meyering  <meyering@redhat.com>
44206
44207         version-etc: relax license to LGPLv3+
44208         * modules/version-etc (License): Relax license.
44209
44210         better AC_REQUIRE expanded-before-required-warning avoidance
44211         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
44212         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
44213         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
44214         which is no longer needed.
44215
44216 2009-11-16  Eric Blake  <ebb9@byu.net>
44217
44218         test-freading: clean up temporary file
44219         * tests/test-freading.c (main): Remove file on success, and use
44220         ASSERT more liberally.
44221         Reported by Jim Meyering.
44222
44223 2009-11-16  Jim Meyering  <meyering@redhat.com>
44224
44225         avoid new AC_REQUIRE expanded-before-required warnings
44226         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
44227         merely using it.
44228         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
44229         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
44230
44231 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44232
44233         * tests/test-xalloc-die.c: New file.
44234         * modules/xalloc-die-tests: New file.
44235         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
44236         XFAIL_TESTS so it can be appended by modules.
44237
44238 2009-11-15  Simon Josefsson  <simon@josefsson.org>
44239
44240         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
44241         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
44242
44243 2009-11-14  Eric Blake  <ebb9@byu.net>
44244
44245         fnmatch: avoid compiler warning
44246         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
44247         to silence compiler warning about mismatch signedness in ?:.
44248         Reported by Robert Millan.
44249
44250         intprops: add double-inclusion guard
44251         * lib/intprops.h: Allow idempotent includes.
44252         Suggested by Bruce Korb.
44253
44254         openat: detect Solaris fchownat bug
44255         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
44256         penalizing glibc chownat when only lchownat is broken.
44257         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
44258         trailing slash bugs.
44259         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
44260         * modules/openat-tests (Files): Include more files.
44261         (Depends-on): Add mgetgroups, sleep, stat-time.
44262         (configure.ac): Add additional checks.
44263         (Makefile.am): Build new test.
44264         * tests/test-fchownat.c: New file.
44265
44266         lchown: detect Solaris and FreeBSD bug
44267         * lib/lchown.c (rpl_lchown): Work around bug.
44268         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
44269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44270         * modules/unistd (Makefile.am): Populate it.
44271         * lib/unistd.in.h (lchown): Update declaration.
44272         * doc/posix-functions/lchown.texi (lchown): Document the bug.
44273         * modules/lchown-tests: New file.
44274         * tests/test-lchown.h (test_lchown): Likewise.
44275         * tests/test-lchown.c (main): Likewise.
44276
44277         chown: detect Solaris and FreeBSD bug
44278         * lib/chown.c (rpl_chown): Work around bug.
44279         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
44280         (gl_PREREQ_CHOWN): Delete.
44281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44282         * modules/unistd (Makefile.am): Populate it.
44283         * lib/unistd.in.h (chown): Update declaration.
44284         * lib/lchown.c (chown): Update client.
44285         * modules/lchown (Depends-on): Add lstat.
44286         * doc/posix-functions/chown.texi (chown): Document the bug.
44287         * doc/posix-functions/getgroups.texi (getgroups): Document
44288         getgroups pitfall.
44289         * modules/chown-tests: New file.
44290         * tests/test-chown.h (test_chown): Likewise.
44291         * tests/test-chown.c (main): Likewise.
44292
44293 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
44294
44295         gnulib-tool: correctly detect absence of m4 directories
44296         * gnulib-tool: Avoid extra newline on data passed to wc -l.
44297
44298 2009-11-14  Jim Meyering  <meyering@redhat.com>
44299
44300         maint.mk: Prohibit inclusion of "xalloc.h" without use.
44301         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44302
44303 2009-11-14  John W. Eaton  <jwe@gnu.org>
44304
44305         strftime.h: wrap function declaration in extern "C" block
44306         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
44307
44308 2009-11-13  Eric Blake  <ebb9@byu.net>
44309
44310         getgroups: avoid compiler warning
44311         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
44312
44313         getgroups: work around FreeBSD bug
44314         * lib/getgroups.c (rpl_getgroups): Work around the bug.
44315         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
44316         * doc/posix-functions/getgroups.texi (getgroups): Document it.
44317         * tests/test-getgroups.c (main): Fix buffer overrun.
44318
44319         getgroups: avoid compilation failure
44320         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
44321         * modules/getgroups (Depends-on): Add stdint.
44322
44323 2009-11-13  Jim Meyering  <meyering@redhat.com>
44324
44325         test-getgroups: avoid compilation failure
44326         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
44327
44328 2009-11-13  Eric Blake  <ebb9@byu.net>
44329
44330         mgetgroups: new module, taken from coreutils
44331         * modules/mgetgroups: New file.
44332         * lib/mgetgroups.h: Likewise.
44333         * lib/mgetgroups.c (mgetgroups): Likewise.
44334         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
44335         * MODULES.html.sh (Users and groups): Mention it.
44336
44337         getgroups: don't expose GETGROUPS_T to user
44338         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
44339         an element at a time if GETGROUPS_T is wrong size.
44340         * lib/getugroups.h (getugroups): Change signature.
44341         * lib/unistd.in.h (getgroups): Likewise.
44342         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
44343         signature needs fixing.
44344         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
44345         AC_TYPE_GETGROUPS.
44346         * modules/group-member (Depends-on): Add getgroups.
44347         * lib/group-member.c (group_info, get_group_info): Use gid_t.
44348         (group_member): Rely on getgroups replacement.
44349         * lib/getugroups.c (getugroups): Use gid_t.
44350         * tests/test-getgroups.c (main): Likewise.
44351         * NEWS: Mention the signature change.
44352         * doc/posix-functions/getgroups.texi (getgroups): Mention the
44353         problem with signature.
44354         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
44355         GETGROUPS_T is still useful for setgroups.
44356
44357         getgroups, getugroups: provide stubs for mingw
44358         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
44359         * lib/getugroups.c (getugroups): Likewise.
44360         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
44361         function.  Modernize replacement scheme.
44362         (gl_PREREQ_GETGROUPS): Delete.
44363         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
44364         * modules/getgroups (configure.ac): Declare witness.
44365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
44366         * modules/unistd (Depends-on): Substitute witness.
44367         * lib/unistd.in.h (getgroups): Declare replacement.
44368
44369         getgroups: avoid calling exit
44370         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
44371         drop xalloc.
44372         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
44373         dependencies.
44374         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
44375         exiting, in the rare case of malloc failure.
44376
44377         getgroups: fix logic error
44378         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
44379         has more than 20 groups.
44380         * modules/getgroups-tests: New test.
44381         * tests/test-getgroups.c: New file.
44382
44383 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44384
44385         * tests/test-base64.c: Improve.
44386
44387 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44388
44389         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
44390         Blake <ebb9@byu.net>.
44391
44392 2009-11-13  Simon Josefsson  <simon@josefsson.org>
44393
44394         * tests/test-xvasprintf.c: Add %s%s related checks.
44395
44396 2009-11-12  Eric Blake  <ebb9@byu.net>
44397
44398         version-etc: match standards.texi style
44399         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
44400         and use <> only for URLs.
44401
44402 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
44403
44404         fts: do not fail on a submount during traversal
44405         * lib/fts.c (fts_build): Read the stat info again after opening
44406         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
44407         Original report at http://bugzilla.redhat.com/501848.
44408
44409 2009-11-12  Jim Meyering  <meyering@redhat.com>
44410
44411         bootstrap: sync from coreutils
44412         * build-aux/bootstrap (bootstrap_epilogue): New function.
44413         Use git_modules_config in one more place.  This make bootstrap's
44414         --gnulib-srcdir option more useful for testing.
44415
44416         bootstrap: generalize autoheader check
44417         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
44418         AC_CONFIG_HEADERS.
44419
44420 2009-11-11  Eric Blake  <ebb9@byu.net>
44421
44422         mkfifoat: use new modules for Solaris and BSD bugs
44423         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
44424         * lib/mkfifoat.c (mknodat): Split...
44425         * lib/mknodat.c (mknodat): ...into new file.
44426         * modules/mkfifoat (Files): Ship new file.
44427         (Depends-on): Add mkfifo, mknod.
44428         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
44429         (Depends-on): Add symlink.
44430         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
44431         redundant with test_mkfifo.h.
44432         (do_mkfifoat, do_mknodat): New helpers.
44433
44434         mknod: new module
44435         * modules/mknod: New file.
44436         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
44437         * lib/mknod.c (mknod): Likewise.
44438         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44439         defaults.
44440         * modules/sys_stat (Makefile.am): Substitute them.
44441         * lib/sys_stat.in.h (mknod): Declare replacement.
44442         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44443         Document it.
44444         * doc/posix-functions/mknod.texi (mknod): Likewise.
44445         * modules/mknod-tests: New test.
44446         * tests/test-mknod.c: Likewise.
44447
44448         mkfifo: new module
44449         * modules/mkfifo: New file.
44450         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
44451         * lib/mkfifo.c (mkfifo): Likewise.
44452         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
44453         defaults.
44454         * modules/sys_stat (Makefile.am): Substitute them.
44455         * lib/sys_stat.in.h (mkfifo): Declare replacement.
44456         * MODULES.html.sh (Support for systems lacking POSIX:2008):
44457         Document it.
44458         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
44459         * modules/mkfifo-tests: New test.
44460         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
44461         from test-mkfifoat.c.
44462         * tests/test-mkfifo.c: New file.
44463
44464         readlink: detect FreeBSD bug
44465         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
44466         slash on symlink.
44467         * doc/posix-functions/readlink.texi (readlink): Document the bug.
44468         * tests/test-readlink.h (test_readlink): Enhance test.
44469
44470         symlink: detect FreeBSD bug
44471         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
44472         slash on symlink.
44473         * doc/posix-functions/symlink.texi (symlink): Document the bug.
44474         * tests/test-symlink.h (test_symlink): Enhance test.
44475
44476 2009-11-10  Eric Blake  <ebb9@byu.net>
44477
44478         link: detect FreeBSD bug
44479         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
44480         symlink.
44481         * doc/posix-functions/link.texi (link): Document the bug.
44482         * tests/test-link.h (test_link): Enhance test.
44483         * tests/test-linkat.c (main): Update caller.
44484
44485         unlink, remove: detect FreeBSD bug
44486         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
44487         slash on symlink.
44488         * doc/posix-functions/unlink.texi (unlink): Document the bug.
44489         * doc/posix-functions/remove.texi (remove): Likewise.
44490         * tests/test-unlink.h (test_unlink): Enhance test.
44491         * tests/test-remove.c (main): Likewise.
44492
44493 2009-11-09  Eric Blake  <ebb9@byu.net>
44494
44495         rename: detect FreeBSD bug
44496         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
44497         slash on symlink.
44498         * modules/renameat-tests (Depends-on): Add filenamecat.
44499         * tests/test-rename.h (test_rename): Allow one more errno.
44500         * tests/test-renameat.c (main): Likewise.
44501         * doc/posix-functions/rename.texi (rename): Document the bug.
44502
44503         open: detect FreeBSD bug
44504         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
44505         symlink.
44506         * doc/posix-functions/open.texi (open): Document the bug.
44507         * doc/posix-functions/utimes.texi (utimes): Likewise.
44508         * tests/test-open.h (test_open): Add parameters, and test symlink
44509         handling.
44510         * tests/test-open.c (main): Adjust caller.
44511         * tests/test-fcntl-safer.c (main): Likewise.
44512         * modules/open-tests (Depends-on): Add stdbool, symlink.
44513         * modules/fcntl-safer-tests (Depends-on): Likewise.
44514         * tests/test-openat.c (main): Add test-open tests.
44515
44516         stat: detect FreeBSD bug
44517         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
44518         symlink.
44519         * doc/posix-functions/stat.texi (stat): Document the bug.
44520         * tests/test-stat.h (test_stat_func): Add argument.
44521         * tests/test-stat.c (main): Adjust caller.
44522         * tests/test-fstatat.c (main): Likewise.
44523         * modules/stat-tests (Depends-on): Add stdbool, symlink.
44524         Reported by Jim Meyering.
44525
44526 2009-11-09  James Youngman  <jay@gnu.org>
44527
44528         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
44529         * lib/strftime.c: Correct placement of #include "ignore-value.h".
44530
44531 2009-11-08  Jim Meyering  <meyering@redhat.com>
44532
44533         utimens: remove invalid futimesat call
44534         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
44535         It used the file descriptor of the target file as the DIR_FD
44536         parameter and NULL as the file name.  That caused failure with
44537         errno == EFAULT on FreeBSD-8.0-rc2
44538
44539 2009-11-07  Eric Blake  <ebb9@byu.net>
44540
44541         fflush, freadseek: use fseeko, not fseek
44542         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
44543         (clear_ungetc_buffer): Avoid potential problems on large files.
44544         * lib/freadseek.c (freadseek): Likewise.
44545         * modules/freadseek (Depends-on): Add fseeko.
44546         * modules/fseek (configure.ac): Set a witness.
44547         * tests/test-fflush.c (main): Use fseeko.
44548         * tests/test-fpurge.c (fseek): Disable link warning.
44549         * tests/test-freadable.c (fseek): Likewise.
44550         * tests/test-freading.c (fseek): Likewise.
44551         * tests/test-fseeko.c (fseek): Likewise.
44552         * tests/test-ftell.c (fseek): Likewise.
44553         * tests/test-ftello.c (fseek): Likewise.
44554         * tests/test-fwritable.c (fseek): Likewise.
44555         * tests/test-fwriting.c (fseek): Likewise.
44556
44557 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44558
44559         * modules/memchr (Depends-on): Drop getpagesize dependency.
44560
44561 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44562
44563         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
44564         Reported by Ludovic Courtès.
44565         * build-aux/pmccabe2html: Improve example usage.
44566         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
44567
44568 2009-11-06  Jim Meyering  <meyering@redhat.com>
44569
44570         do-release-commit-and-tag: New module.
44571         Automate the release-commit and tag process.
44572         * build-aux/do-release-commit-and-tag: New script, from coreutils.
44573         * modules/do-release-commit-and-tag: New file.
44574         * MODULES.html.sh (Support for maintaining and releasing): Add it.
44575
44576 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44577
44578         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
44579         because test-select.c uses inet_pton.
44580
44581 2009-11-06  Simon Josefsson  <simon@josefsson.org>
44582
44583         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
44584         GETADDRINFO_LIB.  Bump serial number.
44585         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
44586         Suggested by Eric Blake <ebb9@byu.net>.
44587
44588 2009-11-05  Eric Blake  <ebb9@byu.net>
44589
44590         strtod: detect darwin bug
44591         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
44592         Reported by Leo Davis.
44593
44594         freopen-safer: new module
44595         * modules/freopen-safer: New module.
44596         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
44597         * lib/freopen-safer.c (freopen_safer): New file.
44598         * lib/stdio-safer.h (freopen_safer): New declaration.
44599         * lib/stdio--.h (freopen): New override.
44600         * MODULES.html.sh (File stream based Input/Output): Mention it.
44601         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
44602         freopen-safer module.
44603         * doc/posix-functions/stderr.texi (stderr): Likewise.
44604         * doc/posix-functions/stdin.texi (stdin): Likewise.
44605         * doc/posix-functions/stdout.texi (stdout): Likewise.
44606         * modules/freopen-safer-tests: New test.
44607         * tests/test-reopen-safer.c: New file.
44608
44609 2009-11-05  Jim Meyering  <meyering@redhat.com>
44610
44611         maint.mk: Prohibit inclusion of "close-stream.h" without use.
44612         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
44613
44614 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44615
44616         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
44617
44618 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44619
44620         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
44621
44622 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44623
44624         Fix link error.
44625         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44626         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44627
44628 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44629
44630         * tests/test-func.c: Also test value of __func__.
44631
44632 2009-11-05  Simon Josefsson  <simon@josefsson.org>
44633
44634         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
44635         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
44636
44637 2009-11-05  Bruno Haible  <bruno@clisp.org>
44638
44639         Fix link error.
44640         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
44641         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
44642         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
44643
44644 2009-11-05  Bruno Haible  <bruno@clisp.org>
44645
44646         Tests for module 'inet_pton'.
44647         * modules/inet_pton-tests: New file.
44648         * tests/test-inet_pton.c: New file.
44649
44650 2009-11-05  Bruno Haible  <bruno@clisp.org>
44651
44652         Tests for module 'inet_ntop'.
44653         * modules/inet_ntop-tests: New file.
44654         * tests/test-inet_ntop.c: New file.
44655
44656 2009-11-04  Eric Blake  <ebb9@byu.net>
44657
44658         stdlib-safer: wrap all mkstemp variants
44659         * modules/mkostemp (configure.ac): Set witness.
44660         * modules/mkostemps (configure.ac): Likewise.
44661         * modules/mkstemps (configure.ac): Likewise.
44662         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
44663         (mkstemps_safer): Wrap more functions.
44664         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
44665         wrapping.
44666         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
44667         (mkstemps_safer): Implement the wrappers.
44668
44669         mkstemps, mkostemps: new modules
44670         * modules/mkostemps: New module.
44671         * modules/mkstemps: Likewise.
44672         * lib/mkostemps.c (mkostemps): New file.
44673         * lib/mkstemps.c (mkstemps): Likewise.
44674         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
44675         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
44676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
44677         * modules/stdlib (Makefile.am): Substitute them.
44678         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
44679         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
44680         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
44681         * doc/gnulib.texi (Glibc stdlib.h): Include them.
44682         * MODULES.html.sh (File system functions): Mention them.
44683
44684         tempname: resync from glibc
44685         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
44686         same values for __GT_FILE as glibc.  Abort even when assertions
44687         are disabled.
44688         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
44689         match its value otherwise.  Allow idempotent inclusion.
44690         * lib/mkdtemp.c (mkdtemp): Adjust caller.
44691         * lib/mkostemp.c (mkostemp): Likewise.
44692         * lib/mkstemp.c (mkstemp): Likewise.
44693         * lib/tmpfile.c (tmpfile): Likewise.
44694         * NEWS: Document this.
44695
44696         utimens: fix use of futimens on older Linux
44697         * lib/utimens.c (fdutimens): Use updated, rather than original,
44698         timespec to avoid bug in older Linux kernel.
44699         Reported by Simon Josefsson.
44700
44701 2009-11-04  Bruno Haible  <bruno@clisp.org>
44702
44703         Make num_processors more flexible and consistent.
44704         * lib/nproc.h (enum nproc_query): New type.
44705         (num_processors): Add a 'query' argument.
44706         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
44707         (num_processors): Add a 'query' argument. Test the value of the
44708         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
44709         mingw, count the number of CPUs available for the current process.
44710         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
44711         Check for sched_getaffinity and sched_getaffinity_np.
44712         * modules/nproc (Depends-on): Add c-ctype, extensions.
44713         * NEWS: Mention the change.
44714
44715 2009-11-03  Bruno Haible  <bruno@clisp.org>
44716
44717         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
44718
44719 2009-11-03  Jim Meyering  <meyering@redhat.com>
44720
44721         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
44722         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
44723         if it is defined.
44724
44725 2009-11-02  Eric Blake  <ebb9@byu.net>
44726
44727         mktime, timegm: share common declaration
44728         * lib/mktime-internal.h: New file.
44729         * lib/mktime.c: Use it rather than open-coding a declaration.
44730         * lib/timegm.c: Likewise.
44731         * modules/mktime (Files): Ship it.
44732         * modules/timegm (Files): Likewise.
44733         Suggested by Bruno Haible.
44734
44735         test-update-copyright: update test to match script changes
44736         * tests/test-update-copyright.sh: Avoid hard-coding perl
44737         location.  Don't update *.bak created by earlier runs.
44738
44739 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
44740             Simon Josefsson  <simon@josefsson.org>
44741             Bruno Haible  <bruno@clisp.org>
44742
44743         Fix link error on Solaris 8.
44744         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
44745         also in libnsl. Define also INET_PTON_LIB.
44746         * modules/inet_pton (Link): New section.
44747
44748 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44749             Bruno Haible  <bruno@clisp.org>
44750
44751         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
44752         * modules/inet_ntop (Link): New section.
44753         Reported by Boyan Kasarov <bkasarov@gmail.com>.
44754
44755 2009-11-02  Eric Blake  <ebb9@byu.net>
44756
44757         maint: avoid compiler warnings in m4 macros
44758         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
44759         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
44760
44761 2009-11-02  Simon Josefsson  <simon@josefsson.org>
44762
44763         * m4/pmccabe2html.m4: Remove file.
44764         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
44765         function.  Change maintainer.
44766         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
44767         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
44768         Courtès).
44769
44770 2009-10-31  Eric Blake  <ebb9@byu.net>
44771
44772         fseeko: fix m4 regression
44773         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
44774         regression from 2009-10-27.
44775         Reported by Ralf Wildenhues.
44776
44777 2009-10-31  Jim Meyering  <meyering@redhat.com>
44778
44779         inttostr: aesthetics and improved (compile-time) safety
44780         Define inttype_is_signed rather than inttype_is_unsigned,
44781         since the sole use is via "#if inttype_is_signed".
44782         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
44783         inttype_is_unsigned.
44784         * lib/offtostr.c (inttype_is_signed): Likewise.
44785         * lib/uinttostr.c (inttype_is_signed): Likewise.
44786         * lib/umaxtostr.c (inttype_is_signed): Likewise.
44787         * lib/inttostr.c (inttostr): Use verify to cross-check the
44788         inttype_is_signed value and the signedness of the actual type.
44789         * modules/inttostr (Depends-on): Add verify.
44790
44791 2009-10-30  Eric Blake  <ebb9@byu.net>
44792
44793         build: avoid compiler warnings
44794         * lib/fchmodat.c (lchmod): Mark unused variables.
44795         * lib/getopt.c (_getopt_initialize): Likewise.
44796         * lib/mktime.c (__mktime_internal): Provide prototype.
44797         * lib/inttostr.c (inttostr): Avoid compiler warning even with
44798         older gcc that do not understand #pragma GCC diagnostic.
44799         * lib/uinttostr.c (inttype_is_unsigned): Define.
44800         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
44801
44802 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
44803
44804         stat: fix compilation on AIX
44805         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
44806         only see struct stat64.
44807
44808 2009-10-30  Eric Blake  <ebb9@byu.net>
44809
44810         exclude: make more robust
44811         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
44812         rather than masking a coding bug.
44813         Suggested by Bruno Haible.
44814
44815 2009-10-30  Jim Meyering  <meyering@redhat.com>
44816
44817         perl scripts: remove #!/usr/bin/perl in favor of more portable...
44818         Rather than putting #!/usr/bin/perl on the first line,
44819         start with a variant of what's recommended by "man perlrun" that
44820         invokes the first "perl" program from your shell's search path.
44821         * build-aux/gitlog-to-changelog: Replace #!... as above.
44822         Add a "Local Variables" perl mode setting.
44823         Prompted by a patch from Ludovic Courtès.
44824         Improved by Eric Blake.
44825         * build-aux/useless-if-before-free: Likewise.
44826         * build-aux/announce-gen: Likewise.
44827         * build-aux/update-copyright: Likewise.
44828
44829 2009-10-29  Eric Blake  <ebb9@byu.net>
44830
44831         filenamecat-lgpl: adjust clients
44832         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
44833         filenamecat.
44834         * modules/renameat (Depends-on): Likewise.
44835
44836         filenamecat: split into filenamecat-lgpl
44837         * modules/filenamecat-lgpl: New module.
44838         * modules/filenamecat (Files): Move library-safe files into
44839         filenamecat-lgpl.
44840         (Depends-on): Add filenamecat-lgpl.
44841         (configure.ac): Declare witness.
44842         * lib/filenamecat.h (file_name_concat): Only declare when using
44843         GPL module.
44844         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
44845         Move...
44846         * lib/filenamecat-lgpl.c: ...into new file.
44847         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
44848         (gl_FILE_NAME_CONCAT): Use it.
44849         * MODULES.html.sh (File system functions): Mention new module.
44850
44851         argp: avoid memory leak
44852         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
44853         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
44854         base_name, since the latter malloc()s and can call exit().
44855         Leak introduced 2006-07-03.
44856
44857         dirname-lgpl: adjust clients that don't need full dirname
44858         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
44859         * modules/filenamecat (Depends-on): Likewise.
44860         * modules/linkat (Depends-on): Likewise.
44861         * modules/mkancesdirs (Depends-on): Likewise.
44862         * modules/mkdir (Depends-on): Likewise.
44863         * modules/openat (Depends-on): Likewise.
44864         * modules/savewd (Depends-on): Likewise.
44865         * modules/rename (Depends-on): Likewise.
44866         (License): Relax license.
44867         * modules/mkdir-tests (Depends-on): Drop progname.
44868         (Makefile.am): Delete unneeded LDADD.
44869         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
44870
44871         dirname: split into dirname-lgpl
44872         * modules/dirname-lgpl: New module.
44873         * modules/dirname (Files): Move library-safe files into
44874         dirname-lgpl.
44875         (Depends-on): Add dirname-lgpl.
44876         (configure.ac): Declare witness.
44877         * modules/double-slash-root (License): Relax license.
44878         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
44879         module.
44880         * lib/dirname.c (dir_len, mdir_name): Move...
44881         * lib/dirname-lgpl.c: ...into new file.
44882         * lib/basename.c (last_component, base_len): Move...
44883         * lib/basename-lgpl.c: ...into new file.
44884         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
44885         (gl_DIRNAME): Use it.
44886         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
44887         Mention new module.
44888         * modules/dirname-tests (Depends-on): Add progname.
44889         * tests/test-dirname.c (program_name): Delete.
44890
44891         mkdir: make safe for libraries
44892         * modules/mkdir (Depends-on): Drop xalloc.
44893         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
44894         exit.
44895
44896         tests: avoid some compiler warnings
44897         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
44898         literals.
44899         * tests/test-memchr.c (main): Avoid type mismatch.
44900         * tests/test-arpa_inet.c (main): Avoid unused parameters.
44901         * tests/test-base64.c (main): Likewise.
44902         * tests/test-getdelim.c (main): Likewise.
44903         * tests/test-gethostname.c (main): Likewise.
44904         * tests/test-getline.c (main): Likewise.
44905         * tests/test-netinet_in.c (main): Likewise.
44906         * tests/test-select.c (open_server_socket, main): Likewise.
44907         * tests/test-select-stdin.c (main): Likewise.
44908         * tests/test-sockets.c (main): Likewise.
44909         * tests/test-strsignal.c (main): Likewise.
44910         * tests/test-sys_select.c (main): Likewise.
44911         * tests/test-sys_socket.c (main): Likewise.
44912         * tests/test-u64.c (main): Likewise.
44913         * tests/test-xfprintf-posix.c (main): Likewise.
44914         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
44915
44916         sockets: avoid compiler warning
44917         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
44918
44919         maint: detect usage(1) and other suspicious exits
44920         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
44921
44922 2009-10-29  Jim Meyering  <meyering@redhat.com>
44923
44924         timespec: long-to-int truncation could make timespec_cmp malfunction
44925         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
44926         a multiple of 2^32 nanoseconds as no difference.
44927
44928 2009-10-28  Jim Meyering  <meyering@redhat.com>
44929
44930         fprintftime: wrap macro code argument in "do {...} while(0)"
44931         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
44932         cpy macro must be a statement that can be followed by a semicolon.
44933         Now that the else clause contains a comment and is hence longer
44934         than one line, I require curly braces.  That in turn requires
44935         that we wrap this code block in the standard do...while(0).
44936
44937         fprintftime: remove stray semicolon from previous change
44938         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
44939
44940         fprintftime: avoid a warning about ignored fwrite return value
44941         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
44942         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
44943         that is unsafe.
44944         * modules/fprintftime (Depends-on): Add ignore-value.
44945
44946         exclude: avoid an unwarranted warning
44947         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
44948
44949 2009-10-27  Eric Blake  <ebb9@byu.net>
44950
44951         fseek: avoid compilation failure when fflush is replaced
44952         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
44953         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
44954         module is in use.
44955         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
44956         module is not in use; since REPLACE_FSEEK worked otherwise.
44957         (GNULIB_FTELLO): Likewise for ftell.
44958         Reported by Ian Beckwith and others.
44959
44960 2009-10-27  Bruno Haible  <bruno@clisp.org>
44961
44962         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
44963         Reported by Jim Meyering.
44964
44965 2009-10-27  Jim Meyering  <jim@meyering.net>
44966             Bruno Haible  <bruno@clisp.org>
44967
44968         Avoid warning despite dropping the return value of fwrite.
44969         * lib/unicodeio.c: Include ignore-value.h.
44970         (fwrite_success_callback): Explicitly ignore fwrite's return value.
44971         * modules/unicodeio (Depends-on): Add ignore-value.
44972
44973 2009-10-26  Eric Blake  <ebb9@byu.net>
44974
44975         areadlinkat: fix fallback path
44976         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
44977         pointer and zero.
44978
44979 2009-10-22  Pádraig Brady  <P@draigBrady.com>
44980
44981         Use a better IO block size for modern systems
44982         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
44983         * lib/md2.c: Likewise.
44984         * lib/md4.c: Likewise.
44985         * lib/md5.c: Likewise.
44986         * lib/sha1.c: Likewise.
44987         * lib/sha256.c: Likewise.
44988         * lib/sha512.c: Likewise.
44989
44990 2009-10-22  Eric Blake  <ebb9@byu.net>
44991
44992         tests: avoid several compiler warnings
44993         * tests/test-getcwd.c (main): Avoid buffer underflow.
44994         * tests/test-getdate.c (main): String literals are not safe with
44995         putenv, so use setenv.  Declare unused argument.
44996         * modules/getdate-tests (Depends-on): Add setenv.
44997         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
44998         problems with string literals in char *.
44999         * tests/test-hash.c (main): Avoid shadowing declaration.
45000         (insert_new): Treat string literals as char const *.
45001         * tests/test-getopt.h (test_getopt): Likewise.
45002         (getopt_loop): Alter types to minimize casting elsewhere.
45003         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
45004         (test_getopt_long_posix): Likewise.
45005         (do_getopt_long): Add wrapper to minimize casting.
45006         * tests/test-atexit.c (clear_temp_file): Use void.
45007         * tests/test-areadlink-with-size.c (main): Declare unused
45008         arguments.
45009         * tests/test-areadlink.c (main): Likewise.
45010         * tests/test-areadlinkat-with-size.c (main): Likewise.
45011         * tests/test-areadlinkat.c (main): Likewise.
45012         * tests/test-canonicalize-lgpl.c (main): Likewise.
45013         * tests/test-canonicalize.c (main): Likewise.
45014         * tests/test-dirent-safer.c (main): Likewise.
45015         * tests/test-dirname.c (main): Likewise.
45016         * tests/test-dup2.c (main): Likewise.
45017         * tests/test-fchdir.c (main): Likewise.
45018         * tests/test-fcntl-h.c (main): Likewise.
45019         * tests/test-fcntl-safer.c (main): Likewise.
45020         * tests/test-fdopendir.c (main): Likewise.
45021         * tests/test-fdutimensat.c (main): Likewise.
45022         * tests/test-fflush.c (main): Likewise.
45023         * tests/test-filenamecat.c (main): Likewise.
45024         * tests/test-filevercmp.c (main): Likewise.
45025         * tests/test-fopen-safer.c (main): Likewise.
45026         * tests/test-fopen.c (main): Likewise.
45027         * tests/test-fpending.c (main): Likewise.
45028         * tests/test-fpurge.c (main): Likewise.
45029         * tests/test-freading.c (main): Likewise.
45030         * tests/test-fstatat.c (main): Likewise.
45031         * tests/test-fsync.c (main): Likewise.
45032         * tests/test-futimens.c (main): Likewise.
45033         * tests/test-getndelim2.c (main): Likewise.
45034         * tests/test-gettimeofday.c (main): Likewise.
45035         * tests/test-getopt.c (main): Likewise.
45036         * tests/test-i-ring.c (main): Likewise.
45037         * tests/test-inttypes.c (main): Likewise.
45038         * tests/test-link.c (main): Likewise.
45039         * tests/test-lstat.c (main): Likewise.
45040         * tests/test-math.c (main): Likewise.
45041         * tests/test-md5.c (main): Likewise.
45042         * tests/test-memchr2.c (main): Likewise.
45043         * tests/test-memrchr.c (main): Likewise.
45044         * tests/test-mkdir.c (main): Likewise.
45045         * tests/test-mkdirat.c (main): Likewise.
45046         * tests/test-mkfifoat.c (main): Likewise.
45047         * tests/test-open.c (main): Likewise.
45048         * tests/test-openat-safer.c (main): Likewise.
45049         * tests/test-openat.c (main): Likewise.
45050         * tests/test-quotearg.c (main): Likewise.
45051         * tests/test-rawmemchr.c (main): Likewise.
45052         * tests/test-readlink.c (main): Likewise.
45053         * tests/test-remove.c (main): Likewise.
45054         * tests/test-rename.c (main): Likewise.
45055         * tests/test-renameat.c (main): Likewise.
45056         * tests/test-rmdir.c (main): Likewise.
45057         * tests/test-sha1.c (main): Likewise.
45058         * tests/test-signal.c (main): Likewise.
45059         * tests/test-sigaction.c (main): Likewise.
45060         * tests/test-stat.c (main): Likewise.
45061         * tests/test-stat-time.c (main): Likewise.
45062         * tests/test-stddef.c (main): Likewise.
45063         * tests/test-stdint.c (main): Likewise.
45064         * tests/test-stdio.c (main): Likewise.
45065         * tests/test-stdlib.c (main): Likewise.
45066         * tests/test-strchrnul.c (main): Likewise.
45067         * tests/test-strerror.c (main): Likewise.
45068         * tests/test-string.c (main): Likewise.
45069         * tests/test-strtod.c (main): Likewise.
45070         * tests/test-strverscmp.c (main): Likewise.
45071         * tests/test-symlink.c (main): Likewise.
45072         * tests/test-symlinkat.c (main): Likewise.
45073         * tests/test-sys_stat.c (main): Likewise.
45074         * tests/test-sys_time.c (main): Likewise.
45075         * tests/test-time.c (main): Likewise.
45076         * tests/test-unistd.c (main): Likewise.
45077         * tests/test-unlink.c (main): Likewise.
45078         * tests/test-unlinkat.c (main): Likewise.
45079         * tests/test-utimens.c (main): Likewise.
45080         * tests/test-utimensat.c (main): Likewise.
45081         * tests/test-version-etc.c (main): Likewise.
45082         * tests/test-wchar.c (main): Likewise.
45083         * tests/test-wctype.c (main): Likewise.
45084         * tests/test-xprintf-posix.c (main): Likewise.
45085         * tests/test-posixtm.c (main): Likewise.
45086         (STREQ): Delete unused macro.
45087         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
45088         shadowed variables.
45089         * tests/test-memchr.c (main): Likewise.
45090
45091 2009-10-21  Eric Blake  <ebb9@byu.net>
45092
45093         areadlinkat: avoid failure on older glibc
45094         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
45095         rather than mis-comparing 0 against FUNC_RESULT of char*.
45096
45097 2009-10-21  Bruno Haible  <bruno@clisp.org>
45098
45099         * modules/stpncpy (License): Relicense under LGPLv2+.
45100         Reported by David Lutterkort <lutter@redhat.com>.
45101
45102 2009-10-20  Eric Blake  <ebb9@byu.net>
45103
45104         utimensat: work around Solaris 9 bug
45105         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
45106         has trailing slash bugs.
45107         * tests/test-lutimens.h (test_lutimens): Enhance test.
45108         * tests/test-utimens.h (test_utimens): Likewise.
45109         * doc/posix-functions/utime.texi (utime): Enhance documentation.
45110         * doc/posix-functions/utimes.texi (utimes): Likewise.
45111         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45112         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
45113         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
45114         * doc/posix-functions/futimens.texi (futimens): Likewise.
45115
45116         fdutimensat: new module
45117         * modules/fdutimensat: New file.
45118         * lib/fdutimensat.c (fdutimensat): Likewise.
45119         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
45120         * MODULES.html.sh (File system functions): Mention module.
45121         * modules/fdutimensat-tests: New test.
45122         * tests/test-fdutimensat.c: Likewise.
45123
45124         doc: regenerate INSTALL
45125         * doc/INSTALL: Reflect recent autoconf update.
45126         * doc/INSTALL.ISO: Likewise.
45127         * doc/INSTALL.UTF-8: Likewise.
45128
45129 2009-10-20  Pádraig Brady  <P@draigBrady.com>
45130
45131         acl: warn if ACL support is not detected
45132         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
45133
45134 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
45135
45136         * lib/nproc.h: Add extern "C" block for C++.
45137
45138 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
45139             Bruno Haible  <bruno@clisp.org>
45140
45141         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
45142         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
45143         * doc/posix-functions/isalpha.texi: Likewise.
45144         * doc/posix-functions/isblank.texi: Likewise.
45145         * doc/posix-functions/iscntrl.texi: Likewise.
45146         * doc/posix-functions/isdigit.texi: Likewise.
45147         * doc/posix-functions/isgraph.texi: Likewise.
45148         * doc/posix-functions/islower.texi: Likewise.
45149         * doc/posix-functions/isprint.texi: Likewise.
45150         * doc/posix-functions/ispunct.texi: Likewise.
45151         * doc/posix-functions/isspace.texi: Likewise.
45152         * doc/posix-functions/isupper.texi: Likewise.
45153         * doc/posix-functions/isxdigit.texi: Likewise.
45154
45155 2009-10-18  Bruno Haible  <bruno@clisp.org>
45156
45157         Tests for module 'isblank'.
45158         * modules/isblank-tests: New file.
45159         * tests/test-isblank.c: New file.
45160
45161         New module 'isblank'.
45162         * lib/isblank.c: New file.
45163         * m4/isblank.m4: New file.
45164         * modules/isblank: New file.
45165         * doc/posix-functions/isblank.texi: Mention the new module.
45166
45167 2009-10-18  Bruno Haible  <bruno@clisp.org>
45168
45169         New module 'ctype'.
45170         * lib/ctype.in.h: New file.
45171         * m4/ctype.m4: New file.
45172         * modules/ctype: New file.
45173         * doc/posix-headers/ctype.texi: Mention the new module.
45174
45175 2009-10-18  Jim Meyering  <meyering@redhat.com>
45176
45177         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
45178         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
45179         right after its initialization, rather than farther down.
45180         Keeping these in close proximity makes it easier to ensure
45181         that each such variable is initialized.  E.g.,
45182
45183             LIB_CLOCK_GETTIME=
45184             AC_SUBST([LIB_CLOCK_GETTIME])
45185
45186         This change also increments these serial numbers.
45187         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
45188         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45189         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45190
45191 2009-10-18  Bruno Haible  <bruno@clisp.org>
45192
45193         Don't let environment variables perturb build.
45194         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
45195         (gl_PREREQ_GETHRXTIME): ... not here.
45196
45197 2009-10-18  Bruno Haible  <bruno@clisp.org>
45198
45199         Avoid symlink attack in localcharset module.
45200         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
45201         (O_NOFOLLOW): Define fallback.
45202         (get_charset_aliases): Don't open the file if it is a symbolic link.
45203         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
45204         gl_FCNTL_H.
45205         (gl_FCNTL_H): Require it.
45206         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
45207         * modules/localcharset (Files): Add m4/fcntl_h.m4.
45208         Reported by Fergal Glynn <fglynn@veracode.com>.
45209
45210 2009-10-18  Bruno Haible  <bruno@clisp.org>
45211
45212         Implement nproc for mingw.
45213         * lib/nproc.c: Include <windows.h>
45214         (num_processors): On native Windows platforms, try GetSystemInfo.
45215
45216 2009-10-18  Bruno Haible  <bruno@clisp.org>
45217
45218         Implement nproc for IRIX.
45219         * lib/nproc.c: Include <sys/sysmp.h>.
45220         (num_processors): On IRIX systems, try sysmp.
45221         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
45222
45223 2009-10-18  Bruno Haible  <bruno@clisp.org>
45224
45225         Implement nproc for HP-UX.
45226         * lib/nproc.c: Include <sys/pstat.h>
45227         (num_processors): On HP-UX systems, try pstat_getdynamic.
45228         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
45229         pstat_getdynamic.
45230
45231 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
45232             Bruno Haible  <bruno@clisp.org>
45233
45234         Implement nproc for NetBSD, OpenBSD.
45235         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
45236         (ARRAY_SIZE): New macro.
45237         (num_processors): On BSD systems, try sysctl of HW_NCPU.
45238         * m4/nproc.m4: New file.
45239         * modules/nproc (Files): Add m4/nproc.m4.
45240         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
45241         (Makefile.am): Instead, augment lib_SOURCES.
45242
45243 2009-10-18  Bruno Haible  <bruno@clisp.org>
45244
45245         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
45246         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
45247         sys/param.h.
45248
45249 2009-10-16  Eric Blake  <ebb9@byu.net>
45250
45251         utimensat: new module
45252         * modules/utimensat: New file.
45253         * lib/utimensat.c (utimensat): Likewise.
45254         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
45255         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
45256         so we can work around Linux bugs.
45257         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45258         * modules/sys_stat (Makefile.am): Substitute them.
45259         * lib/sys_stat.in.h (utimensat): Declare it.
45260         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45261         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45262         * modules/utimensat-tests: New test.
45263         * tests/test-utimensat.c: Likewise.
45264
45265         utimens: let lutimens work on non-symlinks
45266         * lib/utimens.c (lutimens): Fall back to utimens rather than
45267         failing with ENOSYS, when file is not a symlink.
45268         (utimens): Reduce redirection.
45269         * tests/test-lutimens.h (test_lutimens): Update test to cover
45270         non-symlinks.
45271         * tests/test-utimens.h (test_utimens): Update test to cover
45272         symlinks.
45273         * tests/test-utimens.c (main): Update caller.
45274
45275         utimens: cache whether utimensat syscall works
45276         * lib/utimens.c (utimensat_works_really): New cache variable.
45277         (fdutimens, lutimens): Use it to avoid failing syscall.
45278
45279         test-stat-time, test-utimens: improve portability
45280         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
45281         ext4 on alpha, and for cygwin.
45282         * tests/test-utimens-common.h: New file.
45283         (nap): Factor delays into single function.
45284         * tests/test-lutimens.h (test_lutimens): Use new header.
45285         * tests/test-futimens.h (test_futimens): Likewise.
45286         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
45287         timestamps to occur from same machine, as was done previously for
45288         test_utimens.
45289         * modules/utimens-tests (Files): Ship new file.
45290         * modules/futimens-tests (Files): Likewise.
45291         Reported in part by Jim Meyering.
45292
45293         sys_stat: sort replacement declarations
45294         * lib/sys_stat.in.h: Sort declarations.
45295         * lib/futimens.c (futimens): Fix typo.
45296
45297 2009-10-15  Jim Meyering  <meyering@redhat.com>
45298
45299         don't let environment settings perturb build
45300         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
45301         could cause a configure-time and/or build-time malfunction.
45302         Typically, a configure-time function-in-library test is performed
45303         via code like this:
45304
45305           LIB_VAR=
45306           AC_SUBST([LIB_VAR])
45307           prefix_saved_LIBS=$LIBS
45308             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
45309                        [test "$ac_cv_search_FUNC" = "none required" ||
45310                         LIB_VAR=$ac_cv_search_FUNC])
45311           LIBS=$prefix_saved_LIBS
45312
45313         However, in each of the files affected by this change, the LIB_VAR=
45314         initialization was omitted.  Thus, when set in the environment, its
45315         value would propagate into generated Makefiles when FUNC is not found
45316         in LIB_NAME.
45317         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
45318         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
45319         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45320
45321 2009-10-14  Eric Blake  <ebb9@byu.net>
45322
45323         fchdir: avoid infinite recursion in mingw
45324         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
45325         recursing.
45326
45327         test-stat-time: port to mingw
45328         * tests/test-stat-time.c (force_unlink): Return a value.
45329         (test_ctime) [W32]: Fix compilation error.
45330         (nap): Don't call usleep with too large an argument.  Use
45331         force_unlink.
45332         * doc/pastposix-functions/usleep.texi (usleep): Document the
45333         portability issue.
45334
45335 2009-10-13  Jim Meyering  <meyering@redhat.com>
45336
45337         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
45338         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
45339         * modules/pipe-filter-ii: Likewise.
45340         * modules/sys_socket-tests: Likewise.
45341         * modules/tsearch-tests: Likewise.
45342         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
45343         (check): Depend on it.
45344
45345 2009-10-12  Eric Blake  <ebb9@byu.net>
45346
45347         utimens-tests: port to NFS file systems
45348         * tests/test-utimens.h (test_utimens): Refactor utimecmp
45349         comparisons to avoid spurious failures from timestamp drift
45350         between NFS machines.
45351
45352 2009-10-12  Eric Blake  <ebb9@byu.net>
45353
45354         stat-time-tests: minor cleanups
45355         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
45356         * tests/test-stat-time.c (nap): Separate assignment from call.
45357         Suggested by Paolo Bonzini and Bruno Haible.
45358
45359         sys_stat: guarantee struct timespec
45360         * lib/sys_stat.in.h (includes): Always include <time.h>
45361         * modules/sys_stat (Depends-on): Add time.
45362         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
45363         mode_t permission values.
45364         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
45365         get at subsecond timestamps.
45366
45367 2009-10-10  Eric Blake  <ebb9@byu.net>
45368
45369         futimens: new module
45370         * modules/futimens: New file.
45371         * lib/futimens.c (futimens): Likewise.
45372         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
45373         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
45374         we can work around Linux bugs.
45375         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45376         * modules/sys_stat (Makefile.am): Substitute them.
45377         * lib/sys_stat.in.h (futimens): Declare it.
45378         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45379         * doc/posix-functions/futimens.texi (futimens): Likewise.
45380         * modules/futimens-tests: New test.
45381         * tests/test-futimens.c: Likewise.
45382
45383         utimens: introduce fdutimens
45384         * lib/utimens.h (fdutimens): New prototype.
45385         * lib/utimens.c (gl_futimens): Move guts...
45386         (fdutimens): ...to new interface.
45387         * tests/test-utimens.c (do_fdutimens): Use it.
45388
45389         utimens: add UTIME_NOW and UTIME_OMIT support
45390         * lib/utimens.c (validate_timespec, update_timespec): New helper
45391         functions.
45392         (gl_futimens, lutimens): Use them.
45393         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
45394         stdbool, sys_stat.
45395         (Link): Mention resulting library dependency.
45396         * modules/utimecmp (Link): Likewise.
45397         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
45398         (Makefile.am): Pick up library dependency.
45399         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
45400         definition.
45401         * tests/test-sys_stat.c: Test the definitions.
45402         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
45403         * NEWS: Document library dependency.
45404
45405         utimecmp: support symlink timestamps
45406         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
45407         hashing when possible.  Use pathconf when available.
45408         (SYSCALL_RESOLUTION): Recognize tighter resolution.
45409         * modules/utimecmp (Depends-on): Add lstat.
45410
45411         utimens: add lutimens interface
45412         * lib/utimens.c (lutimens): New function.
45413         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
45414         * lib/utimens.h (lutimens): Declare new interface.
45415         * tests/test-utimens.c (main): Enhance test.
45416         * tests/test-lutimens.h (test_lutimens): New file.
45417         * modules/utimens-tests (Files): Distribute it.
45418         (Depends-on): Add symlink.
45419         (configure.ac): Check for usleep.
45420
45421         utimens: validate futimens usage
45422         * lib/utimens.c (gl_futimens): Require valid fd up front, using
45423         fewer syscalls on failure later on.  Avoid compiler warning on
45424         mingw.
45425         * modules/utimens (Depends-on): Add dup2.
45426
45427         utimens: add test
45428         * modules/utimens-tests: New test.
45429         * tests/test-utimens.h: New file.
45430         * tests/test-futimens.h: Likewise.
45431         * tests/test-utimens.c: Likewise.
45432
45433         doc: mention timestamp portability issues
45434         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
45435         instead.
45436         * doc/posix-functions/utime.texi (utime): Likewise.
45437         * doc/posix-functions/utimes.texi (utimes): Likewise.
45438         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
45439         instead.
45440         * doc/posix-functions/futimens.texi (futimens): Mention utimens
45441         module.
45442         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
45443         Mention weakness with symlink timestamps.
45444         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
45445         to utimensat/futimens instead.
45446         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
45447
45448         test-dup2: enhance test
45449         * tests/test-dup2.c (main): Also check AT_FDCWD.
45450
45451         test-stat-time: avoid more spurious failures
45452         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
45453         xfs; and avoid race if the two timestamps cross quantization edge.
45454
45455         relocatable: prefer 'file system' over 'filesystem'
45456         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
45457         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
45458         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
45459         * doc/relocatable.texi (Enabling Relocatability): Likewise.
45460         * lib/relocatable.c (compute_curr_prefix): Likewise.
45461
45462 2009-10-10  Jim Meyering  <meyering@redhat.com>
45463
45464         stat-time-tests: check for the usleep function
45465         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
45466
45467 2009-10-10  Bruno Haible  <bruno@clisp.org>
45468
45469         * modules/xnanosleep: Put the Link section after the Include section.
45470
45471 2009-10-09  Eric Blake  <ebb9@byu.net>
45472
45473         dup2: work around FreeBSD 6.1 bug
45474         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
45475         * doc/posix-functions/dup2.texi (dup2): Document it.
45476         Reported by Nelson H. F. Beebe and Jim Meyering.
45477
45478         test-stat-time: port to buggy NFS clients
45479         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
45480         (test_ctime): Also skip test if mtime and ctime are skewed.
45481
45482         maint: prefer 'file system' over 'filesystem'
45483         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
45484         * doc/posix-functions/lstat.texi (lstat): Likewise.
45485         * lib/file-has-acl.c (file_has_acl): Likewise.
45486         * lib/fwriteerror.c [TEST]: Likewise.
45487         * tests/test-areadlink.h (test_areadlink): Likewise.
45488         * tests/test-areadlinkat-with-size.c (main): Likewise.
45489         * tests/test-areadlinkat.c (main): Likewise.
45490         * tests/test-canonicalize-lgpl.c (main): Likewise.
45491         * tests/test-canonicalize.c (main): Likewise.
45492         * tests/test-fstatat.c (main): Likewise.
45493         * tests/test-linkat.c (main): Likewise.
45494         * tests/test-lstat.h (test_lstat_func): Likewise.
45495         * tests/test-mkdir.h (test_mkdir): Likewise.
45496         * tests/test-readlink.h (test_readlink): Likewise.
45497         * tests/test-remove.c (main): Likewise.
45498         * tests/test-rename.h (test_rename): Likewise.
45499         * tests/test-renameat.c (main): Likewise.
45500         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45501         * tests/test-symlink.h (test_symlink): Likewise.
45502         * tests/test-symlinkat.c (main): Likewise.
45503         * tests/test-unlink.h (test_unlink_func): Likewise.
45504         * tests/test-unlinkat.c (main): Likewise.
45505
45506         maint: make realtime library usage explicit
45507         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
45508         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
45509         * modules/settime (Link): Likewise.
45510         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
45511
45512         test-stat-time: speed up execution
45513         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
45514         warning on mingw.
45515         (nap): New helper function.
45516         (prepare_test): Use it to reduce sleep time.
45517         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
45518         execution.
45519         * modules/stat-time-tests (configure.ac): Check for usleep.
45520
45521 2009-10-09  Jim Meyering  <meyering@redhat.com>
45522
45523         selinux-h: always use getfilecon wrappers
45524         * lib/getfilecon.c: New file.
45525         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
45526         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
45527         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
45528         (fgetfilecon): Provide a stub.
45529         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
45530         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
45531         file unconditionally.
45532         When <selinux/selinux.h> is found, arrange to use wrappers.
45533         * modules/selinux-h (Files): Add getfilecon.c.
45534         (Makefile.am): Substitute include-next-related bits
45535         into the now-always-generated selinux/selinux.h file.
45536         * doc/glibc-functions/lgetfilecon.texi: New file.
45537         * doc/glibc-functions/fgetfilecon.texi: New file.
45538         * doc/glibc-functions/getfilecon.texi: New file.
45539         * doc/glibc-functions/getfilecon-desc.texi: New file.
45540         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
45541         which to pull in the new files.
45542         * MODULES.html.sh (Misc): Add selinux-h.
45543
45544 2009-10-08  Jim Meyering  <meyering@redhat.com>
45545
45546         unistd: fix comment typo
45547         * lib/unistd.in.h (euidaccess): Fix a comment typo.
45548
45549 2009-10-08  Eric Blake  <ebb9@byu.net>
45550
45551         areadlink: use SIZE_MAX consistently
45552         * modules/areadlink (Depends-on): Add stdint.
45553         * modules/areadlink-with-size (Depends-on): Likewise.
45554         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
45555         gives NULL; drop sys/types, since unistd gives size_t; and add
45556         stdint for SIZE_MAX.
45557         (SIZE_MAX): Rely on headers.
45558         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
45559         and add stdint.
45560         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
45561         (SIZE_MAX): Likewise.
45562         (INITIAL_BUF_SIZE): Turn into enum.
45563         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
45564
45565 2009-10-08  Jim Meyering  <meyering@redhat.com>
45566
45567         areadlinkat: avoid compilation failure
45568         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
45569         Fix typo in comment.
45570
45571 2009-10-07  Eric Blake  <ebb9@byu.net>
45572
45573         areadlinkat-with-size: new module
45574         * modules/areadlinkat-with-size: New module.
45575         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
45576         * lib/areadlink.h (areadlinkat): Declare it.
45577         * MODULES.html.sh (File system functions): Mention it.
45578         * modules/areadlinkat-with-size-tests: New test.
45579         * tests/test-areadlinkat-with-size.c: New file.
45580
45581         xreadlinkat: new module
45582         * modules/xreadlinkat: New module.
45583         * lib/xreadlinkat.c (xreadlinkat): New file.
45584         * lib/xreadlink.h (xreadlinkat): Declare it.
45585         * MODULES.html.sh (File system functions): Mention it.
45586
45587         areadlinkat: new module
45588         * lib/at-func.c (FUNC_FAIL): New define.
45589         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
45590         * modules/areadlinkat: New module.
45591         * lib/linkat.c (areadlinkat): Move...
45592         * lib/areadlinkat.c (areadlinkat): ...to new file.
45593         * lib/areadlink.h (areadlinkat): Declare it.
45594         * modules/linkat (Depends-on): Add areadlinkat.
45595         * MODULES.html.sh (File system functions): Mention it.
45596         * modules/areadlinkat-tests: New test.
45597         * tests/test-areadlinkat.c: New file.
45598
45599         areadlink, areadlink-with-size: add tests
45600         * modules/areadlink-tests: New test.
45601         * modules/areadlink-with-size-tests: Likewise.
45602         * tests/test-areadlink.h: New file.
45603         * tests/test-areadlink.c: Likewise.
45604         * tests/test-areadlink-with-size.c: Likewise.
45605
45606         maint: minor cleanups
45607         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
45608         _UNUSED_PARAMETER_ instead.
45609         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
45610         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
45611         * modules/linkat-tests (Files): Distribute test-link.h.
45612
45613         openat, utimens: whitespace cleanup
45614         * lib/openat.c: Prefer space throughout, rather than mix of 8
45615         spaces vs. tabs.
45616         * lib/at-func.c: Likewise.
45617         * lib/utimens.c: Likewise.
45618
45619         openat: avoid using wrong fd
45620         * lib/openat.c (openat_permissive): Reject user's fd if saving the
45621         working directory chooses same fd.
45622         * lib/at-func.c (AT_FUNC_NAME): Likewise.
45623
45624         mkdir, mkdirat: fix cygwin 1.5.x bug
45625         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
45626         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
45627         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
45628         bug.
45629         (gl_PREREQ_MKDIR): Delete unused macro.
45630         * modules/mkdir (Files): Track file rename.
45631         (configure.ac): Update macro name.
45632         * modules/openat (Depends-on): Add mkdir.
45633         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
45634
45635         mkdir, mkdirat: add tests
45636         * modules/mkdir-tests: New test.
45637         * tests/test-mkdir.h: New file.
45638         * tests/test-mkdir.c: Likewise.
45639         * tests/test-mkdirat.c: Likewise.
45640         * modules/openat-tests (Files): Add new files.
45641         (Makefile.am): Run new test.
45642
45643 2009-10-06  Eric Blake  <ebb9@byu.net>
45644
45645         doc: tweak *at function documentation
45646         * doc/posix-functions/faccessat.texi (faccessat): Mention
45647         known issue with replacement.
45648         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
45649         * doc/posix-functions/linkat.texi (linkat): Likewise.
45650         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45651         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45652         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45653         * doc/posix-functions/renameat.texi (renameat): Likewise.
45654         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45655
45656         openat: fix GNU/Hurd bug in unlinkat
45657         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
45658         broken.
45659         * doc/posix-functions/unlink.texi (unlink): Document this.
45660         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
45661
45662         fdopendir: fix GNU/Hurd bug
45663         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
45664         allowing non-directory fds.
45665         * lib/fdopendir.c (rpl_fdopendir): Work around it.
45666         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
45667         * modules/dirent (Makefile.am): Substitute it.
45668         * lib/dirent.in.h (fdopendir): Declare replacement.
45669         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
45670         * tests/test-fdopendir.c (main): Test something other than
45671         /dev/null, since on Hurd that behaves like a directory.
45672
45673         test-symlink: port to GNU/Hurd
45674         * tests/test-symlink.h (test_symlink): Relax expected errno.
45675
45676         doc: tweak more cygwin information
45677         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
45678         now compatible with glibc.
45679         * doc/posix-functions/getopt.texi (getopt): Likewise.
45680
45681         getopt-gnu: add another test
45682         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
45683         guarantee behavior relied on by m4.
45684         * tests/test-getopt.c (main): Use it.
45685         * modules/getopt-posix-tests (Depends-on): Add setenv.
45686         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
45687
45688         getopt: fix compilation on darwin
45689         * lib/getopt.in.h (includes): Leave breadcrumbs during system
45690         include.
45691         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
45692         Reported by Ludovic Courtès.
45693
45694 2009-10-06  Bruno Haible  <bruno@clisp.org>
45695
45696         * modules/size_max (Description): Discourage its use.
45697         Reported by Simon Josefsson.
45698
45699 2009-10-06  Jim Meyering  <meyering@redhat.com>
45700
45701         linkat: avoid compilation failure
45702         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
45703
45704 2009-10-05  Eric Blake  <ebb9@byu.net>
45705
45706         linkat: support Linux 2.6.17
45707         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
45708         linkat on Linux, but allow cache variable override.
45709         * lib/linkat.c (rpl_linkat): Define override.
45710         * modules/linkat (Depends-on): Add symlinkat.
45711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
45712         * modules/unistd (Makefile.am): Substitute it.
45713         * lib/unistd.in.h (linkat): Declare replacement.
45714         Reported by Pádraig Brady.
45715
45716         quotearg: port test to systems with C.UTF-8 locale
45717         * tests/test-quotearg.c (struct result_strings): Add another
45718         member, differentiating between C.ASCII and C.UTF-8 handling.
45719         (compare_strings): Add parameter.
45720         (main): Adjust all callers.
45721
45722         getopt: avoid clash with FreeBSD _getopt_internal
45723         * lib/getopt.in.h (_getopt_internal): Override the name.
45724         * lib/getopt_int.h (includes): Pick up any overrides.
45725         Reported by Reuben Thomas.
45726
45727         hash: allow C89 compilation
45728         * lib/hash.c (check_tuning): Move declaration before statement.
45729         Reported by Reuben Thomas.
45730
45731 2009-10-05  Karl Berry  <karl@gnu.org>
45732
45733         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
45734
45735 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
45736             Bruno Haible  <bruno@clisp.org>
45737
45738         * lib/uname.c (uname): Use a table-driven algorithm to compute
45739         Windows NT versions.
45740
45741 2009-10-04  Bruno Haible  <bruno@clisp.org>
45742
45743         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
45744         program_invocation_short_name.
45745         * modules/progname (configure.ac): Test for presence of
45746         program_invocation_short_name.
45747         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
45748
45749 2009-10-04  Bruno Haible  <bruno@clisp.org>
45750
45751         * lib/progname.c (set_program_name): Fix comment.
45752         Reported by Jim Meyering.
45753
45754 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45755             Bruno Haible  <bruno@clisp.org>
45756
45757         * lib/uname.c: Include <string.h>.
45758         (uname): Do only one call to GetVersionEx in the common case.
45759
45760 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
45761             Bruno Haible  <bruno@clisp.org>
45762
45763         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
45764         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
45765         (uname): Add support for Windows CE and various non-x86 CPU types.
45766
45767 2009-10-03  Bruno Haible  <bruno@clisp.org>
45768
45769         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
45770         invocation to tests/configure.ac.
45771         Reported by Ian Beckwith <ianb@erislabs.net>.
45772
45773 2009-10-02  Eric Blake  <ebb9@byu.net>
45774
45775         fchdir: avoid compiler warning
45776         * lib/fchdir.c (canonicalize_file_name)
45777         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
45778
45779         test-open: support mingw errno values
45780         * tests/test-open.h (test_open): Relax test.
45781         * tests/test-fopen.h (test_fopen): Likewise.
45782         * tests/test-openat-safer.c (main): Likewise.
45783
45784         open: fix opening directory on mingw
45785         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
45786
45787         test-open: on GNU/Hurd, /dev/null is a directory
45788         * tests/test-fopen.h (main): Rename...
45789         (test_fopen): ...to this.  Use a guaranteed non-directory when
45790         confirming open behavior on trailing slash.
45791         * tests/test-openat-safer.c (main): Likewise.
45792         * tests/test-open.h (main): Likewise....
45793         (test_open): ...to this.
45794         * tests/test-fopen.c (main): Adjust caller.
45795         * tests/test-fopen-safer.c (main): Likewise.
45796         * tests/test-open.c (main): Likewise.
45797         * tests/test-fcntl-safer.c (main): Likewise.
45798         Reported by Samuel Thibault.
45799
45800         rename, fchdir: don't ignore chdir failure
45801         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
45802         * lib/rename.c (rpl_rename) [W32]: Likewise.
45803         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
45804         an empty destination directory if source cannot be renamed,
45805         although there is still possibility for failure.
45806         * doc/posix-functions/rename.texi (rename): Document the race.
45807         Reported by Jim Meyering.
45808
45809         maint: cleanup whitespace in recent commits
45810         * lib/rename.c (rpl_rename): Remove tabs.
45811         * tests/test-link.h (test_link): Likewise.
45812         * lib/fchdir.c (get_name): Likewise.
45813         Reported by Jim Meyering.
45814
45815 2009-10-02  Ben Pfaff  <blp@gnu.org>
45816
45817         relocatable-prog-wrapper: Add missing dependency on
45818         double-slash-root.
45819         * modules/relocatable-prog-wrapper: Add dependency.
45820         Reported by Ian Beckwith <ianb@erislabs.net>.
45821
45822 2009-10-02  Eric Blake  <ebb9@byu.net>
45823
45824         renameat: fix Solaris bugs
45825         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
45826         needed fixing.
45827         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
45828         * modules/stdio (Makefile.am): Substitute it.
45829         * lib/stdio.in.h (renameat): Declare replacement.
45830         * lib/renameat.c (rpl_renameat): Implement fix.
45831
45832         renameat: new module
45833         * modules/renameat: New file.
45834         * lib/renameat.c (renameat): Likewise.
45835         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
45836         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
45837         * modules/stdio (Makefile.am): Substitute them.
45838         * lib/stdio.in.h (renameat): Declare it.
45839         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
45840         * doc/posix-functions/renameat.texi (renameat): Likewise.
45841         * modules/renameat-tests: New test.
45842         * tests/test-renameat.c: Likewise.
45843
45844         rename: fix mingw bugs
45845         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
45846         directory overwrite bugs.
45847
45848         rename: fix another cygwin 1.5 bug
45849         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
45850         checks.
45851         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
45852         unnecessary cygwin workarounds.  Also work around bug with moving
45853         full directory onto an empty one.
45854         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
45855
45856         rename-dest-slash: merge into rename module
45857         * modules/rename-dest-slash (Status): Mark obsolete.
45858         (Depends-on): Add rename.
45859         (Files): Let rename do it all.
45860         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
45861         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
45862         * m4/rename-dest-slash.m4: ...so this file can be deleted.
45863         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
45864         * lib/rename.c (rpl_rename): Update comments.
45865
45866         rename: fix cygwin 1.5.x bugs
45867         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
45868         * lib/rename.c (rpl_rename): Work around them.
45869         * modules/rename (Depends-on): Add same-inode.
45870
45871         rename: fix Solaris 10 bug
45872         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45873         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
45874         was the only bug.
45875
45876         rename: fix Solaris 9 bug
45877         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
45878         on non-directory.  Avoid calling exit.
45879         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
45880         strdup.
45881         * modules/rename-tests (Depends-on): Drop lstat.
45882         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
45883         (gl_PREREQ_RENAME): Delete unused macro.
45884
45885         rename-dest-slash: fix NetBSD bug
45886         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
45887         links.
45888         * modules/rename-dest-slash (Depends-on): Add same-inode.
45889
45890         rename-tests: new test, exposes several platform bugs
45891         * modules/rename-tests: New file.
45892         * tests/test-rename.h: Likewise.
45893         * tests/test-rename.c: Likewise.
45894         * doc/posix-functions/rename.texi (rename): Improve documentation,
45895         including bugs that will eventually be fixed in gnulib.
45896
45897 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
45898
45899         * lib/uname.c: Include <stdlib.h>
45900         (uname): Assume version info is available.
45901
45902 2009-10-02  Jim Meyering  <meyering@redhat.com>
45903
45904         gnu-web-doc-update: correct --help output
45905         * build-aux/gnu-web-doc-update: Make --help output relevant.
45906
45907         gnu-web-doc-update: add standard options
45908         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
45909
45910         gnu-web-doc-update: New module.
45911         Use this script to automatically update the on-line web documentation
45912         for your GNU project at http://www.gnu.org/software/$pkg/manual/
45913         * modules/gnu-web-doc-update: New file, from coreutils.
45914         * build-aux/gnu-web-doc-update: New script.
45915
45916 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
45917
45918         link: LoadLibrary is not needed.
45919         * lib/link.c: Use GetModuleHandle.
45920
45921 2009-10-01  Eric Blake  <ebb9@byu.net>
45922
45923         getopt: bump serial number
45924         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
45925         change.
45926
45927         tests: tighten link, rmdir, and remove tests
45928         * tests/test-link.h (includes): No need to use <config.h> here.
45929         Clean up if directory hard link was created, otherwise test for
45930         trailing '.'.
45931         * tests/test-linkat.c (main): Simplify.
45932         * tests/test-remove.c (main): Enhance test for trailing '.'.
45933         * tests/test-rmdir.h (test_rmdir_func): Likewise.
45934
45935 2009-10-01  Jim Meyering  <meyering@redhat.com>
45936
45937         maint.mk: requiring "make major" was annoying, for a "minor" release.
45938         What is intended is "stable", to contrast with alpha and beta,
45939         so require "make stable", not "make major".
45940         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
45941         (get_tool_versions): Likewise.
45942         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
45943
45944 2009-09-30  Ben Pfaff  <blp@gnu.org>
45945
45946         Fix broken build of replacement for Windows tmpfile().
45947         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
45948         flags argument added along with the 'mkostemp' module.
45949
45950 2009-09-28  Bruno Haible  <bruno@clisp.org>
45951
45952         Avoid identifier clash with POSIX function 'remove' defined as a macro.
45953         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
45954         to 'remove_elt'.
45955         (gl_list_remove): Update.
45956         * lib/gl_list.c (gl_list_remove): Update.
45957         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
45958         to 'remove_elt'.
45959         (gl_oset_remove): Update.
45960         * lib/gl_list.c (gl_oset_remove): Update.
45961         Reported by Eric Blake.
45962
45963 2009-09-28  Eric Blake  <ebb9@byu.net>
45964
45965         doc: mention yet more cygwin 1.7 status
45966         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
45967         cygwin.
45968         * doc/glibc-functions/execvpe.texi (execvpe): New file.
45969         * doc/gnulib.texi (Glibc unistd.h): Mention it.
45970
45971         argp: fix test failure
45972         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
45973         that are not upper-case.  Pass correct range to tolower.
45974
45975 2009-09-27  Jim Meyering  <meyering@redhat.com>
45976
45977         test-yesno: work around sparc-dash here-document infelicity
45978         Without this change, the literal \177 byte in a here document
45979         would make dash 0.5.5.1-3 access uninitialized memory.
45980         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
45981         Instead, use a marker, "@", and filter through tr to create the desired
45982         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
45983
45984 2009-09-27  Bruno Haible  <bruno@clisp.org>
45985
45986         Disable untested support for new flavours of ACLs on AIX.
45987         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
45988         progress.
45989         * lib/set-mode-acl.c (qset_acl): Likewise.
45990
45991 2008-12-07  Bruno Haible  <bruno@clisp.org>
45992
45993         Add support for new flavours of ACLs on AIX. (Untested.)
45994         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
45995         (file_has_acl): Add support for newer AIX.
45996         * lib/set-mode-acl.c (qset_acl): Likewise.
45997         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
45998         Rainer Tammer <tammer@tammer.net>.
45999
46000 2009-09-26  Eric Blake  <ebb9@byu.net>
46001
46002         argp: fix compilation of getopt
46003         * lib/getopt.in.h (includes): Use different guard than glibc.
46004         Reported by Sergey Poznyakoff.
46005
46006         doc: mention more cygwin 1.7 status
46007         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
46008         bug.
46009         * doc/posix-functions/execl.texi (execl): Likewise.
46010         * doc/posix-functions/execle.texi (execle): Likewise.
46011         * doc/posix-functions/execlp.texi (execlp): Likewise.
46012         * doc/posix-functions/execv.texi (execv): Likewise.
46013         * doc/posix-functions/execve.texi (execve): Likewise.
46014         * doc/posix-functions/execvp.texi (execvp): Likewise.
46015         * doc/glibc-functions/canonicalize_file_name.texi
46016         (canonicalize_file_name): Cygwin 1.7 now provides this.
46017         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
46018         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
46019         on AT_SYMLINK_NOFOLLOW.
46020
46021 2009-09-24  Eric Blake  <ebb9@byu.net>
46022
46023         test-linkat: make test more robust
46024         * tests/test-linkat.c (main): Avoid collision with EEXIST.
46025
46026         getopt: fix inclusion guards for cygwin
46027         * modules/getopt-posix (Depends-on): Add include-next.
46028         (Makefile.am): Substitute more items in replacement header.
46029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
46030         <getopt.h>.
46031         * lib/getopt.in.h (includes): Use split inclusion guard, and
46032         prefer <getopt.h> over include <unistd.h> when one is present.
46033         (option): Also override name of 'struct option'.
46034
46035         same-inode: revert prior change; it is not yet ready
46036         * NEWS: Undo mention of this change.
46037         * lib/same-inode.h (same-inode.h): Undo tri-state change.
46038         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
46039         * lib/cycle-check.c (cycle_check): Likewise.
46040         * lib/same.c (same_name): Likewise.
46041         * lib/at-func2.c (at_func2): Likewise.
46042
46043 2009-09-23  Eric Blake  <ebb9@byu.net>
46044
46045         linkat: new module
46046         * modules/linkat: New file.
46047         * lib/at-func2.c (at_func2): Likewise.
46048         * lib/linkat.c (linkat): Likewise.
46049         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
46050         * lib/openat-priv.h (at_func2): Add declaration.
46051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46052         * modules/unistd (Makefile.am): Substitute them.
46053         * lib/unistd.in.h (linkat): Declare it.
46054         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46055         * doc/posix-functions/linkat.texi (linkat): Likewise.
46056         * doc/posix-functions/link.texi (link): Tweak wording.
46057         * tests/test-link.c (main): Move guts...
46058         * tests/test-link.h (test_link): ...into new file.
46059         * modules/linkat-tests: New test.
46060         * tests/test-linkat.c: Likewise.
46061         * modules/link-tests (Files): Ship new file.
46062         (Depends-on): Add stdbool.
46063
46064         dirname: add library-safe mdir_name
46065         * lib/dirname.h (mdir_name): New prototype.
46066         * lib/dirname.c (dir_name): Move guts...
46067         (mdir_name): ...to new function that avoids xalloc_die.
46068
46069         fchdir: another mingw fix
46070         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
46071         * lib/fchdir.c (get_name): New helper method; skips canonicalize
46072         on mingw (where it has not yet been ported), and make it optional
46073         elsewhere.
46074         (_gl_register_fd): Use it.
46075
46076         same-inode: make SAME_INODE tri-state, to port to mingw
46077         * NEWS: Mention this change.
46078         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
46079         st_ino always being 0.
46080         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
46081         * lib/cycle-check.c (cycle_check): Likewise.
46082         * lib/same.c (same_name): Likewise.
46083
46084         lstat: avoid mingw compilation error
46085         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
46086         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
46087         lstat ourselves.
46088         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
46089         was adequate.
46090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
46091         the checks for lstat.
46092         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
46093
46094         link: fix test failure on Solaris 9
46095         * lib/link.c (rpl_link): Don't assume link will catch bogus
46096         trailing slash on source.
46097
46098         test-symlinkat: enhance test
46099         * tests/test-readlink.c (main): Move guts...
46100         * tests/test-readlink.h (test_readlink): ...into new file.
46101         * tests/test-symlink.c (main): Move guts...
46102         * tests/test-symlink.h (test_symlink): ...into new file.
46103         * tests/test-symlinkat.c (main): Use new files for further
46104         coverage.
46105         (do_symlink, do_readlink): New helper functions.
46106         * modules/symlink-tests (Files): Ship new file.
46107         (Depends-on): Add stdbool.
46108         * modules/readlink-tests (Files): Ship new file.
46109         (Depends-on): Add stdbool.
46110         * modules/symlinkat-tests (Files): Use new files.
46111
46112 2009-09-23  Eric Blake  <ebb9@byu.net>
46113
46114         readlink: document portability issue with symlink length
46115         * doc/posix-functions/lstat.texi (lstat): Mention that some file
46116         systems have bogus st_size on symlinks, and mention the
46117         areadlink-with-size module.
46118         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
46119         * doc/posix-functions/readlink.texi (readlink): Mention the
46120         areadlink module, and ERANGE failure.
46121         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
46122         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
46123
46124         readlink: fix Solaris 9 bug with trailing slash
46125         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
46126         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
46127         * doc/posix-functions/readlink.texi (readlink): Document this.
46128         * modules/readlink-tests: New test.
46129         * tests/test-readlink.c: Likewise.
46130
46131         readlink: fix cygwin 1.5.x bug with return type
46132         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
46133         * lib/unistd.in.h (readlink): Use ssize_t.
46134         * lib/readlink.c (readlink): Likewise.
46135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46136         * modules/unistd (Makefile.am): Substitute it.
46137         * lib/unistd.in.h (readlink): Declare replacement.
46138         * doc/posix-functions/readlink.texi (readlink): Document this.
46139
46140         symlink: use throughout gnulib
46141         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
46142         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
46143         symlink is not used.
46144         * modules/symlinkat (Depends-on): Add symlink.
46145         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46146         * modules/canonicalize-tests (Depends-on): Likewise.
46147         * modules/lstat-tests (Depends-on): Likewise.
46148         * modules/openat-tests (Depends-on): Likewise.
46149         * modules/remove-tests (Depends-on): Likewise.
46150         * modules/rmdir-tests (Depends-on): Likewise.
46151         * modules/unlink-tests (Depends-on): Likewise.
46152         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
46153         * tests/test-canonicalize.c (symlink): Likewise.
46154         * tests/test-fstatat.c (symlink): Likewise.
46155         * tests/test-lstat.c (symlink): Likewise.
46156         * tests/test-remove.c (symlink): Likewise.
46157         * tests/test-rmdir.c (symlink): Likewise.
46158         * tests/test-unlink.c (symlink): Likewise.
46159         * tests/test-unlinkat.c (symlink): Likewise.
46160
46161         symlink: new module, for Solaris 9 bug
46162         * modules/symlink: New file.
46163         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
46164         * lib/symlink.c: Likewise.
46165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
46166         * modules/unistd (Makefile.am): Substitute them.
46167         * lib/unistd.in.h (symlink): Declare replacement.
46168         * MODULES.html.sh (File system functions): Mention it.
46169         * doc/posix-functions/symlink.texi (symlink): Likewise.
46170         * modules/symlink-tests: New test.
46171         * tests/test-symlink.c: Likewise.
46172
46173 2009-09-23  Bruno Haible  <bruno@clisp.org>
46174
46175         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
46176         when needed.
46177         Test case: gnulib-tool --import --with-tests atexit inttypes.
46178         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
46179
46180 2009-09-23  Bruno Haible  <bruno@clisp.org>
46181
46182         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
46183         subcommand, not in a subshell.
46184
46185 2009-09-22  Eric Blake  <ebb9@byu.net>
46186
46187         unistd: sort replacement declarations
46188         * lib/unistd.in.h: Sort declarations.
46189
46190         open, openat: minor optimization
46191         * lib/open.c (open): If open succeeded, len is non-zero.
46192         * lib/openat.c (rpl_openat): Likewise.
46193
46194         link-follow: ensure correct result
46195         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
46196         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
46197         distinguish between possible failures.
46198
46199 2009-09-21  Eric Blake  <ebb9@byu.net>
46200
46201         fts: avoid compiler warning
46202         * lib/fts.c (dirent_inode_sort_may_be_useful)
46203         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
46204
46205 2009-09-19  Bruno Haible  <bruno@clisp.org>
46206
46207         * lib/progreloc.c (canonicalize_file_name): New declaration.
46208
46209 2009-09-19  Eric Blake  <ebb9@byu.net>
46210
46211         link: fix quoting
46212         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
46213
46214         openat: fix openat bugs on Solaris 9
46215         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
46216         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
46217         * modules/openat (Depends-on): Add open.
46218         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
46219         * modules/fcntl-h (Makefile.am): Substitute it.
46220         * lib/fcntl.in.h (openat): Declare replacement.
46221         * doc/posix-functions/openat.texi (openat): Document this.
46222
46223         openat: move fstatat and unlinkat into correct files
46224         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
46225         compiled.
46226         * lib/openat.c (fstatat, unlinkat): Move...
46227         * lib/fstatat.c (fstatat): ...into correct files.
46228         * lib/unlinkat.c (unlinkat): Likewise.
46229
46230         openat: fix unlinkat bugs on Solaris 9
46231         * lib/unlinkat.c (unlinkat): New file.
46232         * modules/openat (Depends-on): Add unlink.
46233         (Files): Distribute it.
46234         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
46235         trailing slash behavior is broken.
46236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46237         * modules/unistd (Makefile.am): Substitute it.
46238         * lib/unistd.in.h (unlinkat): Declare replacement.
46239         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
46240
46241         openat: fix fstatat bugs on Solaris 9
46242         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
46243         stat.
46244         * doc/posix-functions/fstatat.texi (fstatat): Document this.
46245
46246         test-unlinkat: enhance test, to expose Solaris 9 bug
46247         * tests/test-unlink.c (main): Factor guts...
46248         * tests/test-unlink.h (test_rmdir_func): ...into new file.
46249         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
46250         * tests/test-rmdir.c (main): Adjust caller.
46251         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
46252         (unlinker): New helper function.
46253         (rmdirat): Enhance check.
46254         * modules/rmdir-tests (Depends-on): Add stdbool.
46255         * modules/unlink-tests (Depends-on): Likewise.
46256         (Files): Add test-unlink.h.
46257         * modules/openat-tests (Files): Likewise.
46258         (Depends-on): Add unlinkdir.
46259
46260         test-fstatat: new test, to expose Solaris 9 bugs
46261         * tests/test-stat.c (main): Factor guts...
46262         * tests/test-stat.h (test_stat_func): ...into new file.
46263         * tests/test-lstat.c (main): Factor guts...
46264         * tests/test-lstat.h (test_lstat_func): ...into new file.
46265         * tests/test-fstatat.c: New file.
46266         * modules/stat-tests (Files): Add test-stat.h.
46267         * modules/lstat-tests (Files): Add test-lstat.h.
46268         (Depends-on): Add stdbool.
46269         * modules/openat-tests (Depends-on): Add pathmax.
46270         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
46271         (Makefile.am): Run new test.
46272
46273         remove: new module, for mingw and Solaris 9 bugs
46274         * modules/remove: New file.
46275         * lib/remove.c: Likewise.
46276         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
46277         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
46278         * modules/stdio (Makefile.am): Use them.
46279         * lib/stdio.in.h (remove): Declare replacement.
46280         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46281         * doc/posix-functions/remove.texi (remove): Likewise.
46282         * modules/remove-tests: New test.
46283         * tests/test-remove.c: Likewise.
46284
46285         unlink: new module, for Solaris 9 bug
46286         * modules/unlink: New file.
46287         * lib/unlink.c: Likewise.
46288         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
46289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46290         * modules/unistd (Makefile.am): Use them.
46291         * lib/unistd.in.h (stat): Declare replacement.
46292         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46293         * doc/posix-functions/unlink.texi (unlink): Likewise.
46294         * modules/unlink-tests: New test.
46295         * tests/test-unlink.c: Likewise.
46296
46297         lstat: fix Solaris 9 bug
46298         * lib/lstat.c (lstat): Also check for trailing slash on
46299         non-symlink, non-directories.  Use stat module to simplify logic.
46300         * doc/posix-functions/lstat.texi (lstat): Document it.
46301         * modules/lstat-tests (Depends-on): Add errno, same-inode.
46302         (configure.ac): Check for symlink.
46303         * tests/test-lstat.c (main): Add more tests.
46304
46305         stat: add as dependency to other modules
46306         * modules/chown (Depends-on): Add stat.
46307         * modules/euidaccess (Depends-on): Likewise.
46308         * modules/fchdir (Depends-on): Likewise.
46309         * modules/isdir (Depends-on): Likewise.
46310         * modules/link (Depends-on): Likewise.
46311         * modules/lstat (Depends-on): Likewise.
46312         * modules/mkdir-p (Depends-on): Likewise.
46313         * modules/modechange (Depends-on): Likewise.
46314         * modules/open (Depends-on): Likewise.
46315         * modules/readlink (Depends-on): Likewise.
46316         * modules/same (Depends-on): Likewise.
46317
46318         stat: fix Solaris 9 bug
46319         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
46320         slash.
46321         * lib/stat.c (rpl_stat): Work around it.
46322         * doc/posix-functions/stat.texi (stat): Update documentation.
46323
46324         stat: new module, for mingw bug
46325         * modules/stat: New file.
46326         * lib/stat.c: Likewise.
46327         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
46328         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46329         * modules/sys_stat (Makefile.am): Use them.
46330         * lib/sys_stat.in.h (stat): Declare replacement.
46331         * lib/openat.c (fstatat): Deal with lstat and stat being function
46332         macros.
46333         * modules/openat (Depends-on): Add inline.
46334         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
46335         * doc/posix-functions/stat.texi (stat): Likewise.
46336         * modules/stat-tests: New test.
46337         * tests/test-stat.c: Likewise.
46338
46339 2009-09-19  Jim Meyering  <meyering@redhat.com>
46340
46341         syntax-check: detect unnecessary inclusion of canonicalize.h
46342         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
46343
46344 2009-09-19  Eric Blake  <ebb9@byu.net>
46345
46346         canonicalize-lgpl: adjust clients to use correct header
46347         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46348         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
46349         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
46350         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
46351         * lib/progreloc.c (includes): Likewise.
46352
46353 2009-09-19  Jim Meyering  <meyering@redhat.com>
46354
46355         test-posixtm.c: correct a comment
46356         * tests/test-posixtm.c: Correct first-line comment.
46357         Spotted by Eric Blake.
46358
46359 2009-09-16  Jim Meyering  <meyering@redhat.com>
46360
46361         posixtm-tests: make T const-correct; add a test case
46362         * tests/test-posixtm.c (T): Declare const.
46363         Add a test for -(2^31+1).
46364         Remove useless can-succeed-only-in-2002 test.
46365
46366         posixtm-tests: adjust the sole failing test
46367         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
46368         expected output matches what mktime now produces.  Cross-checked via
46369         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
46370
46371         posixtm: move #ifdef'd tests into a new module
46372         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
46373         * tests/test-posixtm.c: ... this new file.
46374         * modules/posixtm-tests: New module.
46375
46376 2009-09-19  Eric Blake  <ebb9@byu.net>
46377
46378         openat: simplify use of at-func.c
46379         * lib/at-func.c (includes): Include prerequisites here, to
46380         simplify requirements on client files.
46381         * lib/openat-priv.h: Add double-inclusion guard.
46382         * lib/faccessat.c (includes): Simplify.
46383         * lib/fchmodat.c (includes): Likewise.
46384         * lib/fchownat.c (includes): Likewise.
46385         * lib/mkdirat.c (includes): Likewise.
46386         * lib/mkfifoat.c (includes): Likewise.
46387         * lib/symlinkat.c (includes): Likewise.
46388
46389         openat: allow return of fd 0
46390         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
46391         * modules/save-cwd (Depends-on): Replace fcntl-safer with
46392         unistd-safer.
46393         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
46394         <fcntl.h>; this module does not leak fds.
46395         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
46396         must be allowed to return 0, leaving openat_safer to add the
46397         safety.
46398         (openat_permissive): Avoid writing to just-opened fd 2 if
46399         restoring the current directory fails.
46400         * lib/openat-die.c (openat_restore_fail): Add comment.
46401         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
46402         (save_cwd): Guarantee safe fd, but without use of open_safer.
46403         * tests/test-openat.c: New test.
46404         * modules/openat-tests (Files, Makefile.am): Distribute and build
46405         new file.
46406
46407         relocatable-prog-wrapper: fix build
46408         * modules/relocatable-prog-wrapper (Files): Update name of
46409         canonicalize m4 file, broken on 2009-09-17.
46410         Reported by emad hajjar <aleppos@hotmail.com>.
46411
46412 2009-09-19  Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/safe-alloc.h: Use the standard header with GPL copyright.
46415         * lib/safe-alloc.c: Likewise.
46416         Reported by Ian Beckwith <ianb@erislabs.net>.
46417
46418 2009-09-18  Bruno Haible  <bruno@clisp.org>
46419
46420         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
46421         Reported by <erobles@sensacd.com.mx>.
46422
46423 2009-09-17  Eric Blake  <ebb9@byu.net>
46424
46425         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
46426         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
46427         slashes when checking if last component is missing.
46428         * tests/test-canonicalize.c (main): Test this.
46429
46430         canonicalize, canonicalize-lgpl: honor // if distinct from /
46431         * modules/canonicalize (Files): Add double-slash-root.m4.
46432         * modules/canonicalize-lgpl (Files): Likewise.
46433         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
46434         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
46435         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
46436         fallback definition.
46437         (canonicalize_filename_mode): Use it to protect //.
46438         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
46439         (__realpath): Likewise.
46440         * tests/test-canonicalize.c (main): Test this.
46441         * tests/test-canonicalize-lgpl.c (main): Likewise.
46442         * modules/canonicalize-tests (Depends-on): Add same-inode.
46443         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
46444
46445         canonicalize-lgpl: fix glibc bug with trailing slash
46446         * m4/canonicalize-lgpl.m4: Move contents...
46447         * m4/canonicalize.m4: ...here.
46448         (gl_CANONICALIZE_LGPL): Factor realpath check...
46449         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
46450         glibc 2.3.5 bug, fixed 2005-04-27.
46451         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
46452         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
46453         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
46454         * modules/canonicalize-lgpl (Files): Manage file rename.
46455         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46456         * modules/stdlib (Makefile.am): Substitute witness.
46457         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
46458         is needed.
46459         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
46460         replacement is required.
46461         * lib/canonicalize.c (canonicalize_file_name): Likewise.
46462         * doc/glibc-functions/canonicalize_file_name.texi
46463         (canonicalize_file_name): Document this.
46464         * doc/posix-functions/realpath.texi (realpath): Likewise.
46465
46466         canonicalize-lgpl: reject non-directory with trailing slash
46467         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
46468         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
46469         catches failures in glibc 2.3.5.
46470         * tests/test-canonicalize.c (main): Likewise.
46471
46472         canonicalize-lgpl: use native realpath if it works
46473         * lib/canonicalize-lgpl.c (realpath): Guard with
46474         FUNC_REALPATH_WORKS.
46475         * lib/stdlib.in.h (realpath): Make declaration optional based on
46476         HAVE_REALPATH.
46477         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
46478         native realpath works.
46479         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
46480         * modules/stdlib (Makefile.am): Substitute witness.
46481
46482         canonicalize, canonicalize-lgpl: use <stdlib.h>
46483         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
46484         (Include): Mention <stdlib.h>.
46485         (configure.ac): Mention functions we provide.
46486         * modules/canonicalize (configure.ac): Likewise.
46487         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
46488         realpath if canonicalize_file_name is missing.
46489         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
46490         * modules/stdlib (Makefile.am): Substitute witnesses.
46491         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
46492         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
46493         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
46494         * NEWS: Document this.
46495         * doc/glibc-functions/canonicalize_file_name.texi
46496         (canonicalize_file_name): Likewise.
46497         * doc/posix-functions/realpath.texi (realpath): Likewise.
46498         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
46499
46500         test-canonicalize: consolidate into single C program
46501         * tests/test-canonicalize.sh: Delete; move setup into...
46502         * tests/test-canonicalize.c (main): ...the program, making it
46503         easier to run in debugger.  Add some tests.
46504         * modules/canonicalize-tests (Files): Remove unused file.
46505         (Depends-on): Add progname.
46506         (configure.ac, Makefile.am): Simplify.
46507
46508         test-canonicalize-lgpl: consolidate into single C program
46509         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
46510         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
46511         easier to run in debugger.  Add some tests.
46512         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
46513         (configure.ac, Makefile.am): Simplify.
46514
46515         canonicalize: avoid resolvepath
46516         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
46517         unnecessary checks.
46518         * lib/canonicalize.c (includes): Simplify.
46519         (canonicalize_file_name): Drop resolvepath implementation.
46520         * modules/canonicalize (Depends-on): Drop filenamecat.
46521
46522         canonicalize: don't lose errno
46523         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
46524         over calls to free.
46525
46526         canonicalize: simplify errno handling
46527         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
46528         assignment.
46529
46530         canonicalize, canonicalize-lgpl: update module dependencies
46531         * modules/canonicalize (Depends-on): Add extensions, lstat,
46532         pathmax, stdlib.
46533         (Files): Drop pathmax.h.
46534         (configure.ac): Adjust macro name.
46535         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
46536         lstat, stdlib, sys_stat.
46537         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
46538         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
46539         extensions.
46540         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
46541         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
46542         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
46543         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
46544         declaration, if available.
46545         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
46546         we can rely on the readlink module.
46547         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
46548         (includes): Use <unistd.h> unconditionally.
46549
46550 2009-09-17  Eric Blake  <ebb9@byu.net>
46551
46552         maint: make Include sections of modules consistent
46553         * modules/alloca: Use only header name; no need to list #include.
46554         * modules/alloca-opt: Likewise.
46555         * modules/arpa_inet: Likewise.
46556         * modules/canon-host: Likewise.
46557         * modules/configmake: Likewise.
46558         * modules/dirent: Likewise.
46559         * modules/eealloc: Likewise.
46560         * modules/environ: Likewise.
46561         * modules/fchdir: Likewise.
46562         * modules/fcntl: Likewise.
46563         * modules/fcntl-h: Likewise.
46564         * modules/gethrxtime: Likewise.
46565         * modules/gettime: Likewise.
46566         * modules/ignore-value: Likewise.
46567         * modules/inet_ntop: Likewise.
46568         * modules/inet_pton: Likewise.
46569         * modules/inttypes: Likewise.
46570         * modules/isnand-nolibm: Likewise.
46571         * modules/isnanf-nolibm: Likewise.
46572         * modules/mbchar: Likewise.
46573         * modules/mbfile: Likewise.
46574         * modules/mbiter: Likewise.
46575         * modules/mbuiter: Likewise.
46576         * modules/netdb: Likewise.
46577         * modules/netinet_in: Likewise.
46578         * modules/nproc: Likewise.
46579         * modules/pagealign_alloc: Likewise.
46580         * modules/poll: Likewise.
46581         * modules/printf-frexp: Likewise.
46582         * modules/pthread: Likewise.
46583         * modules/putenv: Likewise.
46584         * modules/random_r: Likewise.
46585         * modules/relocatable-prog: Likewise.
46586         * modules/search: Likewise.
46587         * modules/select: Likewise.
46588         * modules/selinux-h: Likewise.
46589         * modules/settime: Likewise.
46590         * modules/signal: Likewise.
46591         * modules/size_max: Likewise.
46592         * modules/socklen: Likewise.
46593         * modules/ssize_t: Likewise.
46594         * modules/stdarg: Likewise.
46595         * modules/stdbool: Likewise.
46596         * modules/stddef: Likewise.
46597         * modules/stdint: Likewise.
46598         * modules/stdio: Likewise.
46599         * modules/stdlib: Likewise.
46600         * modules/string: Likewise.
46601         * modules/strings: Likewise.
46602         * modules/sys_file: Likewise.
46603         * modules/sys_ioctl: Likewise.
46604         * modules/sys_select: Likewise.
46605         * modules/sys_socket: Likewise.
46606         * modules/sys_stat: Likewise.
46607         * modules/sys_time: Likewise.
46608         * modules/sys_times: Likewise.
46609         * modules/sys_utsname: Likewise.
46610         * modules/sys_wait: Likewise.
46611         * modules/sysexits: Likewise.
46612         * modules/time: Likewise.
46613         * modules/times: Likewise.
46614         * modules/tmpfile: Likewise.
46615         * modules/trim: Likewise.
46616         * modules/unistd: Likewise.
46617         * modules/wchar: Likewise.
46618         * modules/wctype: Likewise.
46619
46620 2009-09-17  Bruno Haible  <bruno@clisp.org>
46621
46622         Make getdate.y compile on QNX and NetBSD 5 / i386.
46623         * m4/getdate.m4 (gl_GETDATE): Conditionally define
46624         TIME_T_FITS_IN_LONG_INT.
46625         * lib/getdate.y (long_time_t): New type.
46626         (relative_time): Change type of 'seconds' field to long_time_t.
46627         (get_date): Update types of local variables. Check against overflow
46628         during conversion from long_time_t to time_t.
46629         Reported by Matt Kraai <kraai@ftbfs.org>
46630         and Hasso Tepper <hasso@netbsd.org>.
46631
46632 2009-09-17  Bruno Haible  <bruno@clisp.org>
46633
46634         * modules/COPYING: Update copyright years.
46635         * modules/README: Likeiwse.
46636         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
46637         Reported by Ian Beckwith <ianb@erislabs.net>.
46638
46639 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46640
46641         * users.txt: Update references for gnuit package.
46642
46643 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
46644
46645         * m4/getdelim.m4: Fix typo in copyright line.
46646
46647 2009-09-17  Bruno Haible  <bruno@clisp.org>
46648
46649         * lib/atoll.c: Use the standard header with GPL copyright.
46650         * lib/argz.in.h: Likewise.
46651         * lib/glob.c: Likewise.
46652         * lib/glob-libc.h: Likewise.
46653         * lib/random_r.c: Likewise.
46654         * lib/siglist.h: Likewise.
46655         * lib/strsignal.c: Likewise.
46656         Reported by Ian Beckwith <ianb@erislabs.net>.
46657
46658 2009-09-17  Eric Blake  <ebb9@byu.net>
46659
46660         rmdir: ensure correct dependency order
46661         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
46662
46663 2009-09-17  Bruno Haible  <bruno@clisp.org>
46664
46665         Disable assertion that fails on NetBSD 5 / i386.
46666         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
46667         Reported by Sam Steingold <sds@gnu.org>
46668         and Hasso Tepper <hasso@netbsd.org>.
46669
46670 2009-09-16  Eric Blake  <ebb9@byu.net>
46671
46672         unlinkdir: port to mingw
46673         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
46674         on which no one can unlink a directory.
46675
46676         stdlib: sort witness names
46677         * modules/stdlib (Makefile.am): Sort replacements.
46678         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
46679         * lib/stdlib.in.h: Likewise.
46680
46681         parse-duration-tests: avoid link failure
46682         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
46683         LIBINTL.
46684         Reported by Tom G. Christensen.
46685
46686         openat-tests: ensure unlinkat behaves like rmdir
46687         * tests/test-rmdir.c (main): Factor guts...
46688         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
46689         * modules/rmdir-tests (Files): Ship new file.
46690         * modules/openat-tests: New test.
46691         * tests/test-unlinkat.c: Likewise.
46692
46693         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
46694         * modules/rmdir-errno (Status, Notice): Now obsolete.
46695
46696         rmdir: work around cygwin 1.5.x and mingw bugs
46697         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
46698         * lib/rmdir.c (rmdir): Work around it.
46699         * modules/rmdir (Status, Notice): No longer obsolete.
46700         (Files): Add dos.m4.
46701         (Depends-on): Add unistd.
46702         (configure.ac): Set witnesses.
46703         (License): Relax to LGPLv2+.
46704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
46705         * modules/unistd (Makefile.am): Substitute witnesses.
46706         * lib/unistd.in.h (rmdir): Declare replacement.
46707         * doc/posix-functions/rmdir.texi (rmdir): Document this.
46708         * modules/rmdir-tests: New tests.
46709         * tests/test-rmdir.c: Likewise.
46710
46711 2009-09-15  Eric Blake  <ebb9@byu.net>
46712
46713         fchdir: improve use of replacement functions
46714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
46715         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
46716         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
46717         REPLACE_CLOSEDIR.
46718         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
46719         * modules/sys_stat (Makefile.am): Substitute correct witness.
46720         * modules/dirent (Makefile.am): Likewise.
46721         * modules/unistd (Makefile.am): Likewise.
46722         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
46723         * lib/unistd.in.h (dup): Likewise.
46724         * lib/sys_stat.in.h (fstat): Likewise.
46725
46726         maint: ignore gnulib-tool temp files
46727         * .gitignore: Ignore files created during gnulib-tool --test.
46728
46729 2009-09-13  Jim Meyering  <meyering@redhat.com>
46730
46731         posixtm: don't reject a time that specify "60" as the number of seconds
46732         * lib/posixtm.c (posixtime): The code to reject invalid dates
46733         would also reject a time specified with the .60 suffix.
46734         But POSIX allows that, in order to accommodate leap seconds.
46735         So don't reject it.
46736         (main): Adjust tests accordingly.
46737         * modules/posixtm (Depends-on): Add stpcpy.
46738
46739 2009-09-11  Jim Meyering  <meyering@redhat.com>
46740
46741         announce-gen: include [$release_type] in emitted Subject:
46742         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
46743         e.g., [stable] in the emitted Subject: line.
46744
46745 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46746
46747         Remove obsolete macros from several modules.
46748         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
46749         obsolete Autoconf macros with their modern counterparts.
46750         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
46751         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
46752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
46753         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
46754         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
46755         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
46756         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46757         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46758         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
46759         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
46760         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
46761         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
46762         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
46763         * m4/sockets.m4 (gl_SOCKETS): Likewise.
46764         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
46765         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
46766         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
46767         * m4/time_r.m4 (gl_TIME_R): Likewise.
46768         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
46769         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
46770         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46771
46772         Fix copyright header in build-aux scripts.
46773         * build-aux/git-version-gen: Fix copyright header to match GPLv3
46774         recommendation.
46775         * build-aux/ncftpput-ftp: Likewise.
46776         * build-aux/update-copyright: Likewise.
46777
46778 2009-09-09  Eric Blake  <ebb9@byu.net>
46779
46780         test-link: allow Linux choice of errno
46781         * tests/test-link.c (main): Relax test for alternate error.
46782
46783         strndup: fix improper m4 caching
46784         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
46785         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
46786         (gl_PREREQ_STRNDUP): Delete.
46787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
46788         * modules/string (Makefile.am): Substitute it.
46789         * lib/string.in.h (strndup): Modernize prototype.
46790
46791         getcwd: port to mingw
46792         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
46793         different from the POSIX assumptions made throughout the getcwd
46794         module; fortunately, the mingw getcwd does not need replacement.
46795         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
46796         * modules/getcwd-tests: New test.
46797         * tests/test-getcwd.c: Likewise.
46798
46799         link: fix platform bugs
46800         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
46801         * lib/link.c (link): Work around them.  Fix related mingw bug.
46802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
46803         * modules/unistd (Makefile.am): Substitute it.
46804         * lib/unistd.in.h (link): Declare replacement.
46805         * doc/posix-functions/link.texi (link): Document this.
46806         * modules/link (Depends-on): Add strdup-posix, sys_stat.
46807
46808         test-link: consolidate into single C program, test more cases
46809         * tests/test-link.sh: Delete.
46810         * tests/test-link.c: Test more error conditions.  Exposes bugs on
46811         at least Cygwin and Solaris.
46812         * modules/link-tests (Files): Remove unused file.
46813         (Depends-on): Add errno, sys_stat.
46814         (Makefile.am): Simplify.
46815
46816 2009-09-08  Bruno Haible  <bruno@clisp.org>
46817
46818         Work around towlower, towupper bug on mingw.
46819         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
46820         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
46821         * doc/posix-functions/towlower.texi: Mention the mingw bug.
46822         * doc/posix-functions/towupper.texi: Likewise.
46823         Reported by Eric Blake.
46824
46825 2009-09-08  Jim Meyering  <meyering@redhat.com>
46826
46827         build: don't try to run autoheader if we don't use it
46828         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
46829         is not used in configure.ac.
46830
46831 2009-09-08  Eric Blake  <ebb9@byu.net>
46832
46833         euidaccess: fix compilation error
46834         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
46835
46836         rawmemchr: relax license
46837         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
46838         okay.
46839         Reported by Jim Meyering.
46840
46841         mkfifoat: new module
46842         * modules/mkfifoat: New file.
46843         * lib/mkfifoat.c: Likewise.
46844         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
46845         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
46846         * modules/sys_stat (Makefile.am): Use them.
46847         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
46848         * MODULES.html.sh (File system functions): Mention module.
46849         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
46850         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
46851         * modules/mkfifoat-tests: New test.
46852         * tests/test-mkfifoat.c: Likewise.
46853
46854         strchrnul: relax license
46855         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
46856         okay.
46857         Reported by Jim Meyering.
46858
46859 2009-09-08  Eric Blake  <ebb9@byu.net>
46860
46861         fstatat: fix compilation on Solaris
46862         * lib/fstatat.c (includes): Add fcntl.h.
46863         Reported by Pádraig Brady.
46864
46865 2009-09-07  Eric Blake  <ebb9@byu.net>
46866
46867         rename: modernize replacement
46868         * modules/rename (Depends-on): Add stdio.
46869         (configure.ac): Declare witness.
46870         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
46871         stdio take care of replacement.
46872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
46873         * modules/stdio (Makefile.am): Substitute them.
46874         * lib/stdio.in.h (rename): Declare replacement.
46875         * lib/rename.c (includes): Allow cross-compilation to non-windows
46876         machines.
46877         * doc/posix-functions/rename.texi (rename): Improve
46878         documentation.
46879
46880         stdio: sort witness names
46881         * modules/stdio (Makefile.am): Sort replacements.
46882         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46883         * lib/stdio.in.h: Likewise.
46884
46885         getcwd: minor cleanups
46886         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
46887         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
46888
46889         openat: provide more convenience names
46890         * modules/faccessat (configure.ac): Add C witness.
46891         * lib/unistd.in.h (readlinkat): Fix typo.
46892         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
46893         convenience wrappers.
46894         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
46895         wrappers in syntax checks.
46896
46897 2009-09-06  Eric Blake  <ebb9@byu.net>
46898
46899         doc: fix comments in recent patches
46900         * lib/faccessat.c: Mention correct function.
46901         * lib/fchmodat.c: Likewise.
46902         * lib/fchownat.c: Likewise.
46903         * lib/symlinkat.c: Likewise.
46904         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
46905         constants.
46906
46907         faccessat, symlinkat: continue cleanup of previous patch
46908         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
46909         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
46910         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
46911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
46912         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
46913         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
46914         set.
46915
46916 2009-09-06  Bruno Haible  <bruno@clisp.org>
46917
46918         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
46919         (fstatat): Declare if GNULIB_FSTATAT is set.
46920         (mkdirat): Declare if GNULIB_MKDIRAT is set.
46921         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
46922         (unlinkat): Declare if GNULIB_UNLINKAT is set.
46923         * modules/fcntl-h (Files): Remove m4/openat.m4.
46924         * modules/sys_stat (Files): Remove m4/openat.m4.
46925         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
46926         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
46927         * modules/unistd (Files): Remove m4/openat.m4.
46928         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
46929         GNULIB_OPENAT.
46930         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
46931         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
46932         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
46933         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
46934         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
46935         gl_OPENAT_DEFAULTS.
46936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
46937         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
46938         Don't require gl_OPENAT_DEFAULTS.
46939         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
46940         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
46941         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
46942         (gl_OPENAT_DEFAULTS): Remove macro.
46943
46944 2009-09-06  Bruno Haible  <bruno@clisp.org>
46945
46946         * modules/openat (configure.ac): Remove unneeded witness.
46947
46948 2009-09-06  Bruno Haible  <bruno@clisp.org>
46949
46950         Set errno to ENOSYS when a function is entirely unsupported.
46951         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
46952         EOPNOTSUPP.
46953         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
46954         * modules/chown (Depends-on): Remove errno.
46955
46956 2009-09-06  Bruno Haible  <bruno@clisp.org>
46957
46958         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
46959
46960 2009-09-06  Bruno Haible  <bruno@clisp.org>
46961
46962         * lib/sys_stat.in.h: Fix preprocessor command indentation.
46963
46964 2009-09-06  Ben Pfaff  <blp@gnu.org>
46965             Bruno Haible  <bruno@clisp.org>
46966
46967         Work around a glibc bug in strtok_r.
46968         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
46969         Undefine if UNDEFINE_STRTOK_R is set.
46970         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
46971         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46972         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
46973         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
46974         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
46975         UNDEFINE_STRTOK_R.
46976         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
46977
46978 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
46979
46980         exclude: minor fix
46981         * lib/exclude.c: Include wctype.h
46982
46983 2009-09-06  Akim Demaille  <demaille@gostai.com>
46984
46985         bootstrap: improve error message
46986         * build-aux/bootstrap (find_tool): Upon failure, report the list
46987         of candidates.
46988         Honor the initial value of the envvar.
46989
46990 2009-09-05  Eric Blake  <ebb9@byu.net>
46991
46992         symlinkat: new module
46993         * modules/symlinkat: New file.
46994         * lib/symlinkat.c: Likewise.
46995         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
46996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
46997         * modules/unistd (Makefile.am): Use them.
46998         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
46999         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
47000         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
47001         * MODULES.html.sh (File system functions): Mention module.
47002         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
47003         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
47004         * modules/symlinkat-tests: New test.
47005         * tests/test-symlinkat.c: Likewise.
47006
47007         test-openat-safer: add more checks
47008         * tests/test-openat-safer.c (main): Check more code paths.
47009
47010 2009-09-05  Jim Meyering  <meyering@redhat.com>
47011
47012         syntax-check: detect unnecessary inclusion of openat.h
47013         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
47014
47015 2009-09-05  Bruno Haible  <bruno@clisp.org>
47016
47017         Support towlower, towupper.
47018         * doc/posix-functions/towlower.texi: Mention module wctype.
47019         * doc/posix-functions/towupper.texi: Likewise.
47020         * lib/wctype.in.h (towlower, towupper): New functions.
47021         * tests/test-wctype.c: Include stdio.h, stdlib.h.
47022         (ASSERT): New macro.
47023         (e): New variable.
47024         (main): Test also towlower, towupper. Test WEOF argument.
47025         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47026
47027 2009-09-05  Bruno Haible  <bruno@clisp.org>
47028
47029         Fix conversion behaviour when the input is invalid.
47030         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
47031         mark occurring in first pass of indirect conversion.
47032         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
47033         input.
47034         Found by clang's static analyzer.
47035
47036 2009-09-05  Bruno Haible  <bruno@clisp.org>
47037
47038         * tests/test-striconveh.c (main): Test indirect conversion on platforms
47039         where direct conversion is possible.
47040
47041 2009-09-04  Eric Blake  <ebb9@byu.net>
47042
47043         openat: fail with ENOENT on empty name
47044         * lib/openat-proc.c (openat_proc_name): Special-case the empty
47045         buffer.
47046
47047         link-follow: fix logic bug in prior patch
47048         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
47049         reversed sense of yes and no in prior patch.  Avoid confusing
47050         compilation failure with desired semantics.
47051
47052         link-follow: accommodate mingw and cross-compilation
47053         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
47054         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
47055         cross-compilation results to -1, to make linkat easier to
47056         implement when cross-compiling.  Trivially support mingw.
47057         * modules/link-follow (configure.ac): Call new name.
47058         * NEWS: Mention this.
47059
47060 2009-09-03  Eric Blake  <ebb9@byu.net>
47061
47062         faccessat: compile replacement
47063         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
47064         needed.
47065
47066         fts: fix compilation error
47067         * lib/fts.c (includes): Re-add "openat.h", for
47068         openat_needs_fchdir.
47069
47070         faccessat: new module
47071         * modules/faccessat: New file.
47072         * lib/faccessat.c: Likewise.
47073         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
47074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47075         * modules/unistd (Makefile.am): Use it.
47076         * lib/unistd.in.h (faccessat): Declare it.
47077         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
47078         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
47079         * MODULES.html.sh (File system functions): Mention it.
47080         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
47081         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
47082
47083         euidaccess: prefer POSIX over non-standard implementation
47084         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
47085         * lib/euidaccess.c (euidaccess): Use it if available.
47086
47087         openat: make template easier to use
47088         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
47089         AT_FUNC_F2 to be undefined.
47090         (VALIDATE_FLAG): New macro; use it to reject bad flags.
47091         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
47092         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
47093         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
47094         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
47095         Likewise.
47096         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
47097         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
47098         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
47099         Likewise.
47100
47101         openat: declare in POSIX headers
47102         * NEWS: Mention this.
47103         * modules/openat (configure.ac): Declare witnesses.
47104         (Depends-on): Add fcntl-h, sys_stat, unistd.
47105         (Include): Mention correct headers.
47106         * modules/fcntl-h (Depends-on): Add link-warning.
47107         (Files): Add openat.m4.
47108         (Makefile.am): Substitute witnesses.
47109         * modules/sys_stat (Files, Makefile.am): Likewise.
47110         * modules/unistd (Files, Makefile.am): Likewise.
47111         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
47112         (gl_OPENAT_DEFAULTS): New macro.
47113         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
47114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
47115         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
47116         (SYS_STAT_H): Remove unused variable.
47117         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
47118         * lib/fcntl--.h (includes): Remove unneeded header.
47119         * lib/openat-safer.c (includes): Likewise.
47120         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
47121         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
47122         appropriate headers.
47123         (__OPENAT_PREFIX): Delete.
47124         * lib/fcntl.in.h (openat): Provide declaration.
47125         (AT_FDCWD): Fix Solaris bug.
47126         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
47127         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
47128         * lib/fchmodat.c (includes):  Adjust to find declaration.
47129         * lib/fchownat.c (includes): Likewise.
47130         * lib/mkdirat.c (includes): Likewise.
47131         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
47132         still visible.
47133
47134 2009-09-02  Eric Blake  <ebb9@byu.net>
47135
47136         errno: use consistently
47137         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
47138         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
47139         * lib/canonicalize.c (ELOOP): Likewise.
47140         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
47141         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
47142         * lib/lchown.c (EOPNOTSUPP): Likewise.
47143         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
47144         * lib/savewd.c (ESTALE): Likewise.
47145         * lib/settime.c (ENOSYS): Likewise.
47146         * lib/utimens.c (ENOSYS): Likewise.
47147         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
47148         * lib/chdir-safer.c (ELOOP): Likewise.
47149         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
47150         * modules/c-stack (Depends-on): Add errno.
47151         * modules/canonicalize (Depends-on): Likewise.
47152         * modules/chdir-safer (Depends-on): Likewise.
47153         * modules/fdopendir (Depends-on): Likewise.
47154         * modules/inet_ntop (Depends-on): Likewise.
47155         * modules/inet_pton (Depends-on): Likewise.
47156         * modules/lchown (Depends-on): Likewise.
47157         * modules/openat (Depends-on): Likewise.
47158         * modules/savewd (Depends-on): Likewise.
47159         * modules/settime (Depends-on): Likewise.
47160         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
47161
47162         fts: avoid leaking fds
47163         * modules/fts (Depends-on): Add cloexec.
47164         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
47165         flag.
47166
47167         fts: make directory fds more robust
47168         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
47169         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
47170
47171         backupfile, chdir-long, fts, savedir: make safer
47172         * lib/backupfile.c (includes): Use "dirent--.h", since
47173         numbered_backup can write to stderr during readdir.
47174         * lib/savedir.c (includes): Likewise.
47175         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
47176         emulation can write to stderr on failure.
47177         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
47178         * lib/getcwd.c: Document why opendir_safer is unused.
47179         * lib/glob.c: Likewise.
47180         * lib/scandir.c: Likewise.
47181         * lib/openat-proc.c: Likewise, for open_safer.
47182         * modules/backupfile (Depends-on): Add dirent-safer.
47183         * modules/savedir (Depends-on): Likewise.
47184         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
47185         * modules/chdir-long (Depends-on): Add openat-safer.
47186
47187         openat-safer: new module
47188         * modules/openat-safer: New file.
47189         * lib/openat-safer.c: Likewise.
47190         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
47191         * lib/fcntl-safer.h (openat_safer): Declare.
47192         * lib/fcntl--.h (openat): Override.
47193         * MODULES.html.sh (File descriptor based I/O): Mention it.
47194         * lib/openat.h: Add double-inclusion guards.
47195         * lib/openat.c (includes): Only include "fcntl-safer.h", not
47196         "fcntl--.h", so we can implement openat.
47197         * modules/openat-safer-tests: New test.
47198         * tests/test-openat-safer.c: New file.
47199
47200         dirent-safer: new module
47201         * modules/dirent-safer: New file.
47202         * lib/dirent--.h: Likewise.
47203         * lib/dirent-safer.h: Likewise.
47204         * lib/opendir-safer.c: Likewise.
47205         * m4/dirent-safer.m4: Likewise.
47206         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
47207         * modules/dirent-safer-tests: New test.
47208         * tests/test-dirent-safer.c: New file.
47209         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
47210
47211         fdopendir: optimize on mingw
47212         * lib/unistd.in.h (_gl_directory_name): New prototype.
47213         * lib/fchdir.c (_gl_directory_name): Implement it.
47214         (fchdir): Use it to simplify implementation.
47215         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
47216         fchdir, when available, to avoid calling [f]chdir().
47217
47218         fdopendir: split into its own module
47219         * lib/openat.c (fdopendir): Move...
47220         * lib/fdopendir.c: ...into new file.
47221         * modules/fdopendir: New module.
47222         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
47223         * modules/openat (Depends-on): Add fdopendir.
47224         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
47225         fdopendir here.
47226         * modules/savedir (Depends-on): Only need fdopendir, not full
47227         openat.
47228         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
47229         * lib/openat.h (fdopendir): Drop prototype.
47230         * lib/dirent.in.h (fdopendir): Provide prototype.
47231         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
47232         * modules/dirent (Makefile.am): Substitute them.
47233         * MODULES.html.sh (File system functions): Mention it.
47234         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
47235         * modules/fdopendir-tests: New file.
47236         * tests/test-fdopendir.c: Likewise.
47237
47238         fchdir: use more consistent macro convention
47239         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
47240         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
47241         REPLACE_FCHDIR, rather than relying on config.h macros.
47242         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
47243         inside a single make-time REPLACE_FCHDIR block, rather than using
47244         the config.h FCHDIR_REPLACEMENT.
47245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
47246         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
47247         Manage fstat replacement.
47248         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
47249         REPLACE_FCHDIR.
47250         * modules/sys_stat (Files): Add m4/unistd_h.m4.
47251         (Makefile.am): Substitute REPLACE_FCHDIR.
47252         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
47253         FCHDIR_REPLACEMENT.
47254         * lib/dup-safer.c (dup_safer): Likewise.
47255         * lib/dup2.c (rpl_dup2): Likewise.
47256         * lib/dup3.c (rpl_dup3): Likewise.
47257         * lib/open.c (rpl_open): Likewise.
47258
47259         fchdir: simplify error handling, and support dup3
47260         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
47261         stdbool, malloc-posix, realloc-posix.
47262         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
47263         (ensure_dirs_slot): Return false on allocation failure.
47264         (rpl_dup2): Delete.
47265         (_gl_register_dup): New function.
47266         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
47267         (_gl_register_fd): Close fd on allocation failure.
47268         * lib/fcntl.in.h (_gl_register_fd): Update signature.
47269         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
47270         prototype.
47271         (rpl_dup2_fchdir): Delete prototype.
47272         * lib/open.c (open): Update caller.
47273         * lib/dup2.c (dup2): Track fchdir metadata.
47274         * lib/dup3.c (dup3): Likewise.
47275         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
47276         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
47277
47278 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47279
47280         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
47281         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
47282         don't pass arguments to AC_OUTPUT.
47283
47284 2009-09-02  Bruno Haible  <bruno@clisp.org>
47285
47286         * modules/mkdtemp (License): Relicense under LGPLv2+.
47287         Reported by Paolo Bonzini.
47288
47289 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47290
47291         Replace uses of obsolete autoconf macros in Jim's modules.
47292         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
47293         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
47294         can evoke a warning from autoconf when run with -Wobsolete
47295         enabled.  They were declared obsolete for good reasons (see
47296         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
47297         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
47298         should not continue using the deprecated macros.
47299         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
47300         obsolete Autoconf macros with modern counterparts.
47301         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47302         * m4/dos.m4 (gl_AC_DOS): Likewise.
47303         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
47304         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47305         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
47306         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
47307         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
47308         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
47309         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
47310         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
47311         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47312         Likewise.
47313         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47314         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
47315         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
47316         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
47317         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47318         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
47319
47320 2009-09-01  Eric Blake  <ebb9@byu.net>
47321
47322         fchdir: fix off-by-one bug in previous patch
47323         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47324         (_gl_unregister_fd): Delete useless if.
47325
47326 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
47327
47328         maint.mk: sort the list of syntax-check rules
47329         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
47330         easier to get a sense of progress when the rules are run sequentially
47331         and take a long time.
47332
47333 2009-09-01  Simon Josefsson  <simon@josefsson.org>
47334
47335         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
47336         * modules/netinet_in: Likewise.
47337         * modules/sys_file: Likewise.
47338         * modules/sys_ioctl: Likewise.
47339         * modules/sys_select: Likewise.
47340         * modules/sys_socket: Likewise.
47341         * modules/sys_stat: Likewise.
47342         * modules/sys_time: Likewise.
47343         * modules/sys_times: Likewise.
47344         * modules/sys_utsname: Likewise.
47345         * modules/sys_wait: Likewise.
47346
47347 2009-09-01  Jim Meyering  <meyering@redhat.com>
47348
47349         fts: help ensure that return values are not ignored
47350         * lib/fts_.h (__GNUC_PREREQ): Define.
47351         (__attribute_warn_unused_result__): Define.
47352         (fts_children, fts_close, fts_open, fts_read): Declare with
47353         __attribute_warn_unused_result__.
47354
47355         fts: fts_close now fails also when closing a dir file descriptor fails
47356         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
47357         and propagate to caller, along with errno.
47358
47359         announce-gen: correct formatting in --help output
47360         * build-aux/announce-gen (usage): Move the one-line description in
47361         --help output "up", to where it belongs, just after Usage:.
47362
47363 2009-08-31  Eric Blake  <ebb9@byu.net>
47364
47365         fchdir: port to mingw
47366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
47367         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
47368         opened, then use a substitute.
47369         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
47370         replacement.
47371         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
47372         (_gl_register_fd): No need to check stat if open already filters
47373         all directories.
47374         (fchdir): Fix error condition to match POSIX.
47375         * modules/fchdir (Depends-on): Add sys_stat.
47376         * doc/posix-functions/open.texi (open): Document the limitation.
47377         * modules/fchdir-tests: New file.
47378         * tests/test-fchdir.c: Likewise.
47379
47380         canonicalize: allow cross-testing from cygwin to mingw
47381         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
47382         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
47383         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
47384         Likewise.
47385         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
47386         target does not support symlinks.
47387         * tests/test-canonicalize-lgpl.sh: Likewise.
47388
47389         chown: avoid compilation warning on mingw
47390         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
47391         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
47392         mingw.
47393         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
47394         * modules/chown (Depends-on): Add errno.
47395
47396 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
47397
47398         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
47399         command.
47400
47401 2009-08-31  Jim Meyering  <meyering@redhat.com>
47402
47403         canonicalize: remove useless initialization
47404         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
47405         initialization of local, "end".
47406
47407 2009-08-30  Bruno Haible  <bruno@clisp.org>
47408
47409         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
47410         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
47411         ENOSYS.
47412
47413 2009-08-30  Bruno Haible  <bruno@clisp.org>
47414
47415         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
47416         /usr/xpg4/bin/tr when it exists.
47417         * tests/test-pipe-filter-gi1.sh: Likewise.
47418
47419 2009-08-30  Bruno Haible  <bruno@clisp.org>
47420
47421         Work around deficient /usr/bin/id program on Solaris.
47422         * tests/test-file-has-acl.sh (ID): New variable.
47423         * tests/test-set-mode-acl.sh (ID): Likewise.
47424         * tests/test-copy-acl.sh (ID): Likewise.
47425         * tests/test-copy-file.sh (ID): Likewise.
47426
47427 2009-08-30  Bruno Haible  <bruno@clisp.org>
47428
47429         New module 'xstriconveh'.
47430         * lib/xstriconveh.h: New file.
47431         * lib/xstriconveh.c: New file.
47432         * modules/xstriconveh: New file.
47433
47434 2009-08-30  Bruno Haible  <bruno@clisp.org>
47435
47436         Make it easier to use mem_cd_iconveh.
47437         * lib/striconveh.h (iconveh_t): New type.
47438         (iconveh_open, iconveh_close): New declarations.
47439         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47440         with a single 'const iconveh_t *' argument.
47441         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
47442         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
47443         with a single 'const iconveh_t *' argument.
47444         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
47445         * tests/test-striconveh.c (main): Update.
47446         * NEWS: Mention the change.
47447
47448 2009-08-30  Bruno Haible  <bruno@clisp.org>
47449
47450         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
47451         problem.
47452
47453 2009-08-30  Bruno Haible  <bruno@clisp.org>
47454
47455         Work around iconv_open problem on Solaris.
47456         * lib/iconv_open-solaris.gperf: New file.
47457         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
47458         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
47459         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
47460         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
47461         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
47462         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
47463
47464 2009-08-29  Jim Meyering  <meyering@redhat.com>
47465
47466         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
47467         * top/maint.mk (cvs-check): Remove target; it was just an alias
47468         to the better-named vc-diff-check.
47469         (maintainer-distcheck): Remove rule.  It was used only from
47470         the (alpha/beta/major) target, and all of its commands but one
47471         were coreutils-specific.
47472         (vc-dist): Remove rule.
47473         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
47474         Run vc-diff-check, not vc-dist.
47475         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
47476
47477 2009-08-27  Bruno Haible  <bruno@clisp.org>
47478
47479         * tests/test-bitrotate.c (main): Remove test that uses a shift count
47480         of 0.
47481
47482 2009-08-27  Bruno Haible  <bruno@clisp.org>
47483
47484         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
47485         compilers.
47486         * doc/func.texi: Document the SunPRO C bug.
47487
47488 2009-08-27  Bruno Haible  <bruno@clisp.org>
47489
47490         Fix link error on Solaris.
47491         * tests/test-parse-duration.c (xstrdup): Remove function.
47492
47493 2009-08-26  Pádraig Brady  <P@draigbrady.com>
47494
47495         ignore-value: handle pointer types, too
47496         * lib/ignore-value.h (__attribute__): Remove definition.
47497         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
47498         of a more concise and more-often effective "(void) i" statement.
47499         (ignore_ptr): New function to suppress warnings from functions that
47500         return pointers, and to make it explicit that one function doesn't
47501         handle all cases.
47502
47503 2009-08-25  Bruno Haible  <bruno@clisp.org>
47504
47505         dup2: work around a Linux bug.
47506         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
47507         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
47508         * doc/posix-functions/dup2.texi: Mention the Linux bug.
47509         Reported by Simon Josefsson.
47510
47511 2009-08-25  Jim Meyering  <meyering@redhat.com>
47512
47513         libguestfs uses gnulib
47514         * users.txt: Add libguestfs.
47515
47516 2009-08-24  Eric Blake  <ebb9@byu.net>
47517
47518         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
47519         * lib/pipe2.c (includes): Add binary-io.h.
47520         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
47521
47522 2009-08-24  Bruno Haible  <bruno@clisp.org>
47523
47524         Tolerate declared but missing accept4 syscall.
47525         * lib/accept4.c (accept4): Invoke original accept4 function first, if
47526         available.
47527         * lib/sys_socket.in.h (accept4): If the function is already present,
47528         override it.
47529         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
47530         * modules/accept4 (Makefile.am): Compile accept4.c always.
47531         Reported by Paolo Bonzini and Eric Blake.
47532
47533 2009-08-23  Bruno Haible  <bruno@clisp.org>
47534
47535         New module 'accept4'.
47536         * lib/sys_socket.in.h (accept4): New declaration.
47537         * lib/accept4.c: New file.
47538         * m4/accept4.m4: New file.
47539         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47540         GNULIB_ACCEPT4, HAVE_ACCEPT4.
47541         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
47542         HAVE_ACCEPT4.
47543         * modules/accept4: New file.
47544         * doc/glibc-functions/accept4.texi: Mention the new module.
47545
47546 2009-08-24  Jim Meyering  <meyering@redhat.com>
47547
47548         progname: also set global program_invocation_name, when possible
47549         Before this change, a libtool-enabled program that calls glibc's
47550         error function would report the program name as
47551         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
47552         * modules/progname (configure.ac): Check for a declaration of
47553         program_invocation_name.
47554         * lib/progname.c:  Include <errno.h>.
47555         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
47556         Set program_invocation_name.
47557
47558 2009-08-23  Bruno Haible  <bruno@clisp.org>
47559
47560         * lib/dup3.c: Include <string.h>.
47561
47562 2009-08-23  Bruno Haible  <bruno@clisp.org>
47563
47564         * lib/dup3.c (dup3): Test only once whether the system actually exists.
47565         * lib/pipe2.c (pipe2): Likewise.
47566         Suggested by Eric Blake.
47567
47568 2009-08-23  Bruno Haible  <bruno@clisp.org>
47569
47570         Tolerate declared but missing dup3 syscall.
47571         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
47572         * lib/unistd.in.h (dup3): If the function is already present,
47573         override it.
47574         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
47575         * modules/dup3 (Makefile.am): Compile dup3.c always.
47576         Reported by Paolo Bonzini.
47577
47578 2009-08-23  Bruno Haible  <bruno@clisp.org>
47579
47580         Tolerate declared but missing pipe2 syscall.
47581         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
47582         available.
47583         * lib/unistd.in.h (pipe2): If the function is already present,
47584         override it.
47585         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
47586         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
47587         Reported by Paolo Bonzini.
47588
47589 2009-08-23  Bruno Haible  <bruno@clisp.org>
47590
47591         * lib/pipe2.c (pipe2): Move #ifs inside function.
47592
47593 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47594
47595         quotearg: document limitations of quote_these_too
47596         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
47597         those limitations are created.
47598         * lib/quotearg.h (set_char_quoting): Document that digits and
47599         letters that are special after backslash are not permitted.
47600         (quotearg_char): Cross-reference set_char_quoting documentation.
47601
47602 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
47603
47604         quotearg: implement custom_quoting_style
47605         * lib/quotearg.c: (struct quoting_options): Add left_quote and
47606         right_quote fields.
47607         (set_custom_quoting): New public function.
47608         (quotearg_buffer_restyled): Add left_quote and right_quote
47609         arguments, handle them very much like locale quoting, and update
47610         all uses.
47611         (quotearg_n_custom): New public function.
47612         (quotearg_n_custom_mem): New public function.
47613         (quotearg_custom): New public function.
47614         (quotearg_custom_mem): New public function.
47615         * lib/quotearg.h: Prototype and document new public functions.
47616         (enum quoting_style): For escape_quoting_style and
47617         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
47618         ignored even though they're otherwise like c_quoting_style.
47619         Add custom_quoting_style member and document with comparison to
47620         clocale_quoting_style.
47621         * tests/test-quotearg.c (custom_quotes): New array.
47622         (custom_results): New array.
47623         (main): Extend to test custom quoting.
47624
47625 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47626
47627         quotearg: fix right quote escaping when it's in quote_these_too
47628         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
47629         quote, be sure to prepend only one backslash.
47630         * tests/test-quotearg.c (use_quote_double_quotes): New function.
47631         (main): Test it.
47632
47633 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
47634
47635         quotearg-tests: test escaping of embedded locale quotes
47636         * tests/test-quotearg.c (struct result_strings): Add member for
47637         new input.
47638         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
47639         (inputs): Add new input.
47640         (results_g): Add expected results.
47641         (flag_results): Likewise.
47642         (locale_results): Likewise.
47643         (compare_strings): Check those.
47644
47645 2009-08-23  Bruno Haible  <bruno@clisp.org>
47646
47647         Tests for module 'dup3'.
47648         * modules/dup3-tests: New file.
47649         * tests/test-dup3.c: New file.
47650
47651         New module 'dup3'.
47652         * lib/unistd.in.h (dup3): New declaration.
47653         * lib/dup3.c: New file.
47654         * m4/dup3.m4: New file.
47655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
47656         HAVE_DUP3.
47657         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
47658         * modules/dup3: New file.
47659         * doc/glibc-functions/dup3.texi: Mention the new module.
47660
47661 2009-08-23  Bruno Haible  <bruno@clisp.org>
47662
47663         Tweak the dup2 test.
47664         * tests/test-dup2.c (main): Create the test file empty. Verify that an
47665         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
47666         the test file is still empty. Fix argument order of lseek.
47667
47668 2009-08-23  Bruno Haible  <bruno@clisp.org>
47669
47670         Avoid test link errors when the modules getopt-gnu, gettext are used.
47671         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
47672         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47673
47674 2009-08-23  Bruno Haible  <bruno@clisp.org>
47675
47676         Fix getdtablesize() on mingw.
47677         * lib/getdtablesize.c (getdtablesize): Implement differently.
47678         * lib/unistd.in.h (getdtablesize): Improve comment.
47679
47680 2009-08-23  Bruno Haible  <bruno@clisp.org>
47681
47682         New module 'mkostemp'.
47683         Based on Ulrich Drepper's 2007-08-10 change in glibc.
47684         * lib/stdlib.in.h (mksotemp): New declaration.
47685         * lib/mkostemp.c: New file, from glibc with modifications.
47686         * lib/tempname.h (GT_FILE): Remove outdated comment.
47687         (gen_tempname): Add flags argument.
47688         * lib/tempname.c (__GT_BIGFILE): Remove macro.
47689         (__GT_FILE): Map to 1.
47690         (small_open, large_open): Remove macros.
47691         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
47692         * lib/mkstemp.c (mkstemp): Update.
47693         * lib/mkdtemp.c (mkdtemp): Likewise.
47694         * m4/mkostemp.m4: New file.
47695         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
47696         HAVE_MKOSTEMP.
47697         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
47698         HAVE_MKOSTEMP.
47699         * modules/mkostemp: New file, based on modules/mkstemp.
47700         * doc/glibc-functions/mkostemp.texi: Mention the new module.
47701         * NEWS: Mention the change.
47702
47703 2009-08-23  Bruno Haible  <bruno@clisp.org>
47704
47705         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
47706         Reported by Eric Blake.
47707
47708 2009-08-23  Bruno Haible  <bruno@clisp.org>
47709
47710         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
47711         Reported by Eric Blake.
47712
47713 2009-08-23  Bruno Haible  <bruno@clisp.org>
47714
47715         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
47716         * modules/pipe2 (Depends-on): Likewise.
47717
47718 2009-08-23  Eric Blake  <ebb9@byu.net>
47719
47720         fcntl-h: add O_TTY_INIT support
47721         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
47722         * tests/test-fcntl-h.c (o): Test it.
47723         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47724
47725         fcntl-h: rename from fcntl, in preparation for fcntl(2)
47726         * modules/fcntl: Move <fcntl.h> header replacement...
47727         * modules/fcntl-h: ...to new name, so as not to collide with
47728         like-named function.
47729         * tests/test-fcntl.c: Rename...
47730         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
47731         * modules/fcntl-tests: Rename...
47732         * modules/fcntl-h-tests: ...to this.  Update test file name.
47733         * modules/chdir-long (Depends-on): Update clients.
47734         * modules/chdir-safer (Depends-on): Likewise.
47735         * modules/fcntl-safer (Depends-on): Likewise.
47736         * modules/fts (Depends-on): Likewise.
47737         * modules/mkancesdirs (Depends-on): Likewise.
47738         * modules/mkdir-p (Depends-on): Likewise.
47739         * modules/open (Depends-on): Likewise.
47740         * modules/savewd (Depends-on): Likewise.
47741         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
47742         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
47743
47744 2009-08-22  Bruno Haible  <bruno@clisp.org>
47745
47746         * modules/binary-io (License): Relicense under LGPL.
47747         * modules/pipe2 (License): Likewise.
47748
47749 2009-08-22  Bruno Haible  <bruno@clisp.org>
47750
47751         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
47752         return value.
47753         * lib/pipe-filter-gi.c (filter_init): Likewise.
47754         Reported by Eric Blake.
47755
47756 2009-08-22  Bruno Haible  <bruno@clisp.org>
47757
47758         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
47759         * modules/pipe (Depends-on): Add pipe2.
47760
47761 2009-08-22  Bruno Haible  <bruno@clisp.org>
47762
47763         Tests for module 'pipe2'.
47764         * modules/pipe2-tests: New file.
47765         * tests/test-pipe2.c: New file.
47766
47767         New module 'pipe2'.
47768         * lib/unistd.in.h (pipe2): New declaration.
47769         * lib/pipe2.c: New file.
47770         * m4/pipe2.m4: New file.
47771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
47772         HAVE_PIPE2.
47773         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
47774         * modules/pipe2: New file.
47775         * doc/glibc-functions/pipe2.texi: Mention the new module.
47776
47777 2009-08-22  Bruno Haible  <bruno@clisp.org>
47778
47779         Reference some new glibc functions.
47780         * doc/glibc-functions/accept4.texi: New file.
47781         * doc/glibc-functions/dup3.texi: New file.
47782         * doc/glibc-functions/mkostemp.texi: New file.
47783         * doc/glibc-functions/pipe2.texi: New file.
47784         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
47785         (Glibc sys/socket.h): Refer to accept4.
47786         (Glibc unistd.h): Refer to dup3, pipe2.
47787         Reported by Eric Blake.
47788
47789 2009-08-22  Jim Meyering  <meyering@redhat.com>
47790             Bruno Haible  <bruno@clisp.org>
47791
47792         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
47793         This makes it so packages using automake-1.11's silent-rules option
47794         can print e.g., a single "GEN    configmake.h" line, rather than
47795         the 30+ statements that perform the job.  If you want to see the
47796         actual commands, you can still run "make V=1".
47797         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
47798         so that make output is abbreviated when those variables are defined
47799         appropriately.
47800         * modules/argz: Likewise.
47801         * modules/arpa_inet: Likewise.
47802         * modules/byteswap: Likewise.
47803         * modules/configmake: Likewise.
47804         * modules/dirent: Likewise.
47805         * modules/errno: Likewise.
47806         * modules/fcntl: Likewise.
47807         * modules/float: Likewise.
47808         * modules/fnmatch: Likewise.
47809         * modules/getopt-posix: Likewise.
47810         * modules/glob: Likewise.
47811         * modules/iconv_open: Likewise.
47812         * modules/inttypes: Likewise.
47813         * modules/localcharset: Likewise.
47814         * modules/locale: Likewise.
47815         * modules/math: Likewise.
47816         * modules/netdb: Likewise.
47817         * modules/netinet_in: Likewise.
47818         * modules/poll: Likewise.
47819         * modules/posix_spawnp-tests: Likewise.
47820         * modules/sched: Likewise.
47821         * modules/search: Likewise.
47822         * modules/selinux-h: Likewise.
47823         * modules/signal: Likewise.
47824         * modules/spawn: Likewise.
47825         * modules/stdarg: Likewise.
47826         * modules/stdbool: Likewise.
47827         * modules/stddef: Likewise.
47828         * modules/stdint: Likewise.
47829         * modules/stdio: Likewise.
47830         * modules/stdlib: Likewise.
47831         * modules/string: Likewise.
47832         * modules/strings: Likewise.
47833         * modules/sys_file: Likewise.
47834         * modules/sys_ioctl: Likewise.
47835         * modules/sys_select: Likewise.
47836         * modules/sys_socket: Likewise.
47837         * modules/sys_stat: Likewise.
47838         * modules/sys_time: Likewise.
47839         * modules/sys_times: Likewise.
47840         * modules/sys_utsname: Likewise.
47841         * modules/sys_wait: Likewise.
47842         * modules/sysexits: Likewise.
47843         * modules/time: Likewise.
47844         * modules/unistd: Likewise.
47845         * modules/wchar: Likewise.
47846         * modules/wctype: Likewise.
47847
47848 2009-08-22  Jim Meyering  <meyering@redhat.com>
47849
47850         announce-gen: detect write failure
47851         * build-aux/announce-gen: Add Coda at end.
47852         Remove equivalent-but-more-verbose block at top.
47853
47854 2009-08-19  Akim Demaille  <demaille@gostai.com>
47855
47856         bootstrap: --help to stdout.
47857         * bootstrap (usage): Don't send --help to stderr.
47858         Use a here doc instead of a long string.
47859
47860 2009-08-21  Eric Blake  <ebb9@byu.net>
47861
47862         test-popen-safer: split from test-popen
47863         * tests/test-popen.c (main): Move...
47864         * tests/test-popen.h: ...into new file.
47865         * tests/test-popen-safer2.c: New file.
47866         * modules/popen-tests (Files): Add test-popen.h.
47867         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
47868         Suggested by Bruno Haible.
47869
47870         test-fcntl-safer: split from test-open
47871         * tests/test-open.c (main): Move...
47872         * tests/test-open.h: ...into new file.
47873         * tests/test-fcntl-safer.c: New file.
47874         * modules/open-tests (Files): Add test-open.h.
47875         * modules/fcntl-safer-tests: New file.
47876         Suggested by Bruno Haible.
47877
47878         test-fopen-safer: split from test-fopen
47879         * tests/test-fopen.c (main): Move...
47880         * tests/test-fopen.h: ...into new file.
47881         * tests/test-fopen-safer.c: New file.
47882         * modules/fopen-tests (Files): Add test-fopen.h.
47883         * modules/fopen-safer-tests: New file.
47884         Suggested by Bruno Haible.
47885
47886 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47887
47888         popen-safer: test O_CLOEXEC at run-time.
47889         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
47890
47891 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
47892
47893         fcntl: move more flags to the header
47894         * lib/cloexec.c: Do not define FD_CLOEXEC here.
47895         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
47896         * lib/fcntl.in.h: Do both things here.
47897
47898 2009-08-21  Jim Meyering  <meyering@redhat.com>
47899
47900         consistently remove $@-t before redirecting to it
47901         * modules/argz: Remove $@-t and $@ before redirecting to the former.
47902         * modules/alloca-opt: Likewise.
47903         * modules/byteswap: Likewise.
47904         * modules/fnmatch: Likewise.
47905         * modules/getopt-posix: Likewise.
47906         * modules/glob: Likewise.
47907         * modules/poll: Likewise.
47908         * modules/posix_spawnp-tests: Likewise.
47909         * modules/sys_socket: Likewise.
47910         * modules/sysexits: Likewise.
47911
47912 2009-08-21  Eric Blake  <ebb9@byu.net>
47913
47914         popen: simplify access to original popen
47915         * lib/popen.c (rpl_popen): No need to worry about popen being a
47916         macro.
47917         Reported by Bruno Haible.
47918
47919 2009-08-20  Eric Blake  <ebb9@byu.net>
47920
47921         build: avoid some compiler warnings
47922         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
47923         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
47924         type.
47925         (new_exclude_segment, excluded_file_pattern_p)
47926         (excluded_file_name_p): Reduce scope.
47927         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
47928         old-style declaration.
47929
47930 2009-08-20  Simon Josefsson  <simon@josefsson.org>
47931
47932         * tests/test-exclude1.sh: Handle Windows EOL.
47933         * tests/test-exclude2.sh: Likewise.
47934         * tests/test-exclude3.sh: Likewise.
47935         * tests/test-exclude4.sh: Likewise.
47936         * tests/test-exclude5.sh: Likewise.
47937         * tests/test-exclude6.sh: Likewise.
47938         * tests/test-exclude7.sh: Likewise.
47939
47940 2009-08-19  Akim Demaille  <demaille@gostai.com>
47941
47942         bootstrap: find sha1sum when named gsha1sum.
47943         * bootstrap (find_tool): New.
47944         ($SHA1SUM): New.
47945         Use it.
47946
47947 2009-08-20  Jim Meyering  <meyering@redhat.com>
47948
47949         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
47950         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
47951         expression that converts "." in a file name to "\." in the resulting
47952         regexp.  Start with a dummy statement, so that prior shell variable
47953         definitions are expanded portably.  Reported by Simon Josefsson.
47954
47955 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
47956
47957         Fix polling for writeability of a screen buffer.
47958         * lib/poll.c: Distinguish input and screen buffers for the
47959         Win32 implementation.
47960         * lib/select.c: Likewise.
47961
47962 2009-08-19  Eric Blake  <ebb9@byu.net>
47963
47964         popen-safer: prevent popen from clobbering std descriptors
47965         * modules/popen-safer: New file.
47966         * lib/popen-safer.c: Likewise.
47967         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
47968         * lib/stdio--.h (popen): Provide override.
47969         * lib/stdio-safer.h (popen_safer): Provide declaration.
47970         * tests/test-popen.c (includes): Partially test this.
47971         * modules/popen-safer-tests: New file, for more tests.
47972         * tests/test-popen-safer.c: Likewise.
47973         * MODULES.html.sh (file stream based Input/Output): Mention it.
47974
47975         tests: test some of the *-safer modules
47976         * modules/fopen-safer (Depends-on): Add fopen.
47977         * modules/fcntl-safer (Depends-on): Add fcntl.
47978         * modules/stdlib-safer (Depends-on): Add stdlib.
47979         (configure.ac): Set indicator.
47980         * modules/unistd-safer (configure.ac): Likewise.
47981         * modules/tmpfile-safer (configure.ac): Likewise.
47982         (Depends-on): Add tmpfile.
47983         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
47984         active.
47985         * tests/test-fopen.c (includes): Test safer versions when they are
47986         in use.
47987         * tests/test-open.c (includes): Likewise.
47988
47989         popen: fix cygwin 1.5 bug when stdin closed
47990         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
47991         * modules/popen: New file.
47992         * modules/popen-tests: Likewise.
47993         * tests/test-popen.c: Likewise.
47994         * m4/popen.m4: Likewise.
47995         * lib/popen.c: Likewise.
47996         * lib/stdio.in.h (popen): New declaration.
47997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
47998         * modules/stdio (Makefile.am): Likewise.
47999         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
48000
48001 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
48002
48003         maint.mk: give full control over update-copyright exclusions
48004         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
48005         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
48006         (update-copyright): Don't force inclusion of top-level
48007         ChangeLog.  Don't force exclusion of all COPYING files, but make
48008         them the default exclusion instead.
48009
48010 2009-08-16  Bruno Haible  <bruno@clisp.org>
48011
48012         Fix test failures on Solaris 10.
48013         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
48014         tests when Solaris iconv() is used.
48015         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
48016         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
48017         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
48018         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
48019         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
48020
48021 2009-08-16  Bruno Haible  <bruno@clisp.org>
48022
48023         Fix test failures on Solaris 10.
48024         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
48025         'tr' program and pass it as first argument.
48026         * tests/test-pipe-filter-gi1.sh: Likewise.
48027         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
48028         program as first argument.
48029         * tests/test-pipe-filter-gi1.c (main): Likewise.
48030
48031 2009-08-16  Eric Blake  <ebb9@byu.net>
48032
48033         fpurge: fix previous commits
48034         * modules/fpurge (Makefile.am): Make replacement conditional,
48035         partially reverting 2007-04-29 change; missed in previous
48036         attempt.
48037         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
48038         is missing.
48039
48040 2009-08-16  Bruno Haible  <bruno@clisp.org>
48041
48042         Clarify fpurge's effect on the file position.
48043         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
48044         * tests/test-fpurge.c (main): Make a second pass for checking the file
48045         position.
48046
48047 2009-08-16  Bruno Haible  <bruno@clisp.org>
48048
48049         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
48050         declaration of fpurge is missing.
48051         * tests/test-fpurge.c (main): Check that the file has not more contents
48052         than expected. Close the file before removing it.
48053
48054 2009-08-15  Eric Blake  <ebb9@byu.net>
48055
48056         fpurge: don't wrap working cygwin implementation
48057         * lib/fpurge.c (fpurge): Fix comment typo.
48058         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
48059         1.7 to avoid replacement.
48060         * tests/test-fpurge.c (main): Enhance test.
48061
48062 2009-08-15  Eric Blake  <ebb9@byu.net>
48063         and Jim Meyering  <meyering@redhat.com>
48064
48065         test-update-copyright: skip if perl is insufficient
48066         * tests/test-update-copyright.sh: Failure to run maintainer tool
48067         should not cause testsuite failure on cygwin 1.5.
48068
48069 2009-08-14  Eric Blake  <ebb9@byu.net>
48070
48071         doc: mention more functions added in cygwin 1.7.0
48072         * doc/posix-headers/limits.texi (limits.h): Update for recent
48073         cygwin additions.
48074         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
48075         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
48076         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
48077         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
48078         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
48079
48080 2009-08-14  Eric Blake  <ebb9@byu.net>
48081
48082         maint.mk: simplify update-copyright rule
48083         * top/maint.mk (update-copyright-local): Delete, and document how
48084         to do it in cfg.mk instead.
48085         (update-copyright-exclude-regexp): Delete, and document how to do
48086         it in .x-update-copyright instead.
48087         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
48088         exclude ChangeLog.
48089
48090 2009-08-14  Bruno Haible  <bruno@clisp.org>
48091
48092         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
48093
48094 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48095
48096         maint.mk: support update-copyright-env
48097         * top/maint.mk (update-copyright-env): Define place-holder.
48098         (update-copyright): Expand $(update-copyright-env) before
48099         invoking update-copyright.
48100
48101 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48102
48103         update-copyright: implement forced reformatting
48104         * build-aux/update-copyright: Implement and document
48105         UPDATE_COPYRIGHT_FORCE.
48106         * tests/test-update-copyright.sh: Test it.
48107
48108 2009-08-14  Eric Blake  <ebb9@byu.net>
48109         and Bruno Haible  <bruno@clisp.org>
48110
48111         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
48112         * tests/test-locale.c: Revert previous patch related to NULL.
48113         * tests/test-stdio.c: Likewise.
48114         * tests/test-stdlib.c: Likewise.
48115         * tests/test-string.c: Likewise.
48116         * tests/test-unistd.c: Likewise.
48117         * modules/time-tests (Depends-on): Add verify.
48118         * modules/wchar-tests (Depends-on): Likewise.
48119         * tests/test-time.c: Test for NULL compliance.
48120         * tests/test-wchar.c: Likewise.
48121         * modules/locale (Depends-on): Add stddef.
48122         * modules/stdio (Depends-on): Likewise.
48123         * modules/stdlib (Depends-on): Likewise.
48124         * modules/string (Depends-on): Likewise.
48125         * modules/time (Depends-on): Likewise.
48126         * modules/unistd (Depends-on): Likewise.
48127         * modules/wchar (Depends-on): Likewise.
48128         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
48129         * lib/stdlib.in.h (includes): Likewise.
48130         * lib/string.in.h (includes): Likewise.
48131         * lib/time.in.h (includes): Likewise.
48132         * lib/unistd.in.h (includes): Likewise.
48133         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
48134         replaced.
48135         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
48136         * m4/stddef_h.m4: New file.
48137         * modules/stddef: Likewise.
48138         * lib/stddef.in.h: Likewise.
48139         * modules/stddef-tests: Likewise.
48140         * tests/test-stddef.c: Likewise.
48141         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
48142         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
48143         * doc/posix-headers/locale.texi (locale.h): Likewise.
48144         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
48145         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
48146         * doc/posix-headers/string.texi (string.h): Likewise.
48147         * doc/posix-headers/time.texi (time.h): Likewise.
48148         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
48149         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
48150
48151 2009-08-14  Eric Blake  <ebb9@byu.net>
48152
48153         doc: improve git diff of texinfo files
48154         * .gitattributes: Add rule for *.texi files, with hint on how to
48155         use it.
48156         Copied from m4, and based on a report by Bruno Haible.
48157
48158 2009-08-14  Bruno Haible  <bruno@clisp.org>
48159
48160         Disable multithread support by default on Cygwin 1.5.x for real.
48161         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
48162
48163 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
48164
48165         update-copyright: much ado about intervals
48166         * build-aux/update-copyright: Implement and document
48167         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
48168         of copyright year intervals.
48169         Also, document UPDATE_COPYRIGHT_YEAR.
48170         * tests/test-update-copyright.sh: Test it.
48171
48172         update-copyright: convert 2-digit to 4-digit years
48173         * build-aux/update-copyright: Implement and document.
48174         * tests/test-update-copyright.sh: Update.
48175
48176 2009-08-14  Jim Meyering  <meyering@redhat.com>
48177
48178         test-exclude: avoid coreutils "make check" failure
48179         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
48180         just as in test-argmatch.c.
48181
48182 2009-08-13  Eric Blake  <ebb9@byu.net>
48183
48184         test-dup2: fix bad assumption
48185         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
48186         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
48187
48188         test-version-etc: fix CRLF portability issue
48189         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
48190         recognize \r.
48191         * tests/test-argp-version-etc-1.sh: Likewise.
48192
48193         getopt: update client modules
48194         * modules/argp (Depends-on): Use getopt-gnu.
48195         * modules/git-merge-changelog (Depends-on): Likewise.
48196         * modules/long-options (Depends-on): Likewise.
48197         * modules/xstrtol (Depends-on): Likewise.
48198
48199 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48200
48201         * tests/test-version-etc.sh: Don't fail on different
48202         project/version.  Don't fail on CRLF differences.  Rewrite to use
48203         multiple -e instead of multiple sed forks, suggested by Eric Blake
48204         <ebb9@byu.net>.
48205         * tests/test-argp-version-etc-1.sh: Likewise.
48206
48207 2009-08-13  Simon Josefsson  <simon@josefsson.org>
48208
48209         * tests/test-version-etc.sh: Don't fail on different
48210         project/version.
48211
48212 2009-08-12  Bruno Haible  <bruno@clisp.org>
48213
48214         Tests for modules 'getopt-posix', 'getopt-gnu'.
48215         * modules/getopt-posix-tests: New file.
48216         * tests/test-getopt.c: New file.
48217         * tests/test-getopt.h: New file.
48218         * tests/test-getopt_long.h: New file.
48219
48220         New modules 'getopt-posix', 'getopt-gnu'.
48221         * modules/getopt-gnu: New file, renamed from modules/getopt.
48222         * modules/getopt-posix: New file.
48223         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
48224         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
48225         (gl_GETOPT): Remove macro.
48226         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
48227         Disable the test against BSD systems that declare optreset. Test
48228         against mingw bug. Test against lack of support of optional arguments
48229         on many platforms.
48230         * doc/glibc-headers/getopt.texi: Update module name and list of
48231         relevant platforms.
48232         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
48233         'getopt-gnu' and more portability problems.
48234         * NEWS: Mention the changes.
48235
48236 2009-08-12  Bruno Haible  <bruno@clisp.org>
48237
48238         Ensure that optarg etc. get declared by <unistd.h>.
48239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
48240         AC_USE_SYSTEM_EXTENSIONS.
48241         * modules/getopt (Depends-on): Add 'extensions'.
48242
48243 2009-08-12  Bruno Haible  <bruno@clisp.org>
48244
48245         Avoid test link errors.
48246         * modules/pipe-filter-ii-tests (Makefile.am): Define
48247         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
48248         * modules/pipe-filter-gi-tests (Makefile.am): Define
48249         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
48250         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48251
48252 2009-08-12  Bruno Haible  <bruno@clisp.org>
48253
48254         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
48255         gl_GETOPT_SUBSTITUTE before.
48256         (gl_GETOPT): Use it.
48257         * m4/argp.m4 (gl_ARGP): Update.
48258         Reported by Sergey Poznyakoff.
48259
48260         * m4/getopt.m4: Reorder macros.
48261         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
48262         (gl_GETOPT_SUBSTITUTE): Remove macro.
48263
48264 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48265
48266         Minor improvement in gitlog-to-changelog
48267
48268         * build-aux/gitlog-to-changelog: New option `--format' makes
48269         output format string configurable.
48270
48271 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48272
48273         Optimize exclude: use hash tables for non-wildcard patterns.
48274
48275         * lib/exclude.c: Include hash.h and mbuiter.h
48276         (struct exclude_pattern, exclude_segment): New data types.
48277         (struct exclude): Rewrite.
48278         (fnmatch_pattern_has_wildcards): New function.
48279         (new_exclude_segment, free_exclude_segment): New functions.
48280         (excluded_file_pattern_p, excluded_file_name_p): New functions.
48281         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
48282         * lib/exclude.h (is_fnmatch_pattern): New prototype.
48283         * modules/exclude: Depend on hash and mbuiter.
48284
48285         * modules/exclude-tests: New file.
48286         * tests/test-exclude.c: New file.
48287         * tests/test-exclude1.sh: New file.
48288         * tests/test-exclude2.sh: New file.
48289         * tests/test-exclude3.sh: New file.
48290         * tests/test-exclude4.sh: New file.
48291         * tests/test-exclude5.sh: New file.
48292         * tests/test-exclude6.sh: New file.
48293         * tests/test-exclude7.sh: New file.
48294
48295 2009-08-12  Bruno Haible  <bruno@clisp.org>
48296
48297         Ensure that getopt() gets declared by <unistd.h>.
48298         * lib/unistd.in.h: Conditionally include getopt.h.
48299         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
48300         Set GNULIB_UNISTD_H_GETOPT.
48301         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48302         GNULIB_UNISTD_H_GETOPT.
48303         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
48304
48305 2009-08-12  Bruno Haible  <bruno@clisp.org>
48306
48307         Clarify logic.
48308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
48309         gl_replace_getopt instead of GETOPT_H.
48310
48311 2009-08-12  Bruno Haible  <bruno@clisp.org>
48312
48313         * m4/getopt.m4: Add comments.
48314
48315 2009-08-12  Bruno Haible  <bruno@clisp.org>
48316
48317         Disable multithread support by default on Cygwin 1.5.x.
48318         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
48319         set gl_use_threads=no if not specified otherwise.
48320
48321 2009-08-11  Bruno Haible  <bruno@clisp.org>
48322
48323         Avoid compilation error on NetBSD 5.0.
48324         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
48325         * tests/test-stdio.c: Likewise.
48326         * tests/test-stdlib.c: Likewise.
48327         * tests/test-string.c: Likewise.
48328         * tests/test-unistd.c: Likewise.
48329         Reported by Greg Troxel <gdt@ir.bbn.com>
48330         at <https://savannah.gnu.org/support/?106973>.
48331
48332 2009-08-11  Bruno Haible  <bruno@clisp.org>
48333
48334         * modules/dup2-tests (Depends-on): Remove close.
48335
48336         Undo 2009-07-19 commit.
48337         * modules/acl-tests (Depends-on): Remove close.
48338         * modules/binary-io-tests (Depends-on): Likewise.
48339         * modules/closein-tests (Depends-on): Likewise.
48340         * modules/flock-tests (Depends-on): Likewise.
48341         * modules/fsync-tests (Depends-on): Likewise.
48342         * modules/lseek-tests (Depends-on): Likewise.
48343         * modules/pipe-tests (Depends-on): Likewise.
48344         * modules/posix_spawn-tests (Depends-on): Likewise.
48345         * modules/posix_spawnp-tests (Depends-on): Likewise.
48346         * modules/stat-time-tests (Depends-on): Likewise.
48347         * modules/yesno-tests (Depends-on): Likewise.
48348
48349 2009-08-10  Bruno Haible  <bruno@clisp.org>
48350
48351         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
48352
48353 2009-08-10  Bruno Haible  <bruno@clisp.org>
48354
48355         Fix a gcc warning.
48356         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
48357
48358 2009-08-10  Bruno Haible  <bruno@clisp.org>
48359
48360         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
48361         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
48362         not only the first time.
48363         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
48364         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
48365         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
48366         is 1, not only the the first time.
48367
48368 2009-08-10  Bruno Haible  <bruno@clisp.org>
48369
48370         Make it possible to use module 'gethostname' without module 'close'.
48371         * lib/unistd.in.h (close): Evoke a link error only if
48372         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48373         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48374         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48375         * modules/unistd (Makefile.am): Substitute
48376         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48377         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
48378         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
48379         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
48380         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48381         * modules/sys_ioctl (Makefile.am): Substitute
48382         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48383         * modules/socket (configure.ac): On native Windows, set
48384         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
48385         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
48386         Reported by Sam Steingold <sds@gnu.org>.
48387
48388 2009-08-10  Bruno Haible  <bruno@clisp.org>
48389
48390         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
48391         * modules/ioctl (configure.ac): Likewise.
48392
48393 2009-08-10  Bruno Haible  <bruno@clisp.org>
48394
48395         Avoid collision between gnulib wrapper and libintl wrapper.
48396         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
48397         already defined in intl/printf.c.
48398         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
48399         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
48400
48401 2009-08-09  Bruno Haible  <bruno@clisp.org>
48402
48403         Make <sys/select.h> really self-contained, also on Solaris 10.
48404         * lib/sys_select.in.h: Include <string.h>.
48405         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
48406         Solaris 10 problem.
48407         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
48408         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
48409         Reported by Jim Meyering.
48410
48411 2009-08-09  Bruno Haible  <bruno@clisp.org>
48412
48413         Avoid warnings from 'aclocal' that are due to a use of macro name
48414         AM_XGETTEXT_OPTION that is not defined in automake.
48415         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
48416         automake.
48417         * modules/error (configure.ac): Likewise.
48418         * modules/propername (configure.ac): Likewise.
48419         * modules/vasprintf (configure.ac): Likewise.
48420         * modules/verror (configure.ac): Likewise.
48421         * modules/xprintf (configure.ac): Likewise.
48422         * modules/xvasprintf (configure.ac): Likewise.
48423
48424 2009-08-08  Bruno Haible  <bruno@clisp.org>
48425
48426         Avoid compilation error in C++ mode.
48427         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
48428         Reported by Sam Steingold <sds@gnu.org>.
48429
48430 2009-08-08  Bruno Haible  <bruno@clisp.org>
48431
48432         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
48433         for the various Unix platforms.
48434         * doc/posix-headers/limits.texi: Update platforms list regarding
48435         HOST_NAME_MAX.
48436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48437
48438 2009-08-07  Jim Meyering  <meyering@redhat.com>
48439
48440         selinux-at: fix typo in a comment
48441         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
48442         Spotted by Paolo Bonzini.
48443
48444         selinux-at: remove redundant m4 code, add documentation
48445         * modules/selinux-at (configure.ac): Remove redundant code.
48446         LIB_SELINUX is already set via the dependent module, selinux-h.
48447         (Include): Add quotes around selinux-at.h.
48448         * lib/selinux-at.h: Add documentation.
48449         Reported by Bruno Haible in
48450         http://marc.info/?l=gnulib-bug&m=124958988300749
48451
48452 2009-08-07  Bruno Haible  <bruno@clisp.org>
48453
48454         Avoid link error on MacOS X 10.3 and 10.4.
48455         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
48456         on non-ELF systems.
48457         * lib/argp-pv.c (argp_program_version): Likewise.
48458         Reported by Simon Josefsson.
48459
48460 2009-08-07  Simon Josefsson  <simon@josefsson.org>
48461
48462         * tests/test-version-etc.sh: Use $EXEEXT.
48463
48464 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
48465
48466         update-copyright: update documentation to point to maint.mk
48467         * build-aux/update-copyright: Here.
48468
48469 2009-08-06  Jim Meyering  <meyering@redhat.com>
48470
48471         maint.mk: support update-copyright-local
48472         * top/maint.mk (update-copyright-local): Define place-holder.
48473         (update-copyright): Depend on $(update-copyright-local).
48474
48475 2009-08-06  Jim Meyering  <meyering@redhat.com>
48476
48477         selinux-at: new module
48478         Initially written for coreutils, this module will soon be
48479         used by findutils, too.
48480         * MODULES.html.sh [Misc]: Add selinux-at.
48481         * lib/selinux-at.h: New file, from coreutils.
48482         * lib/selinux-at.c: Likewise.
48483         * modules/selinux-at: Likewise.
48484         (License): Change from LGPL to GPL, since it depends
48485         on the GPL'd openat module.
48486
48487         doc: update README
48488         * README: Remove references to cogito.
48489         Remove cvs-repo-updating instructions from 2007.
48490         Don't imply that CVS is better if you have limited disk space.
48491
48492 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48493
48494         update-copyright: support C-style comments
48495         * build-aux/update-copyright: Implement and document.
48496         * tests/test-update-copyright.sh: Test.
48497
48498 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48499
48500         update-copyright: support omitted "(C)"
48501         * build-aux/update-copyright: Implement and document.  Also,
48502         allow variable whitespace before "(C)".
48503         * tests/test-update-copyright.sh: Test.
48504
48505 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48506
48507         update-copyright: don't trip on non-FSF copyright statements
48508         * build-aux/update-copyright: Fix so that the first correctly
48509         formatted FSF copyright statement is recognized no matter what
48510         appears before it.  Update documentation.
48511         * tests/test-update-copyright.sh: Test that.
48512
48513 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48514
48515         update-copyright: clean up code a little
48516         * build-aux/update-copyright: Append "_re" to the name of any
48517         variable holding a regular expression.
48518         Replace "old" and "new" with "stmt" in variable names.
48519         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
48520         handled correctly.
48521         Format code more consistently.
48522
48523 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
48524
48525         update-copyright-tests: improve portability
48526         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
48527         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
48528
48529 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48530
48531         update-copyright: support @copyright{} and &copy;
48532         * build-aux/update-copyright: Implement and document.
48533         * tests/test-update-copyright.sh: Test.
48534
48535 2009-08-04  Jim Meyering  <meyering@redhat.com>
48536
48537         update-copyright-tests: correctly test EOL=\r\n handling
48538         * tests/test-update-copyright.sh: Put \r at the end of some lines
48539         for the dos-eol tests.  Based on a patch by Joel E. Denny.
48540
48541         maint.mk: make update-copyright exclusion list more configurable
48542         * top/maint.mk (update-copyright): Default to excluding COPYING,
48543         but allow an override, in case someone does want to update that file.
48544
48545         maint.mk: don't update copyright date in COPYING
48546         * top/maint.mk (update-copyright): Exclude COPYING.
48547
48548         maint.mk: add a copyright-updating rule
48549         * top/maint.mk (update-copyright): New rule.
48550         Derived from coreutils/Makefile.am.
48551
48552         update-copyright: rename some variables
48553         * build-aux/update-copyright: Rename a few variables for clarity.
48554         Tweak syntax.  List Joel E. Denny as coauthor.
48555
48556 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
48557
48558         update-copyright: fix bug for 2-digit last year and add tests
48559         * build-aux/update-copyright: Fix bug.
48560         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
48561         specified.
48562         * modules/update-copyright-tests: New
48563         * tests/test-update-copyright.sh: New.
48564
48565 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48566
48567         update-copyright: handle leading tabs in line prefix
48568         * build-aux/update-copyright: Count leading tabs as 8 spaces
48569         when computing margin.  This helps with the formatting of
48570         ChangeLogs, for example.
48571         Fix documentation a little.
48572
48573 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48574
48575         update-copyright: support EOL=\r\n
48576         * build-aux/update-copyright: Implement that.
48577
48578 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
48579
48580         update-copyright: automatically format copyright statements
48581         * build-aux/update-copyright: Implement that.
48582         Also, be a little more predictable and safer by always failing
48583         when the full copyright format is not perfectly recognized as an
48584         unbroken whole.  Discussed at
48585         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
48586         Rewrite documentation.
48587
48588 2009-08-03  Bruno Haible  <bruno@clisp.org>
48589
48590         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
48591
48592 2009-08-02  Bruno Haible  <bruno@clisp.org>
48593
48594         Tests for module 'uname'.
48595         * modules/uname-tests: New file.
48596         * tests/test-uname.c: New file.
48597
48598         New module 'uname'.
48599         * lib/uname.c: New file.
48600         * m4/uname.m4: New file.
48601         * modules/uname: New file.
48602         * doc/posix-functions/uname.texi: Mention the new module.
48603
48604 2009-08-02  Bruno Haible  <bruno@clisp.org>
48605
48606         Tests for module 'sys_utsname'.
48607         * modules/sys_utsname-tests: New file.
48608         * tests/test-sys_utsname.c: New file.
48609
48610         New module 'sys_utsname'.
48611         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
48612         * m4/sys_utsname_h.m4: New file.
48613         * modules/sys_utsname: New file.
48614         * doc/posix-headers/sys_utsname.texi: Mention the new module.
48615
48616 2009-08-02  Bruno Haible  <bruno@clisp.org>
48617
48618         Implicitly initialize the sockets library.
48619         * lib/gethostname.c: Include sockets.h.
48620         (rpl_gethostname): Invoke gl_sockets_startup.
48621         * lib/socket.c: Include sockets.h.
48622         (rpl_socket): Invoke gl_sockets_startup.
48623         * modules/gethostname (Depends-on): Add sockets.
48624         * modules/socket (Depends-on): Likewise.
48625         * tests/test-poll.c: Don't include sockets.h.
48626         (main): Don't invoke gl_sockets_startup.
48627         * tests/test-select.c: Don't include sockets.h.
48628         (main): Don't invoke gl_sockets_startup.
48629
48630 2009-08-02  Bruno Haible  <bruno@clisp.org>
48631
48632         Allow multiple calls to gl_sockets_startup.
48633         * lib/sockets.c (initialized_sockets_version): New variable.
48634         (gl_sockets_startup): Do nothing if already called for this or a higher
48635         version.
48636         (gl_sockets_cleanup): Reset initialized_sockets_version.
48637
48638 2009-08-03  Simon Josefsson  <simon@josefsson.org>
48639
48640         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
48641         different project/version.
48642
48643 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
48644             Bruno Haible  <bruno@clisp.org>
48645
48646         Tests for module 'pipe-filter-gi'.
48647         * modules/pipe-filter-gi-tests: New file.
48648         * tests/test-pipe-filter-gi1.sh: New file.
48649         * tests/test-pipe-filter-gi1.c: New file.
48650         * tests/test-pipe-filter-gi2.sh: New file.
48651         * tests/test-pipe-filter-gi2-main.c: New file.
48652         * tests/test-pipe-filter-gi2-child.c: New file.
48653
48654         New module 'pipe-filter-gi'.
48655         * lib/pipe-filter-gi.c: New file.
48656         * modules/pipe-filter-gi: New file.
48657
48658 2009-08-02  Bruno Haible  <bruno@clisp.org>
48659             Paolo Bonzini  <bonzini@gnu.org>
48660
48661         Tests for module 'pipe-filter-ii'.
48662         * modules/pipe-filter-ii-tests: New file.
48663         * tests/test-pipe-filter-ii1.sh: New file.
48664         * tests/test-pipe-filter-ii1.c: New file.
48665         * tests/test-pipe-filter-ii2.sh: New file.
48666         * tests/test-pipe-filter-ii2-main.c: New file.
48667         * tests/test-pipe-filter-ii2-child.c: New file.
48668
48669         New module 'pipe-filter-ii'.
48670         * lib/pipe-filter.h: New file.
48671         * lib/pipe-filter-ii.c: New file.
48672         * lib/pipe-filter-aux.h: New file.
48673         * modules/pipe-filter-ii: New file.
48674
48675 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48676
48677         * lib/gc-libgcrypt.c: Change copyright to FSF.
48678         * lib/gc-gnulib.c: Likewise.
48679
48680 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
48681
48682         * lib/gethostname.c: Include limits.h.
48683
48684 2009-08-02  Simon Josefsson  <simon@josefsson.org>
48685             Bruno Haible  <bruno@clisp.org>
48686
48687         Ensure HOST_NAME_MAX as part of the gethostname module.
48688         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
48689         define also HOST_NAME_MAX.
48690         * tests/test-gethostname.c: Include <limits.h>.
48691         (main): Check also HOST_NAME_MAX.
48692         * doc/posix-headers/limits.texi: Document the mingw problem.
48693
48694 2009-08-02  Bruno Haible  <bruno@clisp.org>
48695
48696         * lib/gethostname.c (gethostname): Fix handling of large len argument.
48697         Add comments.
48698
48699 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48700
48701         * lib/gethostname.c: Add Windows wrapper.
48702         * m4/gethostname.m4: Look for gethostname in -lws2_32.
48703         * modules/gethostname: Depend on sys_socket & errno, for also
48704         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
48705         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
48706
48707 2009-07-31  Jim Meyering  <meyering@redhat.com>
48708
48709         getloadavg: fix symbol name in comment
48710         * lib/getloadavg.c: Correct a typo I introduced when adding
48711         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
48712         Matt Kraai spotted the problem.
48713
48714 2009-07-29  Matt Kraai  <mkraai@beckman.com>
48715
48716         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
48717         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
48718         code also if ! defined N_NAME_POINTER.
48719         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
48720         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
48721         but the n_name member is a 12-byte array.
48722
48723 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
48724
48725         update-copyright: generalize comment handling
48726         * build-aux/update-copyright: Handle copyright statements
48727         within more comment styles.
48728         Document usage.
48729         Report any file with an external copyright holder or parse failure.
48730
48731 2009-07-29  Jim Meyering  <meyering@redhat.com>
48732
48733         mktime: correct setting of REPLACE_MKTIME
48734         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
48735
48736         update-copyright: new module
48737         * modules/update-copyright: New file.
48738         * build-aux/update-copyright: New file.
48739         * MODULES.html.sh (maint+release support): Add update-copyright.
48740
48741 2009-07-27  Bruno Haible  <bruno@clisp.org>
48742
48743         Fix compilation error when <ctime> is used and mktime is replaced.
48744         * lib/time.in.h (mktime): New declaration.
48745         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
48746         REPLACE_MKTIME instead of defining mktime in config.h.
48747         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
48748         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
48749         Reported by Ross McFarland <rwmcfa1@neces.com>.
48750
48751 2009-07-27  Bruno Haible  <bruno@clisp.org>
48752
48753         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
48754         Reported by Matt Kraai <mkraai@beckman.com>.
48755
48756 2009-07-25  Jim Meyering  <meyering@redhat.com>
48757
48758         maint.mk: avoid warnings about missing files
48759         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
48760         diagnostic when .prev-version does not exist.
48761         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
48762         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
48763         nonexistent cfg.mk.
48764         Suggestions from Simon Josefsson.
48765
48766 2009-07-25  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
48769         defined as macros. Needed on QNX 6.4.1.
48770         Reported by Matt Kraai <mkraai@beckman.com>.
48771
48772 2009-07-23  Jim Meyering  <meyering@redhat.com>
48773
48774         maint.mk: invoke "make dist" with a working value of XZ_OPT
48775         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
48776
48777 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
48778
48779         Make fseeko.c compile on QNX.
48780         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
48781
48782 2009-07-22  Peter Simons  <simons@cryp.to>
48783
48784         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
48785         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
48786         * lib/md4.h: Likewise.
48787         * lib/md5.h: Likewise.
48788         * lib/sha1.h: Likewise.
48789         * lib/sha256.h: Likewise.
48790         * lib/sha512.h: Likewise.
48791
48792         tests-sha1: don't assign literal string to 'char *' variable
48793         * tests/test-sha1.c (main): Declare locals with "const" to match
48794         attributes of the right hand side.
48795
48796 2009-07-21  Eric Blake  <ebb9@byu.net>
48797
48798         dup2: fix more mingw problems
48799         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
48800         fd to itself.
48801         * doc/posix-functions/dup2.texi (dup2): Document the bug.
48802         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
48803         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
48804         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
48805         care of mingw bugs.
48806
48807 2009-07-21  Jim Meyering  <meyering@redhat.com>
48808
48809         vc-list-files: avoid failure when /bin/sh is dash
48810         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
48811         On some Debian based systems, /bin/sh is a symlink to dash, and running
48812         this command would omit the "/" following each 'tests' prefix:
48813           dash -x build-aux/vc-list-files -C . tests
48814         That is because bash and dash work differently:
48815           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
48816           bash ok
48817           dash odd
48818
48819 2009-07-21  Eric Blake  <ebb9@byu.net>
48820
48821         dup2-tests: test previous patch
48822         * modules/dup2-tests: New file.
48823         * tests/test-dup2.c: Likewise.
48824         * tests/test-open.c (main): Avoid unspecified behavior.
48825         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
48826         test.
48827
48828         dup2: work around mingw and cygwin 1.5 bug
48829         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
48830         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
48831         * modules/unistd (Makefile.am): Substitute it.
48832         * lib/unistd.in.h (dup2): Declare the replacement.
48833         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
48834         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
48835         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
48836         * modules/execute (Depends-on): Add dup2.
48837         * modules/fseterr (Depends-on): Likewise.
48838         * modules/pipe (Depends-on): Likewise.
48839         * modules/posix_spawn-internal (Depends-on): Likewise.
48840
48841 2009-07-21  Bruno Haible  <bruno@clisp.org>
48842
48843         * modules/.gitattributes: New file.
48844
48845 2009-07-20  Bruno Haible  <bruno@clisp.org>
48846
48847         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
48848         (main): Use it.
48849
48850 2009-07-20  Eric Blake  <ebb9@byu.net>
48851
48852         test-pipe: make a bit more robust.
48853         * tests/test-pipe.c (myerr): Allow error messages regardless of
48854         what we do to stderr.
48855         (test_pipe): Rearrange to avoid deadlock.
48856         (child_main): Try a larger read, to ensure we avoided deadlock.
48857         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
48858         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
48859         if misused.
48860
48861 2009-07-19  Jim Meyering  <meyering@redhat.com>
48862
48863         fts: avoid false-positive cycle-detection
48864         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
48865         for each new command line argument.
48866
48867 2009-07-19  Bruno Haible  <bruno@clisp.org>
48868
48869         Fix build error on mingw with the modules sys_select and unistd.
48870         * modules/acl-tests (Depends-on): Add close.
48871         * modules/binary-io-tests (Depends-on): Likewise.
48872         * modules/closein-tests (Depends-on): Likewise.
48873         * modules/flock-tests (Depends-on): Likewise.
48874         * modules/fsync-tests (Depends-on): Likewise.
48875         * modules/lseek-tests (Depends-on): Likewise.
48876         * modules/pipe-tests (Depends-on): Likewise.
48877         * modules/posix_spawn-tests (Depends-on): Likewise.
48878         * modules/posix_spawnp-tests (Depends-on): Likewise.
48879         * modules/stat-time-tests (Depends-on): Likewise.
48880         * modules/yesno-tests (Depends-on): Likewise.
48881
48882 2009-07-19  Bruno Haible  <bruno@clisp.org>
48883
48884         Unify conditionals.
48885         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
48886         macros, not at the compiler macros.
48887         * lib/pipe.c: Likewise.
48888         * lib/execute.c: Likewise.
48889         * lib/spawni.c: Likewise.
48890
48891 2009-07-19  Bruno Haible  <bruno@clisp.org>
48892
48893         Fix handling of closed stdin/stdout/stderr on mingw.
48894         * lib/w32spawn.h: Include unistd.h.
48895         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
48896         file descriptor with O_NOINHERIT flag.
48897         (fd_safer_noinherit): New function, based on fd-safer.c.
48898         (dup_safer_noinherit): New function, based on dup-safer.c.
48899         (undup_safer_noinherit): New function.
48900         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
48901         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
48902         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
48903         instead of fd_safer.
48904         * tests/test-pipe.c: Include <windows.h>.
48905         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
48906         result.
48907
48908         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
48909         from main.
48910         (test_pipe): Pass an extra argument for disambiguation.
48911         (main): Invoke parent_main or child_main.
48912
48913         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
48914         consistently.
48915
48916 2009-07-18  Eric Blake  <ebb9@byu.net>
48917
48918         test-pipe: fix mingw build
48919         * tests/test-pipe.c (main): Avoid fcntl on mingw.
48920
48921 2009-07-18  Bruno Haible  <bruno@clisp.org>
48922
48923         * modules/pipe-tests (Makefile.am): Fix typo.
48924
48925 2009-07-18  Eric Blake  <ebb9@byu.net>
48926
48927         error: fix mingw build
48928         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
48929         Reported by Bruno Haible.
48930
48931         error: avoid undefined use of stdout
48932         * lib/error.c (error, error_at_line): Check that fd 1 is open
48933         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
48934         is handling faults and the close_stdout module wants to report the
48935         detection of closed stdout as an error.
48936
48937 2009-07-17  Eric Blake  <ebb9@byu.net>
48938
48939         pipe: be robust in face of closed fds
48940         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
48941         should cause child to misbehave.
48942         * modules/pipe-tests: New module.
48943         * tests/test-pipe.c: New file.
48944         * tests/test-pipe.sh: New file.
48945         Reported by Akim Demaille.
48946
48947 2009-07-14  Bruno Haible  <bruno@clisp.org>
48948
48949         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
48950         Reported by anonymous kc.
48951
48952 2009-07-07  Jim Meyering  <meyering@redhat.com>
48953
48954         maint.mk: don't look for translatable strings in *.m4 or *.mk
48955         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
48956         when searching for translatable strings.
48957
48958 2009-07-05  Jim Meyering  <meyering@redhat.com>
48959
48960         remove superfluous parentheses in STREQ definition
48961         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
48962         * lib/getugroups.c (STREQ): Likewise.
48963         * lib/fnmatch.c (STREQ): Likewise.
48964         Spotted by Bruno Haible.
48965
48966 2009-07-04  Jim Meyering  <meyering@redhat.com>
48967
48968         argv-iter: new module
48969         * MODULES.html.sh: Add argv-iter.
48970         * lib/argv-iter.c, lib/argv-iter.h: New files.
48971         * modules/argv-iter: New file.
48972         * modules/argv-iter-tests: New file.
48973         * tests/test-argv-iter.c: Test it.
48974
48975 2009-07-04  Bruno Haible  <bruno@clisp.org>
48976
48977         Fix assertion.
48978         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
48979         contains more exact copies of a given entry than file2, leave the extra
48980         copies unpaired rather than aborting.
48981         Reported by Eric Blake.
48982
48983 2009-07-02  Bruno Haible  <bruno@clisp.org>
48984
48985         Speedup git-merge-changelog for git cherry-pick.
48986         * lib/git-merge-changelog.c (struct entries_mapping): New type.
48987         (entries_mapping_get): New function, extracted from compute_mapping.
48988         (entries_mapping_reverse_get): New function.
48989         (compute_mapping): Add a 'full' argument. Return the result in a
48990         'struct entries_mapping'.
48991         (main): Update. Access the mappings through entries_mapping_get.
48992         Reported by Eric Blake.
48993
48994 2009-07-02  Bruno Haible  <bruno@clisp.org>
48995
48996         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
48997         best_i.
48998
48999 2009-07-02  Bruno Haible  <bruno@clisp.org>
49000
49001         Speed up approximate search for matching ChangeLog entries.
49002         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
49003         argument. Call fstrcmp_bounded instead of fstrcmp.
49004         (compute_mapping, try_split_merged_entry, main): Update callers.
49005
49006 2009-07-02  Bruno Haible  <bruno@clisp.org>
49007
49008         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
49009
49010 2009-06-30  Bruno Haible  <bruno@clisp.org>
49011
49012         Reduce the number of uc_is_cased calls.
49013         * lib/unicase.h (casing_suffix_context_t): Add
49014         'first_char_except_ignorable' field.
49015         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
49016         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
49017         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
49018         Update initializer.
49019         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
49020         case-ignorable characters.
49021         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
49022         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
49023         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
49024         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
49025         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
49026
49027 2009-06-30  Bruno Haible  <bruno@clisp.org>
49028
49029         Tests for module 'unicase/ignorable'.
49030         * modules/unicase/ignorable-tests: New file.
49031         * tests/unicase/test-ignorable.c: New file, generated by
49032         gen-uni-tables.
49033
49034         Tests for module 'unicase/cased'.
49035         * modules/unicase/cased-tests: New file.
49036         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
49037         * tests/unicase/test-predicate-part1.h: New file, derived from
49038         tests/unictype/test-predicate-part1.h.
49039         * tests/unicase/test-predicate-part2.h: New file, same as
49040         tests/unictype/test-predicate-part2.h.
49041
49042         Fix evaluation of "Before C" condition of FINAL_SIGMA.
49043         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
49044         (output_casing_properties): New function.
49045         (main): Call it.
49046         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
49047         * lib/unicase/cased.c: Include unictype/bitmap.h.
49048         (uc_is_cased): Define through a bitmap lookup.
49049         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
49050         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
49051         (uc_is_case_ignorable): Define through a bitmap lookup.
49052         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
49053         lib/unictype/bitmap.h.
49054         (Depends-on): Add inline. Clean up.
49055         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
49056         lib/unictype/bitmap.h.
49057         (Depends-on): Add inline. Clean up.
49058         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
49059         recognition.
49060         * tests/unicase/test-u16-tolower.c (main): Likewise.
49061         * tests/unicase/test-u32-tolower.c (main): Likewise.
49062
49063 2009-06-30  Bruno Haible  <bruno@clisp.org>
49064
49065         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
49066         * lib/unicase/u16-casemap.c: Likewise.
49067         * lib/unicase/u32-casemap.c: Likewise.
49068
49069 2009-06-29  Bruno Haible  <bruno@clisp.org>
49070
49071         Define u32_casefold as a wrapper around u32_ct_casefold.
49072         * lib/unicase/u32-casefold.c: Update.
49073         * modules/unicase/u32-casefold (Depends-on): Add
49074         unicase/u32-ct-casefold, unicase/empty-prefix-context,
49075         unicase/empty-suffix-context. Clean up.
49076
49077         Define u16_casefold as a wrapper around u16_ct_casefold.
49078         * lib/unicase/u16-casefold.c: Update.
49079         * modules/unicase/u16-casefold (Depends-on): Add
49080         unicase/u16-ct-casefold, unicase/empty-prefix-context,
49081         unicase/empty-suffix-context. Clean up.
49082
49083         Define u8_casefold as a wrapper around u8_ct_casefold.
49084         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
49085         * lib/unicase/u8-casefold.c: Update.
49086         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
49087         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49088
49089         Define u32_totitle as a wrapper around u32_ct_totitle.
49090         * lib/unicase/u32-totitle.c: Update.
49091         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
49092         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49093
49094         Define u16_totitle as a wrapper around u16_ct_totitle.
49095         * lib/unicase/u16-totitle.c: Update.
49096         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
49097         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49098
49099         Define u8_totitle as a wrapper around u8_ct_totitle.
49100         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
49101         functions.
49102         (FUNC): Delegate to U_CT_TOTITLE.
49103         * lib/unicase/u8-totitle.c: Update.
49104         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
49105         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
49106
49107         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
49108         invocation.
49109         * modules/unicase/u32-tolower (Depends-on): Add
49110         unicase/empty-prefix-context, unicase/empty-suffix-context.
49111
49112         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
49113         invocation.
49114         * modules/unicase/u16-tolower (Depends-on): Add
49115         unicase/empty-prefix-context, unicase/empty-suffix-context.
49116
49117         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
49118         * modules/unicase/u8-tolower (Depends-on): Add
49119         unicase/empty-prefix-context, unicase/empty-suffix-context.
49120
49121         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
49122         invocation.
49123         * modules/unicase/u32-toupper (Depends-on): Add
49124         unicase/empty-prefix-context, unicase/empty-suffix-context.
49125
49126         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
49127         invocation.
49128         * modules/unicase/u16-toupper (Depends-on): Add
49129         unicase/empty-prefix-context, unicase/empty-suffix-context.
49130
49131         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
49132         * modules/unicase/u8-toupper (Depends-on): Add
49133         unicase/empty-prefix-context, unicase/empty-suffix-context.
49134
49135         New module 'unicase/u32-ct-casefold'.
49136         * lib/unicase/u32-ct-casefold.c: New file.
49137         * modules/unicase/u32-ct-casefold: New file.
49138
49139         New module 'unicase/u16-ct-casefold'.
49140         * lib/unicase/u16-ct-casefold.c: New file.
49141         * modules/unicase/u16-ct-casefold: New file.
49142
49143         New module 'unicase/u8-ct-casefold'.
49144         * lib/unicase/u8-ct-casefold.c: New file.
49145         * lib/unicase/u-ct-casefold.h: New file, derived from
49146         lib/unicase/u-casefold.h.
49147         * modules/unicase/u8-ct-casefold: New file.
49148
49149         New module 'unicase/u32-ct-totitle'.
49150         * lib/unicase/u32-ct-totitle.c: New file.
49151         * modules/unicase/u32-ct-totitle: New file.
49152
49153         New module 'unicase/u16-ct-totitle'.
49154         * lib/unicase/u16-ct-totitle.c: New file.
49155         * modules/unicase/u16-ct-totitle: New file.
49156
49157         New module 'unicase/u8-ct-totitle'.
49158         * lib/unicase/u8-ct-totitle.c: New file.
49159         * lib/unicase/u-ct-totitle.h: New file, derived from
49160         lib/unicase/u-totitle.h.
49161         * modules/unicase/u8-ct-totitle: New file.
49162
49163         New module 'unicase/u32-ct-tolower'.
49164         * lib/unicase/u32-ct-tolower.c: New file.
49165         * modules/unicase/u32-ct-tolower: New file.
49166
49167         New module 'unicase/u16-ct-tolower'.
49168         * lib/unicase/u16-ct-tolower.c: New file.
49169         * modules/unicase/u16-ct-tolower: New file.
49170
49171         New module 'unicase/u8-ct-tolower'.
49172         * lib/unicase/u8-ct-tolower.c: New file.
49173         * modules/unicase/u8-ct-tolower: New file.
49174
49175         New module 'unicase/u32-ct-toupper'.
49176         * lib/unicase/u32-ct-toupper.c: New file.
49177         * modules/unicase/u32-ct-toupper: New file.
49178
49179         New module 'unicase/u16-ct-toupper'.
49180         * lib/unicase/u16-ct-toupper.c: New file.
49181         * modules/unicase/u16-ct-toupper: New file.
49182
49183         New module 'unicase/u8-ct-toupper'.
49184         * lib/unicase/u8-ct-toupper.c: New file.
49185         * modules/unicase/u8-ct-toupper: New file.
49186
49187         Add context arguments to u*_casemap functions.
49188         * lib/unicase/unicasemap.h: Include unicase.h.
49189         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
49190         suffix_context arguments.
49191         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
49192         functions.
49193         (FUNC): Add prefix_context and suffix_context arguments. Use
49194         uc_is_cased and uc_is_case_ignorable.
49195         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
49196         * lib/unicase/u16-casemap.c: Likewise.
49197         * lib/unicase/u32-casemap.c: Likewise.
49198         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
49199         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49200         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
49201         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49202         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
49203         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
49204
49205         New module 'unicase/u32-suffix-context'.
49206         * lib/unicase/u32-suffix-context.c: New file.
49207         * modules/unicase/u32-suffix-context: New file.
49208
49209         New module 'unicase/u16-suffix-context'.
49210         * lib/unicase/u16-suffix-context.c: New file.
49211         * modules/unicase/u16-suffix-context: New file.
49212
49213         New module 'unicase/u8-suffix-context'.
49214         * lib/unicase/u8-suffix-context.c: New file.
49215         * lib/unicase/u-suffix-context.h: New file.
49216         * modules/unicase/u8-suffix-context: New file.
49217
49218         New module 'unicase/empty-suffix-context'.
49219         * lib/unicase/empty-suffix-context.c: New file.
49220         * modules/unicase/empty-suffix-context: New file.
49221
49222         New module 'unicase/u32-prefix-context'.
49223         * lib/unicase/u32-prefix-context.c: New file.
49224         * modules/unicase/u32-prefix-context: New file.
49225
49226         New module 'unicase/u16-prefix-context'.
49227         * lib/unicase/u16-prefix-context.c: New file.
49228         * modules/unicase/u16-prefix-context: New file.
49229
49230         New module 'unicase/u8-prefix-context'.
49231         * lib/unicase/u8-prefix-context.c: New file.
49232         * lib/unicase/u-prefix-context.h: New file.
49233         * lib/unicase/context.h: New file.
49234         * modules/unicase/u8-prefix-context: New file.
49235
49236         New module 'unicase/empty-prefix-context'.
49237         * lib/unicase/empty-prefix-context.c: New file.
49238         * modules/unicase/empty-prefix-context: New file.
49239
49240         New module 'unicase/ignorable'.
49241         * lib/unicase/ignorable.c: New file.
49242         * modules/unicase/ignorable: New file.
49243
49244         New module 'unicase/cased'.
49245         * lib/unicase/caseprop.h: New file.
49246         * lib/unicase/cased.c: New file.
49247         * modules/unicase/cased: New file.
49248
49249         New functions for case mapping of substrings.
49250         * lib/unicase.h (casing_prefix_context_t): New type.
49251         (unicase_empty_prefix_context): New variable.
49252         (u8_casing_prefix_context, u16_casing_prefix_context,
49253         u32_casing_prefix_context, u8_casing_prefixes_context,
49254         u16_casing_prefixes_context, u32_casing_prefixes_context): New
49255         declarations.
49256         (casing_suffix_context_t): New type.
49257         (unicase_empty_suffix_context): New variable.
49258         (u8_casing_suffix_context, u16_casing_suffix_context,
49259         u32_casing_suffix_context, u8_casing_suffixes_context,
49260         u16_casing_suffixes_context, u32_casing_suffixes_context,
49261         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
49262         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
49263         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
49264         declarations.
49265
49266 2009-06-28  Jim Meyering  <meyering@redhat.com>
49267
49268         boostrap: indent only with spaces
49269         * build-aux/bootstrap: Indent only with spaces, never TABs.
49270
49271         bootstrap: split long lines
49272         * build-aux/bootstrap: Keep line length < 80.
49273
49274         bootstrap: sync from coreutils
49275         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
49276         just as autoreconf does.  Verify a list of prerequisite
49277         package-name,version-number pairs if defined in bootstrap.conf.
49278         Refer to README-prereq, if prerequisites are not satisfied.
49279
49280 2009-06-27  Eric Blake  <ebb9@byu.net>
49281
49282         tests: add test for bogus NULL definition
49283         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
49284         * tests/test-stdlib.c: Likewise.
49285         * tests/test-string.c: Likewise.
49286         * tests/test-locale.c: Likewise.
49287         * tests/test-unistd.c: Likewise.
49288         * modules/stdio-tests (Depends-on): Add verify.
49289         * modules/stdlib-tests (Depends-on): Likewise.
49290         * modules/string-tests (Depends-on): Likewise.
49291         * modules/locale-tests (Depends-on): Likewise.
49292         * modules/unistd-tests (Depends-on): Likewise.
49293
49294 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
49295
49296         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
49297         self-explaining comment.
49298         * m4/selinux-selinux-h: Update serial.
49299         (gl_LIBSELINUX): New macro, adding a warning for missing development
49300         packages to code extracted from...
49301         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
49302         Add warning for missing development packages here, too.
49303
49304 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
49305
49306         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
49307
49308 2009-06-25  Eric Blake  <ebb9@byu.net>
49309
49310         version-etc: fix regression
49311         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
49312         gcc.
49313         (version_etc): Use it, to catch bugs with trailing NULL.
49314         * lib/version-etc.c (version_etc_arn): Delete unused argument.
49315         (version_etc_va): Fix logic bug.
49316         * modules/version-etc-tests: Add test.
49317         * tests/test-version-etc.c: New file.
49318         * tests/test-version-etc.sh: Likewise.
49319
49320 2009-06-25  Sam Steingold  <sds@gnu.org>
49321
49322         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
49323         mbtowc declaration.
49324
49325 2009-06-25  Eric Blake  <ebb9@byu.net>
49326
49327         fpurge: migrate into <stdio.h>
49328         * lib/fpurge.h: Delete...
49329         * lib/stdio.in.h (fpurge): ...and declare here, instead.
49330         * lib/fpurge.c (fpurge): Change declaring header.
49331         * modules/fpurge (Files): Drop deleted file.
49332         (Depends-on): Add stdio.
49333         (configure.ac): Set witness.
49334         * modules/stdio (Makefile.am): Support fpurge macros.
49335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49336         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
49337         * lib/fflush.c: Update client.
49338         * tests/test-fpurge.c: Likewise.
49339         * NEWS: Mention the change.
49340
49341 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49342
49343         * lib/argp-version-etc.c (program_authors): Add const
49344         qualifier.
49345         * lib/version-etc.c: Fix typos in the comments.
49346         * modules/argp-version-etc: Depends on version-etc.
49347
49348 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49349
49350         argp-version-etc: new module.
49351
49352         * lib/argp-version-etc.c: New file.
49353         * lib/argp-version-etc.h: New file.
49354         * modules/argp-version-etc: New file.
49355         * modules/argp-version-etc-tests: New file.
49356         * tests/test-argp-version-etc.c: New test.
49357         * tests/test-argp-version-etc-1.sh: New test.
49358
49359 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
49360
49361         Provide additional interfaces and documentation for version-etc
49362         module.
49363
49364         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
49365         interfaces.
49366         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
49367         prototypes.
49368
49369 2009-06-24  Bruno Haible  <bruno@clisp.org>
49370
49371         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
49372         HAVE_LIB${NAME} macro.
49373         Reported by Sam Steingold <sds@gnu.org>.
49374
49375 2009-06-23  Simon Josefsson  <simon@josefsson.org>
49376
49377         * modules/hash-tests (test_hash_LDADD): Link to libintl when
49378         needed.
49379
49380 2009-06-21  Bruno Haible  <bruno@clisp.org>
49381
49382         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
49383         work.
49384         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
49385         together with LIB${NAME}, LTLIB${NAME}.
49386         Reported by Sam Steingold <sds@gnu.org>.
49387
49388 2009-06-20  Jim Meyering  <meyering@redhat.com>
49389
49390         tests: make sc_require_test_exit_idiom more generic
49391         * top/maint.mk (Exit_witness_file): New overridable variable.
49392         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
49393         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
49394
49395 2009-06-19  Jim Meyering  <meyering@redhat.com>
49396
49397         hash: reverse order of src/dst parameters in an internal interface
49398         * lib/hash.c (transfer_entries): Reverse order of parameters to
49399         put DST before SRC.  Adjust callers.
49400
49401         tests: test-hash: avoid wholesale duplication
49402         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
49403         Instead, use a loop and add a single conditional.
49404
49405         tests: test-hash: allow seed selection via a command line argument
49406         * tests/test-hash.c (get_seed): New function.
49407         (main): Use it.
49408
49409 2009-06-19  Eric Blake  <ebb9@byu.net>
49410
49411         hash: avoid memory leak on allocation failure
49412         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
49413         failure.  Factor repeated algorithm...
49414         (transfer_entries): ...into new helper routine.
49415         (hash_delete): React to hash_rehash return value.
49416
49417         hash: reduce memory pressure in hash_rehash no-op case
49418         * lib/hash.c (next_prime): Avoid overflow.
49419         (hash_initialize): Factor bucket size computation...
49420         (compute_bucket_size): ...into new helper function.
49421         (hash_rehash): Use new function and open coding to reduce memory
49422         pressure, and avoid a memory leak in USE_OBSTACK code.
49423         Reported by Jim Meyering.
49424
49425 2009-06-18  Eric Blake  <ebb9@byu.net>
49426
49427         hash: make rotation more obvious
49428         * modules/hash (Depends-on): Add bitrotate and stdint.
49429         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
49430         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
49431         (SIZE_MAX): Rely on headers for definition.
49432         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
49433         (raw_hasher): Use rotr_sz.
49434         Suggested by Jim Meyering.
49435
49436         hash: fix memory leak in last patch
49437         * lib/hash.c (hash_rehash): Avoid memory leak.
49438
49439         hash: avoid no-op rehashing
49440         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
49441
49442         hash: provide default callback functions
49443         * lib/hash.c (raw_hasher, raw_comparator): New functions.
49444         (hash_initialize): Use them as defaults.
49445         * tests/test-hash.c (main): Test this.
49446
49447         hash: minor optimization
49448         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
49449         when possible.
49450         (hash_initialize): Document this promise.
49451         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
49452         * tests/test-hash.c (hash_compare_strings): Test this.
49453
49454 2009-06-18  Bruno Haible  <bruno@clisp.org>
49455
49456         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
49457         going to be replaced anyway.
49458
49459 2009-06-18  Bruno Haible  <bruno@clisp.org>
49460
49461         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
49462         in one place.
49463         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
49464         be replaced anyway.
49465
49466 2009-06-18  Eric Blake  <ebb9@byu.net>
49467
49468         hash: check for resize before insertion
49469         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
49470         threshold before insertion, so that a pathological hash_rehash
49471         that fills every bucket can still trigger another rehash.
49472
49473 2009-06-18  Jim Meyering  <meyering@redhat.com>
49474
49475         hash-tests: add a loop around the small tests
49476         * tests/test-hash.c (main): Repeat small tests with selected
49477         small initial table sizes.
49478
49479 2009-06-17  Eric Blake  <ebb9@byu.net>
49480
49481         hash: minor cleanups
49482         * lib/hash.h (hash_entry): Make opaque, by moving...
49483         * lib/hash.c (hash_entry): ...here.
49484         (hash_insert): Clarify restrictions on what can be inserted.
49485         (hash_get_next): Clarify when it is safe to remove an element
49486         during traversal.
49487         (check_tuning): Skip verification when tuning is known safe.
49488         (hash_initialize): Clarify restrictions on tuning.
49489
49490 2009-06-17  Jim Meyering  <jim@meyering.net>
49491         and Eric Blake  <ebb9@byu.net>
49492
49493         hash-tests: new module
49494         * modules/hash-tests: New file.
49495         * tests/test-hash.c: New file.
49496
49497 2009-06-17  Eric Blake  <ebb9@byu.net>
49498
49499         strstr-simple: document new module
49500         * MODULES.html.sh: Document new module.
49501
49502         strstr, strcasestr: replace on platforms with broken memchr
49503         * modules/strstr: Split into...
49504         * modules/strstr-simple: ...new module that does not care about
49505         performance, but does care about glibc bug.
49506         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
49507         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
49508         if platform memchr is broken, per Debian bug 521737.
49509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
49510         memchr.
49511         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
49512         * doc/posix-functions/strstr.texi (strstr): Document the fix.
49513         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49514         * modules/mountlist (Depends-on): Add strstr-simple.
49515         * modules/gen-uni-tables (Depends-on): Likewise.
49516         * modules/argz (Depends-on): Add strstr.
49517
49518 2009-06-17  Bruno Haible  <bruno@clisp.org>
49519
49520         * modules/posix_spawn-internal (Depends-on): Add errno.
49521
49522 2009-06-17  Bruno Haible  <bruno@clisp.org>
49523
49524         Define missing ESTALE on Interix 3.5.
49525         * lib/errno.in.h (ESTALE): Assign a value if missing.
49526         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
49527         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
49528         missing.
49529         * doc/posix-headers/errno.texi: Mention the Interix bug.
49530         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
49531
49532 2009-06-15  Eric Blake  <ebb9@byu.net>
49533
49534         memchr, memchr2: add valgrind exception
49535         * lib/memchr.valgrind: New file.
49536         * lib/memchr2.valgrind: New file.
49537         * modules/memchr (Files): Distribute valgrind file.
49538         * modules/memchr2 (Files): Likewise.
49539
49540         docs: memchr is no longer obsolete
49541         * MODULES.html.sh: Move memchr from obsolete to string.h section.
49542         * lib/string.in.h (memchr): Simplify logic.
49543
49544 2009-06-14  Jim Meyering  <meyering@redhat.com>
49545
49546         link-follow: fix the "checking..." message to not mention trailing slash
49547         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
49548         never considered trailing slashes.
49549
49550 2009-06-14  Bruno Haible  <bruno@clisp.org>
49551
49552         * m4/memchr.m4: Mention also the bug on IA-64.
49553         * doc/posix-functions/memchr.texi: Likewise.
49554
49555 2009-06-12  Eric Blake  <ebb9@byu.net>
49556
49557         memchr: detect broken x86_64 and alpha implementations
49558         * modules/memchr-tests (Depends-on): Move mmap detection...
49559         * modules/memchr (Depends-on): ...here.
49560         (configure.ac): Set indicator.
49561         * lib/string.in.h (memchr): Declare replacement.
49562         * modules/string (Makefile.am): Trigger replacement.
49563         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49564         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
49565         bugs.
49566         * doc/posix-functions/memchr.texi (memchr): Document the bug.
49567         * modules/getpagesize (License): Relax license.
49568
49569 2009-06-11  Bruno Haible  <bruno@clisp.org>
49570
49571         * lib/idpriv.h: Add more references.
49572
49573 2009-06-08  Bruno Haible  <bruno@clisp.org>
49574
49575         Tests for module 'idpriv-droptemp'.
49576         * modules/idpriv-droptemp-tests: New file.
49577         * tests/test-idpriv-droptemp.sh: New file.
49578         * tests/test-idpriv-droptemp.su.sh: New file.
49579         * tests/test-idpriv-droptemp.c: New file.
49580
49581         New module 'idpriv-droptemp'.
49582         * lib/idpriv-droptemp.c: New file.
49583         * modules/idpriv-droptemp: New file.
49584
49585 2009-06-08  Bruno Haible  <bruno@clisp.org>
49586
49587         Tests for module 'idpriv-drop'.
49588         * modules/idpriv-drop-tests: New file.
49589         * tests/test-idpriv-drop.sh: New file.
49590         * tests/test-idpriv-drop.su.sh: New file.
49591         * tests/test-idpriv-drop.c: New file.
49592
49593         New module 'idpriv-drop'.
49594         * lib/idpriv.h: New file.
49595         * lib-idpriv-drop.c: New file.
49596         * m4/idpriv.m4: New file.
49597         * modules/idpriv-drop: New file.
49598
49599 2009-06-08  Bruno Haible  <bruno@clisp.org>
49600
49601         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
49602         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49603         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49604         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49605         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49606         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49607         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49608
49609 2009-06-08  Eric Blake  <ebb9@byu.net>
49610
49611         test-strstr: use memory fence, when possible
49612         * tests/test-strstr.c (main): Use memory fence, in order to be
49613         more likely to trigger Debian bug 521737.
49614         * modules/strstr-tests (Files): Pull in additional files.
49615
49616         memchr: no longer obsolete, for wider field testing
49617         * modules/memchr (Status, Notice): Delete, this module is no
49618         longer obsolete.
49619         * modules/vasnprintf (Depends-on): Add memchr.
49620
49621 2009-06-07  Jim Meyering  <meyering@redhat.com>
49622
49623         hash: declare some functions with the warn_unused_result attribute
49624         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
49625
49626 2009-06-07  Bruno Haible  <bruno@clisp.org>
49627
49628         * tests/test-alignof.c: Don't test int64_t if it does not exist.
49629         Reported by Eric Blake.
49630
49631 2009-06-06  Eric Blake  <ebb9@byu.net>
49632
49633         test-alignof: fix typo with long double
49634         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
49635         compiler error.
49636
49637 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
49638
49639         Escape non-texinfo { and }s.
49640         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
49641         markup error.
49642
49643 2009-06-04  Jim Meyering  <meyering@redhat.com>
49644
49645         gitlog-to-changelog: don't infloop on an empty commit log
49646         * build-aux/gitlog-to-changelog: Warn about an empty log message.
49647         Reported by Boris Petersen <transacid@centerim.org>.
49648
49649 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
49650
49651         version-etc: extend for packagers
49652         Add three new configure options, intended for packagers:
49653           --with-packager="packager name"
49654           --with-packager-version="packager-specific version"
49655           --with-packager-bug-reports="packager bug reporting"
49656         An example with coreutils:
49657           $ ./configure \
49658             --with-packager=Gentoo \
49659             --with-packager-bug-report=http://bugs.gentoo.org/ \
49660             --with-packager-version="patchset 1.6"
49661           $ ./src/ls --version | head -n2
49662           ls (GNU coreutils) 7.1-dirty
49663           Packaged by Gentoo (patchset 1.6)
49664         Note that the bug reporting info via --help doesn't show up because
49665         coreutils uses its own custom emit_bug_reporting_address() implementation
49666         in src/system.h.  If it didn't, it'd look like:
49667           $ ./src/ls --help | tail -n4
49668           Report bugs to <bug-coreutils@gnu.org>.
49669           Report Gentoo bugs to <http://bugs.gentoo.org/>.
49670           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
49671           General help using GNU software: <http://www.gnu.org/gethelp/>.
49672         * lib/version-etc.c: Print new information, if provided.
49673         * m4/version-etc.m4: New file.
49674         * modules/version-etc (Files): Add m4/version-etc.m4.
49675         (configure.ac): Add gl_VERSION_ETC.
49676
49677 2009-05-31  Bruno Haible  <bruno@clisp.org>
49678
49679         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
49680         and 'int64_t'.
49681         * modules/alignof-tests (Dependencies): Add stdint.
49682         Reported by Eric Blake.
49683
49684 2009-05-31  Bruno Haible  <bruno@clisp.org>
49685
49686         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
49687         restriction due to compiler bugs.
49688         Reported by Eric Blake.
49689
49690 2009-05-31  Simon Josefsson  <simon@josefsson.org>
49691             Bruno Haible  <bruno@clisp.org>
49692
49693         Fix test-alignof failure.
49694         * lib/alignof.h (alignof_slot): New macro.
49695         (alignof_type): New macro, with the same semantics as the previous
49696         'alignof'.
49697         (alignof): Alias to alignof_slot.
49698         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
49699         check that the results are usable as constant expressions.
49700
49701 2009-05-31  Bruno Haible  <bruno@clisp.org>
49702
49703         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
49704         * tests/test-memchr.c (main): Check that memchr does not read past the
49705         first occurrence of the byte.
49706         * tests/test-strstr.c (main): Update comment.
49707         Suggested by Eric Blake.
49708
49709 2009-05-30  Bruno Haible  <bruno@clisp.org>
49710
49711         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
49712         detail how to use dumpbin.
49713         Reported by David Byron <dbyron@dbyron.com>.
49714
49715 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49716
49717         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
49718
49719 2009-06-02  Simon Josefsson  <simon@josefsson.org>
49720
49721         * m4/manywarnings.m4: Add GCC 4.4 warnings.
49722
49723 2009-05-28  Bruno Haible  <bruno@clisp.org>
49724
49725         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
49726         build-aux/ files.
49727
49728 2009-05-28  Simon Josefsson  <simon@josefsson.org>
49729
49730         * gnulib-tool (func_import): Transform license on build-aux/ files too.
49731
49732 2009-05-27  Simon Josefsson  <simon@josefsson.org>
49733
49734         * gnulib-tool (sed_transform_main_lib_file)
49735         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
49736         regexps.
49737
49738 2009-05-26  Simon Josefsson  <simon@josefsson.org>
49739
49740         * tests/test-strstr.c: Add another self-test.
49741         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
49742         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
49743
49744 2009-05-23  Bruno Haible  <bruno@clisp.org>
49745
49746         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
49747         change.
49748
49749 2009-05-21  Bruno Haible  <bruno@clisp.org>
49750
49751         Simplify use of mode_t varargs.
49752         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
49753         uses 'mode_t' or 'int'.
49754         * lib/openat.c (openat): Likewise.
49755         * lib/open-safer.c (open_safer): Likewise.
49756         * m4/mode_t.m4: New file.
49757         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
49758         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
49759         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
49760         * modules/open (Files): Add m4/mode_t.m4.
49761         * modules/openat (Files): Likewise.
49762         * modules/fcntl-safer (Files): Likewise.
49763         Suggested by Eric Blake.
49764
49765 2009-05-21  Pádraig Brady  <P@draigbrady.com>
49766
49767         * doc/glibc-functions/fallocate.texi: New file.
49768         * doc/gnulib.texi: Include it.
49769
49770 2009-05-21  Eric Blake  <ebb9@byu.net>
49771             Bruno Haible  <bruno@clisp.org>
49772
49773         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
49774         invocations.
49775         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49776
49777 2009-05-21  Eric Blake  <ebb9@byu.net>
49778             Bruno Haible  <bruno@clisp.org>
49779
49780         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
49781         include_next. Fix of 2008-11-20 commit.
49782         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
49783         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
49784         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
49785         NEXT_MATH_H.
49786         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
49787         instead of NEXT_MATH_H.
49788
49789 2009-05-21  Bruno Haible  <bruno@clisp.org>
49790
49791         Avoid redefinition warnings for SIZE_MAX.
49792         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
49793         Reported by Simon Josefsson.
49794
49795 2009-05-21  Bruno Haible  <bruno@clisp.org>
49796
49797         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
49798         AC_CACHE_VAL.
49799
49800 2009-05-20  Bruno Haible  <bruno@clisp.org>
49801
49802         Make zeroptr.h work on mingw.
49803         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
49804         mprotect.
49805         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
49806         * modules/memchr2-tests (configure.ac): Likewise.
49807         * modules/memcmp-tests (configure.ac): Likewise.
49808         * modules/memmem-tests (configure.ac): Likewise.
49809         * modules/memrchr-tests (configure.ac): Likewise.
49810         Reported by Simon Josefsson.
49811
49812 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49813
49814         * tests/test-glob.c: Include string.h for strcmp prototype.
49815
49816 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49817
49818         * modules/getdelim (Depends-on): Add explicit stdint, although it
49819         was implicitly already pulled in via realloc-posix.
49820         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
49821
49822 2009-05-20  Simon Josefsson  <simon@josefsson.org>
49823
49824         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
49825         G. Christensen" <tgc@jupiterrise.com>.
49826         * m4/sys_socket_h.m4: Check for sa_family_t.
49827         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
49828         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
49829         * tests/test-sys_socket.c: Check that sa_family_t works.
49830
49831 2009-05-18  Eric Blake  <ebb9@byu.net>
49832
49833         maint.mk: allow gnulib_dir in VPATH build
49834         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
49835
49836 2009-05-15  Jim Meyering  <meyering@redhat.com>
49837
49838         maint.mk: Give gnulib_dir a default definition.
49839         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
49840         Thus, most packages no longer need to specify this variable in cfg.mk
49841
49842 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
49843
49844         rename.m4: fix typos that would make non-mingw cross-configure fail
49845         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
49846
49847 2009-05-13  Eric Blake  <ebb9@byu.net>
49848
49849         mmap-anon: avoid out-of-order autoconf expansion
49850         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
49851         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
49852         * modules/memchr-tests (Depends-on): Add extensions.
49853         * modules/memchr2-tests (Depends-on): Add extensions.
49854         * modules/memcmp-tests (Depends-on): Add extensions.
49855         * modules/memmem-tests (Depends-on): Add extensions.
49856         * modules/memrchr-tests (Depends-on): Add extensions.
49857
49858 2009-05-13  Bruno Haible  <bruno@clisp.org>
49859
49860         Make some tests ISO C 99 compliant.
49861         * tests/zerosize-ptr.h: New file.
49862         * tests/test-memchr.c: Include zerosize-ptr.h.
49863         (main): Use a zero-size object pointer instead of NULL.
49864         * tests/test-memchr2.c: Include zerosize-ptr.h.
49865         (main): Use a zero-size object pointer instead of NULL.
49866         * tests/test-memcmp.c: Include zerosize-ptr.h.
49867         (main): Use a zero-size object pointer instead of NULL.
49868         * tests/test-memmem.c: Include zerosize-ptr.h.
49869         (main): Use a zero-size object pointer instead of NULL.
49870         * tests/test-memrchr.c: Include zerosize-ptr.h.
49871         (main): Use a zero-size object pointer instead of NULL.
49872         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
49873         m4/mmap-anon.m4.
49874         (Depends-on): Add getpagesize.
49875         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49876         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
49877         m4/mmap-anon.m4.
49878         (Depends-on): Add getpagesize.
49879         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49880         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
49881         m4/mmap-anon.m4.
49882         (Depends-on): Add getpagesize.
49883         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49884         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
49885         m4/mmap-anon.m4.
49886         (Depends-on): Add getpagesize.
49887         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49888         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
49889         m4/mmap-anon.m4.
49890         (Depends-on): Add getpagesize.
49891         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
49892
49893 2009-05-12  Bruno Haible  <bruno@clisp.org>
49894
49895         Tests for module 'alignof'.
49896         * modules/alignof-tests: New file.
49897         * tests/test-alignof.c: New file.
49898
49899 2009-05-12  Bruno Haible  <bruno@clisp.org>
49900
49901         Fix alignof macro.
49902         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
49903         vendor compilers that are always correct.
49904
49905 2009-05-12  Bruno Haible  <bruno@clisp.org>
49906
49907         Make the MAP_ANONYMOUS detection work on HP-UX 11.
49908         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
49909         not whether its fully works.
49910
49911 2009-05-12  Bruno Haible  <bruno@clisp.org>
49912
49913         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
49914
49915 2009-05-12  Jim Meyering  <meyering@redhat.com>
49916
49917         * top/maint.mk: Adjust backslash alignment.
49918
49919 2009-05-11  Simon Josefsson  <simon@josefsson.org>
49920
49921         * top/maint.mk: Make $(srcdir)/build-aux configurable.
49922
49923 2009-05-11  Eric Blake  <ebb9@byu.net>
49924
49925         argp: avoid undefined behavior
49926         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
49927         macros.
49928
49929 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49930
49931         * tests/test-vc-list-files-git.sh: Do git config of user.email and
49932         user.name to prevent git commit from complaining.
49933
49934 2009-05-10  Bruno Haible  <bruno@clisp.org>
49935
49936         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
49937         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
49938         it rewrites every file name only once.
49939         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
49940
49941 2009-05-08  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
49944         instead of 'max'.
49945
49946 2009-05-08  Simon Josefsson  <simon@josefsson.org>
49947
49948         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
49949         sockaddr_storage test.
49950
49951 2009-05-07  Simon Josefsson  <simon@josefsson.org>
49952
49953         * modules/sys_socket (Makefile.am): Substitute
49954         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
49955         * m4/sys_socket_h.m4: Check for sockaddr_storage.
49956         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
49957         * tests/test-sys_socket.c: Check sockaddr_storage.
49958
49959 2009-05-08  Bruno Haible  <bruno@clisp.org>
49960
49961         New module 'alignof'.
49962         * lib/alignof.h: New file.
49963         * modules/alignof: New file.
49964
49965 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49966             Bruno Haible  <bruno@clisp.org>
49967
49968         Fix test-file-has-acl on FreeBSD.
49969         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
49970         mask is implicitly added.
49971         * tests/test-file-has-acl.c: Include <signal.h>.
49972         (main): Terminate the test after 5 seconds.
49973         * modules/acl-tests (configure.ac): Check for alarm function.
49974
49975 2009-05-04  Bruno Haible  <bruno@clisp.org>
49976
49977         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
49978         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
49979         * modules/errno (configure.ac): Drop AC_REQUIRE.
49980         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
49981         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
49982
49983 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49984
49985         * modules/glob-tests: New module.
49986         * tests/test-glob.c: Add.
49987
49988 2009-05-04  Simon Josefsson  <simon@josefsson.org>
49989
49990         * modules/fnmatch-tests: New module.
49991         * tests/test-fnmatch.c: Add.
49992
49993 2009-05-04  Eric Blake  <ebb9@byu.net>
49994
49995         maint: make the new no-submodule-changes rule VPATH-safe
49996         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
49997
49998 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
49999             Bruno Haible  <bruno@clisp.org>
50000
50001         acl: Fix infinite loop on FreeBSD.
50002         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
50003         of return value from acl_get_entry.
50004         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
50005         Likewise.
50006
50007 2009-05-03  Bruno Haible  <bruno@clisp.org>
50008
50009         * lib/acl-internal.h (acl_entries): Clarify return value.
50010         * lib/acl_entries.c (acl_entries): Likewise.
50011
50012 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
50013
50014         Bug fix in acl module.
50015         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
50016
50017 2009-05-03  Bruno Haible  <bruno@clisp.org>
50018
50019         Create gperf-generated file in the source dir, not in the build dir.
50020         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
50021         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
50022         * modules/unicase/locale-language (unicase/locale-languages.h):
50023         Likewise.
50024         * modules/unicase/special-casing (unicase/special-casing-table.h):
50025         Likewise.
50026         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
50027         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
50028         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
50029         Reported by Ralf Wildenhues.
50030
50031 2009-05-03  Bruno Haible  <bruno@clisp.org>
50032
50033         * modules/fnmatch (Description, configure.ac): Taken from
50034         fnmatch-posix.
50035         * modules/fnmatch-posix: Turn into a symbolic reference to the
50036         'fnmatch' module, and deprecate.
50037         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
50038
50039 2009-05-03  Bruno Haible  <bruno@clisp.org>
50040
50041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
50042         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
50043         Reported by Ralf Wildenhues.
50044
50045 2009-05-04  Simon Josefsson  <simon@josefsson.org>
50046
50047         * m4/fnmatch.m4: Fix fnmatch re-define.
50048
50049 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
50050
50051         priv-set: new module and tests; adapt write-any-file
50052         * lib/priv-set.c: New file.
50053         * lib/priv-set.h: New file.
50054         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
50055         * lib/write-any-file.c: Simplify by using priv-set module.
50056         * m4/priv-set.m4: New file.
50057         * modules/priv-set: New file.
50058         * modules/unlinkdir: Add dependency on priv-set module.
50059         * modules/write-any-file: Likewise.
50060
50061         Tests for module 'priv-set'.
50062         * modules/priv-set-tests: New file.
50063         * tests/test-priv-set.c: New file.
50064
50065 2009-05-03  Jim Meyering  <meyering@redhat.com>
50066             Bruno Haible  <bruno@clisp.org>
50067
50068         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
50069         use the converted UTF-8 variant of the name instead.
50070
50071 2009-05-03  Jim Meyering  <meyering@redhat.com>
50072
50073         tests: tighten some getdate tests
50074         * tests/test-getdate.c (main): Tighten tests: require equality,
50075         not just greater than.  Set TZ envvar to UTC0.
50076
50077 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
50078
50079         getdate: correctly interpret "next monday" when run on a Monday
50080         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
50081         that e.g., "next tues" (when run on a tuesday) results in a date
50082         that is one week in the future, and not today's date.
50083         I.e., add a week when the wday is the same as the current one.
50084         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
50085         and earlier by Martin Bernreuther and Jan Minář.
50086         * tests/test-getdate.c (main): Check that "next DAY" is always in
50087         the future and that "last DAY" is always in the past.
50088
50089 2009-05-02  Jim Meyering  <meyering@redhat.com>
50090
50091         build: ensure that a release build fails when a submodule is unclean
50092         * top/maint.mk (no-submodule-changes): New rule.
50093         (alpha beta major): Depend on it.
50094
50095 2009-05-02  Bruno Haible  <bruno@clisp.org>
50096
50097         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
50098         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
50099         shell variable gl_fnmatch_required to detect which variant is
50100         requested.
50101         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
50102         gl_FUNC_FNMATCH_POSIX.
50103         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
50104         exclude fnmatch-posix.
50105
50106 2009-05-02  Bruno Haible  <bruno@clisp.org>
50107
50108         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
50109         * modules/mbsrtowcs (License): Change to LGPLv2+.
50110         * modules/strnlen1 (License): Likewise.
50111         Reported by Simon Josefsson.
50112
50113 2009-05-02  Bruno Haible  <bruno@clisp.org>
50114
50115         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
50116         "cross".
50117         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
50118         gnulib-tool was called with option --source-base=lib.
50119
50120 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50121
50122         Use automake *-local hooks without commands, for extensibility.
50123         * modules/localcharset (Makefile.am): Rename install-exec-local
50124         rule to install-exec-localcharset, and make it a prerequisite of
50125         install-exec-local.  Likewise, rename the uninstall-local rule to
50126         uninstall-localcharset, and make it a prerequisite of the former.
50127
50128 2009-05-01  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
50131         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50132         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
50133         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
50134         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
50135         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50136         m4/locale-zh.m4, m4/codeset.m4.
50137
50138         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
50139         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
50140         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
50141         m4/locale-zh.m4.
50142
50143         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
50144         REPLACE_WCRTOMB if mbstate_t must be replaced.
50145         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
50146         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
50147
50148 2009-05-01  Bruno Haible  <bruno@clisp.org>
50149
50150         Avoid compiler warnings when redefining macros defined by <libintl.h>.
50151         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
50152         dngettext, dcngettext, textdomain, bindtextdomain,
50153         bind_textdomain_codeset): Undefine before redefining.
50154
50155 2009-04-30  Bruno Haible  <bruno@clisp.org>
50156
50157         Fix bug introduced on 2009-04-25.
50158         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
50159         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
50160         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
50161         is defined.
50162         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
50163         is defined.
50164         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
50165         is defined.
50166         Reported by Elbert_Pol <elbert.pol@gmail.com>.
50167
50168 2009-04-28  Bruno Haible  <bruno@clisp.org>
50169
50170         Comment tweaks.
50171         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
50172         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
50173         * lib/unicase.h (u*_casexfrm): Likewise.
50174         Reported by Paolo Bonzini.
50175
50176 2009-04-28  Bruno Haible  <bruno@clisp.org>
50177
50178         Fix a compilation error.
50179         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
50180         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50181         Reported by Jim Meyering.
50182
50183 2009-04-27  Bruno Haible  <bruno@clisp.org>
50184
50185         New module 'libunistring'.
50186         * modules/libunistring: New file.
50187         * m4/libunistring.m4: New file.
50188         * MODULES.html.sh (Unicode string functions): Add it.
50189
50190 2009-04-27  Eric Blake  <ebb9@byu.net>
50191
50192         maint.mk: allow package-specific header to provide <config.h>
50193         * top/maint.mk (sc_require_config_h): New variable.
50194         (sc_require_config_h, sc_require_config_h_first): Use it.
50195
50196 2009-04-27  Simon Josefsson  <simon@josefsson.org>
50197
50198         * top/maint.mk (sc_avoid_if_before_free): Except
50199         useless-if-before-free script.
50200
50201 2009-04-27  Eric Blake  <ebb9@byu.net>
50202
50203         maintainer-makefile: depend on all required helper scripts
50204         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
50205         useless-if-before-free.
50206         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
50207         version, rather than assuming gnulib checkout is available.
50208         Reported by Simen Josefsson.
50209
50210 2009-04-26  Bruno Haible  <bruno@clisp.org>
50211
50212         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
50213         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
50214         "../" or "..".
50215
50216 2009-04-26  Bruno Haible  <bruno@clisp.org>
50217
50218         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
50219         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
50220         AC_LIB_HAVE_LINKFLAGS.
50221
50222 2009-04-26  Bruno Haible  <bruno@clisp.org>
50223
50224         Simplify calling convention of u*_conv_from_encoding.
50225         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
50226         u32_conv_from_encoding): Expect a resultbuf argument and return the
50227         result directly as a pointer.
50228         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
50229         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
50230         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
50231         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
50232         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
50233         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50234         Update.
50235         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
50236         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
50237         * lib/vasnprintf.c (VASNPRINTF): Update.
50238         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
50239         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
50240         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
50241         * NEWS: Mention the change.
50242
50243 2009-04-26  Bruno Haible  <bruno@clisp.org>
50244
50245         Simplify calling convention of u*_conv_to_encoding.
50246         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
50247         u32_conv_to_encoding): Expect a resultbuf argument and return the
50248         result directly as a pointer.
50249         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50250         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
50251         freeing scaled_offsets if mem_iconveha failed.
50252         * lib/unicase/u-casexfrm.h (FUNC): Update.
50253         * lib/uninorm/u-normxfrm.h (FUNC): Update.
50254         * lib/vasnprintf.c (VASNPRINTF): Update.
50255         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
50256         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
50257         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
50258         * NEWS: Mention the change.
50259
50260 2009-04-26  Bruno Haible  <bruno@clisp.org>
50261
50262         Avoid test failures on AIX and OSF/1.
50263         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
50264         malloc(0).
50265         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
50266         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
50267         Likewise.
50268         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
50269         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
50270         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
50271         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
50272         * doc/posix-functions/malloc.texi: Document the portability problem
50273         related to malloc(0).
50274
50275 2009-04-26  Bruno Haible  <bruno@clisp.org>
50276
50277         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
50278         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
50279         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
50280
50281 2009-04-25  Bruno Haible  <bruno@clisp.org>
50282
50283         Avoid link error when creating a namespace clean library.
50284         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
50285         as macro with arguments if already defined as an alias.
50286         * lib/signbitf.c (gl_signbitf): Don't undefine.
50287         * lib/signbitd.c (gl_signbitd): Don't undefine.
50288         * lib/signbitl.c (gl_signbitl): Don't undefine.
50289
50290 2009-04-25  Jim Meyering  <meyering@redhat.com>
50291
50292         vc-list-files: fix another quoting bug
50293         * build-aux/vc-list-files: Avoid sed backslash expansion
50294         of pathological directory names.
50295
50296 2009-04-25  Eric Blake  <ebb9@byu.net>
50297
50298         vc-list-files: fix shell quoting error
50299         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
50300         timestamp.
50301
50302 2009-04-25  Jim Meyering  <meyering@redhat.com>
50303
50304         vc-list-files: restore lost functionality with subdir argument
50305         * build-aux/vc-list-files: When given a non-"." sub-directory
50306         argument, substitute the $dir/ prefix back onto each resulting name.
50307         Otherwise, coreutils' root_tests check would fail.
50308
50309 2009-04-24  Eric Blake  <ebb9@byu.net>
50310
50311         vc-list-files: ignore git symlinks
50312         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
50313         than ls-files, to ignore git symlinks.
50314
50315         maint.mk: import improvements from m4
50316         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
50317         (move_if_change): Delete unused macro.
50318         (news-date-check, vc-diff-check): Support VPATH builds.
50319         (announcement): Likewise.  Split --bootstrap-tools list...
50320         (boostrap-tools): ...into separate list, which can be overridden
50321         in cfg.mk.
50322         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
50323         requiring dependency on useless-if-before-free module.
50324         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
50325         Support VPATH builds.
50326
50327 2009-04-24  Jim Meyering  <meyering@redhat.com>
50328
50329         maint.mk: remove coreutils-specific rules and variables
50330         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
50331         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
50332         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
50333
50334         maint.mk: remove obsolete rule
50335         * top/maint.mk (rel-check): Remove rule.
50336         (WGET, WGETFLAGS): Remove now-unused variables.
50337
50338 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50339
50340         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
50341         consistency.
50342
50343         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
50344         '$(PATH_SEPARATOR)' instead of ':'.
50345
50346 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50347
50348         * lib/getopt1.c (main): Use 'const' for static array.
50349
50350 2009-04-24  Simon Josefsson  <simon@josefsson.org>
50351
50352         * top/maint.mk: Sync with coreutils.
50353         * NEWS: Explain incompatibilities.
50354
50355 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50356             Bruno Haible  <bruno@clisp.org>
50357
50358         Fix cross-compilation results.
50359         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
50360         statement, as third argument of AC_TRY_RUN.
50361         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50362         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50363         Likewise.
50364         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50365         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
50366         Likewise.
50367         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50368         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
50369         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
50370
50371 2009-04-20  Bruno Haible  <bruno@clisp.org>
50372
50373         Avoid test failure on mingw.
50374         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
50375
50376 2009-04-20  Bruno Haible  <bruno@clisp.org>
50377
50378         Avoid compilation error on mingw.
50379         * modules/localename-tests (Depends-on): Add locale.
50380
50381 2009-04-19  Bruno Haible  <bruno@clisp.org>
50382
50383         Support for building a shared library on Windows platforms.
50384         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
50385         (main): Test the presence of UNINORM_NFC here.
50386         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
50387         (main): Test the presence of UNINORM_NFD here.
50388         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
50389         (main): Test the presence of UNINORM_NFKC here.
50390         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
50391         (main): Test the presence of UNINORM_NFKD here.
50392
50393 2009-04-19  Bruno Haible  <bruno@clisp.org>
50394
50395         Avoid a compiler warning.
50396         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
50397         Change type of variable 'sequence'.
50398
50399 2009-04-19  Bruno Haible  <bruno@clisp.org>
50400
50401         * modules/configmake (Makefile.am): When the contents of configmake.h
50402         does not change, arrange to preserve its modification time.
50403
50404 2009-04-17  Simon Josefsson  <simon@josefsson.org>
50405
50406         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
50407         gettext domain.
50408
50409 2009-04-16  Jim Meyering  <meyering@redhat.com>
50410
50411         useless-if-before-free: improve conversion code
50412         * build-aux/useless-if-before-free: Adjust code-in-comment to match
50413         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
50414
50415 2009-04-14  Bruno Haible  <bruno@clisp.org>
50416
50417         * modules/fcntl (Depends-on): Add extensions.
50418         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
50419
50420 2009-04-12  Ben Pfaff  <blp@gnu.org>
50421
50422         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
50423         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
50424
50425 2009-03-20  Ben Pfaff  <blp@gnu.org>
50426
50427         Make rename replace existing destinations on Windows.
50428         * m4/rename.m4: Add test for Mingw.
50429         * lib/rename.c: Add rename replacement that uses MoveFileEx with
50430         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
50431         * doc/posix-functions/rename.texi: Document.
50432
50433 2009-04-10  Bruno Haible  <bruno@clisp.org>
50434
50435         New include file "iconveh.h".
50436         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
50437         * lib/striconveh.h: Include it.
50438         (enum iconv_ilseq_handler): Remove definition.
50439         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
50440         striconveh.h.
50441         * lib/striconveha.c: Include striconveh.h.
50442         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
50443         * modules/striconveh (Files): Add lib/iconveh.h.
50444         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
50445         lib/striconveh.h.
50446
50447 2009-04-10  Bruno Haible  <bruno@clisp.org>
50448
50449         * lib/uniconv.h: Update comment.
50450
50451 2009-04-10  Bruno Haible  <bruno@clisp.org>
50452
50453         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
50454         always.
50455         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
50456         * lib/unistr/u16-mbtouc-aux.c: Likewise.
50457         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
50458         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
50459         "unistring-notinline.h", so that the function gets defined always.
50460         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
50461         * lib/unistr/u8-uctomb.c: Likewise.
50462         * lib/unistr/u16-mbtouc.c: Likewise.
50463         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
50464         * lib/unistr/u16-uctomb.c: Likewise.
50465         * lib/unistr/u32-mbtouc.c: Likewise.
50466         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
50467         * lib/unistr/u32-uctomb.c: Likewise.
50468
50469 2009-04-10  Bruno Haible  <bruno@clisp.org>
50470
50471         Mark 'utime' obsolete.
50472         * modules/utime (Status, Notice): New sections.
50473         Suggested by Jim Meyering.
50474
50475         Fix cross-compile guess for utime test.
50476         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
50477         autoconf.
50478         * doc/posix-functions/utime.texi: Give more precisions.
50479         Reported by Jan <ipif@ymail.com>.
50480
50481 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
50482
50483         filevercmp: correct today's change
50484         * lib/filevercmp.c: Also handle coreutils' test inputs.
50485         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
50486
50487         Fix regression in 'filevercmp' module. Thanks Sven Joachim
50488         for reporting it.
50489         * lib/filevercmp.c: Special handle for "", "." and "..".
50490         * tests/test-filevercmp.c: Enlarge the set suite.
50491
50492 2009-04-07  Jim Meyering  <meyering@redhat.com>
50493
50494         useless-if-before-free: show how to remove braced useless free, too
50495         * build-aux/useless-if-before-free: still only in a comment, though.
50496
50497 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
50498
50499         maint.mk: import changes to syntax-check macros from coreutils
50500         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
50501         Use them in the relevant macros.
50502
50503 2009-04-06  Bruno Haible  <bruno@clisp.org>
50504
50505         Fix unportable use of bit-fields.
50506         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
50507         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
50508         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
50509
50510 2009-04-06  Bruno Haible  <bruno@clisp.org>
50511
50512         Avoid test failures on AIX and OSF/1.
50513         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
50514         that malloc(0) = NULL.
50515         * tests/unicase/test-u8-tolower.c (check): Likewise.
50516         * tests/unicase/test-u8-totitle.c (check): Likewise.
50517         * tests/unicase/test-u8-toupper.c (check): Likewise.
50518         * tests/unicase/test-u16-casefold.c (check): Likewise.
50519         * tests/unicase/test-u16-tolower.c (check): Likewise.
50520         * tests/unicase/test-u16-totitle.c (check): Likewise.
50521         * tests/unicase/test-u16-toupper.c (check): Likewise.
50522         * tests/unicase/test-u32-casefold.c (check): Likewise.
50523         * tests/unicase/test-u32-tolower.c (check): Likewise.
50524         * tests/unicase/test-u32-totitle.c (check): Likewise.
50525         * tests/unicase/test-u32-toupper.c (check): Likewise.
50526         * tests/uninorm/test-u8-nfc.c (check): Likewise.
50527         * tests/uninorm/test-u8-nfd.c (check): Likewise.
50528         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
50529         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
50530         * tests/uninorm/test-u16-nfc.c (check): Likewise.
50531         * tests/uninorm/test-u16-nfd.c (check): Likewise.
50532         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
50533         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
50534         * tests/uninorm/test-u32-nfc.c (check): Likewise.
50535         * tests/uninorm/test-u32-nfd.c (check): Likewise.
50536         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
50537         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
50538
50539 2009-04-05  Bruno Haible  <bruno@clisp.org>
50540
50541         Work around an autoconf limitation.
50542         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
50543         comment line if it would be longer than 3 KB.
50544
50545 2009-04-05  Bruno Haible  <bruno@clisp.org>
50546
50547         Avoid test failure with libiconv-1.13.
50548         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
50549         of the expected test results.
50550
50551 2009-04-05  Bruno Haible  <bruno@clisp.org>
50552
50553         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
50554         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
50555         that it should be installed.
50556
50557 2009-04-05  Bruno Haible  <bruno@clisp.org>
50558
50559         * gnulib-tool: New option --copy-file.
50560         (func_usage): Document it.
50561         (func_dest_tmpfilename): Moved out of func_import.
50562         (func_add_file, func_update_file): New functions, extracted from
50563         func_import.
50564         (func_import): Update.
50565
50566 2009-04-05  Karl Berry  <karl@gnu.org>
50567
50568         * README: prominently mention gnulib-tool.
50569         Rearrange sections so getting the code is near the top.
50570
50571 2009-04-05  Bruno Haible  <bruno@clisp.org>
50572
50573         * lib/unicase.h: Mention u*_cmp2.
50574         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50575         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
50576         * lib/unicase/ulc-casecmp.c: Likewise.
50577         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
50578         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
50579         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
50580         unistr/u8-cmp.
50581         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
50582         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
50583         unistr/u16-cmp.
50584         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
50585         unistr/u32-cmp.
50586
50587         * lib/uninorm.h: Mention u*_cmp2.
50588         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
50589         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
50590         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
50591         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
50592         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
50593         unistr/u8-cmp.
50594         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
50595         unistr/u16-cmp.
50596         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
50597         unistr/u32-cmp.
50598
50599         New module 'unistr/u32-cmp2'.
50600         * lib/unistr/u32-cmp2.c: New file.
50601         * modules/unistr/u32-cmp2: New file.
50602
50603         New module 'unistr/u16-cmp2'.
50604         * lib/unistr/u16-cmp2.c: New file.
50605         * modules/unistr/u16-cmp2: New file.
50606
50607         New module 'unistr/u8-cmp2'.
50608         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
50609         * lib/unistr/u8-cmp2.c: New file.
50610         * lib/unistr/u-cmp2.h: New file.
50611         * modules/unistr/u8-cmp2: New file.
50612
50613 2009-04-05  Bruno Haible  <bruno@clisp.org>
50614
50615         * lib/unictype.h (uc_property_is_valid): New macro.
50616         * tests/unictype/test-pr_byname.c (main): Use it.
50617
50618         * lib/unistr.h: Doc fixes.
50619         * lib/uniconv.h: Doc fixes.
50620         * lib/unictype.h: Doc fixes.
50621
50622 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
50623
50624         Port coreutils 7.2 to Solaris 8.
50625
50626         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
50627         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
50628         for Solaris 8.  This is a bit of a hack, as it means it's the
50629         caller's responsibility to add -lnsl if needed, but most likely it
50630         won't be needed since only getaddrinfo uses this and getaddrinfo
50631         isn't needed on Solaris 8.
50632
50633         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
50634         problem to Solaris 8 encountered with coreutils 7.2, which
50635         resulted in a message "fnmatch.c:292: warning: passing argument 4
50636         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
50637         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
50638
50639 2009-04-03  Simon Josefsson  <simon@josefsson.org>
50640
50641         * m4/ld-version-script.m4: Add FIXME comment.
50642
50643 2009-04-02  Simon Josefsson  <simon@josefsson.org>
50644
50645         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
50646         SOVERSION variable.
50647
50648 2009-04-02  Bruno Haible  <bruno@clisp.org>
50649
50650         * Makefile (info, html, dvi, pdf): Combine the rules.
50651         Suggested by Jim Meyering.
50652
50653 2009-04-01  Bruno Haible  <bruno@clisp.org>
50654
50655         * Makefile (info, html, dvi, pdf): New targets.
50656         Reported by Reuben Thomas <rrt@sc3d.org>.
50657
50658 2009-04-01  Bruno Haible  <bruno@clisp.org>
50659
50660         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
50661         can be put into PATH.
50662         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
50663
50664 2009-04-01  Bruno Haible  <bruno@clisp.org>
50665
50666         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
50667
50668 2009-04-01  Bruno Haible  <bruno@clisp.org>
50669
50670         Rename module 'visibility'.
50671         * modules/lib-symbol-visibility: Renamed from modules/visibility.
50672         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
50673         * doc/gnulib.texi: Update.
50674         * MODULES.html.sh (Misc): Update.
50675         * NEWS: Mention the change.
50676
50677 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50678
50679         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
50680         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
50681         Eric Blake <ebb9@byu.net> for review.
50682         * MODULES.html.sh: Add lib-msvc-compat.
50683         * doc/gnulib.texi: Link to new section.
50684         * m4/ld-output-def.m4: New file.
50685         * doc/ld-output-def.texi: New file.
50686
50687 2009-04-01  Simon Josefsson  <simon@josefsson.org>
50688
50689         Rename ld-version-script to lib-symbol-versions.  Suggested by
50690         Bruno Haible <bruno@clisp.org>.
50691         * modules/ld-version-script: Renamed to lib-symbol-versions.
50692         * doc/ld-version-script.texi: Fix module name.
50693         * MODULES.html.sh: Add lib-symbol-versions.
50694
50695 2009-03-31  Simon Josefsson  <simon@josefsson.org>
50696
50697         * modules/u64-tests: New file.
50698         * tests/test-u64.c: New file.
50699
50700 2009-03-04  Simon Josefsson  <simon@josefsson.org>
50701
50702         * MODULES.html.sh: Mention u64.
50703         * modules/u64: New module.
50704         * modules/crypto/sha512: Depend on u64 module instead of providing
50705         u64.h.
50706
50707 2009-03-27  Eric Blake  <ebb9@byu.net>
50708
50709         test-strerror: make debugging EAI_SYSTEM easier
50710         * modules/getaddrinfo-tests (Depends-on): Add strerror.
50711         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
50712         failure was EAI_SYSTEM.
50713
50714 2009-03-25  Bruno Haible  <bruno@clisp.org>
50715
50716         Fix a problem with --enable-relocatable on Solaris 7.
50717         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
50718         since 2008-02-24.
50719
50720 2009-03-25  Eric Blake  <ebb9@byu.net>
50721
50722         test-sockets: avoid gcc warning
50723         * tests/test-sockets.c (main): Silence compiler warning.
50724
50725 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
50726
50727         New modules nproc, pthread, contributed by Glen Lenker.
50728
50729         * MODULES.html.sh: Add pthread, nproc.
50730         * lib/nproc.c: New file.
50731         * lib/nproc.h: New file.
50732         * lib/pthread.in.h: New file.
50733         * m4/pthread.m4: New file.
50734         * modules/nproc: New file.
50735         * modules/pthread: New file.
50736
50737 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50738
50739         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
50740         New variable.
50741
50742 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
50743
50744         filevercmp: handle simple~ and numbered.~3~ backup suffixes
50745         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
50746         * tests/test-filevercmp.c: Add tests for backup suffixes.
50747
50748 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50749
50750         * modules/stdlib (Depends-on): Add stdint, needed when defining
50751         struct random_data on, for example, HP-UX 10.20.  Reported by
50752         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50753
50754 2009-03-24  Simon Josefsson  <simon@josefsson.org>
50755
50756         * lib/readline.c (readline): Call fflush on stdout after printing
50757         prompt.
50758
50759 2009-03-20  Bruno Haible  <bruno@clisp.org>
50760
50761         Remove dependency from 'close' module to -lws2_32 on native Windows.
50762         * lib/close-hook.h: New file.
50763         * lib/close-hook.c: New file.
50764         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
50765         w32sock.h.
50766         (_gl_close_fd_maybe_socket): Remove function.
50767         (rpl_close): Invoke execute_all_close_hooks instead of
50768         _gl_close_fd_maybe_socket.
50769         * lib/sockets.c: Include close-hook.h, w32sock.h.
50770         (close_fd_maybe_socket): New function, essentially from lib/close.c.
50771         (close_sockets_hook): New variable.
50772         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
50773         (gl_sockets_cleanup): Unregister it.
50774         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
50775         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
50776         * modules/close-hook: New file.
50777         * modules/close (Files): Remove lib/w32sock.h.
50778         (Depends-on): Add close-hook.
50779         (Link): Remove section.
50780         * modules/sockets (Files): Add lib/w32sock.h.
50781         (Depends-on): Add close-hook.
50782         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
50783         invocation.
50784         * NEWS: Mention that LIB_CLOSE is gone.
50785
50786 2009-03-23  Eric Blake  <ebb9@byu.net>
50787
50788         signal-tests: test previous patch
50789         * tests/test-signal.c: New file.
50790         * modules/signal-tests: Likewise.
50791
50792         signal.h: always support 'volatile sig_atomic_t'
50793         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
50794         (gl_SIGNAL_H_DEFAULTS): Add a default.
50795         * modules/signal (Makefile.am): Substitute if needed.
50796         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
50797         users can blindly add volatile.
50798         * doc/posix-headers/signal.texi (signal.h): Document it.
50799         Reported by Matthew Woehlke.
50800
50801 2009-03-23  Jim Meyering  <meyering@redhat.com>
50802
50803         pathmax: PATH_MAX: use pathconf only when available
50804         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
50805         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
50806         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
50807         This avoids a link failure in a PSP cross-compilation environment
50808         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
50809
50810         * lib/vasnprintf.c (divide): Fix typo in comment.
50811
50812 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50813
50814         * gnulib-tool (func_filter_filelist): Fix comment.
50815
50816 2009-03-20  Bruno Haible  <bruno@clisp.org>
50817
50818         Make sockets.h self-contained.
50819         * lib/sockets.c: Include sockets.h first.
50820         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
50821
50822 2009-03-19  Eric Blake  <ebb9@byu.net>
50823
50824         doc: mention more functions added in cygwin 1.7.0
50825         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
50826         addition.
50827         * doc/posix-functions/log2f.texi: Likewise.
50828
50829 2009-03-19  Jim Meyering  <meyering@redhat.com>
50830
50831         fsusage: avoid syntax error due to statement-before-declaration
50832         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
50833         after all declarations.  Reported by Matthew Woehlke in
50834         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
50835
50836 2009-03-18  Eric Blake  <ebb9@byu.net>
50837
50838         build-aux/compile: sync from automake
50839         * build-aux/compile: New file, from automake.
50840         * config/srclist.txt: Mention build-aux/compile.
50841
50842 2009-03-17  Bruno Haible  <bruno@clisp.org>
50843
50844         * lib/git-merge-changelog.c: Fix typo in comment.
50845         Reported by Reuben Thomas <rrt@sc3d.org>.
50846
50847 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
50848
50849         * m4/regex.m4: update and improve help for
50850         --without-included-regex.
50851
50852 2009-03-17  Simon Josefsson  <simon@josefsson.org>
50853
50854         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
50855         failure on missing include files.
50856
50857 2009-03-17  Eric Blake  <ebb9@byu.net>
50858
50859         doc: mention more functions added in cygwin 1.7.0
50860         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
50861         addition.
50862         * doc/posix-functions/fwscanf.texi: Likewise.
50863         * doc/posix-functions/swprintf.texi: Likewise.
50864         * doc/posix-functions/swscanf.texi: Likewise.
50865         * doc/posix-functions/vfwprintf.texi: Likewise.
50866         * doc/posix-functions/vfwscanf.texi: Likewise.
50867         * doc/posix-functions/vswprintf.texi: Likewise.
50868         * doc/posix-functions/vswscanf.texi: Likewise.
50869         * doc/posix-functions/vwprintf.texi: Likewise.
50870         * doc/posix-functions/vwscanf.texi: Likewise.
50871         * doc/posix-functions/wcscasecmp.texi: Likewise.
50872         * doc/posix-functions/wcsdup.texi: Likewise.
50873         * doc/posix-functions/wcsftime.texi: Likewise.
50874         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50875         * doc/posix-functions/wprintf.texi: Likewise.
50876         * doc/posix-functions/wscanf.texi: Likewise.
50877         * doc/glibc-functions/gethostbyname2.texi: Likewise.
50878
50879 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50880
50881         maint.mk: really add $(AM_MAKEFLAGS)
50882         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
50883         was inadvertently omitted in the last commit.
50884         Spotted by Bruno Haible.
50885
50886         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
50887         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
50888         $(AM_MAKEFLAGS)' rather than plain `make'.
50889
50890         gnulib-tool: execute $MAKE not make
50891         * gnulib-tool: Default $MAKE to 'make'.
50892         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
50893         than make.  Initialize $MAKE in the do-autobuild script.
50894
50895         gnulib-tool: use $MAKE not make in generated files
50896         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
50897         make, in generated files.  Initialize $MAKE in the do-autobuild
50898         script.
50899
50900         * top/GNUmakefile (_have-git-version-gen): Fix typo.
50901
50902         GNUmakefile: disable parallelism only for multiple, recursive targets
50903         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
50904         additions in the Makefile.
50905         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
50906         by Automake.
50907         (.NOTPARALLEL): Only disable parallel builds if multiple targets
50908         are listed on the command line and at least one of them is
50909         listed in $(ALL_RECURSIVE_TARGETS).
50910
50911 2009-03-14  Bruno Haible  <bruno@clisp.org>
50912
50913         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
50914         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
50915         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
50916         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
50917         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
50918         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
50919         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
50920         unistr/u8-uctomb.
50921         * modules/unistr/u8-strchr (Depends-on): Likewise.
50922         * modules/unistr/u8-strrchr (Depends-on): Likewise.
50923         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
50924         unistr/u16-uctomb.
50925         * modules/unistr/u16-strchr (Depends-on): Likewise.
50926         * modules/unistr/u16-strrchr (Depends-on): Likewise.
50927
50928 2009-03-12  Bruno Haible  <bruno@clisp.org>
50929
50930         Work around select() bug on Interix 3.5.
50931         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
50932         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
50933         * m4/select.m4: New file.
50934         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
50935         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
50936         * modules/select (Files): Add m4/select.m4.
50937         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
50938         * modules/nanosleep (Depends-on): Add select.
50939         * modules/poll (Depends-on): Likewise.
50940         * doc/posix-functions/select.texi: Mention the Interix bug.
50941         Reported by Markus Duft <mduft@gentoo.org>.
50942
50943         * lib/select.c: Renamed from lib/winsock-select.c.
50944         * modules/select (Files): Add lib/select.c, remove
50945         lib/winsock-select.c.
50946         (configure.ac): Update.
50947
50948 2009-03-12  Jim Meyering  <meyering@redhat.com>
50949
50950         avoid gcc warnings about unused macro definitions
50951         * lib/readtokens.c (STREQ): Remove unused definition.
50952         * lib/xmalloc.c (SIZE_MAX): Likewise.
50953         * lib/openat-die.c (N_): Likewise.
50954         * lib/mountlist.c (SIZE_MAX): Remove definition.
50955         Instead, include <stdint.h>.
50956         * lib/readutmp.c: Likewise.
50957         * modules/readutmp (Depends-on): Add stdint.
50958         * modules/mountlist (Depends-on): Add stdint.
50959         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
50960
50961 2009-03-10  Bruno Haible  <bruno@clisp.org>
50962
50963         Tests for module 'mbmemcasecoll'.
50964         * modules/mbmemcasecoll-tests: New file.
50965         * tests/test-mbmemcasecoll1.sh: New file.
50966         * tests/test-mbmemcasecoll2.sh: New file.
50967         * tests/test-mbmemcasecoll3.sh: New file.
50968         * tests/test-mbmemcasecoll.c: New file.
50969
50970         New module 'mbmemcasecoll'.
50971         * lib/mbmemcasecoll.h: New file.
50972         * lib/mbmemcasecoll.c: New file.
50973         * modules/mbmemcasecoll: New file.
50974
50975         * tests/test-mbmemcasecmp.h: New file, extracted from
50976         tests/test-mbmemcasecmp.c.
50977         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
50978         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
50979         (main): Update.
50980         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
50981
50982 2009-03-09  Bruno Haible  <bruno@clisp.org>
50983
50984         Tests for module 'mbmemcasecmp'.
50985         * modules/mbmemcasecmp-tests: New file.
50986         * tests/test-mbmemcasecmp1.sh: New file.
50987         * tests/test-mbmemcasecmp2.sh: New file.
50988         * tests/test-mbmemcasecmp3.sh: New file.
50989         * tests/test-mbmemcasecmp.c: New file.
50990
50991         New module 'mbmemcasecmp'.
50992         * lib/mbmemcasecmp.h: New file.
50993         * lib/mbmemcasecmp.c: New file.
50994         * modules/mbmemcasecmp: New file.
50995
50996 2009-03-09  Bruno Haible  <bruno@clisp.org>
50997
50998         Tests for module 'unicase/ulc-casecoll'.
50999         * modules/unicase/ulc-casecoll-tests: New file.
51000         * tests/unicase/test-ulc-casecoll1.sh: New file.
51001         * tests/unicase/test-ulc-casecoll2.sh: New file.
51002         * tests/unicase/test-ulc-casecoll.c: New file.
51003
51004         New module 'unicase/ulc-casecoll'.
51005         * lib/unicase.h (ulc_casecoll): New declaration.
51006         * lib/unicase/ulc-casecoll.c: New file.
51007         * modules/unicase/ulc-casecoll: New file.
51008
51009         New module 'unicase/ulc-casexfrm'.
51010         * lib/unicase.h (ulc_casexfrm): New declaration.
51011         * lib/unicase/ulc-casexfrm.c: New file.
51012         * modules/unicase/ulc-casexfrm: New file.
51013
51014 2009-03-09  Bruno Haible  <bruno@clisp.org>
51015
51016         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
51017         invocations.
51018
51019         * m4/mbscasecmp.m4: Remove file.
51020         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
51021         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
51022
51023         * m4/mbscasestr.m4: Remove file.
51024         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
51025         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
51026
51027         * m4/mbschr.m4: Remove file.
51028         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
51029         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
51030
51031         * m4/mbscspn.m4: Remove file.
51032         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
51033         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
51034
51035         * m4/mbslen.m4: Remove file.
51036         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
51037         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
51038
51039         * m4/mbsncasecmp.m4: Remove file.
51040         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
51041         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
51042
51043         * m4/mbsnlen.m4: Remove file.
51044         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
51045         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
51046
51047         * m4/mbspbrk.m4: Remove file.
51048         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
51049         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
51050
51051         * m4/mbspcasecmp.m4: Remove file.
51052         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
51053         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
51054
51055         * m4/mbsrchr.m4: Remove file.
51056         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
51057         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
51058
51059         * m4/mbssep.m4: Remove file.
51060         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
51061         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
51062
51063         * m4/mbsspn.m4: Remove file.
51064         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
51065         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
51066
51067         * m4/mbsstr.m4: Remove file.
51068         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
51069         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
51070
51071         * m4/mbstok_r.m4: Remove file.
51072         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
51073         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
51074
51075         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
51076
51077         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
51078         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
51079
51080         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
51081
51082 2009-03-08  Bruno Haible  <bruno@clisp.org>
51083
51084         Tests for module 'unicase/ulc-casecmp'.
51085         * modules/unicase/ulc-casecmp-tests: New file.
51086         * tests/unicase/test-ulc-casecmp1.sh: New file.
51087         * tests/unicase/test-ulc-casecmp2.sh: New file.
51088         * tests/unicase/test-ulc-casecmp.c: New file.
51089
51090         New module 'unicase/ulc-casecmp'.
51091         * lib/unicase.h (ulc_casecmp): New declaration.
51092         * lib/unicase/ulc-casecmp.c: New file.
51093         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
51094         'const SRC_UNIT *'.
51095         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
51096         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
51097         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
51098         * modules/unicase/ulc-casecmp: New file.
51099
51100         Tests for module 'unicase/u32-is-cased'.
51101         * modules/unicase/u32-is-cased-tests: New file.
51102         * tests/unicase/test-u32-is-cased.c: New file.
51103
51104         Tests for module 'unicase/u16-is-cased'.
51105         * modules/unicase/u16-is-cased-tests: New file.
51106         * tests/unicase/test-u16-is-cased.c: New file.
51107
51108         Tests for module 'unicase/u8-is-cased'.
51109         * modules/unicase/u8-is-cased-tests: New file.
51110         * tests/unicase/test-u8-is-cased.c: New file.
51111         * tests/unicase/test-is-cased.h: New file.
51112
51113         New module 'unicase/u32-is-cased'.
51114         * lib/unicase/u32-is-cased.c: New file.
51115         * modules/unicase/u32-is-cased: New file.
51116
51117         New module 'unicase/u16-is-cased'.
51118         * lib/unicase/u16-is-cased.c: New file.
51119         * modules/unicase/u16-is-cased: New file.
51120
51121         New module 'unicase/u8-is-cased'.
51122         * lib/unicase/u8-is-cased.c: New file.
51123         * lib/unicase/u-is-cased.h: New file.
51124         * modules/unicase/u8-is-cased: New file.
51125
51126         Tests for module 'unicase/u32-is-casefolded'.
51127         * modules/unicase/u32-is-casefolded-tests: New file.
51128         * tests/unicase/test-u32-is-casefolded.c: New file.
51129
51130         Tests for module 'unicase/u16-is-casefolded'.
51131         * modules/unicase/u16-is-casefolded-tests: New file.
51132         * tests/unicase/test-u16-is-casefolded.c: New file.
51133
51134         Tests for module 'unicase/u8-is-casefolded'.
51135         * modules/unicase/u8-is-casefolded-tests: New file.
51136         * tests/unicase/test-u8-is-casefolded.c: New file.
51137         * tests/unicase/test-is-casefolded.h: New file.
51138
51139         New module 'unicase/u32-is-casefolded'.
51140         * lib/unicase/u32-is-casefolded.c: New file.
51141         * modules/unicase/u32-is-casefolded: New file.
51142
51143         New module 'unicase/u16-is-casefolded'.
51144         * lib/unicase/u16-is-casefolded.c: New file.
51145         * modules/unicase/u16-is-casefolded: New file.
51146
51147         New module 'unicase/u8-is-casefolded'.
51148         * lib/unicase/u8-is-casefolded.c: New file.
51149         * modules/unicase/u8-is-casefolded: New file.
51150
51151         Tests for module 'unicase/u32-is-titlecase'.
51152         * modules/unicase/u32-is-titlecase-tests: New file.
51153         * tests/unicase/test-u32-is-titlecase.c: New file.
51154
51155         Tests for module 'unicase/u16-is-titlecase'.
51156         * modules/unicase/u16-is-titlecase-tests: New file.
51157         * tests/unicase/test-u16-is-titlecase.c: New file.
51158
51159         Tests for module 'unicase/u8-is-titlecase'.
51160         * modules/unicase/u8-is-titlecase-tests: New file.
51161         * tests/unicase/test-u8-is-titlecase.c: New file.
51162         * tests/unicase/test-is-titlecase.h: New file.
51163
51164         New module 'unicase/u32-is-titlecase'.
51165         * lib/unicase/u32-is-titlecase.c: New file.
51166         * modules/unicase/u32-is-titlecase: New file.
51167
51168         New module 'unicase/u16-is-titlecase'.
51169         * lib/unicase/u16-is-titlecase.c: New file.
51170         * modules/unicase/u16-is-titlecase: New file.
51171
51172         New module 'unicase/u8-is-titlecase'.
51173         * lib/unicase/u8-is-titlecase.c: New file.
51174         * modules/unicase/u8-is-titlecase: New file.
51175
51176         Tests for module 'unicase/u32-is-lowercase'.
51177         * modules/unicase/u32-is-lowercase-tests: New file.
51178         * tests/unicase/test-u32-is-lowercase.c: New file.
51179
51180         Tests for module 'unicase/u16-is-lowercase'.
51181         * modules/unicase/u16-is-lowercase-tests: New file.
51182         * tests/unicase/test-u16-is-lowercase.c: New file.
51183
51184         Tests for module 'unicase/u8-is-lowercase'.
51185         * modules/unicase/u8-is-lowercase-tests: New file.
51186         * tests/unicase/test-u8-is-lowercase.c: New file.
51187         * tests/unicase/test-is-lowercase.h: New file.
51188
51189         New module 'unicase/u32-is-lowercase'.
51190         * lib/unicase/u32-is-lowercase.c: New file.
51191         * modules/unicase/u32-is-lowercase: New file.
51192
51193         New module 'unicase/u16-is-lowercase'.
51194         * lib/unicase/u16-is-lowercase.c: New file.
51195         * modules/unicase/u16-is-lowercase: New file.
51196
51197         New module 'unicase/u8-is-lowercase'.
51198         * lib/unicase/u8-is-lowercase.c: New file.
51199         * modules/unicase/u8-is-lowercase: New file.
51200
51201         Tests for module 'unicase/u32-is-uppercase'.
51202         * modules/unicase/u32-is-uppercase-tests: New file.
51203         * tests/unicase/test-u32-is-uppercase.c: New file.
51204
51205         Tests for module 'unicase/u16-is-uppercase'.
51206         * modules/unicase/u16-is-uppercase-tests: New file.
51207         * tests/unicase/test-u16-is-uppercase.c: New file.
51208
51209         Tests for module 'unicase/u8-is-uppercase'.
51210         * modules/unicase/u8-is-uppercase-tests: New file.
51211         * tests/unicase/test-u8-is-uppercase.c: New file.
51212         * tests/unicase/test-is-uppercase.h: New file.
51213
51214         New module 'unicase/u32-is-uppercase'.
51215         * lib/unicase/u32-is-uppercase.c: New file.
51216         * modules/unicase/u32-is-uppercase: New file.
51217
51218         New module 'unicase/u16-is-uppercase'.
51219         * lib/unicase/u16-is-uppercase.c: New file.
51220         * modules/unicase/u16-is-uppercase: New file.
51221
51222         New module 'unicase/u8-is-uppercase'.
51223         * lib/unicase/u8-is-uppercase.c: New file.
51224         * modules/unicase/u8-is-uppercase: New file.
51225
51226         New module 'unicase/u32-is-invariant'.
51227         * lib/unicase/u32-is-invariant.c: New file.
51228         * modules/unicase/u32-is-invariant: New file.
51229
51230         New module 'unicase/u16-is-invariant'.
51231         * lib/unicase/u16-is-invariant.c: New file.
51232         * modules/unicase/u16-is-invariant: New file.
51233
51234         New module 'unicase/u8-is-invariant'.
51235         * lib/unicase/u8-is-invariant.c: New file.
51236         * lib/unicase/invariant.h: New file.
51237         * lib/unicase/u-is-invariant.h: New file.
51238         * modules/unicase/u8-is-invariant: New file.
51239
51240         Tests for module 'unicase/u32-casecoll'.
51241         * modules/unicase/u32-casecoll-tests: New file.
51242         * tests/unicase/test-u32-casecoll.c: New file.
51243
51244         Tests for module 'unicase/u16-casecoll'.
51245         * modules/unicase/u16-casecoll-tests: New file.
51246         * tests/unicase/test-u16-casecoll.c: New file.
51247
51248         Tests for module 'unicase/u8-casecoll'.
51249         * modules/unicase/u8-casecoll-tests: New file.
51250         * tests/unicase/test-u8-casecoll.c: New file.
51251
51252         New module 'unicase/u32-casecoll'.
51253         * lib/unicase/u32-casecoll.c: New file.
51254         * modules/unicase/u32-casecoll: New file.
51255
51256         New module 'unicase/u16-casecoll'.
51257         * lib/unicase/u16-casecoll.c: New file.
51258         * modules/unicase/u16-casecoll: New file.
51259
51260         New module 'unicase/u8-casecoll'.
51261         * lib/unicase/u8-casecoll.c: New file.
51262         * lib/unicase/u-casecoll.h: New file.
51263         * modules/unicase/u8-casecoll: New file.
51264
51265         New module 'unicase/u32-casexfrm'.
51266         * lib/unicase/u32-casexfrm.c: New file.
51267         * modules/unicase/u32-casexfrm: New file.
51268
51269         New module 'unicase/u16-casexfrm'.
51270         * lib/unicase/u16-casexfrm.c: New file.
51271         * modules/unicase/u16-casexfrm: New file.
51272
51273         New module 'unicase/u8-casexfrm'.
51274         * lib/unicase/u8-casexfrm.c: New file.
51275         * lib/unicase/u-casexfrm.h: New file.
51276         * modules/unicase/u8-casexfrm: New file.
51277
51278         Tests for module 'unicase/u32-casecmp'.
51279         * modules/unicase/u32-casecmp-tests: New file.
51280         * tests/unicase/test-u32-casecmp.c: New file.
51281
51282         Tests for module 'unicase/u16-casecmp'.
51283         * modules/unicase/u16-casecmp-tests: New file.
51284         * tests/unicase/test-u16-casecmp.c: New file.
51285
51286         Tests for module 'unicase/u8-casecmp'.
51287         * modules/unicase/u8-casecmp-tests: New file.
51288         * tests/unicase/test-u8-casecmp.c: New file.
51289         * tests/unicase/test-casecmp.h: New file.
51290
51291         New module 'unicase/u32-casecmp'.
51292         * lib/unicase/u32-casecmp.c: New file.
51293         * modules/unicase/u32-casecmp: New file.
51294
51295         New module 'unicase/u16-casecmp'.
51296         * lib/unicase/u16-casecmp.c: New file.
51297         * modules/unicase/u16-casecmp: New file.
51298
51299         New module 'unicase/u8-casecmp'.
51300         * lib/unicase/u8-casecmp.c: New file.
51301         * lib/unicase/u-casecmp.h: New file.
51302         * modules/unicase/u8-casecmp: New file.
51303
51304         Tests for module 'unicase/u32-casefold'.
51305         * modules/unicase/u32-casefold-tests: New file.
51306         * tests/unicase/test-u32-casefold.c: New file.
51307
51308         Tests for module 'unicase/u16-casefold'.
51309         * modules/unicase/u16-casefold-tests: New file.
51310         * tests/unicase/test-u16-casefold.c: New file.
51311
51312         Tests for module 'unicase/u8-casefold'.
51313         * modules/unicase/u8-casefold-tests: New file.
51314         * tests/unicase/test-u8-casefold.c: New file.
51315
51316         New module 'unicase/u32-casefold'.
51317         * lib/unicase/u32-casefold.c: New file.
51318         * modules/unicase/u32-casefold: New file.
51319
51320         New module 'unicase/u16-casefold'.
51321         * lib/unicase/u16-casefold.c: New file.
51322         * modules/unicase/u16-casefold: New file.
51323
51324         New module 'unicase/u8-casefold'.
51325         * lib/unicase/u8-casefold.c: New file.
51326         * lib/unicase/u-casefold.h: New file.
51327         * modules/unicase/u8-casefold: New file.
51328
51329         New module 'unicase/tocasefold'.
51330         * lib/unicase/casefold.h: New file.
51331         * lib/unicase/tocasefold.c: New file.
51332         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
51333         * modules/unicase/tocasefold: New file.
51334
51335         Tests for module 'unicase/u32-totitle'.
51336         * modules/unicase/u32-totitle-tests: New file.
51337         * tests/unicase/test-u32-totitle.c: New file.
51338
51339         Tests for module 'unicase/u16-totitle'.
51340         * modules/unicase/u16-totitle-tests: New file.
51341         * tests/unicase/test-u16-totitle.c: New file.
51342
51343         Tests for module 'unicase/u8-totitle'.
51344         * modules/unicase/u8-totitle-tests: New file.
51345         * tests/unicase/test-u8-totitle.c: New file.
51346
51347         New module 'unicase/u32-totitle'.
51348         * lib/unicase/u32-totitle.c: New file.
51349         * modules/unicase/u32-totitle: New file.
51350
51351         New module 'unicase/u16-totitle'.
51352         * lib/unicase/u16-totitle.c: New file.
51353         * modules/unicase/u16-totitle: New file.
51354
51355         New module 'unicase/u8-totitle'.
51356         * lib/unicase/u8-totitle.c: New file.
51357         * lib/unicase/u-totitle.h: New file.
51358         * modules/unicase/u8-totitle: New file.
51359
51360         Tests for module 'unicase/u32-tolower'.
51361         * modules/unicase/u32-tolower-tests: New file.
51362         * tests/unicase/test-u32-tolower.c: New file.
51363
51364         Tests for module 'unicase/u16-tolower'.
51365         * modules/unicase/u16-tolower-tests: New file.
51366         * tests/unicase/test-u16-tolower.c: New file.
51367
51368         Tests for module 'unicase/u8-tolower'.
51369         * modules/unicase/u8-tolower-tests: New file.
51370         * tests/unicase/test-u8-tolower.c: New file.
51371
51372         New module 'unicase/u32-tolower'.
51373         * lib/unicase/u32-tolower.c: New file.
51374         * modules/unicase/u32-tolower: New file.
51375
51376         New module 'unicase/u16-tolower'.
51377         * lib/unicase/u16-tolower.c: New file.
51378         * modules/unicase/u16-tolower: New file.
51379
51380         New module 'unicase/u8-tolower'.
51381         * lib/unicase/u8-tolower.c: New file.
51382         * modules/unicase/u8-tolower: New file.
51383
51384         Tests for module 'unicase/u32-toupper'.
51385         * modules/unicase/u32-toupper-tests: New file.
51386         * tests/unicase/test-u32-toupper.c: New file.
51387
51388         Tests for module 'unicase/u16-toupper'.
51389         * modules/unicase/u16-toupper-tests: New file.
51390         * tests/unicase/test-u16-toupper.c: New file.
51391
51392         Tests for module 'unicase/u8-toupper'.
51393         * modules/unicase/u8-toupper-tests: New file.
51394         * tests/unicase/test-u8-toupper.c: New file.
51395
51396         New module 'unicase/u32-toupper'.
51397         * lib/unicase/u32-toupper.c: New file.
51398         * modules/unicase/u32-toupper: New file.
51399
51400         New module 'unicase/u16-toupper'.
51401         * lib/unicase/u16-toupper.c: New file.
51402         * modules/unicase/u16-toupper: New file.
51403
51404         New module 'unicase/u8-toupper'.
51405         * lib/unicase/u8-toupper.c: New file.
51406         * modules/unicase/u8-toupper: New file.
51407
51408         New module 'unicase/u32-casemap'.
51409         * lib/unicase/u32-casemap.c: New file.
51410         * modules/unicase/u32-casemap: New file.
51411
51412         New module 'unicase/u16-casemap'.
51413         * lib/unicase/u16-casemap.c: New file.
51414         * modules/unicase/u16-casemap: New file.
51415
51416         New module 'unicase/u8-casemap'.
51417         * lib/unicase/unicasemap.h: New file.
51418         * lib/unicase/u8-casemap.c: New file.
51419         * lib/unicase/u-casemap.h: New file.
51420         * modules/unicase/u8-casemap: New file.
51421
51422         New module 'unicase/special-casing'.
51423         * lib/unicase/special-casing.h: New file.
51424         * lib/unicase/special-casing.c: New file.
51425         * lib/unicase/special-casing-table.gperf: New file, generated by
51426         gen-uni-tables.c.
51427         * modules/unicase/special-casing: New file.
51428
51429         Tests for module 'unicase/locale-language'.
51430         * modules/unicase/locale-language-tests: New file.
51431         * tests/unicase/test-locale-language.sh: New file.
51432         * tests/unicase/test-locale-language.c: New file.
51433
51434         New module 'unicase/locale-language'.
51435         * lib/unicase/locale-language.c: New file.
51436         * lib/unicase/locale-languages.gperf: New file.
51437         * modules/unicase/locale-language: New file.
51438
51439         Generate more tables for case conversion and case folding.
51440         * lib/gen-uni-tables.c (SCC_*): New enum items.
51441         (struct special_casing_rule): New type.
51442         (casing_rules, num_casing_rules, allocated_casing_rules): New
51443         variables.
51444         (add_casing_rule, fill_casing_rules): New functions.
51445         (struct casefold_rule): New type.
51446         (casefolding_rules, num_casefolding_rules,
51447         allocated_casefolding_rules): New variables.
51448         (fill_casefolding_rules): New function.
51449         (unicode_casefold): New variable.
51450         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
51451         sort_casing_rules, output_casing_rules): New functions.
51452         (main): Accept to more arguments: SpecialCasing.txt and
51453         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
51454         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
51455         Output mapping for casefolding.
51456
51457         * lib/unicase.h: Include stdbool.h, uninorm.h.
51458         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
51459         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
51460         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
51461         arguments.
51462         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
51463         resultp arguments.
51464         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
51465         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
51466         resultp arguments.
51467         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
51468         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
51469         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
51470         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
51471         declarations.
51472         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
51473
51474 2009-03-08  Bruno Haible  <bruno@clisp.org>
51475
51476         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51477         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
51478         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
51479         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51480
51481 2009-03-07  Bruno Haible  <bruno@clisp.org>
51482
51483         Adjust u*_normcmp, u*_normcoll API.
51484         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
51485         u16_normcoll, u32_normcoll): Change failure conventions.
51486         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
51487         errno and return -1.
51488         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
51489
51490 2009-03-07  Bruno Haible  <bruno@clisp.org>
51491
51492         Tests for module 'uninorm/u32-normcoll'.
51493         * modules/uninorm/u32-normcoll-tests: New file.
51494         * tests/uninorm/test-u32-normcoll.c: New file.
51495
51496         Tests for module 'uninorm/u16-normcoll'.
51497         * modules/uninorm/u16-normcoll-tests: New file.
51498         * tests/uninorm/test-u16-normcoll.c: New file.
51499
51500         Tests for module 'uninorm/u8-normcoll'.
51501         * modules/uninorm/u8-normcoll-tests: New file.
51502         * tests/uninorm/test-u8-normcoll.c: New file.
51503
51504 2009-03-07  Bruno Haible  <bruno@clisp.org>
51505
51506         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
51507         tests/uninorm/test-u32-normcmp.c.
51508         * tests/uninorm/test-u32-normcmp.c: Include it.
51509         (test_nonascii): New function, extracted from main. Add some more
51510         tests.
51511         (main): Invoke test_ascii and test_nonascii.
51512         * modules/uninorm/u32-normcmp-tests (Files): Add
51513         tests/uninorm/test-u32-normcmp.h.
51514         (Depends-on): Remove uninorm/u32-normcmp.
51515
51516         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
51517         tests/uninorm/test-u16-normcmp.c.
51518         * tests/uninorm/test-u16-normcmp.c: Include it.
51519         (test_nonascii): New function, extracted from main. Add some more
51520         tests.
51521         (main): Invoke test_ascii and test_nonascii.
51522         * modules/uninorm/u16-normcmp-tests (Files): Add
51523         tests/uninorm/test-u16-normcmp.h.
51524         (Depends-on): Remove uninorm/u16-normcmp.
51525
51526         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
51527         tests/uninorm/test-u8-normcmp.c.
51528         * tests/uninorm/test-u8-normcmp.c: Include it.
51529         (test_nonascii): New function, extracted from main. Add some more
51530         tests.
51531         (main): Invoke test_ascii and test_nonascii.
51532         * modules/uninorm/u8-normcmp-tests (Files): Add
51533         tests/uninorm/test-u8-normcmp.h.
51534         (Depends-on): Remove uninorm/u8-normcmp.
51535
51536 2009-03-07  Bruno Haible  <bruno@clisp.org>
51537
51538         New module 'uninorm/u32-normcoll'.
51539         * lib/uninorm/u32-normcoll.c: New file.
51540         * modules/uninorm/u32-normcoll: New file.
51541
51542         New module 'uninorm/u16-normcoll'.
51543         * lib/uninorm/u16-normcoll.c: New file.
51544         * modules/uninorm/u16-normcoll: New file.
51545
51546         New module 'uninorm/u8-normcoll'.
51547         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
51548         declarations.
51549         * lib/uninorm/u8-normcoll.c: New file.
51550         * lib/uninorm/u-normcoll.h: New file.
51551         * modules/uninorm/u8-normcoll: New file.
51552
51553         New module 'uninorm/u32-normxfrm'.
51554         * lib/uninorm/u32-normxfrm.c: New file.
51555         * modules/uninorm/u32-normxfrm: New file.
51556
51557         New module 'uninorm/u16-normxfrm'.
51558         * lib/uninorm/u16-normxfrm.c: New file.
51559         * modules/uninorm/u16-normxfrm: New file.
51560
51561         New module 'uninorm/u8-normxfrm'.
51562         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
51563         declarations.
51564         * lib/uninorm/u8-normxfrm.c: New file.
51565         * lib/uninorm/u-normxfrm.h: New file.
51566         * modules/uninorm/u8-normxfrm: New file.
51567
51568 2009-03-07  Bruno Haible  <bruno@clisp.org>
51569
51570         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
51571         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
51572         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
51573
51574 2009-03-07  Bruno Haible  <bruno@clisp.org>
51575
51576         New module 'memxfrm'.
51577         * lib/memxfrm.h: New file.
51578         * lib/memxfrm.c: New file.
51579         * modules/memxfrm: New file.
51580
51581 2009-03-07  Bruno Haible  <bruno@clisp.org>
51582
51583         New module 'memcmp2'.
51584         * lib/memcmp2.h: New file.
51585         * lib/memcmp2.c: New file.
51586         * modules/memcmp2: New file.
51587
51588 2009-03-07  Bruno Haible  <bruno@clisp.org>
51589
51590         Tests for module 'uninorm/decomposing-form'.
51591         * modules/uninorm/decomposing-form-tests: New file.
51592         * tests/uninorm/test-decomposing-form.c: New file.
51593
51594         New module 'uninorm/decomposing-form'.
51595         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
51596         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
51597         Add 'decomposing_variant' field.
51598         * lib/uninorm/decomposing-form.c: New file.
51599         * lib/uninorm/nfc.c (uninorm_nfc): Update.
51600         * lib/uninorm/nfd.c (uninorm_nfd): Update.
51601         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
51602         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
51603         * modules/uninorm/decomposing-form: New file.
51604         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
51605         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
51606
51607 2009-03-07  Bruno Haible  <bruno@clisp.org>
51608
51609         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
51610         strings.
51611
51612 2009-03-06  Bruno Haible  <bruno@clisp.org>
51613
51614         Tests for module 'uninorm/u32-normcmp'.
51615         * tests/uninorm/test-u32-normcmp.c: New file.
51616         * modules/uninorm/u32-normcmp-tests: New file.
51617
51618         Tests for module 'uninorm/u16-normcmp'.
51619         * tests/uninorm/test-u16-normcmp.c: New file.
51620         * modules/uninorm/u16-normcmp-tests: New file.
51621
51622         Tests for module 'uninorm/u8-normcmp'.
51623         * tests/uninorm/test-u8-normcmp.c: New file.
51624         * modules/uninorm/u8-normcmp-tests: New file.
51625
51626         New module 'uninorm/u32-normcmp'.
51627         * lib/uninorm/u32-normcmp.c: New file.
51628         * modules/uninorm/u32-normcmp: New file.
51629
51630         New module 'uninorm/u16-normcmp'.
51631         * lib/uninorm/u16-normcmp.c: New file.
51632         * modules/uninorm/u16-normcmp: New file.
51633
51634         New module 'uninorm/u8-normcmp'.
51635         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
51636         declarations.
51637         * lib/uninorm/u8-normcmp.c: New file.
51638         * lib/uninorm/u-normcmp.h: New file.
51639         * modules/uninorm/u8-normcmp: New file.
51640
51641 2009-03-06  Bruno Haible  <bruno@clisp.org>
51642
51643         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
51644         Reported by Eric Blake.
51645
51646 2009-03-06  Eric Blake  <ebb9@byu.net>
51647             Bruno Haible  <bruno@clisp.org>
51648
51649         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
51650         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
51651         condition.
51652         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51653         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
51654         condition.
51655         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
51656
51657 2009-03-06  Eric Blake  <ebb9@byu.net>
51658
51659         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
51660         to avoid compiler warnings.
51661         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
51662
51663 2009-03-05  Bruno Haible  <bruno@clisp.org>
51664
51665         * tests/test-ftell.c (main): Disable test beyond end of file on
51666         FreeMiNT.
51667         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51668
51669 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
51670
51671         * lib/filevercmp.c: Move hidden files up in ordering.
51672         * tests/test-filevercmp.c: Add tests for hidden files.
51673
51674 2009-03-04  Bruno Haible  <bruno@clisp.org>
51675
51676         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
51677         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
51678         AM_CFLAGS.
51679         Reported by Simon Josefsson.
51680
51681 2009-03-03  Bruno Haible  <bruno@clisp.org>
51682
51683         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
51684         Reported by Simon Josefsson.
51685
51686         * doc/ld-version-script.texi: Update node reference.
51687
51688 2009-03-03  Bruno Haible  <bruno@clisp.org>
51689
51690         * modules/visibility (License): Change to 'unlimited'.
51691         Suggested by Simon Josefsson.
51692
51693 2009-03-03  Jim Meyering  <meyering@redhat.com>
51694
51695         unlinkdir: cannot_unlink_dir may modify process state
51696         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
51697         it's neither thread-safe nor appropriate for use in a library.
51698
51699 2009-03-03  Eric Blake  <ebb9@byu.net>
51700
51701         test-closein: silence test under Darwin
51702         * tests/test-closein.sh: Ignore stderr from cat, since we don't
51703         care if it dies from EPIPE or EBADF.
51704
51705 2009-03-03  Bruno Haible  <bruno@clisp.org>
51706
51707         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
51708         earlier.
51709         * doc/visibility.texi: Fix @node and @section.
51710
51711 2009-03-03  Simon Josefsson  <simon@josefsson.org>
51712
51713         * doc/gnulib.texi: Link to sections for ld version script and
51714         visibility.
51715         * doc/visibility.texi: Add @node and @section.
51716         * modules/ld-version-script: New module.
51717         * m4/ld-version-script.m4: New file.
51718         * doc/ld-version-script.texi: New file.
51719
51720 2009-03-02  David Lutterkort  <lutter@redhat.com>
51721
51722         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
51723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51724
51725 2009-03-02  Bruno Haible  <bruno@clisp.org>
51726
51727         * doc/visibility.texi: Mention libtool's -export-symbols option.
51728
51729 2009-03-02  Jim Meyering  <meyering@redhat.com>
51730
51731         announce-gen: new option: --no-print-checksums
51732         * build-aux/announce-gen (usage): Describe it.
51733         (print_checksums): Print a newline here, not in the [*] footnote.
51734         (main): Honor it.
51735
51736 2009-03-01  Bruno Haible  <bruno@clisp.org>
51737
51738         Use socklen_t in the native Windows replacements prototypes.
51739         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
51740         instead of 'int'.
51741         * lib/getsockopt.c (rpl_getsockopt): Likewise.
51742         * lib/setsockopt.c (rpl_setsockopt): Likewise.
51743         * modules/getsockopt (Depends-on): Add socklen.
51744         * modules/setsockopt (Depends-on): Add socklen.
51745
51746 2009-03-01  Bruno Haible  <bruno@clisp.org>
51747
51748         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
51749         least 4.2.
51750
51751 2009-03-01  Eric Blake  <ebb9@byu.net>
51752             Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
51755         error messages.
51756         * lib/wait-process.c (wait_subprocess): Omit error message about
51757         deadly signal sent to the child of termsigp != NULL.
51758
51759 2009-03-01  Eric Blake  <ebb9@byu.net>
51760
51761         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
51762
51763 2009-03-01  Bruno Haible  <bruno@clisp.org>
51764
51765         Avoid a gcc warning.
51766         * tests/test-sched.c (b): Make global.
51767         Reported by Eric Blake.
51768
51769 2009-01-19  Martin Lambers  <marlam@marlam.de>
51770
51771         Provide POSIX semantics for socket timeout options on W32.
51772         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
51773         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
51774         * modules/setsockopt: Depend on sys_time module for struct timeval.
51775         * modules/getsockopt: Depend on sys_time module for struct timeval.
51776
51777 2009-03-01  Simon Josefsson  <simon@josefsson.org>
51778
51779         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
51780         __USE_GNU, for consistency with netdb.in.h.
51781         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51782
51783 2009-03-01  Bruno Haible  <bruno@clisp.org>
51784
51785         More support for FreeMiNT.
51786         * lib/fseeko.c (rpl_fseeko): Complete last commit.
51787         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51788
51789 2009-03-01  Bruno Haible  <bruno@clisp.org>
51790
51791         More support for FreeMiNT.
51792         * lib/fpurge.c (fpurge): Correct last commit.
51793         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51794
51795 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51796
51797         Fix unportable awk script in vc-list-files.
51798         * build-aux/vc-list-files: In the replacement awk script, use
51799         substr with a second argument of 1, not zero.
51800         Report by Simon Josefsson.
51801
51802 2009-02-28  Bruno Haible  <bruno@clisp.org>
51803
51804         More support for FreeMiNT.
51805         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
51806         to FreeMiNT today.
51807         * lib/fwriting.c (fwriting): Likewise.
51808         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
51809
51810 2009-02-28  Bruno Haible  <bruno@clisp.org>
51811
51812         * tests/test-freadseek.c (main): Disable test beyond end of file on
51813         FreeMiNT.
51814         * tests/test-ftello.c (main): Likewise.
51815         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
51816
51817 2009-02-28  Bruno Haible  <bruno@clisp.org>
51818
51819         Add tentative support for FreeMiNT.
51820         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
51821         * lib/fpurge.c (fpurge): Likewise.
51822         * lib/freadable.c (freadable): Likewise.
51823         * lib/freading.c (freading): Likewise.
51824         * lib/freadptr.c (freadptr): Likewise.
51825         * lib/freadseek.c (freadptrinc): Likewise.
51826         * lib/fseeko.c (rpl_fseeko): Likewise.
51827         * lib/fseterr.c (fseterr): Likewise.
51828         * lib/fwritable.c (fwritable): Likewise.
51829         * lib/fwriting.c (fwriting): Likewise.
51830         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
51831         Hourihane.
51832         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
51833
51834 2009-02-28  Bruno Haible  <bruno@clisp.org>
51835
51836         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
51837         SIGCHLD.
51838         Reported by Jim Meyering.
51839
51840 2009-02-28  Bruno Haible  <bruno@clisp.org>
51841
51842         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
51843         Mention the results of these tests on various platforms.
51844         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
51845         order.
51846         * doc/posix-functions/printf.texi: Likewise.
51847         * doc/posix-functions/snprintf.texi: Likewise.
51848         * doc/posix-functions/sprintf.texi: Likewise.
51849         * doc/posix-functions/vfprintf.texi: Likewise.
51850         * doc/posix-functions/vprintf.texi: Likewise.
51851         * doc/posix-functions/vsnprintf.texi: Likewise.
51852         * doc/posix-functions/vsprintf.texi: Likewise.
51853         * doc/glibc-functions/obstack_printf.texi: Likewise.
51854         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
51855
51856 2009-02-28  Bruno Haible  <bruno@clisp.org>
51857
51858         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
51859         Reported by Loïc Minier <lool@dooz.org>.
51860
51861 2009-02-27  Bruno Haible  <bruno@clisp.org>
51862
51863         * gnulib-tool (func_import): Make the sed expression used to create the
51864         sed script for updating the .gitignore file POSIX compliant.
51865         Reported by Eric Blake.
51866
51867 2009-02-27  Bruno Haible  <bruno@clisp.org>
51868
51869         * gnulib-tool (sed): Don't alias as "sed --posix".
51870         Reported by Eric Blake.
51871
51872 2009-02-27  Bruno Haible  <bruno@clisp.org>
51873
51874         Avoid test link errors.
51875         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
51876         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
51877         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
51878         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
51879         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51880
51881 2009-02-27  Bruno Haible  <bruno@clisp.org>
51882
51883         Avoid spurious "(cached)" in configure output.
51884         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
51885         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
51886         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51887         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51888         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51889         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
51890         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51891         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
51892         Reported by Eric Blake.
51893
51894 2009-02-27  Eric Blake  <ebb9@byu.net>
51895
51896         printf: fix regression in previous patch
51897         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
51898
51899 2009-02-27  Bruno Haible  <bruno@clisp.org>
51900
51901         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
51902         value.
51903         * lib/stdint.in.h: Likewise.
51904         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
51905
51906 2009-02-27  Eric Blake  <ebb9@byu.net>
51907
51908         doc: mention more functions added in cygwin 1.7.0
51909         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
51910         addition.
51911         * doc/posix-functions/open_wmemstream.texi: Likewise.
51912         * doc/posix-functions/wcsnlen.texi: Likewise.
51913         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51914         * doc/posix-functions/wcstod.texi: Likewise.
51915         * doc/posix-functions/wcstof.texi: Likewise.
51916         * doc/posix-functions/wcstoimax.texi: Likewise.
51917         * doc/posix-functions/wcstok.texi: Likewise.
51918         * doc/posix-functions/wcstoumax.texi: Likewise.
51919
51920         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
51921         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
51922         * doc/posix-functions/fprintf.texi: Update.
51923         * doc/posix-functions/printf.texi: Update.
51924         * doc/posix-functions/snprintf.texi: Update.
51925         * doc/posix-functions/sprintf.texi: Update.
51926         * doc/posix-functions/vfprintf.texi: Update.
51927         * doc/posix-functions/vprintf.texi: Update.
51928         * doc/posix-functions/vsnprintf.texi: Update.
51929         * doc/posix-functions/vsprintf.texi: Update.
51930         * doc/glibc-functions/obstack_printf.texi: Update.
51931         * doc/glibc-functions/obstack_vprintf.texi: Update.
51932
51933 2009-02-26  Eric Blake  <ebb9@byu.net>
51934
51935         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
51936         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
51937         compilation bug by using runtime conversion.
51938         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
51939         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
51940         * modules/ceill-tests (Files): Use nan.h.
51941         * modules/floorl-tests (Files): Likewise.
51942         * modules/frexpl-tests (Files): Likewise.
51943         * modules/isnanl-tests (Files): Likewise.
51944         * modules/ldexpl-tests (Files): Likewise.
51945         * modules/roundl-tests (Files): Likewise.
51946         * modules/truncl-tests (Files): Likewise.
51947         * tests/test-ceill.c (main): Use a working NaN.
51948         * tests/test-floorl.c (main): Likewise.
51949         * tests/test-frexpl.c (main): Likewise.
51950         * tests/test-isnan.c (test_long_double): Likewise.
51951         * tests/test-isnanl.h (main): Likewise.
51952         * tests/test-ldexpl.h (main): Likewise.
51953         * tests/test-roundl.h (main): Likewise.
51954         * tests/test-truncl.h (main): Likewise.
51955         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
51956
51957 2009-02-26  Eric Blake  <ebb9@byu.net>
51958             Bruno Haible  <bruno@clisp.org>
51959
51960         Work around a *printf bug with %ls on Solaris.
51961         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
51962         precision is specified, sprintf stops converting the wide string
51963         argument when the number of bytes that have been produced by this
51964         conversion equals or exceeds the precision.
51965         * doc/posix-functions/fprintf.texi: Update.
51966         * doc/posix-functions/printf.texi: Update.
51967         * doc/posix-functions/snprintf.texi: Update.
51968         * doc/posix-functions/sprintf.texi: Update.
51969         * doc/posix-functions/vfprintf.texi: Update.
51970         * doc/posix-functions/vprintf.texi: Update.
51971         * doc/posix-functions/vsnprintf.texi: Update.
51972         * doc/posix-functions/vsprintf.texi: Update.
51973         * doc/glibc-functions/obstack_printf.texi: Update.
51974         * doc/glibc-functions/obstack_vprintf.texi: Update.
51975
51976 2009-02-26  Eric Blake  <ebb9@byu.net>
51977
51978         stdlib: favor compiler check of random.h
51979         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
51980         to avoid an ObjC random.h installed by Swarm.
51981
51982 2009-02-26  Bruno Haible  <bruno@clisp.org>
51983
51984         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
51985         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
51986         Reported by Gary V. Vaughan <gary@gnu.org>.
51987
51988 2009-02-26  Bruno Haible  <bruno@clisp.org>
51989
51990         Fix *printf behaviour regarding the %ls directive.
51991         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
51992         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
51993         NEED_PRINTF_DIRECTIVE_LS.
51994         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
51995         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51997         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
51998         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
51999         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
52000         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
52001         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52002         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52004         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52005         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
52006         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52007         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52008         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52009         * doc/posix-functions/fprintf.texi: Update.
52010         * doc/posix-functions/printf.texi: Update.
52011         * doc/posix-functions/snprintf.texi: Update.
52012         * doc/posix-functions/sprintf.texi: Update.
52013         * doc/posix-functions/vfprintf.texi: Update.
52014         * doc/posix-functions/vprintf.texi: Update.
52015         * doc/posix-functions/vsnprintf.texi: Update.
52016         * doc/posix-functions/vsprintf.texi: Update.
52017         * doc/glibc-functions/obstack_printf.texi: Update.
52018         * doc/glibc-functions/obstack_vprintf.texi: Update.
52019         Reported by Eric Blake.
52020
52021 2009-02-25  Bruno Haible  <bruno@clisp.org>
52022
52023         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
52024         with known value.
52025         Reported by Gary V. Vaughan <gary@gnu.org>.
52026
52027 2009-02-25  Bruno Haible  <bruno@clisp.org>
52028
52029         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
52030         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
52031         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
52032         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
52033         Reported by Gary V. Vaughan <gary@gnu.org>.
52034
52035 2009-02-25  Bruno Haible  <bruno@clisp.org>
52036
52037         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
52038         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
52039         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
52040         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
52041         Reported by Gary V. Vaughan <gary@gnu.org>.
52042
52043 2009-02-25  Eric Blake  <ebb9@byu.net>
52044
52045         tests: skip fseek/ftell tests if ungetc is broken
52046         * m4/ungetc.m4: New file.
52047         * modules/fseek-tests: Split test, so ungetc dependency is
52048         separate from rest of test.
52049         * modules/fseeko-tests: Likewise.
52050         * modules/ftell-tests: Likewise.
52051         * modules/ftello-tests: Likewise.
52052         * tests/test-fseek.c (main): Isolate ungetc dependency.
52053         * tests/test-fseeko.c (main): Likewise.
52054         * tests/test-ftell.c (main): Likewise.
52055         * tests/test-ftello.c (main): Likewise.
52056         * tests/test-fseek2.sh: New file.
52057         * tests/test-fseeko2.sh: Likewise.
52058         * tests/test-ftell2.sh: Likewise.
52059         * tests/test-ftello2.sh: Likewise.
52060
52061 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
52062
52063         test-getaddrinfo: fix usage of skip return code 77
52064         * tests/test-gettaddrinfo.c: Return skip code 77 only
52065         for first occurrence of skip (4x77 is not 77)
52066
52067 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
52068
52069         strtod: avoid C99 decl-after-statement
52070         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
52071
52072 2009-02-24  Eric Blake  <ebb9@byu.net>
52073
52074         strtod: detect HP-UX 11.31 bug
52075         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
52076         Reported by Gary V. Vaughan.
52077
52078 2009-02-23  Bruno Haible  <bruno@clisp.org>
52079
52080         Fix invalid read past end of memory block.
52081         * lib/vasnprintf.c (DCHAR_SET): Define.
52082         (local_wcslen): Define only when needed.
52083         (local_strnlen, local_wcsnlen): New functions.
52084         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
52085         directives that involve a conversion ourselves.
52086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
52087         wcsnlen, mbrtowc, wcrtomb.
52088         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
52089         * tests/test-vasprintf-posix.c (test_function): Likewise.
52090         * tests/test-snprintf-posix.h (test_function): Likewise.
52091         * tests/test-sprintf-posix.h (test_function): Likewise.
52092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52093
52094 2009-02-22  Bruno Haible  <bruno@clisp.org>
52095
52096         Implement new clarified decomposition of Hangul syllables.
52097         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
52098         of type LTV, return only a pairwise decomposition.
52099         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
52100         Likewise.
52101         * tests/uninorm/test-decomposition.c (main): Updated expected result.
52102         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
52103         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
52104
52105 2009-02-22  Bruno Haible  <bruno@clisp.org>
52106
52107         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
52108         zero-length results and shrink excess allocated memory.
52109         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
52110         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
52111         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
52112         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
52113         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
52114         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
52115         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
52116         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
52117         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
52118         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
52119         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
52120         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
52121
52122 2009-02-21  Bruno Haible  <bruno@clisp.org>
52123
52124         * doc/gnulib.texi: Include safe-alloc.texi earlier.
52125         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
52126         spaces after a period. Put a space between a macro name and its
52127         argument list. Trivial rewordings.
52128         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
52129         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
52130         (main): Return 0 explicitly.
52131
52132 2009-02-21  Bruno Haible  <bruno@clisp.org>
52133
52134         Tests for module 'uninorm/filter'.
52135         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
52136         * modules/uninorm/filter-tests: New file.
52137
52138         New module 'uninorm/filter'.
52139         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
52140         uninorm_filter_flush, uninorm_filter_free): New declarations.
52141         * lib/uninorm/uninorm-filter.c: New file.
52142         * modules/uninorm/filter: New file.
52143
52144 2009-02-21  Bruno Haible  <bruno@clisp.org>
52145
52146         Tests for module 'uninorm/nfkc'.
52147         * tests/uninorm/test-nfkc.c: New file.
52148         * tests/uninorm/test-u8-nfkc.c: New file.
52149         * tests/uninorm/test-u16-nfkc.c: New file.
52150         * tests/uninorm/test-u32-nfkc.c: New file.
52151         * tests/uninorm/test-u32-nfkc-big.sh: New file.
52152         * tests/uninorm/test-u32-nfkc-big.c: New file.
52153         * modules/uninorm/nfkc-tests: New file.
52154
52155         New module 'uninorm/nfkc'.
52156         * lib/uninorm/nfkc.c: New file.
52157         * modules/uninorm/nfkc: New file.
52158
52159         Tests for module 'uninorm/nfkd'.
52160         * tests/uninorm/test-nfkd.c: New file.
52161         * tests/uninorm/test-u8-nfkd.c: New file.
52162         * tests/uninorm/test-u16-nfkd.c: New file.
52163         * tests/uninorm/test-u32-nfkd.c: New file.
52164         * tests/uninorm/test-u32-nfkd-big.sh: New file.
52165         * tests/uninorm/test-u32-nfkd-big.c: New file.
52166         * modules/uninorm/nfkd-tests: New file.
52167
52168         New module 'uninorm/nfkd'.
52169         * lib/uninorm/nfkd.c: New file.
52170         * modules/uninorm/nfkd: New file.
52171
52172         Tests for module 'uninorm/nfc'.
52173         * tests/uninorm/test-nfc.c: New file.
52174         * tests/uninorm/test-u8-nfc.c: New file.
52175         * tests/uninorm/test-u16-nfc.c: New file.
52176         * tests/uninorm/test-u32-nfc.c: New file.
52177         * tests/uninorm/test-u32-nfc-big.sh: New file.
52178         * tests/uninorm/test-u32-nfc-big.c: New file.
52179         * modules/uninorm/nfc-tests: New file.
52180
52181         New module 'uninorm/nfc'.
52182         * lib/uninorm/nfc.c: New file.
52183         * modules/uninorm/nfc: New file.
52184
52185         Tests for module 'uninorm/nfd'.
52186         * tests/uninorm/test-nfd.c: New file.
52187         * tests/uninorm/test-u8-nfd.c: New file.
52188         * tests/uninorm/test-u16-nfd.c: New file.
52189         * tests/uninorm/test-u32-nfd.c: New file.
52190         * tests/uninorm/test-u32-nfd-big.sh: New file.
52191         * tests/uninorm/test-u32-nfd-big.c: New file.
52192         * tests/uninorm/test-u32-normalize-big.h: New file.
52193         * tests/uninorm/test-u32-normalize-big.c: New file.
52194         * tests/uninorm/NormalizationTest.txt: New file, created from
52195         Unicode 5.1.0 NormalizationTest.txt.
52196         * modules/uninorm/nfd-tests: New file.
52197
52198         New module 'uninorm/nfd'.
52199         * lib/uninorm/nfd.c: New file.
52200         * modules/uninorm/nfd: New file.
52201
52202         New module 'uninorm/u32-normalize'.
52203         * lib/uninorm/u32-normalize.c: New file.
52204         * modules/uninorm/u32-normalize: New file.
52205
52206         New module 'uninorm/u16-normalize'.
52207         * lib/uninorm/u16-normalize.c: New file.
52208         * modules/uninorm/u16-normalize: New file.
52209
52210         New module 'uninorm/u8-normalize'.
52211         * lib/uninorm/u8-normalize.c: New file.
52212         * lib/uninorm/normalize-internal.h: New file.
52213         * lib/uninorm/u-normalize-internal.h: New file.
52214         * modules/uninorm/u8-normalize: New file.
52215
52216         New module 'uninorm/decompose-internal'.
52217         * lib/uninorm/decompose-internal.c: New file.
52218         * modules/uninorm/decompose-internal: New file.
52219
52220         Tests for module 'uninorm/composition'.
52221         * tests/uninorm/test-composition.c: New file.
52222         * modules/uninorm/composition-tests: New file.
52223
52224         New module 'uninorm/composition'.
52225         * lib/uninorm/composition.c: New file.
52226         * lib/uninorm/composition-table.gperf: New file, generated by
52227         gen-uni-tables.
52228         * modules/uninorm/composition: New file.
52229
52230         Tests for module 'uninorm/compat-decomposition'.
52231         * tests/uninorm/test-compat-decomposition.c: New file.
52232         * modules/uninorm/compat-decomposition-tests: New file.
52233
52234         New module 'uninorm/compat-decomposition'.
52235         * lib/uninorm/decompose-internal.h: New file.
52236         * lib/uninorm/compat-decomposition.c: New file.
52237         * modules/uninorm/compat-decomposition: New file.
52238
52239         Tests for module 'uninorm/canonical-decomposition'.
52240         * tests/uninorm/test-canonical-decomposition.c: New file.
52241         * modules/uninorm/canonical-decomposition-tests: New file.
52242
52243         New module 'uninorm/canonical-decomposition'.
52244         * lib/uninorm/canonical-decomposition.c: New file.
52245         * modules/uninorm/canonical-decomposition: New file.
52246
52247         Tests for module 'uninorm/decomposition'.
52248         * tests/uninorm/test-decomposition.c: New file.
52249         * modules/uninorm/decomposition-tests: New file.
52250
52251         New module 'uninorm/decomposition'.
52252         * lib/uninorm/decomposition.c: New file.
52253         * modules/uninorm/decomposition: New file.
52254
52255         New module 'uninorm/decomposition-table'.
52256         * lib/uninorm/decomposition-table.h: New file.
52257         * lib/uninorm/decomposition-table.c: New file.
52258         * lib/uninorm/decomposition-table1.h: New file, generated by
52259         gen-uni-tables.
52260         * lib/uninorm/decomposition-table2.h: New file, generated by
52261         gen-uni-tables.
52262         * modules/uninorm/decomposition-table: New file.
52263
52264         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
52265         (UC_DECOMP_*): New enumeration items.
52266         (get_decomposition): New function.
52267         (struct decomp_table): New type.
52268         (output_decomposition, output_decomposition_tables): New functions.
52269         (unicode_composition_exclusions): New variable.
52270         (fill_composition_exclusions, debug_output_composition_tables): New
52271         functions.
52272         (main): Accept one more argument. Invoke fill_composition_exclusions.
52273         Output decomposition and composition tables.
52274
52275         New module 'uninorm/base'.
52276         * lib/uninorm.h: New file.
52277         * lib/unictype.h: Update comment.
52278         * modules/uninorm/base: New file.
52279
52280 2009-02-21  David Lutterkort  <lutter@redhat.com>
52281
52282         Tests for module 'safe-alloc'.
52283         * tests/test-safe-alloc.c: New file.
52284         * modules/safe-alloc-tests: New file.
52285
52286         New module 'safe-alloc'.
52287         * lib/safe-alloc.h: New file.
52288         * lib/safe-alloc.c: New file.
52289         * m4/safe-alloc.m4: New file.
52290         * modules/safe-alloc: New file.
52291         * doc/safe-alloc.texi: New file.
52292         * doc/gnulib.texi: Include it.
52293         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
52294         safe-alloc.
52295
52296 2009-02-18  Bruno Haible  <bruno@clisp.org>
52297
52298         Fix link error on non-glibc systems.
52299         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
52300         variable.
52301         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52302
52303 2009-02-18  Jim Meyering  <meyering@redhat.com>
52304
52305         fts: avoid used-uninitialized error due to recent change
52306         * lib/fts.c (fts_read): Guard uses of the new member,
52307         parent->fts_n_dirs_remaining, since it's not relevant for
52308         the parent of a directory specified on the command-line.
52309
52310 2009-02-17  James Youngman  <jay@gnu.org>
52311             Bruno Haible  <bruno@clisp.org>
52312
52313         * m4/include_next.m4: Reformulate comment.
52314
52315 2009-02-16  Jim Meyering  <meyering@redhat.com>
52316
52317         fts: add #if guards so that the fts_lgpl module still builds
52318         * lib/fts.c: Guard just-added hash-table-using parts with
52319         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
52320         Reported by Simon Josefsson.
52321
52322 2009-02-15  Bruno Haible  <bruno@clisp.org>
52323
52324         * modules/array-mergesort-tests: New file.
52325         * tests/test-array-mergesort.c: New file.
52326
52327         New module 'array-mergesort'.
52328         * modules/array-mergesort: New file.
52329         * lib/array-mergesort.h: New file.
52330
52331 2009-02-15  Bruno Haible  <bruno@clisp.org>
52332
52333         Fix 2009-02-07 commit.
52334         * lib/gen-uni-tables.c (output_predicate, output_category,
52335         output_combclass, output_bidi_category, output_decimal_digit,
52336         output_digit, output_numeric, output_mirror, output_scripts,
52337         output_ident_category, output_simple_mapping): Fix format directives.
52338         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
52339
52340 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
52341
52342         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
52343         fixes are available from IBM.
52344
52345 2009-02-13  Jim Meyering  <meyering@redhat.com>
52346
52347         fts: arrange not to stat non-directories in more cases
52348         This makes GNU find (when it doesn't need to stat each file)
52349         *much* more efficient at traversing reiserfs file systems.
52350         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
52351         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
52352         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
52353         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
52354         (leaf_optimization_applies): New function.
52355         (LCO_hash, LCO_compare): New helper functions.
52356         (link_count_optimize_ok): New function.
52357         (fts_stat): Initialize new member (if dir).
52358         (fts_read): Decrement parent's fts_n_dirs_remaining count if
52359         we've just stat'ed a directory.  Skip the stat call when possible.
52360         ---
52361         Note this AFS-related exchange:
52362         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
52363         and note find's pioctl call in find/fstype.c.
52364         But that is necessary only if you want to enable the
52365         optimization for AFS, and for now, I don't.
52366
52367         fts: move a function definition "up" (no semantic change)
52368         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
52369         "up" to precede upcoming use of a related function.
52370
52371 2009-02-11  Jim Meyering  <meyering@redhat.com>
52372
52373         fts: correct internal computation of nlinks (optimization-related)
52374         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
52375         whether the current entry is a directory, so don't test it.
52376
52377 2009-02-10  Bruno Haible  <bruno@clisp.org>
52378
52379         Tests for module 'uniwbrk/ulc-wordbreaks'.
52380         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
52381         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
52382         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
52383
52384         Tests for module 'uniwbrk/u32-wordbreaks'.
52385         * modules/uniwbrk/u32-wordbreaks-tests: New file.
52386         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
52387
52388         Tests for module 'uniwbrk/u16-wordbreaks'.
52389         * modules/uniwbrk/u16-wordbreaks-tests: New file.
52390         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
52391
52392         Tests for module 'uniwbrk/u8-wordbreaks'.
52393         * modules/uniwbrk/u8-wordbreaks-tests: New file.
52394         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
52395
52396 2009-02-10  Bruno Haible  <bruno@clisp.org>
52397
52398         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
52399         property.
52400         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
52401         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
52402         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
52403
52404 2009-02-10  Simon Josefsson  <simon@josefsson.org>
52405
52406         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
52407         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
52408
52409 2009-02-10  Bruno Haible  <bruno@clisp.org>
52410
52411         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
52412         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
52413         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
52414         * lib/unilbrk/u8-possible-linebreaks.c: Update.
52415         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
52416         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
52417
52418 2009-02-09  Simon Josefsson  <simon@josefsson.org>
52419
52420         * lib/sockets.h (gl_fd_to_handle): New function.
52421
52422         * tests/test-sockets.c: Call gl_fd_to_handle.
52423
52424 2009-02-09  Bruno Haible  <bruno@clisp.org>
52425
52426         * doc/havelib.texi: Document the conventions on bi-arch systems.
52427
52428 2009-02-08  Bruno Haible  <bruno@clisp.org>
52429
52430         Document the AC_LIB_LINKFLAGS macro.
52431         * doc/havelib.texi: New file, mostly written on 2005-05-24.
52432         * doc/gnulib.texi: Include it.
52433
52434 2009-02-08  Bruno Haible  <bruno@clisp.org>
52435
52436         Fix wrong order of sections, compared to TOC.
52437         * doc/gnulib.texi: Include relocatable-maint.texi after the
52438         "Regular expressions" node, not before.
52439
52440 2009-02-08  Bruno Haible  <bruno@clisp.org>
52441
52442         Tests for module 'unicase/totitle'.
52443         * modules/unicase/totitle-tests: New file.
52444
52445         Tests for module 'unicase/tolower'.
52446         * modules/unicase/tolower-tests: New file.
52447
52448         Tests for module 'unicase/toupper'.
52449         * modules/unicase/toupper-tests: New file.
52450         * tests/unicase/test-mapping-part1.h: New file.
52451         * tests/unicase/test-mapping-part2.h: New file.
52452
52453         New module 'unicase/totitle'.
52454         * modules/unicase/totitle: New file.
52455         * lib/unicase/totitle.c: New file.
52456
52457         New module 'unicase/tolower'.
52458         * modules/unicase/tolower: New file.
52459         * lib/unicase/tolower.c: New file.
52460
52461         New module 'unicase/toupper'.
52462         * modules/unicase/toupper: New file.
52463         * lib/unicase/toupper.c: New file.
52464         * lib/unicase/simple-mapping.h: New file.
52465
52466         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
52467         (mapping_table): New structure.
52468         (output_simple_mapping): New function.
52469         (main): Invoke output_simple_mapping_test and output_simple_mapping.
52470         * modules/gen-uni-tables (Description): Update.
52471         * lib/unicase/toupper.h: New file, automatically generated by
52472         gen-uni-tables.
52473         * lib/unicase/tolower.h: New file, automatically generated by
52474         gen-uni-tables.
52475         * lib/unicase/totitle.h: New file, automatically generated by
52476         gen-uni-tables.
52477         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
52478         gen-uni-tables.
52479         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
52480         gen-uni-tables.
52481         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
52482         gen-uni-tables.
52483
52484         New module 'unicase/base'.
52485         * modules/unicase/base: New file.
52486         * lib/unicase.h: New file.
52487
52488 2009-02-08  Bruno Haible  <bruno@clisp.org>
52489
52490         New module 'uniwbrk/ulc-wordbreaks'.
52491         * modules/uniwbrk/ulc-wordbreaks: New file.
52492         * lib/uniwbrk/ulc-wordbreaks.c: New file.
52493
52494         New module 'uniwbrk/u32-wordbreaks'.
52495         * modules/uniwbrk/u32-wordbreaks: New file.
52496         * lib/uniwbrk/u32-wordbreaks.c: New file.
52497
52498         New module 'uniwbrk/u16-wordbreaks'.
52499         * modules/uniwbrk/u16-wordbreaks: New file.
52500         * lib/uniwbrk/u16-wordbreaks.c: New file.
52501
52502         New module 'uniwbrk/u8-wordbreaks'.
52503         * modules/uniwbrk/u8-wordbreaks: New file.
52504         * lib/uniwbrk/u8-wordbreaks.c: New file.
52505         * lib/uniwbrk/u-wordbreaks.h: New file.
52506
52507         New module 'uniwbrk/table'.
52508         * modules/uniwbrk/table: New file.
52509         * lib/uniwbrk/wbrktable.h: New file.
52510         * lib/uniwbrk/wbrktable.c: New file.
52511
52512         New module 'uniwbrk/wordbreak-property'.
52513         * modules/uniwbrk/wordbreak-property: New file.
52514         * lib/uniwbrk/wordbreak-property.c: New file.
52515
52516         * lib/gen-uni-tables.c (WBP_*): New enum items.
52517         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
52518         (unicode_org_wbp): New variable.
52519         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
52520         New functions.
52521         (wbp_table): New structure.
52522         (output_wbp, output_wbrk_tables): New functions.
52523         (main): Accept additional argument. Invoke fill_org_wbp,
52524         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
52525         output_wbrk_tables.
52526         * modules/gen-uni-tables (Description): Update.
52527         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
52528         gen-uni-tables.
52529
52530         New module 'uniwbrk/base'.
52531         * modules/uniwbrk/base: New file.
52532         * lib/uniwbrk.h: New file.
52533
52534 2009-02-08  Bruno Haible  <bruno@clisp.org>
52535
52536         Update to Unicode 5.1.0.
52537         * lib/gen-uni-tables.c (is_property_alphabetic): Include
52538         U+2185..U+2188.
52539         (is_property_default_ignorable_code_point): Don't include characters
52540         of category Cc or Cs and not-a-characters.
52541         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
52542         U+0D79, U+109E, U+109F, U+A60C.
52543         * lib/unictype/bidi_of.h: Regenerated.
52544         * lib/unictype/blocks.h: Regenerated.
52545         * lib/unictype/categ_C.h: Regenerated.
52546         * lib/unictype/categ_Cf.h: Regenerated.
52547         * lib/unictype/categ_Cn.h: Regenerated.
52548         * lib/unictype/categ_L.h: Regenerated.
52549         * lib/unictype/categ_Ll.h: Regenerated.
52550         * lib/unictype/categ_Lm.h: Regenerated.
52551         * lib/unictype/categ_Lo.h: Regenerated.
52552         * lib/unictype/categ_Lu.h: Regenerated.
52553         * lib/unictype/categ_M.h: Regenerated.
52554         * lib/unictype/categ_Mc.h: Regenerated.
52555         * lib/unictype/categ_Me.h: Regenerated.
52556         * lib/unictype/categ_Mn.h: Regenerated.
52557         * lib/unictype/categ_N.h: Regenerated.
52558         * lib/unictype/categ_Nd.h: Regenerated.
52559         * lib/unictype/categ_Nl.h: Regenerated.
52560         * lib/unictype/categ_No.h: Regenerated.
52561         * lib/unictype/categ_P.h: Regenerated.
52562         * lib/unictype/categ_Pd.h: Regenerated.
52563         * lib/unictype/categ_Pe.h: Regenerated.
52564         * lib/unictype/categ_Pf.h: Regenerated.
52565         * lib/unictype/categ_Pi.h: Regenerated.
52566         * lib/unictype/categ_Po.h: Regenerated.
52567         * lib/unictype/categ_Ps.h: Regenerated.
52568         * lib/unictype/categ_S.h: Regenerated.
52569         * lib/unictype/categ_Sk.h: Regenerated.
52570         * lib/unictype/categ_Sm.h: Regenerated.
52571         * lib/unictype/categ_So.h: Regenerated.
52572         * lib/unictype/categ_of.h: Regenerated.
52573         * lib/unictype/combining.h: Regenerated.
52574         * lib/unictype/ctype_alnum.h: Regenerated.
52575         * lib/unictype/ctype_alpha.h: Regenerated.
52576         * lib/unictype/ctype_graph.h: Regenerated.
52577         * lib/unictype/ctype_lower.h: Regenerated.
52578         * lib/unictype/ctype_print.h: Regenerated.
52579         * lib/unictype/ctype_punct.h: Regenerated.
52580         * lib/unictype/ctype_upper.h: Regenerated.
52581         * lib/unictype/decdigit.h: Regenerated.
52582         * lib/unictype/digit.h: Regenerated.
52583         * lib/unictype/mirror.h: Regenerated.
52584         * lib/unictype/numeric.h: Regenerated.
52585         * lib/unictype/pr_alphabetic.h: Regenerated.
52586         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
52587         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
52588         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
52589         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
52590         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
52591         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
52592         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
52593         * lib/unictype/pr_combining.h: Regenerated.
52594         * lib/unictype/pr_dash.h: Regenerated.
52595         * lib/unictype/pr_decimal_digit.h: Regenerated.
52596         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
52597         * lib/unictype/pr_deprecated.h: Regenerated.
52598         * lib/unictype/pr_diacritic.h: Regenerated.
52599         * lib/unictype/pr_extender.h: Regenerated.
52600         * lib/unictype/pr_format_control.h: Regenerated.
52601         * lib/unictype/pr_grapheme_base.h: Regenerated.
52602         * lib/unictype/pr_grapheme_extend.h: Regenerated.
52603         * lib/unictype/pr_grapheme_link.h: Regenerated.
52604         * lib/unictype/pr_id_continue.h: Regenerated.
52605         * lib/unictype/pr_id_start.h: Regenerated.
52606         * lib/unictype/pr_ideographic.h: Regenerated.
52607         * lib/unictype/pr_ignorable_control.h: Regenerated.
52608         * lib/unictype/pr_lowercase.h: Regenerated.
52609         * lib/unictype/pr_math.h: Regenerated.
52610         * lib/unictype/pr_numeric.h: Regenerated.
52611         * lib/unictype/pr_other_alphabetic.h: Regenerated.
52612         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
52613         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
52614         * lib/unictype/pr_other_id_continue.h: Regenerated.
52615         * lib/unictype/pr_other_lowercase.h: Regenerated.
52616         * lib/unictype/pr_other_math.h: Regenerated.
52617         * lib/unictype/pr_punctuation.h: Regenerated.
52618         * lib/unictype/pr_sentence_terminal.h: Regenerated.
52619         * lib/unictype/pr_soft_dotted.h: Regenerated.
52620         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
52621         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
52622         * lib/unictype/pr_unified_ideograph.h: Regenerated.
52623         * lib/unictype/pr_uppercase.h: Regenerated.
52624         * lib/unictype/pr_xid_continue.h: Regenerated.
52625         * lib/unictype/pr_xid_start.h: Regenerated.
52626         * lib/unictype/pr_zero_width.h: Regenerated.
52627         * lib/unictype/scripts.h: Regenerated.
52628         * lib/unictype/scripts_byname.gperf: Regenerated.
52629         * lib/unictype/sy_java_ident.h: Regenerated.
52630         * lib/unilbrk/lbrkprop1.h: Regenerated.
52631         * lib/unilbrk/lbrkprop2.h: Regenerated.
52632         * tests/unictype/test-categ_C.c: Regenerated.
52633         * tests/unictype/test-categ_Cf.c: Regenerated.
52634         * tests/unictype/test-categ_Cn.c: Regenerated.
52635         * tests/unictype/test-categ_L.c: Regenerated.
52636         * tests/unictype/test-categ_Ll.c: Regenerated.
52637         * tests/unictype/test-categ_Lm.c: Regenerated.
52638         * tests/unictype/test-categ_Lo.c: Regenerated.
52639         * tests/unictype/test-categ_Lu.c: Regenerated.
52640         * tests/unictype/test-categ_M.c: Regenerated.
52641         * tests/unictype/test-categ_Mc.c: Regenerated.
52642         * tests/unictype/test-categ_Me.c: Regenerated.
52643         * tests/unictype/test-categ_Mn.c: Regenerated.
52644         * tests/unictype/test-categ_N.c: Regenerated.
52645         * tests/unictype/test-categ_Nd.c: Regenerated.
52646         * tests/unictype/test-categ_Nl.c: Regenerated.
52647         * tests/unictype/test-categ_No.c: Regenerated.
52648         * tests/unictype/test-categ_P.c: Regenerated.
52649         * tests/unictype/test-categ_Pd.c: Regenerated.
52650         * tests/unictype/test-categ_Pe.c: Regenerated.
52651         * tests/unictype/test-categ_Pf.c: Regenerated.
52652         * tests/unictype/test-categ_Pi.c: Regenerated.
52653         * tests/unictype/test-categ_Po.c: Regenerated.
52654         * tests/unictype/test-categ_Ps.c: Regenerated.
52655         * tests/unictype/test-categ_S.c: Regenerated.
52656         * tests/unictype/test-categ_Sk.c: Regenerated.
52657         * tests/unictype/test-categ_Sm.c: Regenerated.
52658         * tests/unictype/test-categ_So.c: Regenerated.
52659         * tests/unictype/test-ctype_alnum.c: Regenerated.
52660         * tests/unictype/test-ctype_alpha.c: Regenerated.
52661         * tests/unictype/test-ctype_graph.c: Regenerated.
52662         * tests/unictype/test-ctype_lower.c: Regenerated.
52663         * tests/unictype/test-ctype_print.c: Regenerated.
52664         * tests/unictype/test-ctype_punct.c: Regenerated.
52665         * tests/unictype/test-ctype_upper.c: Regenerated.
52666         * tests/unictype/test-decdigit.h: Regenerated.
52667         * tests/unictype/test-digit.h: Regenerated.
52668         * tests/unictype/test-numeric.h: Regenerated.
52669         * tests/unictype/test-pr_alphabetic.c: Regenerated.
52670         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
52671         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
52672         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
52673         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
52674         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
52675         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
52676         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
52677         * tests/unictype/test-pr_combining.c: Regenerated.
52678         * tests/unictype/test-pr_dash.c: Regenerated.
52679         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
52680         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
52681         * tests/unictype/test-pr_deprecated.c: Regenerated.
52682         * tests/unictype/test-pr_diacritic.c: Regenerated.
52683         * tests/unictype/test-pr_extender.c: Regenerated.
52684         * tests/unictype/test-pr_format_control.c: Regenerated.
52685         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
52686         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
52687         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
52688         * tests/unictype/test-pr_id_continue.c: Regenerated.
52689         * tests/unictype/test-pr_id_start.c: Regenerated.
52690         * tests/unictype/test-pr_ideographic.c: Regenerated.
52691         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
52692         * tests/unictype/test-pr_lowercase.c: Regenerated.
52693         * tests/unictype/test-pr_math.c: Regenerated.
52694         * tests/unictype/test-pr_numeric.c: Regenerated.
52695         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
52696         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
52697         Regenerated.
52698         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
52699         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
52700         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
52701         * tests/unictype/test-pr_other_math.c: Regenerated.
52702         * tests/unictype/test-pr_punctuation.c: Regenerated.
52703         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
52704         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
52705         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
52706         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
52707         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
52708         * tests/unictype/test-pr_uppercase.c: Regenerated.
52709         * tests/unictype/test-pr_xid_continue.c: Regenerated.
52710         * tests/unictype/test-pr_xid_start.c: Regenerated.
52711         * tests/unictype/test-pr_zero_width.c: Regenerated.
52712
52713         Update to Unicode 5.1.0.
52714         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
52715         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
52716         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
52717         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
52718         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
52719         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
52720         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
52721         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
52722         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
52723         (nonspacing_table_ind): Update.
52724         * tests/uniwidth/test-uc_width2.sh: Update expected result.
52725
52726         Update to Unicode 5.1.0.
52727         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
52728         code transform.
52729         * lib/uniname/uniname.c (unicode_character_name,
52730         unicode_name_character): Add the range 0x1Fxxx to the code transform.
52731         * lib/uniname/uninames.h: Regenerated.
52732         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
52733
52734 2009-02-07  Bruno Haible  <bruno@clisp.org>
52735
52736         Merge gen-ctype and gen-lbrk into a single program.
52737         * lib/gen-uni-tables.c: New file, incorporating
52738         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
52739         Add directory prefixes to the names of the generated files.
52740         * lib/unictype/gen-ctype.c: Remove file.
52741         * lib/unilbrk/gen-lbrk.c: Remove file.
52742         * modules/gen-uni-tables: New file.
52743         * modules/unictype/gen-ctype: Remove file.
52744         * modules/unilbrk/gen-lbrk: Remove file.
52745
52746 2009-02-07  Bruno Haible  <bruno@clisp.org>
52747
52748         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
52749
52750         New module 'unistr/u32-strcoll'.
52751         * modules/unistr/u32-strcoll: New file.
52752         * lib/unistr/u32-strcoll.c: New file.
52753
52754         New module 'unistr/u16-strcoll'.
52755         * modules/unistr/u16-strcoll: New file.
52756         * lib/unistr/u16-strcoll.c: New file.
52757
52758         New module 'unistr/u8-strcoll'.
52759         * modules/unistr/u8-strcoll: New file.
52760         * lib/unistr/u8-strcoll.c: New file.
52761         * lib/unistr/u-strcoll.h: New file.
52762
52763 2009-02-07  Bruno Haible  <bruno@clisp.org>
52764
52765         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
52766         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52767         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
52768         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
52769         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
52770         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
52771
52772 2009-02-07  Bruno Haible  <bruno@clisp.org>
52773
52774         Make 64-bit clean.
52775         * lib/unictype/gen-ctype.c (output_predicate, output_category,
52776         output_combclass, output_bidi_category, output_decimal_digit,
52777         output_digit, output_numeric, output_mirror, output_scripts,
52778         output_ident_category): Use proper width specifier in format strings.
52779
52780 2009-02-07  Bruno Haible  <bruno@clisp.org>
52781
52782         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
52783         failure behaviour.
52784
52785 2009-02-07  Jim Meyering  <meyering@redhat.com>
52786
52787         regex: avoid compilation failure with upcoming gcc-4.4
52788         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
52789         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
52790         "... error: integer overflow in preprocessor expression".
52791
52792 2009-02-05  Ben Pfaff  <blp@gnu.org>
52793
52794         Fix link errors on Windows when close module is used.
52795         * modules/close: Add $(LIB_CLOSE) to Link section.
52796         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
52797         $(LIB_CLOSE) on Windows.
52798
52799 2009-02-05  Jim Meyering  <meyering@redhat.com>
52800
52801         still avoid unused-parameter warnings, but do it cleanly
52802         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
52803         (get_fs_usage): Cast to void instead.
52804         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
52805         (dev_from_mount_options, read_file_system_list): Cast to void.
52806         Prompted by Bruno Haible.
52807
52808 2009-02-04  Jim Meyering  <meyering@redhat.com>
52809
52810         fsusage.c: correct copyright year
52811         * lib/fsusage.c: Reflect year in which the change is pushed into
52812
52813         avoid misc. warnings
52814         * lib/fsusage.c (UNUSED_PARAM): Define.
52815         (get_fs_usage): Mark parameter "disk" as unused.
52816         * lib/getugroups.c (getgrent): Use "void" in prototype.
52817         * lib/mountlist.c: Mark unused parameters.
52818         (read_file_system_list): Declare a local with "const".
52819         * lib/nanosleep.c (getnow): Declare static.
52820         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
52821
52822         dirfd: set errno upon failure
52823         * lib/dirfd.c: Include <errno.h>.
52824         Set errno to ENOTSUP when returning -1.
52825         * modules/dirfd (Depends-on): Add errno.
52826         Suggested by John Kodis <kodis@comcast.net>.
52827
52828 2009-02-01  Bruno Haible  <bruno@clisp.org>
52829
52830         Don't assume sizeof (long) >= sizeof (void *).
52831         * lib/memcmp.c: Include stdint.h.
52832         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
52833         srcp2 to 'const byte *'.
52834         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
52835         types to uintptr_t.
52836         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
52837         * modules/memcmp (Depends-on): Add stdint.
52838         Reported by Ozkan Sezer <sezeroz@gmail.com>.
52839
52840 2009-01-30  Eric Blake  <ebb9@byu.net>
52841
52842         fix more require-before-expand issues
52843         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
52844         expand, AC_PROG_AWK.
52845         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
52846
52847 2009-01-28  Eric Blake  <ebb9@byu.net>
52848
52849         version-etc: use consistent URL formatting
52850         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
52851         Improve formatting.  Use fputs for string without %.
52852
52853 2009-01-28  Jim Meyering  <meyering@redhat.com>
52854
52855         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
52856         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
52857         "underquoted definition of NAME" from autoconf-2.59.
52858
52859 2009-01-28  Bruno Haible  <bruno@clisp.org>
52860
52861         * doc/gnulib.texi: Add "Obsolete modules" to index.
52862
52863 2009-01-28  Jim Meyering  <meyering@redhat.com>
52864
52865         useless-if-before-free: recognize more variants
52866         * build-aux/useless-if-before-free: Also recognize e.g.,
52867         if (NULL != p) free (p);
52868
52869 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
52870
52871         test-getaddrinfo: skip (don't fail) this test when there's no network
52872         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
52873         on the presumption that it means you lack network access.
52874
52875 2009-01-26  Jim Meyering  <meyering@redhat.com>
52876
52877         fflush: avoid warnings on modern systems
52878         * lib/fflush.c (rpl_fflush): Move declarations of locals,
52879         pos and result, into scopes where they're used.
52880
52881 2009-01-26  Eric Blake  <ebb9@byu.net>
52882
52883         Silence warning reintroduced by recent extensions patch.
52884         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
52885         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
52886         autoconf.
52887
52888         Backport improved autoconf semantics of AC_DEFUN_ONCE.
52889         * m4/00gnulib.m4: New file.
52890         * gnulib-tool (func_get_filelist): Always use it.
52891         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
52892         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
52893
52894 2009-01-25  Bruno Haible  <bruno@clisp.org>
52895
52896         Make test-quotearg work on MacOS X and AIX.
52897         * tests/test-quotearg.sh: New file.
52898         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
52899         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
52900         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
52901         include <libintl.h>.
52902         (fake_locale): Remove variable.
52903         (gettext, dgettext, dcgettext): Remove functions.
52904         (main): Instead of setting a fake locale, set a real locale. Call
52905         textdomain and bindtextdomain.
52906         * modules/quotearg-tests (Files): Add the new files.
52907         (Depends-on): Add gettext, setenv, unsetenv.
52908         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52909         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
52910         Augment TESTS_ENVIRONMENT.
52911
52912 2009-01-25  Bruno Haible  <bruno@clisp.org>
52913
52914         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
52915         fr_FR.ISO8859-1 locale on MacOS X.
52916         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
52917         ja_JP.eucJP locale on MacOS X.
52918         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
52919         zh_CN.GB18030 locale on MacOS X.
52920
52921 2009-01-25  Bruno Haible  <bruno@clisp.org>
52922
52923         Avoid link errors on MacOS X 10.3.
52924         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
52925         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
52926
52927 2009-01-25  Bruno Haible  <bruno@clisp.org>
52928
52929         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52930         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
52931         * modules/pipe (Files): Remove m4/posix_spawn.m4.
52932         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52933         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
52934         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52935         posix_spawnattr_init, posix_spawnattr_setsigmask,
52936         posix_spawnattr_setflags, posix_spawnattr_destroy.
52937
52938         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
52939         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
52940         * modules/execute (Files): Remove m4/posix_spawn.m4.
52941         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
52942         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
52943         posix_spawnattr_init, posix_spawnattr_setsigmask,
52944         posix_spawnattr_setflags, posix_spawnattr_destroy.
52945
52946 2009-01-25  Bruno Haible  <bruno@clisp.org>
52947
52948         * lib/glthread/threadlib.c: Include <stdlib.h>.
52949
52950 2009-01-25  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/glthread/threadlib.c (dummy): New declaration.
52953
52954 2009-01-25  Bruno Haible  <bruno@clisp.org>
52955
52956         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
52957         multibyte characters also for the GB18030 encoding. Don't crash when
52958         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
52959
52960 2009-01-25  Bruno Haible  <bruno@clisp.org>
52961
52962         Avoid redefining 'struct random_data' on OSF/1 5.1.
52963         * lib/stdlib.in.h: Include <random.h> if it exists.
52964         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
52965         HAVE_RANDOM_H. Include <random.h> when testing whether
52966         'struct random_data' exists.
52967         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
52968
52969 2009-01-25  Bruno Haible  <bruno@clisp.org>
52970
52971         Don't install charset.alias on MacOS X >= 10.3.
52972         * lib/localcharset.c (DARWIN7): New macro.
52973         (get_charset_aliases): Hardcode the result for Darwin7.
52974         * modules/localcharset (install-exec-local): Don't install
52975         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
52976
52977 2009-01-25  Bruno Haible  <bruno@clisp.org>
52978
52979         Don't install charset.alias on mingw and Cygwin.
52980         * modules/localcharset (install-exec-local): Don't install
52981         charset.alias on mingw and Cygwin, if the file does not yet exist.
52982         The result for these platforms is hardcoded in localcharset.c.
52983
52984 2009-01-25  Bruno Haible  <bruno@clisp.org>
52985
52986         Make it possible again to use AC_GNU_SOURCE together with gnulib.
52987         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
52988         before requiring AC_USE_SYSTEM_EXTENSIONS.
52989
52990 2009-01-25  Jim Meyering  <meyering@redhat.com>
52991
52992         c-strtod: avoid warnings
52993         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
52994         "assignment discards qualifiers from pointer target type" warnings.
52995
52996 2009-01-24  Bruno Haible  <bruno@clisp.org>
52997
52998         Add support for non-UTF-8 locales on MacOS X.
52999         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
53000         canonical encodings. For Darwin 7 and newer, don't map traditional
53001         encodings to UTF-8.
53002         Reported by Vincent Lefevre <vincent@vinc17.org>
53003         at <http://savannah.gnu.org/bugs/?25235>.
53004
53005 2009-01-24  Bruno Haible  <bruno@clisp.org>
53006
53007         * doc/gnulib.texi (Obsolete modules): New section.
53008         Reported by Mike Frysinger <vapier@gentoo.org>.
53009
53010 2009-01-24  Bruno Haible  <bruno@clisp.org>
53011
53012         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
53013         (%.dvi): New rule.
53014
53015 2009-01-24  Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
53018         Reported by Eric Blake.
53019
53020 2009-01-24  Bruno Haible  <bruno@clisp.org>
53021
53022         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
53023         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
53024         Reported by Gary V. Vaughan <gary@gnu.org>.
53025
53026 2009-01-24  Bruno Haible  <bruno@clisp.org>
53027
53028         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
53029
53030 2009-01-23  Bruno Haible  <bruno@clisp.org>
53031
53032         Make c-strtod, c-strtold usable in libraries.
53033         * lib/c-strtod.c: Include string.h instead of xalloc.h.
53034         (C_STRTOD): Call strdup instead of xstrdup.
53035         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
53036         * modules/c-strtold (Depends-on): Likewise.
53037         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
53038         * NEWS: Mention the change.
53039         Reported by Michael Gold <mgold@ncf.ca>.
53040
53041 2009-01-23  Jim Meyering  <meyering@redhat.com>
53042
53043         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
53044         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
53045         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
53046
53047 2009-01-23  Simon Josefsson  <simon@josefsson.org>
53048
53049         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
53050         GNU CoreUtils.
53051         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
53052         * modules/version-etc (Description): Update.
53053
53054 2009-01-22  Bruno Haible  <bruno@clisp.org>
53055
53056         Cache the C locale object.
53057         * lib/c-strtod.c (c_locale_cache): New variable.
53058         (c_locale): New function.
53059         (C_STRTOD): Use it, and don't call freelocale.
53060         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
53061         Suggested by Paolo Bonzini.
53062
53063 2009-01-21  Bruno Haible  <bruno@clisp.org>
53064
53065         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
53066         conditions other than overflow.
53067
53068 2009-01-21  Bruno Haible  <bruno@clisp.org>
53069
53070         * lib/c-strtod.c: Include errno.h.
53071         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
53072         value from STRTOD_L and STRTOD.
53073
53074 2009-01-21  Bruno Haible  <bruno@clisp.org>
53075         and Jim Meyering  <meyering@redhat.com>
53076
53077         nanosleep: skip configure test (fail it) for apple universal builds
53078         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
53079         universal builds, assume that nanosleep does not work.
53080         * modules/nanosleep (Depends-on): Add multiarch.
53081
53082         mktime: skip configure test (fail it) for apple universal builds
53083         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
53084         universal builds, assume that mktime does not work.
53085         * modules/mktime (Depends-on): Add multiarch.
53086
53087 2009-01-21  Eric Blake  <ebb9@byu.net>
53088
53089         multiarch: avoid expand-before-require warning
53090         * modules/multiarch (configure.ac): Require, rather than expand,
53091         gl_MULTIARCH.
53092         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
53093         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
53094         enforce that all clients require it.  Partial reversion of
53095         2008-12-29 patch.
53096
53097         error: avoid expand-before-require warning
53098         * modules/errno (configure.ac): Require, rather than expand,
53099         gl_HEADER_ERRNO_H.
53100         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
53101         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
53102         enforce that all clients require it.
53103
53104         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
53105         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
53106         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
53107         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
53108
53109 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
53110
53111         Revert:
53112         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53113
53114         regex: do not depend on obsolete modules.
53115         * modules/regex: Remove memcmp and memmove.
53116
53117 2009-01-20  Bruno Haible  <bruno@clisp.org>
53118
53119         Make the 'link' module link on Windows NT 4.
53120         * lib/link.c (_WIN32_WINNT): Don't define.
53121         (CreateHardLinkFuncType): New type.
53122         (CreateHardLinkFunc, initialized): New variables.
53123         (initialize): New function.
53124         (link): Invoke CreateHardLink indirectly through the function pointer.
53125
53126 2009-01-20  Bruno Haible  <bruno@clisp.org>
53127
53128         Fix compilation failure on mingw.
53129         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
53130
53131 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
53132
53133         * doc/c-strtod.texi: Mention a couple of restrictions.
53134
53135 2009-01-20  Jim Meyering  <meyering@redhat.com>
53136
53137         gettimeofday: move more declarations out of functions
53138         * lib/gettimeofday.c: Move extern declarations of tzset and
53139         gmtime out of containing functions.  Prompted by Bruno Haible.
53140
53141 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
53142
53143         regex: do not depend on obsolete modules.
53144         * modules/regex: Remove memcmp and memmove.
53145
53146 2009-01-19  Bruno Haible  <bruno@clisp.org>
53147
53148         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53149         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
53150         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53151         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
53152         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
53153
53154 2009-01-19  Bruno Haible  <bruno@clisp.org>
53155
53156         * tests/test-link.c: Include <errno.h>.
53157         (main): Exit with code 77 when a hard link cannot be created due to
53158         the file system.
53159         * tests/test-link.sh: Skip test when a hard link cannot be created due
53160         to the file system.
53161         Suggested by Eric Blake.
53162
53163 2009-01-19  Martin Lambers  <marlam@marlam.de>
53164
53165         * modules/link-tests: New file.
53166         * tests/test-link.sh: New file.
53167         * tests/test-link.c: New file.
53168
53169 2009-01-19  Eric Blake  <ebb9@byu.net>
53170
53171         doc: mention another function added in cygwin 1.7.0
53172         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
53173         Another new function in cygwin 1.7.
53174
53175 2009-01-19  Bruno Haible  <bruno@clisp.org>
53176
53177         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
53178         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
53179         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
53180         gl_BIGENDIAN, not AC_C_BIGENDIAN.
53181         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
53182         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
53183         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
53184         * m4/md4.m4 (gl_MD4): Likewise.
53185         * m4/md5.m4 (gl_MD5): Likewise.
53186         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
53187         * m4/sha1.m4 (gl_SHA1): Likewise.
53188         * m4/sha256.m4 (gl_SHA256): Likewise.
53189         * m4/sha512.m4 (gl_SHA512): Likewise.
53190
53191 2009-01-19  Bruno Haible  <bruno@clisp.org>
53192
53193         * modules/uniname/uniname-tests (Depends-on): Add progname.
53194         * tests/uniname/test-uninames.c: Include progname.h.
53195         (main): Call set_program_name.
53196
53197         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
53198         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
53199         (main): Call set_program_name.
53200
53201         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
53202         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
53203         (main): Call set_program_name.
53204
53205         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
53206         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
53207         (main): Call set_program_name.
53208
53209         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
53210         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
53211         (main): Call set_program_name.
53212
53213         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
53214         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
53215         (main): Call set_program_name.
53216
53217         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
53218         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
53219         (main): Call set_program_name.
53220
53221         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
53222         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
53223         (main): Call set_program_name.
53224
53225         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
53226         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
53227         (main): Call set_program_name.
53228
53229 2009-01-19  Eric Blake  <ebb9@byu.net>
53230
53231         test-unistd: test previous patch
53232         * tests/test-unistd.c: Test *_FILENO macros.
53233
53234         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
53235         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53236         Guarantee a definition.
53237         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
53238         * modules/unistd-safer (Depends-on): Add dependency on unistd.
53239         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
53240         * lib/dup-safer.c (STDERR_FILENO): Likewise.
53241         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53242         Likewise.
53243         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
53244         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
53245         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
53246         Likewise.
53247         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
53248         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
53249         (STDERR_FILENO): Likewise.
53250         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
53251         (STDERR_FILENO): Likewise.
53252         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
53253         (STDERR_FILENO): Likewise.
53254         Reported by Elbert Pol.
53255
53256 2009-01-19  Eric Blake  <ebb9@byu.net>
53257
53258         doc: mention more functions added in cygwin 1.7.0
53259         * doc/posix-functions/abort.texi (abort): Update wording related
53260         to cygwin.
53261         * doc/posix-functions/daylight.texi (daylight): Likewise.
53262         * doc/posix-functions/optarg.texi (optarg): Likewise.
53263         * doc/posix-functions/optarg.texi (opterr): Likewise.
53264         * doc/posix-functions/optarg.texi (optind): Likewise.
53265         * doc/posix-functions/optarg.texi (optopt): Likewise.
53266         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
53267         worked in 1.5.x, and was withdrawn in 1.7.
53268         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
53269         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
53270         cygwin versions.
53271         * doc/posix-functions/perror.texi (perror): Likewise.
53272         * doc/posix-functions/printf.texi (printf): Likewise.
53273         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
53274         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
53275         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
53276         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
53277         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
53278         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
53279         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53280         Likewise.
53281         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53282         Likewise.
53283         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
53284         this function.
53285         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
53286         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
53287         Likewise.
53288         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
53289         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
53290         * doc/posix-functions/confstr.texi (confstr): Likewise.
53291         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
53292         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
53293         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
53294         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
53295         * doc/posix-functions/fputws.texi (fputws): Likewise.
53296         * doc/posix-functions/fwide.texi (fwide): Likewise.
53297         * doc/posix-functions/getwc.texi (getwc): Likewise.
53298         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
53299         * doc/posix-functions/putwc.texi (putwc): Likewise.
53300         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
53301         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
53302         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
53303         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
53304         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
53305         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
53306         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
53307         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
53308         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
53309         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
53310         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
53311
53312 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53313
53314         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
53315         * lib/ioctl.c: Include <sys/ioctl.h>.
53316
53317 2009-01-19  Simon Josefsson  <simon@josefsson.org>
53318
53319         * modules/getdate-tests (Depends-on): Add progname.
53320         * tests/test-getdate.c: Use progname module, to avoid link errors
53321         on non-glibc systems.
53322
53323 2009-01-18  Simon Josefsson  <simon@josefsson.org>
53324
53325         * modules/filenamecat-tests (Depends-on): Add progname.
53326         * modules/fstrcmp-tests (Depends-on): Likewise.
53327
53328         * tests/test-filenamecat.c: Use progname module, to avoid link
53329         errors on non-glibc systems.
53330         * tests/test-fstrcmp.c: Likewise.
53331
53332 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
53333
53334         gettimeofday: avoid warning: nested extern declaration of 'localtime'
53335         * lib/gettimeofday.c: Move extern declaration out of function.
53336
53337 2009-01-18  Bruno Haible  <bruno@clisp.org>
53338
53339         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
53340         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
53341         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
53342
53343 2009-01-18  Bruno Haible  <bruno@clisp.org>
53344
53345         * lib/strftime.c (MEMPCPY): Remove unused macro.
53346         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
53347
53348 2009-01-18  Martin Lambers  <marlam@marlam.de>
53349
53350         New module 'link'.
53351         * lib/unistd.in.h (link): New declaration.
53352         * lib/link.c: New file.
53353         * m4/link.m4: New file.
53354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
53355         HAVE_LINK.
53356         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
53357         * modules/link: New file.
53358         * doc/posix-functions/link.texi: Mention the new module.
53359
53360 2009-01-18  Bruno Haible  <bruno@clisp.org>
53361
53362         * tests/test-avltree_list.c (main): Call set_program_name.
53363         * tests/test-avltree_oset.c (main): Likewise.
53364         * tests/test-obstack-printf.c: Include progname.h.
53365         (main): Call set_program_name.
53366         * tests/test-quotearg.c: Include progname.h.
53367         (main): Call set_program_name.
53368         * tests/test-xmemdup0.c: Include progname.h.
53369         (main): Call set_program_name.
53370
53371 2009-01-18  Bruno Haible  <bruno@clisp.org>
53372
53373         New module 'alphasort'.
53374         * lib/dirent.in.h (alphasort): New declaration.
53375         * lib/alphasort.c: New file, from glibc with modifications.
53376         * m4/alphasort.m4: New file.
53377         * modules/alphasort: New file.
53378         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
53379         HAVE_ALPHASORT.
53380         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
53381         HAVE_ALPHASORT.
53382         * doc/posix-functions/alphasort.texi: Mention the new module and the
53383         portability problems.
53384
53385 2009-01-18  Bruno Haible  <bruno@clisp.org>
53386
53387         New module 'scandir'.
53388         * lib/dirent.in.h (scandir): New declaration.
53389         * lib/scandir.c: New file, from glibc with modifications.
53390         * m4/scandir.m4: New file.
53391         * modules/scandir: New file.
53392         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
53393         HAVE_SCANDIR.
53394         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
53395         HAVE_SCANDIR.
53396         * doc/posix-functions/scandir.texi: Mention the new module and the
53397         portability problems.
53398
53399 2009-01-17  Bruno Haible  <bruno@clisp.org>
53400
53401         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
53402         Update documentation.
53403         (func_remove_suffix): Escape all dots in the suffix. Update
53404         documentation.
53405         (func_filter_filelist): Update documentation.
53406         Reported by Ralf Wildenhues.
53407
53408 2009-01-17  Bruno Haible  <bruno@clisp.org>
53409
53410         * modules/dprintf-posix-tests: New file.
53411         * tests/test-dprintf-posix.sh: New file.
53412         * tests/test-dprintf-posix.c: New file.
53413
53414         New modules 'dprintf', 'dprintf-posix'.
53415         * lib/stdio.in.h (dprintf): New declaration.
53416         * lib/dprintf.c: New file.
53417         * m4/dprintf.m4: New file.
53418         * m4/dprintf-posix.m4: New file.
53419         * modules/dprintf: New file.
53420         * modules/dprintf-posix: New file.
53421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
53422         HAVE_DPRINTF, REPLACE_DPRINTF.
53423         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
53424         HAVE_DPRINTF, REPLACE_DPRINTF.
53425         * doc/posix-functions/dprintf.texi: Mention the new modules.
53426
53427 2009-01-17  Bruno Haible  <bruno@clisp.org>
53428
53429         * modules/vdprintf-posix-tests: New file.
53430         * tests/test-vdprintf-posix.sh: New file.
53431         * tests/test-vdprintf-posix.c: New file.
53432
53433         New modules 'vdprintf', 'vdprintf-posix'.
53434         * lib/stdio.in.h (vdprintf): New declaration.
53435         * lib/vdprintf.c: New file.
53436         * m4/vdprintf.m4: New file.
53437         * m4/vdprintf-posix.m4: New file.
53438         * modules/vdprintf: New file.
53439         * modules/vdprintf-posix: New file.
53440         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
53441         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53442         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
53443         HAVE_VDPRINTF, REPLACE_VDPRINTF.
53444         * doc/posix-functions/vdprintf.texi: Mention the new modules.
53445
53446 2009-01-17  Bruno Haible  <bruno@clisp.org>
53447
53448         Fix replacement of fopen on mingw.
53449         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
53450         mingw.
53451
53452 2009-01-17  Bruno Haible  <bruno@clisp.org>
53453
53454         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
53455         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
53456
53457 2009-01-17  Bruno Haible  <bruno@clisp.org>
53458
53459         Avoid test-fflush2.sh failure on mingw.
53460         * tests/test-fflush2.c: Include binary-io.h.
53461         (main): Put standard input into binary mode.
53462         * modules/fflush-tests (Depends-on): Add binary-io.
53463
53464 2009-01-17  Bruno Haible  <bruno@clisp.org>
53465
53466         * lib/wchar.in.h: In another particular situation, include only the
53467         system's <wchar.h> file.
53468         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
53469         Reported by Albert Chin-A-Young <china@thewrittenword.com>
53470         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
53471
53472 2009-01-17  Bruno Haible  <bruno@clisp.org>
53473
53474         Support for stripping executables in --enable-relocatable.
53475         * build-aux/install-reloc: Expect one more argument, or an environment
53476         variable RELOC_STRIP_PROG. If set, strip the destination program and
53477         its wrapper.
53478         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
53479         RELOC_STRIP_PROG.
53480         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
53481         to set RELOCATABLE_STRIP.
53482         * NEWS: Mention the new Makefile requirement.
53483
53484 2009-01-17  Bruno Haible  <bruno@clisp.org>
53485
53486         * build-aux/install-reloc: Remove debugging information left over by
53487         C compiler on MacOS X.
53488
53489 2009-01-17  Bruno Haible  <bruno@clisp.org>
53490
53491         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
53492         * lib/progreloc.c (find_executable): Fix type of pointer passed to
53493         _NSGetExecutablePath.
53494
53495 2009-01-16  Jim Meyering  <meyering@redhat.com>
53496
53497         strerror: avoid warnings about discarding "const"
53498         * lib/strerror.c (rpl_strerror): Instead of returning a const
53499         string from each and every "case", use a variable, and add a single
53500         cast after the switch.
53501
53502 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
53503
53504         * lib/arpa_inet.in.h: Add extern "C" block for C++.
53505
53506 2009-01-16  Bruno Haible  <bruno@clisp.org>
53507
53508         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
53509         array initializer syntax that also works in C++ mode.
53510         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53511
53512 2009-01-16  Jim Meyering  <meyering@redhat.com>
53513
53514         poll: suppress a warning
53515         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
53516         to ignore "...unsigned expression < 0 is always false" warnings.
53517
53518 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
53519
53520         poll: remove declarations of unused variables
53521         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
53522         sockbuf and optlen.
53523
53524 2009-01-15  Bruno Haible  <bruno@clisp.org>
53525
53526         Make fflush-after-ungetc POSIX compliant on BSD systems.
53527         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
53528         (clear_ungetc_buffer): Implement also for other systems.
53529         (rpl_fflush): On glibc systems, invoke
53530         clear_ungetc_buffer_preserving_position. Otherwise, invoke
53531         clear_ungetc_buffer after fetching the stream's position, not before.
53532
53533 2009-01-15  Bruno Haible  <bruno@clisp.org>
53534
53535         Make fflush-after-ungetc POSIX compliant on glibc systems.
53536         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
53537         after ungetc.
53538         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
53539         (rpl_fflush): On glibc systems, simply call the system's fflush
53540         function after clearing the ungetc buffer.
53541         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
53542         Instead, lseek only to the end of file, then use the system's fseeko
53543         for the rest. On glibc systems, reset the EOF indicator bit.
53544
53545 2009-01-15  Jim Meyering  <meyering@redhat.com>
53546
53547         openmp.m4: revert quote-adding change, for portability to older autoconf
53548         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
53549         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
53550         Simon Josefsson noticed the problem when using autoconf-2.61.
53551
53552 2009-01-15  Bruno Haible  <bruno@clisp.org>
53553
53554         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
53555         * tests/test-fflush2.c (ASSERT): Always fail.
53556         (main): Add two tests for fflush() after ungetc(), taking into account
53557         the Austin Group's clarification.
53558         Suggested by Eric Blake.
53559
53560 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
53561
53562         mktime.m4: remove K&R-style function prototypes
53563         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
53564         for the Sun C++ compiler.
53565
53566 2009-01-14  Bruno Haible  <bruno@clisp.org>
53567
53568         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
53569         while including <wchar.h>.
53570         * lib/wchar.in.h: In two particular situations on HP-UX, include only
53571         the system's <wchar.h> file.
53572         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53573
53574 2009-01-14  Bruno Haible  <bruno@clisp.org>
53575
53576         * m4/csharp.m4: Don't mention gettext on the serial number line.
53577         * m4/csharpexec.m4: Likewise.
53578         * m4/eaccess.m4: Likewise.
53579         * m4/javaexec.m4: Likewise.
53580         * m4/sig_atomic_t.m4: Likewise.
53581         * m4/tmpdir.m4: Likewise.
53582         * m4/intldir.m4: Bump gettext version.
53583         * m4/lib-ld.m4: Likewise.
53584
53585 2009-01-14  Bruno Haible  <bruno@clisp.org>
53586
53587         * lib/progname.c (set_program_name): Add more comments.
53588         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
53589
53590 2009-01-14  Simon Josefsson  <simon@josefsson.org>
53591
53592         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
53593         were sys/stat.h does not define it.
53594
53595 2009-01-14  Jim Meyering  <meyering@redhat.com>
53596
53597         many *.m4 files: improve m4 quoting
53598         99% of this change was performed by running the following commands:
53599         git ls-files | grep '\.m4$' | xargs perl -pi \
53600           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
53601           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53602           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
53603           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
53604         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
53605         The remainder were to add Copyright dates, increment serial numbers,
53606         undo some changes in comments, exclude m4/intl.m4, and add quotes
53607         around the "1" in ",1" where the unusual spacing prohibited the
53608         above regexps from doing the job.  For more details, see
53609         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
53610         * m4/acl.m4: Modified.
53611         * m4/afs.m4: Likewise.
53612         * m4/alloca.m4: Likewise.
53613         * m4/argp.m4: Likewise.
53614         * m4/argz.m4: Likewise.
53615         * m4/atexit.m4: Likewise.
53616         * m4/bison-i18n.m4: Likewise.
53617         * m4/bison.m4: Likewise.
53618         * m4/byteswap.m4: Likewise.
53619         * m4/c-stack.m4: Likewise.
53620         * m4/c-strtod.m4: Likewise.
53621         * m4/calloc.m4: Likewise.
53622         * m4/canonicalize-lgpl.m4: Likewise.
53623         * m4/chown.m4: Likewise.
53624         * m4/clock_time.m4: Likewise.
53625         * m4/codeset.m4: Likewise.
53626         * m4/copy-file.m4: Likewise.
53627         * m4/csharp.m4: Likewise.
53628         * m4/csharpcomp.m4: Likewise.
53629         * m4/csharpexec.m4: Likewise.
53630         * m4/d-ino.m4: Likewise.
53631         * m4/d-type.m4: Likewise.
53632         * m4/dirfd.m4: Likewise.
53633         * m4/double-slash-root.m4: Likewise.
53634         * m4/eaccess.m4: Likewise.
53635         * m4/eealloc.m4: Likewise.
53636         * m4/environ.m4: Likewise.
53637         * m4/errno_h.m4: Likewise.
53638         * m4/euidaccess.m4: Likewise.
53639         * m4/execute.m4: Likewise.
53640         * m4/fatal-signal.m4: Likewise.
53641         * m4/fchdir.m4: Likewise.
53642         * m4/fcntl_h.m4: Likewise.
53643         * m4/fileblocks.m4: Likewise.
53644         * m4/filenamecat.m4: Likewise.
53645         * m4/findprog.m4: Likewise.
53646         * m4/flexmember.m4: Likewise.
53647         * m4/fnmatch.m4: Likewise.
53648         * m4/fopen.m4: Likewise.
53649         * m4/fpending.m4: Likewise.
53650         * m4/fprintf-posix.m4: Likewise.
53651         * m4/free.m4: Likewise.
53652         * m4/frexp.m4: Likewise.
53653         * m4/frexpl.m4: Likewise.
53654         * m4/fsusage.m4: Likewise.
53655         * m4/ftruncate.m4: Likewise.
53656         * m4/gc-camellia.m4: Likewise.
53657         * m4/gc-random.m4: Likewise.
53658         * m4/gc.m4: Likewise.
53659         * m4/getaddrinfo.m4: Likewise.
53660         * m4/getcwd-abort-bug.m4: Likewise.
53661         * m4/getcwd-path-max.m4: Likewise.
53662         * m4/getdate.m4: Likewise.
53663         * m4/getdomainname.m4: Likewise.
53664         * m4/getgroups.m4: Likewise.
53665         * m4/gethostname.m4: Likewise.
53666         * m4/gethrxtime.m4: Likewise.
53667         * m4/getline.m4: Likewise.
53668         * m4/getloadavg.m4: Likewise.
53669         * m4/getndelim2.m4: Likewise.
53670         * m4/getpass.m4: Likewise.
53671         * m4/gettext.m4: Likewise.
53672         * m4/gettime.m4: Likewise.
53673         * m4/gettimeofday.m4: Likewise.
53674         * m4/gnulib-common.m4: Likewise.
53675         * m4/group-member.m4: Likewise.
53676         * m4/host-os.m4: Likewise.
53677         * m4/iconv.m4: Likewise.
53678         * m4/iconv_open.m4: Likewise.
53679         * m4/inet_ntop.m4: Likewise.
53680         * m4/inet_pton.m4: Likewise.
53681         * m4/inline.m4: Likewise.
53682         * m4/intldir.m4: Likewise.
53683         * m4/intlmacosx.m4: Likewise.
53684         * m4/intmax.m4: Likewise.
53685         * m4/intmax_t.m4: Likewise.
53686         * m4/inttypes.m4: Likewise.
53687         * m4/inttypes_h.m4: Likewise.
53688         * m4/inttypes-pri.m4: Likewise.
53689         * m4/isapipe.m4: Likewise.
53690         * m4/isnand.m4: Likewise.
53691         * m4/isnanf.m4: Likewise.
53692         * m4/isnanl.m4: Likewise.
53693         * m4/javacomp.m4: Likewise.
53694         * m4/javaexec.m4: Likewise.
53695         * m4/jm-winsz1.m4: Likewise.
53696         * m4/jm-winsz2.m4: Likewise.
53697         * m4/lchown.m4: Likewise.
53698         * m4/lcmessage.m4: Likewise.
53699         * m4/ldexpl.m4: Likewise.
53700         * m4/lib-ld.m4: Likewise.
53701         * m4/lib-link.m4: Likewise.
53702         * m4/libsigsegv.m4: Likewise.
53703         * m4/link-follow.m4: Likewise.
53704         * m4/localcharset.m4: Likewise.
53705         * m4/locale-fr.m4: Likewise.
53706         * m4/locale-ja.m4: Likewise.
53707         * m4/locale-tr.m4: Likewise.
53708         * m4/locale-zh.m4: Likewise.
53709         * m4/lock.m4: Likewise.
53710         * m4/longlong.m4: Likewise.
53711         * m4/ls-mntd-fs.m4: Likewise.
53712         * m4/lstat.m4: Likewise.
53713         * m4/malloc.m4: Likewise.
53714         * m4/mathl.m4: Likewise.
53715         * m4/mbrtowc.m4: Likewise.
53716         * m4/mbstate_t.m4: Likewise.
53717         * m4/mbswidth.m4: Likewise.
53718         * m4/memchr.m4: Likewise.
53719         * m4/memcmp.m4: Likewise.
53720         * m4/memcpy.m4: Likewise.
53721         * m4/memmem.m4: Likewise.
53722         * m4/memmove.m4: Likewise.
53723         * m4/mempcpy.m4: Likewise.
53724         * m4/memrchr.m4: Likewise.
53725         * m4/memset.m4: Likewise.
53726         * m4/minmax.m4: Likewise.
53727         * m4/mkdir-slash.m4: Likewise.
53728         * m4/mkdtemp.m4: Likewise.
53729         * m4/mktime.m4: Likewise.
53730         * m4/mmap-anon.m4: Likewise.
53731         * m4/mountlist.m4: Likewise.
53732         * m4/nanosleep.m4: Likewise.
53733         * m4/nls.m4: Likewise.
53734         * m4/nocrash.m4: Likewise.
53735         * m4/open.m4: Likewise.
53736         * m4/openat.m4: Likewise.
53737         * m4/openmp.m4: Likewise.
53738         * m4/pathmax.m4: Likewise.
53739         * m4/perl.m4: Likewise.
53740         * m4/physmem.m4: Likewise.
53741         * m4/pipe.m4: Likewise.
53742         * m4/po.m4: Likewise.
53743         * m4/poll.m4: Likewise.
53744         * m4/posixtm.m4: Likewise.
53745         * m4/posixver.m4: Likewise.
53746         * m4/printf-frexp.m4: Likewise.
53747         * m4/printf-frexpl.m4: Likewise.
53748         * m4/printf-posix.m4: Likewise.
53749         * m4/printf-posix-rpl.m4: Likewise.
53750         * m4/printf.m4: Likewise.
53751         * m4/progtest.m4: Likewise.
53752         * m4/putenv.m4: Likewise.
53753         * m4/readline.m4: Likewise.
53754         * m4/readlink.m4: Likewise.
53755         * m4/readutmp.m4: Likewise.
53756         * m4/realloc.m4: Likewise.
53757         * m4/regex.m4: Likewise.
53758         * m4/relocatable.m4: Likewise.
53759         * m4/relocatable-lib.m4: Likewise.
53760         * m4/rename-dest-slash.m4: Likewise.
53761         * m4/rename.m4: Likewise.
53762         * m4/rmdir-errno.m4: Likewise.
53763         * m4/rmdir.m4: Likewise.
53764         * m4/roundf.m4: Likewise.
53765         * m4/roundl.m4: Likewise.
53766         * m4/rpmatch.m4: Likewise.
53767         * m4/save-cwd.m4: Likewise.
53768         * m4/selinux-selinux-h.m4: Likewise.
53769         * m4/setenv.m4: Likewise.
53770         * m4/settime.m4: Likewise.
53771         * m4/sig2str.m4: Likewise.
53772         * m4/sig_atomic_t.m4: Likewise.
53773         * m4/signalblocking.m4: Likewise.
53774         * m4/signbit.m4: Likewise.
53775         * m4/sigpipe.m4: Likewise.
53776         * m4/sockets.m4: Likewise.
53777         * m4/sockpfaf.m4: Likewise.
53778         * m4/st_dm_mode.m4: Likewise.
53779         * m4/stat-time.m4: Likewise.
53780         * m4/stdbool.m4: Likewise.
53781         * m4/stdint.m4: Likewise.
53782         * m4/stdint_h.m4: Likewise.
53783         * m4/stpcpy.m4: Likewise.
53784         * m4/stpncpy.m4: Likewise.
53785         * m4/strcase.m4: Likewise.
53786         * m4/strchrnul.m4: Likewise.
53787         * m4/strcspn.m4: Likewise.
53788         * m4/strdup.m4: Likewise.
53789         * m4/strftime.m4: Likewise.
53790         * m4/strndup.m4: Likewise.
53791         * m4/strnlen.m4: Likewise.
53792         * m4/strpbrk.m4: Likewise.
53793         * m4/strptime.m4: Likewise.
53794         * m4/strsep.m4: Likewise.
53795         * m4/strtod.m4: Likewise.
53796         * m4/strtoimax.m4: Likewise.
53797         * m4/strtok_r.m4: Likewise.
53798         * m4/strtol.m4: Likewise.
53799         * m4/strtoll.m4: Likewise.
53800         * m4/strtoul.m4: Likewise.
53801         * m4/strtoull.m4: Likewise.
53802         * m4/strtoumax.m4: Likewise.
53803         * m4/strverscmp.m4: Likewise.
53804         * m4/threadlib.m4: Likewise.
53805         * m4/timegm.m4: Likewise.
53806         * m4/tm_gmtoff.m4: Likewise.
53807         * m4/tmpdir.m4: Likewise.
53808         * m4/tmpfile.m4: Likewise.
53809         * m4/tzset.m4: Likewise.
53810         * m4/uintmax_t.m4: Likewise.
53811         * m4/unlinkdir.m4: Likewise.
53812         * m4/unlocked-io.m4: Likewise.
53813         * m4/uptime.m4: Likewise.
53814         * m4/userspec.m4: Likewise.
53815         * m4/utimbuf.m4: Likewise.
53816         * m4/utime.m4: Likewise.
53817         * m4/utimes-null.m4: Likewise.
53818         * m4/utimes.m4: Likewise.
53819         * m4/vararrays.m4: Likewise.
53820         * m4/vasnprintf.m4: Likewise.
53821         * m4/vfprintf-posix.m4: Likewise.
53822         * m4/vprintf-posix.m4: Likewise.
53823         * m4/wait-process.m4: Likewise.
53824         * m4/wchar_t.m4: Likewise.
53825         * m4/wint_t.m4: Likewise.
53826         * m4/write-any-file.m4: Likewise.
53827         * m4/yield.m4: Likewise.
53828
53829 2009-01-13  Bruno Haible  <bruno@clisp.org>
53830
53831         Avoid test-copy-file.sh failures when ACL support insufficient.
53832         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
53833         TESTS_ENVIRONMENT.
53834         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
53835         Reported by Jim Meyering.
53836
53837 2009-01-13  Bruno Haible  <bruno@clisp.org>
53838
53839         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
53840         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
53841         * modules/unistdio/u8-printf-parse (Files): Likewise.
53842         * modules/unistdio/u32-printf-parse (Files): Likewise.
53843         * modules/unistdio/ulc-printf-parse (Files): Likewise.
53844
53845 2009-01-13  Simon Josefsson  <simon@josefsson.org>
53846
53847         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
53848         and m4/inttypes_h.m4 too.
53849
53850 2009-01-12  Eric Blake  <ebb9@byu.net>
53851
53852         tests: IRIX 6.2 cc can't compile -0.0 into .data
53853         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
53854         rather than at compile-time.
53855         * tests/test-floorl.c (minus_zero): Likewise.
53856         * tests/test-frexpl.c (minus_zero): Likewise.
53857         * tests/test-isnan.c (minus_zerol): Likewise.
53858         * tests/test-isnanl.h (minus_zero): Likewise.
53859         * tests/test-ldexpl.c (minus_zero): Likewise.
53860         * tests/test-roundl.c (minus_zero): Likewise.
53861         * tests/test-signbit.c (minus_zerol): Likewise.
53862         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53863         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53864         * tests/test-truncl.c (minus_zero): Likewise.
53865         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53866         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53867         Reported by Tom G. Christensen and Nelson H. F. Beebe.
53868
53869 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53870
53871         regex: fix glibc bug 9697
53872         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
53873         handling.
53874
53875 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53876
53877         regex: fix glibc bug 697
53878         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
53879         being NULL also if there are no backreferences.
53880
53881 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
53882
53883         regex: merge glibc changes
53884         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
53885         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
53886         re_string_skip_chars, re_string_reconstruct): Likewise.
53887         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
53888
53889 2009-01-07  Jim Meyering  <meyering@redhat.com>
53890
53891         poll: filter through cppi
53892         * lib/poll.c: Indent cpp directives to reflect nesting.
53893
53894 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
53895
53896         poll: don't return uninitialized
53897         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
53898
53899 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
53900
53901         avoid compile failure on AIX 6.1
53902         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
53903         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
53904
53905 2009-01-04  Jim Meyering  <meyering@redhat.com>
53906
53907         remove duplicate inclusion of <stdio.h>
53908         * tests/test-fprintf-posix.c: Likewise.
53909         * tests/test-printf-posix.c: Likewise.
53910         * tests/test-snprintf-posix.c: Likewise.
53911         * tests/test-sprintf-posix.c: Likewise.
53912         * tests/test-vasprintf-posix.c: Likewise.
53913         * tests/test-vfprintf-posix.c: Likewise.
53914         * tests/test-vprintf-posix.c: Likewise.
53915         * tests/test-vsnprintf-posix.c: Likewise.
53916         * tests/test-vsprintf-posix.c: Likewise.
53917
53918 2009-01-03  Jim Meyering  <meyering@redhat.com>
53919
53920         gnulib-tool: fix sed-based filtering
53921         * gnulib-tool (func_filter_filelist): Remove extra backslash
53922         in sed_fff_filter definition.
53923
53924 2009-01-02  Jim Meyering  <meyering@redhat.com>
53925
53926         strftime: avoid compilation failure on Solaris 2.6
53927         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
53928         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
53929         Don't #define mbrlen or mbsinit, since now they're guaranteed to
53930         be available.  Reported by Tom G. Christensen.  Details in
53931         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
53932
53933 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53934             Bruno Haible  <bruno@clisp.org>
53935
53936         Speed up gnulib-tool by doing more string processing through shell
53937         built-ins.
53938         * gnulib-tool (fast_func_append): New variable.
53939         (func_remove_prefix, func_remove_suffix): New functions.
53940         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
53941         (func_filter_filelist): New function.
53942         (func_get_dependencies): Use func_remove_suffix instead of sed.
53943         (func_get_automake_snippet): Use func_filter_filelist instead of a
53944         subshell and sed invocation.
53945
53946 2009-01-01  Bruno Haible  <bruno@clisp.org>
53947
53948         Fix a security bug.
53949         * gnulib-tool (func_import, import, update): Don't allow the characters
53950         '"', '$', '`', '\' in macro arguments that become part of commands that
53951         are evaluated.
53952
53953 2009-01-01  Bruno Haible  <bruno@clisp.org>
53954
53955         * gnulib-tool (func_reset_sigpipe): Add more comments.
53956
53957 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53958
53959         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
53960         func_emit_tests_Makefile_am, func_import): Abort loops early if we
53961         already know the answer.
53962
53963 2009-01-01  Jim Meyering  <meyering@redhat.com>
53964
53965         * lib/version-etc.c (version_etc_va): Update copyright year.
53966
53967 2008-12-30  Bruno Haible  <bruno@clisp.org>
53968
53969         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
53970         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
53971         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
53972
53973 2008-12-29  Eric Blake  <ebb9@byu.net>
53974
53975         multiarch: avoid autoconf AC_REQUIRE bug
53976         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
53977         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
53978         2.63 and older.
53979         Reported by Bruno Haible, and analyzed in
53980         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
53981
53982 2008-12-29  Bruno Haible  <bruno@clisp.org>
53983
53984         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
53985         files in subdirectories correctly.
53986         Reported by Ralf Wildenhues.
53987
53988 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53989
53990         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
53991         rather than 'join FILE -', for Solaris join.
53992
53993 2008-12-29  Bruno Haible  <bruno@clisp.org>
53994
53995         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
53996         quoting.
53997         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53998         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53999         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
54000         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
54001         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
54002         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
54003         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
54004         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
54005         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
54006         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
54007         * m4/nls.m4 (AM_NLS): Likewise.
54008         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
54009         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
54010         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
54011         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
54012         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
54013         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
54014         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
54015         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
54016         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
54017         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
54018         * m4/xsize.m4 (gl_XSIZE): Likewise.
54019         Suggested by Jim Meyering.
54020
54021 2008-11-17  Bruce Korb  <bkorb@gnu.org>
54022
54023         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
54024         * lib/parse-duration.c: use a switch instead of cascading if's.
54025
54026 2008-12-29  Eric Blake  <ebb9@byu.net>
54027
54028         wchar.h: supply WEOF on Irix 5.3
54029         * lib/wchar.in.h (wint_t): Also supply WEOF.
54030         * lib/wctype.in.h (wint_t): Likewise.
54031         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
54032         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
54033         Reported by Tom G. Christensen.
54034
54035 2008-12-26  Bruno Haible  <bruno@clisp.org>
54036
54037         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
54038         i486, i586, i686.
54039
54040 2008-12-26  Bruno Haible  <bruno@clisp.org>
54041
54042         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
54043
54044 2008-12-26  Bruno Haible  <bruno@clisp.org>
54045
54046         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
54047         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
54048         not __STDC_CONSTANT_MACROS.
54049         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54050
54051 2008-12-25  Bruno Haible  <bruno@clisp.org>
54052
54053         Add support for universal builds to vasnprintf.
54054         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
54055         universal builds, guess no.
54056         * modules/vasnprintf-posix (Depends-on): Add multiarch.
54057         * modules/vasprintf-posix (Depends-on): Likewise.
54058         * modules/fprintf-posix (Depends-on): Likewise.
54059         * modules/vfprintf-posix (Depends-on): Likewise.
54060         * modules/snprintf-posix (Depends-on): Likewise.
54061         * modules/vsnprintf-posix (Depends-on): Likewise.
54062         * modules/sprintf-posix (Depends-on): Likewise.
54063         * modules/vsprintf-posix (Depends-on): Likewise.
54064         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54065         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54066         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54067         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54068         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54069         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54070         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54071
54072         Add support for universal builds to <inttypes.h>.
54073         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
54074         _SCNu64_PREFIX): In Apple
54075         universal builds, define directly, using _LP64.
54076         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
54077         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
54078         * modules/inttypes (Depends-on): Add multiarch.
54079         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
54080
54081         Add support for universal builds to <stdint.h>.
54082         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
54083         universal builds, define directly, using _LP64.
54084         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
54085         Apple universal builds, don't test for the size and suffix of ptrdiff_t
54086         and size_t.
54087         * modules/stdint (Depends-on): Add multiarch.
54088         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
54089
54090         New module 'multiarch'.
54091         * modules/multiarch: New file.
54092         * m4/multiarch.m4: New file.
54093
54094 2008-12-25  Bruno Haible  <bruno@clisp.org>
54095
54096         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
54097
54098 2008-12-25  Bruno Haible  <bruno@clisp.org>
54099
54100         * modules/btowc (License): Relicense under LGPLv2+.
54101         * modules/mbsinit (License): Likewise.
54102         * modules/mbrtowc (License): Likewise.
54103         * modules/wcrtomb (License): Likewise.
54104         * modules/streq (License): Likewise.
54105         Reported by David Lutterkort <lutter@redhat.com>.
54106
54107 2008-12-23  Bruno Haible  <bruno@clisp.org>
54108
54109         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
54110
54111 2008-12-23  Bruno Haible  <bruno@clisp.org>
54112
54113         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
54114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
54115         GETADDRINFO_LIB, not in LIBS.
54116         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
54117         * modules/canon-host (Link): Likewise.
54118         * NEWS: Mention the change.
54119         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
54120         GETADDRINFO_LIB.
54121
54122 2008-12-22  Bruno Haible  <bruno@clisp.org>
54123
54124         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
54125         * doc/posix-functions/iswalpha_l.texi: Likewise.
54126         * doc/posix-functions/iswblank_l.texi: Likewise.
54127         * doc/posix-functions/iswcntrl_l.texi: Likewise.
54128         * doc/posix-functions/iswctype_l.texi: Likewise.
54129         * doc/posix-functions/iswdigit_l.texi: Likewise.
54130         * doc/posix-functions/iswgraph_l.texi: Likewise.
54131         * doc/posix-functions/iswlower_l.texi: Likewise.
54132         * doc/posix-functions/iswprint_l.texi: Likewise.
54133         * doc/posix-functions/iswpunct_l.texi: Likewise.
54134         * doc/posix-functions/iswspace_l.texi: Likewise.
54135         * doc/posix-functions/iswupper_l.texi: Likewise.
54136         * doc/posix-functions/iswxdigit_l.texi: Likewise.
54137         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
54138         * doc/posix-functions/open_wmemstream.texi: Likewise.
54139         * doc/posix-functions/swscanf.texi: Likewise.
54140         * doc/posix-functions/towctrans_l.texi: Likewise.
54141         * doc/posix-functions/towlower.texi: Likewise.
54142         * doc/posix-functions/towlower_l.texi: Likewise.
54143         * doc/posix-functions/towupper.texi: Likewise.
54144         * doc/posix-functions/towupper_l.texi: Likewise.
54145         * doc/posix-functions/vfwprintf.texi: Likewise.
54146         * doc/posix-functions/vfwscanf.texi: Likewise.
54147         * doc/posix-functions/vswscanf.texi: Likewise.
54148         * doc/posix-functions/vwprintf.texi: Likewise.
54149         * doc/posix-functions/vwscanf.texi: Likewise.
54150         * doc/posix-functions/wcpcpy.texi: Likewise.
54151         * doc/posix-functions/wcpncpy.texi: Likewise.
54152         * doc/posix-functions/wcscasecmp.texi: Likewise.
54153         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
54154         * doc/posix-functions/wcscoll_l.texi: Likewise.
54155         * doc/posix-functions/wcsdup.texi: Likewise.
54156         * doc/posix-functions/wcsncasecmp.texi: Likewise.
54157         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
54158         * doc/posix-functions/wcsnlen.texi: Likewise.
54159         * doc/posix-functions/wcsnrtombs.texi: Likewise.
54160         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
54161         * doc/posix-functions/wctrans_l.texi: Likewise.
54162         * doc/posix-functions/wctype_l.texi: Likewise.
54163         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
54164         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
54165         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
54166         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
54167         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
54168         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
54169         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
54170         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
54171         * doc/glibc-functions/wcschrnul.texi: Likewise.
54172         * doc/glibc-functions/wcsftime_l.texi: Likewise.
54173         * doc/glibc-functions/wcstod_l.texi: Likewise.
54174         * doc/glibc-functions/wcstof_l.texi: Likewise.
54175         * doc/glibc-functions/wcstol_l.texi: Likewise.
54176         * doc/glibc-functions/wcstold_l.texi: Likewise.
54177         * doc/glibc-functions/wcstoll_l.texi: Likewise.
54178         * doc/glibc-functions/wcstoq.texi: Likewise.
54179         * doc/glibc-functions/wcstoul_l.texi: Likewise.
54180         * doc/glibc-functions/wcstoull_l.texi: Likewise.
54181         * doc/glibc-functions/wcstouq.texi: Likewise.
54182         * doc/glibc-functions/wmempcpy.texi: Likewise.
54183
54184 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
54185             Eric Blake  <ebb9@byu.net>
54186             Paolo Bonzini  <bonzini@gnu.org>
54187             Bruno Haible  <bruno@clisp.org>
54188
54189         Make c-stack work on Haiku.
54190         * lib/c-stack.c (SA_ONSTACK): Define fallback.
54191         (c_stack_action): Use SA_ONSTACK flag.
54192
54193 2008-12-22  Bruno Haible  <bruno@clisp.org>
54194
54195         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
54196
54197 2008-12-22  Bruno Haible  <bruno@clisp.org>
54198
54199         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
54200         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
54201         being overridden.
54202         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
54203         New macros.
54204         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
54205         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
54206         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
54207         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
54208
54209 2008-12-22  Bruno Haible  <bruno@clisp.org>
54210
54211         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
54212         from test code.
54213
54214 2008-12-22  Eric Blake  <ebb9@byu.net>
54215
54216         Avoid gcc warnings on cygwin.
54217         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
54218         Avoid unused variable.
54219         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
54220         Likewise.
54221
54222 2008-12-22  Bruno Haible  <bruno@clisp.org>
54223
54224         Remove HAVE_MBRTOWC conditionals.
54225         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
54226         (mbscasecmp): Assume mbrtowc function.
54227         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
54228         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
54229         * lib/mbschr.c: Include mbuiter.h unconditionally.
54230         (mbschr): Assume mbrtowc function.
54231         * lib/mbscspn.c: Include mbuiter.h unconditionally.
54232         (mbscspn): Assume mbrtowc function.
54233         * lib/mbslen.c: Include mbuiter.h unconditionally.
54234         (mbslen): Assume mbrtowc function.
54235         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
54236         (mbsncasecmp): Assume mbrtowc function.
54237         * lib/mbsnlen.c: Include mbiter.h unconditionally.
54238         (mbsnlen): Assume mbrtowc function.
54239         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
54240         (mbspbrk): Assume mbrtowc function.
54241         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
54242         (mbspcasecmp): Assume mbrtowc function.
54243         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
54244         (mbsrchr): Assume mbrtowc function.
54245         * lib/mbssep.c: Include mbuiter.h unconditionally.
54246         (mbssep): Assume mbrtowc function.
54247         * lib/mbsspn.c: Include mbuiter.h unconditionally.
54248         (mbsspn): Assume mbrtowc function.
54249         * lib/mbsstr.c: Include mbuiter.h unconditionally.
54250         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
54251         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
54252         (mbstok_r): Assume mbrtowc function.
54253         * lib/propername.c: Include mbuiter.h unconditionally.
54254         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
54255         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
54256         (trim2): Assume mbrtowc function.
54257         * lib/mbswidth.c (mbsinit): Remove fallback definition.
54258         (mbsnwidth): Assume mbrtowc function.
54259         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
54260         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
54261         fallback definitions.
54262         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
54263
54264 2008-12-22  Bruno Haible  <bruno@clisp.org>
54265
54266         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
54267
54268 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
54269
54270         * modules/regex: Request emulations for the mb*/wc* functions we need.
54271         * m4/regex.m4: Don't look for those functions here.
54272         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
54273
54274 2008-12-22  Bruno Haible  <bruno@clisp.org>
54275
54276         * modules/fnmatch (Depends-on): Remove duplicated dependency.
54277
54278 2008-12-21  Bruno Haible  <bruno@clisp.org>
54279
54280         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
54281         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
54282         (Include): Remove conditionalization.
54283         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
54284         (Include): Remove conditionalization.
54285         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
54286         (Include): Remove conditionalization.
54287         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
54288         * m4/mbfile.m4 (gl_MBFILE): Likewise.
54289         * NEWS: Mention the change.
54290         Reported by Alan Hourihane <alanh@fairlite.co.uk>
54291         via Sergey Poznyakoff <gray@gnu.org.ua>.
54292
54293 2008-12-21  Bruno Haible  <bruno@clisp.org>
54294
54295         * MODULES.html.sh (Extended multibyte and wide character utilities
54296         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
54297         wcrtomb, wcsrtombs.
54298         (Support for systems lacking POSIX:2008): Add accept, bind, close,
54299         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
54300         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
54301         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
54302
54303 2008-12-21  Bruno Haible  <bruno@clisp.org>
54304
54305         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
54306
54307 2008-12-21  Bruno Haible  <bruno@clisp.org>
54308
54309         * modules/wcsnrtombs-tests: New file.
54310         * tests/test-wcsnrtombs1.sh: New file.
54311         * tests/test-wcsnrtombs2.sh: New file.
54312         * tests/test-wcsnrtombs3.sh: New file.
54313         * tests/test-wcsnrtombs4.sh: New file.
54314         * tests/test-wcsnrtombs.c: New file.
54315
54316         New module 'wcsnrtombs'.
54317         * lib/wchar.in.h (wcsnrtombs): New declaration.
54318         * lib/wcsnrtombs.c: New file.
54319         * lib/wcsrtombs-state.c: New file.
54320         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
54321         (internal_state): Remove variable.
54322         * m4/wcsnrtombs.m4: New file.
54323         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
54324         compilation units.
54325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
54326         HAVE_WCSNRTOMBS.
54327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
54328         HAVE_WCSNRTOMBS.
54329         * modules/wcsnrtombs: New file.
54330         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
54331         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
54332
54333 2008-12-21  Bruno Haible  <bruno@clisp.org>
54334
54335         * modules/wcsrtombs-tests: New file.
54336         * tests/test-wcsrtombs1.sh: New file.
54337         * tests/test-wcsrtombs2.sh: New file.
54338         * tests/test-wcsrtombs3.sh: New file.
54339         * tests/test-wcsrtombs4.sh: New file.
54340         * tests/test-wcsrtombs.c: New file.
54341
54342         New module 'wcsrtombs'.
54343         * lib/wchar.in.h (wcsrtombs): New declaration.
54344         * lib/wcsrtombs.c: New file.
54345         * m4/wcsrtombs.m4: New file.
54346         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
54347         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54348         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
54349         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
54350         * modules/wcsrtombs: New file.
54351         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
54352         bugs.
54353
54354 2008-12-21  Bruno Haible  <bruno@clisp.org>
54355
54356         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
54357         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
54358         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
54359         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
54360         if not correct.
54361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
54362         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
54363         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54364         m4/locale-zh.m4, m4/codeset.m4.
54365         * doc/posix-functions/wcrtomb.texi: Document the bug.
54366
54367 2008-12-21  Bruno Haible  <bruno@clisp.org>
54368
54369         Work around a btowc() bug on IRIX 6.5.
54370         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
54371         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
54372         REPLACE_WTOBC if not.
54373         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
54374         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
54375         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
54376
54377 2008-12-21  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/wcrtomb-tests: New file.
54380         * tests/test-wcrtomb.sh: New file.
54381         * tests/test-wcrtomb.c: New file.
54382
54383         New module 'wcrtomb'.
54384         * lib/wchar.in.h (wcrtomb): New declaration.
54385         * lib/wcrtomb.c: New file.
54386         * m4/wcrtomb.m4: New file.
54387         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
54388         HAVE_WCRTOMB.
54389         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
54390         HAVE_WCRTOMB.
54391         * modules/wcrtomb: New file.
54392         * doc/posix-functions/wcrtomb.texi: Mention the new module.
54393
54394 2008-12-21  Bruno Haible  <bruno@clisp.org>
54395
54396         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
54397         * modules/mbsrtowcs (Files): Likewise.
54398         * modules/wctob (Files): Likewise.
54399         * modules/c-strcase-tests (Files): Likewise.
54400         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
54401         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
54402         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
54403         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
54404         * modules/vasnprintf-posix-tests (Files): Likewise.
54405
54406 2008-12-21  William Pursell  <bill.pursell@gmail.com>
54407
54408         gitlog-to-changelog: pass all command-line arguments to git-log
54409         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
54410         it is sometimes convenient to filter the commits in various ways.
54411         gitlog-to-changelog only allows --since to specify a start date,
54412         but git-log itself supports many other filtering mechanisms.
54413         At the moment, I want to filter by branch name.  Rather than
54414         adding a --branch option to gitlog-to-changelog, it seems more
54415         flexible to simply pass all options directly to git-log and let
54416         git do the work.  Notice that this effectively makes --since a
54417         redundant option for gitlog-to-changelog, but removing it would
54418         require current usage to change since calls would then require
54419         an additional '--'.
54420
54421 2008-12-21  Bruno Haible  <bruno@clisp.org>
54422
54423         * modules/mbsnrtowcs-tests: New file.
54424         * tests/test-mbsnrtowcs1.sh: New file.
54425         * tests/test-mbsnrtowcs2.sh: New file.
54426         * tests/test-mbsnrtowcs3.sh: New file.
54427         * tests/test-mbsnrtowcs4.sh: New file.
54428         * tests/test-mbsnrtowcs.c: New file.
54429
54430         New module 'mbsnrtowcs'.
54431         * lib/wchar.in.h (mbsnrtowcs): New declaration.
54432         * lib/mbsnrtowcs.c: New file.
54433         * lib/mbsrtowcs-state.c: New file.
54434         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
54435         (internal_state): Remove variable.
54436         * m4/mbsnrtowcs.m4: New file.
54437         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
54438         compilation units.
54439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
54440         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54441         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
54442         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
54443         * modules/mbsnrtowcs: New file.
54444         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
54445         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
54446         portability problem.
54447
54448 2008-12-21  Bruno Haible  <bruno@clisp.org>
54449
54450         Work around mbsrtowcs bug.
54451         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
54452         (gl_FUNC_MBSRTOWCS): Invoke it.
54453         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54454         m4/locale-zh.m4.
54455         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
54456
54457 2008-12-21  Bruno Haible  <bruno@clisp.org>
54458
54459         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
54460
54461 2008-12-21  Bruno Haible  <bruno@clisp.org>
54462
54463         Update doc for AIX.
54464         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
54465         16-bit wchar_t type.
54466         * doc/posix-functions/btowc.texi: Likewise.
54467         * doc/posix-functions/fgetwc.texi: Likewise.
54468         * doc/posix-functions/fgetws.texi: Likewise.
54469         * doc/posix-functions/fputwc.texi: Likewise.
54470         * doc/posix-functions/fputws.texi: Likewise.
54471         * doc/posix-functions/fwide.texi: Likewise.
54472         * doc/posix-functions/fwprintf.texi: Likewise.
54473         * doc/posix-functions/fwscanf.texi: Likewise.
54474         * doc/posix-functions/getwchar.texi: Likewise.
54475         * doc/posix-functions/getwc.texi: Likewise.
54476         * doc/posix-functions/iswalnum.texi: Likewise.
54477         * doc/posix-functions/iswalpha.texi: Likewise.
54478         * doc/posix-functions/iswblank.texi: Likewise.
54479         * doc/posix-functions/iswcntrl.texi: Likewise.
54480         * doc/posix-functions/iswctype.texi: Likewise.
54481         * doc/posix-functions/iswdigit.texi: Likewise.
54482         * doc/posix-functions/iswgraph.texi: Likewise.
54483         * doc/posix-functions/iswlower.texi: Likewise.
54484         * doc/posix-functions/iswprint.texi: Likewise.
54485         * doc/posix-functions/iswpunct.texi: Likewise.
54486         * doc/posix-functions/iswspace.texi: Likewise.
54487         * doc/posix-functions/iswupper.texi: Likewise.
54488         * doc/posix-functions/iswxdigit.texi: Likewise.
54489         * doc/posix-functions/mbrtowc.texi: Likewise.
54490         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54491         * doc/posix-functions/mbstowcs.texi: Likewise.
54492         * doc/posix-functions/mbtowc.texi: Likewise.
54493         * doc/posix-functions/putwchar.texi: Likewise.
54494         * doc/posix-functions/putwc.texi: Likewise.
54495         * doc/posix-functions/swprintf.texi: Likewise.
54496         * doc/posix-functions/tolower.texi: Likewise.
54497         * doc/posix-functions/toupper.texi: Likewise.
54498         * doc/posix-functions/towctrans.texi: Likewise.
54499         * doc/posix-functions/ungetwc.texi: Likewise.
54500         * doc/posix-functions/vswprintf.texi: Likewise.
54501         * doc/posix-functions/wcrtomb.texi: Likewise.
54502         * doc/posix-functions/wcscat.texi: Likewise.
54503         * doc/posix-functions/wcschr.texi: Likewise.
54504         * doc/posix-functions/wcscmp.texi: Likewise.
54505         * doc/posix-functions/wcscoll.texi: Likewise.
54506         * doc/posix-functions/wcscpy.texi: Likewise.
54507         * doc/posix-functions/wcscspn.texi: Likewise.
54508         * doc/posix-functions/wcsftime.texi: Likewise.
54509         * doc/posix-functions/wcslen.texi: Likewise.
54510         * doc/posix-functions/wcsncat.texi: Likewise.
54511         * doc/posix-functions/wcsncmp.texi: Likewise.
54512         * doc/posix-functions/wcsncpy.texi: Likewise.
54513         * doc/posix-functions/wcspbrk.texi: Likewise.
54514         * doc/posix-functions/wcsrchr.texi: Likewise.
54515         * doc/posix-functions/wcsrtombs.texi: Likewise.
54516         * doc/posix-functions/wcsspn.texi: Likewise.
54517         * doc/posix-functions/wcsstr.texi: Likewise.
54518         * doc/posix-functions/wcstod.texi: Likewise.
54519         * doc/posix-functions/wcstof.texi: Likewise.
54520         * doc/posix-functions/wcstoimax.texi: Likewise.
54521         * doc/posix-functions/wcstok.texi: Likewise.
54522         * doc/posix-functions/wcstold.texi: Likewise.
54523         * doc/posix-functions/wcstoll.texi: Likewise.
54524         * doc/posix-functions/wcstol.texi: Likewise.
54525         * doc/posix-functions/wcstombs.texi: Likewise.
54526         * doc/posix-functions/wcstoull.texi: Likewise.
54527         * doc/posix-functions/wcstoul.texi: Likewise.
54528         * doc/posix-functions/wcstoumax.texi: Likewise.
54529         * doc/posix-functions/wcswidth.texi: Likewise.
54530         * doc/posix-functions/wcsxfrm.texi: Likewise.
54531         * doc/posix-functions/wctob.texi: Likewise.
54532         * doc/posix-functions/wctomb.texi: Likewise.
54533         * doc/posix-functions/wctrans.texi: Likewise.
54534         * doc/posix-functions/wctype.texi: Likewise.
54535         * doc/posix-functions/wcwidth.texi: Likewise.
54536         * doc/posix-functions/wmemchr.texi: Likewise.
54537         * doc/posix-functions/wmemcmp.texi: Likewise.
54538         * doc/posix-functions/wmemcpy.texi: Likewise.
54539         * doc/posix-functions/wmemmove.texi: Likewise.
54540         * doc/posix-functions/wmemset.texi: Likewise.
54541         * doc/posix-functions/wprintf.texi: Likewise.
54542         * doc/posix-functions/wscanf.texi: Likewise.
54543
54544 2008-12-21  Bruno Haible  <bruno@clisp.org>
54545
54546         Update doc for HP-UX 11.11.
54547         * doc/posix-functions/btowc.texi: Clarify that the function is missing
54548         in HP-UX version 11.00, not in all versions of HP-UX 11.
54549         * doc/posix-functions/fwide.texi: Likewise.
54550         * doc/posix-functions/fwprintf.texi: Likewise.
54551         * doc/posix-functions/fwscanf.texi: Likewise.
54552         * doc/posix-functions/inet_ntop.texi: Likewise.
54553         * doc/posix-functions/inet_pton.texi: Likewise.
54554         * doc/posix-functions/mbrlen.texi: Likewise.
54555         * doc/posix-functions/mbrtowc.texi: Likewise.
54556         * doc/posix-functions/mbsinit.texi: Likewise.
54557         * doc/posix-functions/mbsrtowcs.texi: Likewise.
54558         * doc/posix-functions/swprintf.texi: Likewise.
54559         * doc/posix-functions/swscanf.texi: Likewise.
54560         * doc/posix-functions/towctrans.texi: Likewise.
54561         * doc/posix-functions/vfwprintf.texi: Likewise.
54562         * doc/posix-functions/vswprintf.texi: Likewise.
54563         * doc/posix-functions/vwprintf.texi: Likewise.
54564         * doc/posix-functions/wcrtomb.texi: Likewise.
54565         * doc/posix-functions/wcsrtombs.texi: Likewise.
54566         * doc/posix-functions/wcsstr.texi: Likewise.
54567         * doc/posix-functions/wctob.texi: Likewise.
54568         * doc/posix-functions/wctrans.texi: Likewise.
54569         * doc/posix-functions/wmemchr.texi: Likewise.
54570         * doc/posix-functions/wmemcmp.texi: Likewise.
54571         * doc/posix-functions/wmemcpy.texi: Likewise.
54572         * doc/posix-functions/wmemmove.texi: Likewise.
54573         * doc/posix-functions/wmemset.texi: Likewise.
54574         * doc/posix-functions/wprintf.texi: Likewise.
54575         * doc/posix-functions/wscanf.texi: Likewise.
54576
54577 2008-12-21  Bruno Haible  <bruno@clisp.org>
54578
54579         Work around a portability problem.
54580         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
54581         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
54582
54583 2008-12-20  Bruno Haible  <bruno@clisp.org>
54584
54585         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
54586         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
54587         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
54588         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
54589         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
54590
54591         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
54592         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
54593         set.
54594         (GNULIB_defined_mbstate_t): New macro.
54595         (mbsinit): Redefine if REPLACE_MBSINIT is set.
54596         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
54597         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
54598         reuses the system's mbrtowc function but works around the bugs.
54599         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
54600         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
54601         macros.
54602         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
54603         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
54604         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
54605         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
54606         REPLACE_MBSINIT if mbsinit needs to be overridden.
54607         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
54608         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54609         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
54610         REPLACE_MBSINIT, REPLACE_MBRTOWC.
54611         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
54612         m4/locale-zh.m4.
54613         (Depends): Add mbsinit.
54614         * modules/mbsinit (Depends): Add mbrtowc.
54615         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
54616
54617 2008-12-20  Bruno Haible  <bruno@clisp.org>
54618
54619         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
54620         so that there are no conversion errors on AIX.
54621         * tests/test-mbsrtowcs.c (main): LIkewise.
54622
54623 2008-12-20  Bruno Haible  <bruno@clisp.org>
54624
54625         Work around wctob bug on Solaris <= 9.
54626         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
54627         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
54628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
54629         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
54630         * modules/wctob (Files): Add m4/locale-fr.m4.
54631         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
54632
54633 2008-12-20  Bruno Haible  <bruno@clisp.org>
54634
54635         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
54636         /dev/null.
54637         * tests/test-select-in.sh: Likewise.
54638         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54639
54640 2008-12-20  Bruno Haible  <bruno@clisp.org>
54641
54642         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
54643         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
54644         Cygwin 1.5.x.
54645
54646 2008-12-20  Bruno Haible  <bruno@clisp.org>
54647
54648         Ensure mbstate_t is defined on HP-UX 11.11.
54649         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
54650         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
54651         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
54652         AC_USE_SYSTEM_EXTENSIONS.
54653         * modules/fnmatch (Depends-on): Add extensions.
54654         * modules/mbrlen (Depends-on): Likewise.
54655         * modules/mbrtowc (Depends-on): Likewise.
54656         * modules/mbsinit (Depends-on): Likewise.
54657         * modules/mbsrtowcs (Depends-on): Likewise.
54658         * modules/mbswidth (Depends-on): Likewise.
54659         * modules/quotearg (Depends-on): Likewise.
54660         * modules/strftime (Depends-on): Likewise.
54661
54662 2008-12-20  Bruno Haible  <bruno@clisp.org>
54663
54664         Ensure wctob is declared on IRIX 6.5.
54665         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
54666         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
54667         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
54668         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
54669         of HAVE_WCTOB.
54670         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
54671         HAVE_WCTOB.
54672         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
54673
54674 2008-12-19  Bruno Haible  <bruno@clisp.org>
54675
54676         * modules/mbsrtowcs-tests: New file.
54677         * tests/test-mbsrtowcs1.sh: New file.
54678         * tests/test-mbsrtowcs2.sh: New file.
54679         * tests/test-mbsrtowcs3.sh: New file.
54680         * tests/test-mbsrtowcs4.sh: New file.
54681         * tests/test-mbsrtowcs.c: New file.
54682
54683         New module 'mbsrtowcs'.
54684         * lib/wchar.in.h (mbsrtowcs): New declaration.
54685         * lib/mbsrtowcs.c: New file.
54686         * m4/mbsrtowcs.m4: New file.
54687         * modules/mbsrtowcs: New file.
54688         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
54689         HAVE_MBSRTOWCS.
54690         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
54691         HAVE_MBSRTOWCS.
54692         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
54693
54694 2008-12-19  Bruno Haible  <bruno@clisp.org>
54695
54696         New module 'mbrlen'.
54697         * lib/wchar.in.h (mbrlen): New declaration.
54698         * lib/mbrlen.c: New file.
54699         * m4/mbrlen.m4: New file.
54700         * modules/mbrlen: New file.
54701         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
54702         HAVE_MBRLEN.
54703         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
54704         HAVE_MBRLEN.
54705         * doc/posix-functions/mbrlen.texi: Document the new module.
54706
54707 2008-12-19  Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
54710         * modules/mbrtowc (Depends-on): Add verify.
54711         Suggested by Paul Eggert.
54712
54713 2008-12-18  Bruno Haible  <bruno@clisp.org>
54714
54715         * modules/mbsinit-tests: New file.
54716         * tests/test-mbsinit.sh: New file.
54717         * tests/test-mbsinit.c: New file.
54718
54719 2008-12-18  Bruno Haible  <bruno@clisp.org>
54720
54721         * modules/mbrtowc-tests: New file.
54722         * tests/test-mbrtowc1.sh: New file.
54723         * tests/test-mbrtowc2.sh: New file.
54724         * tests/test-mbrtowc3.sh: New file.
54725         * tests/test-mbrtowc4.sh: New file.
54726         * tests/test-mbrtowc.c: New file.
54727
54728         New module 'mbrtowc'.
54729         * lib/wchar.in.h (mbstate_t): Override when the system does not have
54730         mbsinit and mbrtowc.
54731         (mbrtowc): New declaration.
54732         * lib/mbrtowc.c: New file.
54733         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
54734         * modules/mbrtowc: New file.
54735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
54736         HAVE_MBRTOWC.
54737         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
54738         HAVE_MBRTOWC.
54739         * doc/posix-functions/mbrtowc.texi: Document the new module.
54740
54741 2008-12-18  Bruno Haible  <bruno@clisp.org>
54742
54743         New module 'wctob'.
54744         * lib/wchar.in.h (wctob): New declaration.
54745         * lib/wctob.c: New file.
54746         * m4/wctob.m4: New file.
54747         * modules/wctob: New file.
54748         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
54749         HAVE_WCTOB.
54750         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
54751         * doc/posix-functions/wctob.texi: Document the new module.
54752
54753 2008-12-18  Bruno Haible  <bruno@clisp.org>
54754
54755         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
54756         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
54757
54758 2008-12-18  Simon Josefsson  <simon@josefsson.org>
54759
54760         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
54761         G. Christensen" <tgc@jupiterrise.com>.
54762
54763         * lib/flock.c: Need to include errno.h.  Reported by "Tom
54764         G. Christensen" <tgc@jupiterrise.com>.
54765
54766         * lib/flock.c: Need to include string.h.  Reported by "Tom
54767         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
54768         <ebb9@byu.net>.
54769
54770 2008-12-18  Bruno Haible  <bruno@clisp.org>
54771
54772         * m4/locale-ja.m4: New file, from GNU gettext.
54773
54774 2008-12-17  Bruno Haible  <bruno@clisp.org>
54775
54776         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
54777         Suggested by Eric Blake.
54778
54779 2008-12-17  Bruno Haible  <bruno@clisp.org>
54780
54781         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
54782
54783 2008-12-17  Bruno Haible  <bruno@clisp.org>
54784
54785         * lib/mbsinit.c: Include verify.h. Verify an assumption.
54786         * modules/mbsinit (Depends-on): Add verify.
54787         Suggested by Paul Eggert.
54788
54789 2008-12-17  Bruno Haible  <bruno@clisp.org>
54790
54791         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
54792         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
54793         gl_FUNC_MBRTOWC.
54794         * m4/mbiter.m4 (gl_MBITER): LIkewise.
54795         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
54796         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
54797         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
54798         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
54799         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
54800         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
54801         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
54802         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
54803         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
54804         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
54805         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
54806         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
54807         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
54808         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
54809         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
54810         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
54811         * modules/trim (configure.ac): Likewise.
54812
54813 2008-12-17  Bruno Haible  <bruno@clisp.org>
54814
54815         * modules/btowc-tests: New file.
54816         * tests/test-btowc1.sh: New file.
54817         * tests/test-btowc2.sh: New file.
54818         * tests/test-btowc.c: New file.
54819
54820         New module 'btowc'.
54821         * lib/wchar.in.h (btowc): New declaration.
54822         * lib/btowc.c: New file.
54823         * m4/btowc.m4: New file.
54824         * modules/btowc: New file.
54825         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
54826         HAVE_BTOWC.
54827         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
54828         * doc/posix-functions/btowc.texi: Document the new module.
54829
54830 2008-12-17  Bruno Haible  <bruno@clisp.org>
54831
54832         New module 'mbsinit'.
54833         * lib/wchar.in.h (mbsinit): New declaration.
54834         * lib/mbsinit.c: New file.
54835         * m4/mbsinit.m4: New file.
54836         * modules/mbsinit: New file.
54837         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
54838         HAVE_MBSINIT.
54839         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
54840         HAVE_MBSINIT.
54841         * doc/posix-functions/mbsinit.texi: Document the new module.
54842
54843 2008-12-16  Bruno Haible  <bruno@clisp.org>
54844
54845         * lib/unistd.in.h: Add comment.
54846         * tests/test-environ.c: Don't include <stdlib.h>.
54847
54848 2008-12-16  Bruno Haible  <bruno@clisp.org>
54849
54850         * lib/parse-duration.h (parse_duration): Document return value
54851         convention.
54852         * lib/parse-duration.c: Include specification header first. Add
54853         comments.
54854         (_): Remove macro.
54855         (parse_year_month_day, parse_hour_minute_second): Move side effects
54856         outside of strchr call.
54857         (parse_non_iso8601): Move side effects outside of isspace call.
54858         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
54859         call.
54860
54861 2008-12-16  Bruno Haible  <bruno@clisp.org>
54862
54863         * tests/test-parse-duration.sh: Produce no output when the test
54864         succeeds.
54865
54866 2008-12-16  Bruno Haible  <bruno@clisp.org>
54867
54868         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
54869         expressions.
54870
54871 2008-12-15  Bruno Haible  <bruno@clisp.org>
54872
54873         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
54874         * doc/glibc-functions/flistxattr.texi: Likewise.
54875         * doc/glibc-functions/fopencookie.texi: Likewise.
54876         * doc/glibc-functions/fremovexattr.texi: Likewise.
54877         * doc/glibc-functions/fsetxattr.texi: Likewise.
54878         * doc/glibc-functions/getxattr.texi: Likewise.
54879         * doc/glibc-functions/lgetxattr.texi: Likewise.
54880         * doc/glibc-functions/listxattr.texi: Likewise.
54881         * doc/glibc-functions/llistxattr.texi: Likewise.
54882         * doc/glibc-functions/lremovexattr.texi: Likewise.
54883         * doc/glibc-functions/lsetxattr.texi: Likewise.
54884         * doc/glibc-functions/removexattr.texi: Likewise.
54885         * doc/glibc-functions/setxattr.texi: Likewise.
54886         * doc/posix-functions/open_memstream.texi: Likewise.
54887
54888 2008-12-15  Eric Blake  <ebb9@byu.net>
54889
54890         Update doc for cygwin 1.7.
54891         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
54892         functions.
54893         * doc/posix-functions/fchmodat.texi: Likewise.
54894         * doc/posix-functions/fchownat.texi: Likewise.
54895         * doc/posix-functions/fdopendir.texi: Likewise.
54896         * doc/posix-functions/fmemopen.texi: Likewise.
54897         * doc/posix-functions/freeaddrinfo.texi: Likewise.
54898         * doc/posix-functions/fstatat.texi: Likewise.
54899         * doc/posix-functions/futimens.texi: Likewise.
54900         * doc/posix-functions/gai_strerror.texi: Likewise.
54901         * doc/posix-functions/getaddrinfo.texi: Likewise.
54902         * doc/posix-functions/getnameinfo.texi: Likewise.
54903         * doc/posix-functions/if_freenameindex.texi: Likewise.
54904         * doc/posix-functions/if_indextoname.texi: Likewise.
54905         * doc/posix-functions/if_nameindex.texi: Likewise.
54906         * doc/posix-functions/if_nametoindex.texi: Likewise.
54907         * doc/posix-functions/insque.texi: Likewise.
54908         * doc/posix-functions/linkat.texi: Likewise.
54909         * doc/posix-functions/llrint.texi: Likewise.
54910         * doc/posix-functions/llrintf.texi: Likewise.
54911         * doc/posix-functions/llrintl.texi: Likewise.
54912         * doc/posix-functions/lockf.texi: Likewise.
54913         * doc/posix-functions/lrintl.texi: Likewise.
54914         * doc/posix-functions/mkdirat.texi: Likewise.
54915         * doc/posix-functions/mkfifoat.texi: Likewise.
54916         * doc/posix-functions/mknodat.texi: Likewise.
54917         * doc/posix-functions/mq_close.texi: Likewise.
54918         * doc/posix-functions/mq_getattr.texi: Likewise.
54919         * doc/posix-functions/mq_notify.texi: Likewise.
54920         * doc/posix-functions/mq_open.texi: Likewise.
54921         * doc/posix-functions/mq_receive.texi: Likewise.
54922         * doc/posix-functions/mq_send.texi: Likewise.
54923         * doc/posix-functions/mq_setattr.texi: Likewise.
54924         * doc/posix-functions/mq_timedreceive.texi: Likewise.
54925         * doc/posix-functions/mq_timedsend.texi: Likewise.
54926         * doc/posix-functions/mq_unlink.texi: Likewise.
54927         * doc/posix-functions/open_memstream.texi: Likewise.
54928         * doc/posix-functions/openat.texi: Likewise.
54929         * doc/posix-functions/posix_fadvise.texi: Likewise.
54930         * doc/posix-functions/posix_fallocate.texi: Likewise.
54931         * doc/posix-functions/posix_madvise.texi: Likewise.
54932         * doc/posix-functions/posix_memalign.texi: Likewise.
54933         * doc/posix-functions/posix_openpt.texi: Likewise.
54934         * doc/posix-functions/readlinkat.texi: Likewise.
54935         * doc/posix-functions/remque.texi: Likewise.
54936         * doc/posix-functions/renameat.texi: Likewise.
54937         * doc/posix-functions/rintl.texi: Likewise.
54938         * doc/posix-functions/sem_unlink.texi: Likewise.
54939         * doc/posix-functions/shm_open.texi: Likewise.
54940         * doc/posix-functions/shm_unlink.texi: Likewise.
54941         * doc/posix-functions/signgam.texi: Likewise.
54942         * doc/posix-functions/sigset.texi: Likewise.
54943         * doc/posix-functions/stpcpy.texi: Likewise.
54944         * doc/posix-functions/stpncpy.texi: Likewise.
54945         * doc/posix-functions/strerror.texi: Likewise.
54946         * doc/posix-functions/strtod.texi: Likewise.
54947         * doc/posix-functions/symlinkat.texi: Likewise.
54948         * doc/posix-functions/unlinkat.texi: Likewise.
54949         * doc/posix-functions/utimensat.texi: Likewise.
54950         * doc/glibc-functions/bindresvport.texi: Likewise.
54951         * doc/glibc-functions/dn_expand.texi: Likewise.
54952         * doc/glibc-functions/exp10.texi: Likewise.
54953         * doc/glibc-functions/exp10f.texi: Likewise.
54954         * doc/glibc-functions/fgetxattr.texi: Likewise.
54955         * doc/glibc-functions/flistxattr.texi: Likewise.
54956         * doc/glibc-functions/fopencookie.texi: Likewise.
54957         * doc/glibc-functions/freeifaddrs.texi: Likewise.
54958         * doc/glibc-functions/fremovexattr.texi: Likewise.
54959         * doc/glibc-functions/fsetxattr.texi: Likewise.
54960         * doc/glibc-functions/getifaddrs.texi: Likewise.
54961         * doc/glibc-functions/getxattr.texi: Likewise.
54962         * doc/glibc-functions/lgetxattr.texi: Likewise.
54963         * doc/glibc-functions/listxattr.texi: Likewise.
54964         * doc/glibc-functions/llistxattr.texi: Likewise.
54965         * doc/glibc-functions/lremovexattr.texi: Likewise.
54966         * doc/glibc-functions/lsetxattr.texi: Likewise.
54967         * doc/glibc-functions/pow10.texi: Likewise.
54968         * doc/glibc-functions/pow10f.texi: Likewise.
54969         * doc/glibc-functions/rcmd_af.texi: Likewise.
54970         * doc/glibc-functions/removexattr.texi: Likewise.
54971         * doc/glibc-functions/res_init.texi: Likewise.
54972         * doc/glibc-functions/res_mkquery.texi: Likewise.
54973         * doc/glibc-functions/res_query.texi: Likewise.
54974         * doc/glibc-functions/res_querydomain.texi: Likewise.
54975         * doc/glibc-functions/res_send.texi: Likewise.
54976         * doc/glibc-functions/rresvport_af.texi: Likewise.
54977         * doc/glibc-functions/setxattr.texi: Likewise.
54978         * doc/glibc-functions/strcasestr.texi: Likewise.
54979
54980 2008-12-15  Bruno Haible  <bruno@clisp.org>
54981
54982         Fix compilation error on OSF/1 4.0.
54983         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
54984         <sys/time.h>, simply delegate to the system header.
54985         Reported by Daniel Richard G. <oss@teragram.com>.
54986
54987 2008-12-15  Bruno Haible  <bruno@clisp.org>
54988
54989         * doc/posix-functions/openat.texi: Mention the 'openat' module.
54990         * doc/posix-functions/fchmodat.texi: Likewise.
54991         * doc/posix-functions/fchownat.texi: Likewise.
54992         * doc/posix-functions/fdopendir.texi: Likewise.
54993         * doc/posix-functions/fstatat.texi: Likewise.
54994         * doc/posix-functions/mkdirat.texi: Likewise.
54995         * doc/posix-functions/unlinkat.texi: Likewise.
54996
54997 2008-12-14  Bruno Haible  <bruno@clisp.org>
54998
54999         Update doc for POSIX:2008.
55000         * doc/posix-functions/faccessat.texi: New file.
55001         * doc/posix-functions/fchmodat.texi: New file.
55002         * doc/posix-functions/fchownat.texi: New file.
55003         * doc/posix-functions/fdopendir.texi: New file.
55004         * doc/posix-functions/fstatat.texi: New file.
55005         * doc/posix-functions/futimens.texi: New file.
55006         * doc/posix-functions/linkat.texi: New file.
55007         * doc/posix-functions/mkdirat.texi: New file.
55008         * doc/posix-functions/mkfifoat.texi: New file.
55009         * doc/posix-functions/mknodat.texi: New file.
55010         * doc/posix-functions/open_wmemstream.texi: New file.
55011         * doc/posix-functions/openat.texi: New file.
55012         * doc/posix-functions/psiginfo.texi: New file.
55013         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
55014         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
55015         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
55016         * doc/posix-functions/readlinkat.texi: New file.
55017         * doc/posix-functions/renameat.texi: New file.
55018         * doc/posix-functions/strerror_l.texi: New file.
55019         * doc/posix-functions/symlinkat.texi: New file.
55020         * doc/posix-functions/unlinkat.texi: New file.
55021         * doc/posix-functions/utimensat.texi: New file.
55022         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55023
55024 2008-12-14  Bruno Haible  <bruno@clisp.org>
55025
55026         Update doc for POSIX:2008.
55027         * doc/posix-functions/alphasort.texi: Renamed from
55028         doc/glibc-functions/alphasort.texi.
55029         * doc/posix-functions/dirfd.texi: Renamed from
55030         doc/glibc-functions/dirfd.texi.
55031         * doc/posix-functions/dprintf.texi: Renamed from
55032         doc/glibc-functions/dprintf.texi.
55033         * doc/posix-functions/duplocale.texi: Renamed from
55034         doc/glibc-functions/duplocale.texi.
55035         * doc/posix-functions/fexecve.texi: Renamed from
55036         doc/glibc-functions/fexecve.texi.
55037         * doc/posix-functions/fmemopen.texi: Renamed from
55038         doc/glibc-functions/fmemopen.texi.
55039         * doc/posix-functions/freelocale.texi: Renamed from
55040         doc/glibc-functions/freelocale.texi.
55041         * doc/posix-functions/getdate_err.texi: Renamed from
55042         doc/glibc-functions/getdate_err.texi.
55043         * doc/posix-functions/isalnum_l.texi: Renamed from
55044         doc/glibc-functions/isalnum_l.texi.
55045         * doc/posix-functions/isalpha_l.texi: Renamed from
55046         doc/glibc-functions/isalpha_l.texi.
55047         * doc/posix-functions/isblank_l.texi: Renamed from
55048         doc/glibc-functions/isblank_l.texi.
55049         * doc/posix-functions/iscntrl_l.texi: Renamed from
55050         doc/glibc-functions/iscntrl_l.texi.
55051         * doc/posix-functions/isdigit_l.texi: Renamed from
55052         doc/glibc-functions/isdigit_l.texi.
55053         * doc/posix-functions/isgraph_l.texi: Renamed from
55054         doc/glibc-functions/isgraph_l.texi.
55055         * doc/posix-functions/islower_l.texi: Renamed from
55056         doc/glibc-functions/islower_l.texi.
55057         * doc/posix-functions/isprint_l.texi: Renamed from
55058         doc/glibc-functions/isprint_l.texi.
55059         * doc/posix-functions/ispunct_l.texi: Renamed from
55060         doc/glibc-functions/ispunct_l.texi.
55061         * doc/posix-functions/isspace_l.texi: Renamed from
55062         doc/glibc-functions/isspace_l.texi.
55063         * doc/posix-functions/isupper_l.texi: Renamed from
55064         doc/glibc-functions/isupper_l.texi.
55065         * doc/posix-functions/iswalnum_l.texi: Renamed from
55066         doc/glibc-functions/iswalnum_l.texi.
55067         * doc/posix-functions/iswalpha_l.texi: Renamed from
55068         doc/glibc-functions/iswalpha_l.texi.
55069         * doc/posix-functions/iswblank_l.texi: Renamed from
55070         doc/glibc-functions/iswblank_l.texi.
55071         * doc/posix-functions/iswcntrl_l.texi: Renamed from
55072         doc/glibc-functions/iswcntrl_l.texi.
55073         * doc/posix-functions/iswctype_l.texi: Renamed from
55074         doc/glibc-functions/iswctype_l.texi.
55075         * doc/posix-functions/iswdigit_l.texi: Renamed from
55076         doc/glibc-functions/iswdigit_l.texi.
55077         * doc/posix-functions/iswgraph_l.texi: Renamed from
55078         doc/glibc-functions/iswgraph_l.texi.
55079         * doc/posix-functions/iswlower_l.texi: Renamed from
55080         doc/glibc-functions/iswlower_l.texi.
55081         * doc/posix-functions/iswprint_l.texi: Renamed from
55082         doc/glibc-functions/iswprint_l.texi.
55083         * doc/posix-functions/iswpunct_l.texi: Renamed from
55084         doc/glibc-functions/iswpunct_l.texi.
55085         * doc/posix-functions/iswspace_l.texi: Renamed from
55086         doc/glibc-functions/iswspace_l.texi.
55087         * doc/posix-functions/iswupper_l.texi: Renamed from
55088         doc/glibc-functions/iswupper_l.texi.
55089         * doc/posix-functions/iswxdigit_l.texi: Renamed from
55090         doc/glibc-functions/iswxdigit_l.texi.
55091         * doc/posix-functions/isxdigit_l.texi: Renamed from
55092         doc/glibc-functions/isxdigit_l.texi.
55093         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
55094         doc/glibc-functions/mbsnrtowcs.texi.
55095         * doc/posix-functions/mkdtemp.texi: Renamed from
55096         doc/glibc-functions/mkdtemp.texi.
55097         * doc/posix-functions/newlocale.texi: Renamed from
55098         doc/glibc-functions/newlocale.texi.
55099         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
55100         doc/glibc-functions/nl_langinfo_l.texi.
55101         * doc/posix-functions/open_memstream.texi: Renamed from
55102         doc/glibc-functions/open_memstream.texi.
55103         * doc/posix-functions/opterr.texi: Renamed from
55104         doc/glibc-functions/opterr.texi.
55105         * doc/posix-functions/optind.texi: Renamed from
55106         doc/glibc-functions/optind.texi.
55107         * doc/posix-functions/optopt.texi: Renamed from
55108         doc/glibc-functions/optopt.texi.
55109         * doc/posix-functions/psignal.texi: Renamed from
55110         doc/glibc-functions/psignal.texi.
55111         * doc/posix-functions/scandir.texi: Renamed from
55112         doc/glibc-functions/scandir.texi.
55113         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
55114         doc/glibc-functions/sched_get_priority_min.texi.
55115         * doc/posix-functions/signgam.texi: Renamed from
55116         doc/glibc-functions/signgam.texi.
55117         * doc/posix-functions/stpcpy.texi: Renamed from
55118         doc/glibc-functions/stpcpy.texi.
55119         * doc/posix-functions/stpncpy.texi: Renamed from
55120         doc/glibc-functions/stpncpy.texi.
55121         * doc/posix-functions/strcasecmp_l.texi: Renamed from
55122         doc/glibc-functions/strcasecmp_l.texi.
55123         * doc/posix-functions/strcoll_l.texi: Renamed from
55124         doc/glibc-functions/strcoll_l.texi.
55125         * doc/posix-functions/strfmon_l.texi: Renamed from
55126         doc/glibc-functions/strfmon_l.texi.
55127         * doc/posix-functions/strftime_l.texi: Renamed from
55128         doc/glibc-functions/strftime_l.texi.
55129         * doc/posix-functions/strncasecmp_l.texi: Renamed from
55130         doc/glibc-functions/strncasecmp_l.texi.
55131         * doc/posix-functions/strndup.texi: Renamed from
55132         doc/glibc-functions/strndup.texi.
55133         * doc/posix-functions/strnlen.texi: Renamed from
55134         doc/glibc-functions/strnlen.texi.
55135         * doc/posix-functions/strsignal.texi: Renamed from
55136         doc/glibc-functions/strsignal.texi.
55137         * doc/posix-functions/strxfrm_l.texi: Renamed from
55138         doc/glibc-functions/strxfrm_l.texi.
55139         * doc/posix-functions/timer_gettime.texi: Renamed from
55140         doc/glibc-functions/timer_gettime.texi.
55141         * doc/posix-functions/tolower_l.texi: Renamed from
55142         doc/glibc-functions/tolower_l.texi.
55143         * doc/posix-functions/toupper_l.texi: Renamed from
55144         doc/glibc-functions/toupper_l.texi.
55145         * doc/posix-functions/towctrans_l.texi: Renamed from
55146         doc/glibc-functions/towctrans_l.texi.
55147         * doc/posix-functions/towlower_l.texi: Renamed from
55148         doc/glibc-functions/towlower_l.texi.
55149         * doc/posix-functions/towupper_l.texi: Renamed from
55150         doc/glibc-functions/towupper_l.texi.
55151         * doc/posix-functions/uselocale.texi: Renamed from
55152         doc/glibc-functions/uselocale.texi.
55153         * doc/posix-functions/vdprintf.texi: Renamed from
55154         doc/glibc-functions/vdprintf.texi.
55155         * doc/posix-functions/wcpcpy.texi:
55156         Renamed from doc/glibc-functions/wcpcpy.texi.
55157         * doc/posix-functions/wcpncpy.texi: Renamed from
55158         doc/glibc-functions/wcpncpy.texi.
55159         * doc/posix-functions/wcscasecmp.texi: Renamed from
55160         doc/glibc-functions/wcscasecmp.texi.
55161         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
55162         doc/glibc-functions/wcscasecmp_l.texi.
55163         * doc/posix-functions/wcscoll_l.texi: Renamed from
55164         doc/glibc-functions/wcscoll_l.texi.
55165         * doc/posix-functions/wcsdup.texi: Renamed from
55166         doc/glibc-functions/wcsdup.texi.
55167         * doc/posix-functions/wcsncasecmp.texi: Renamed from
55168         doc/glibc-functions/wcsncasecmp.texi.
55169         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
55170         doc/glibc-functions/wcsncasecmp_l.texi.
55171         * doc/posix-functions/wcsnlen.texi: Renamed from
55172         doc/glibc-functions/wcsnlen.texi.
55173         * doc/posix-functions/wcsnrtombs.texi: Renamed from
55174         doc/glibc-functions/wcsnrtombs.texi.
55175         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
55176         doc/glibc-functions/wcsxfrm_l.texi.
55177         * doc/posix-functions/wctrans_l.texi: Renamed from
55178         doc/glibc-functions/wctrans_l.texi.
55179         * doc/posix-functions/wctype_l.texi: Renamed from
55180         doc/glibc-functions/wctype_l.texi.
55181         * doc/gnulib.texi (Function Substitutes): Add these subsections.
55182         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
55183         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
55184         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
55185         these subsections.
55186         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
55187         Remove sections.
55188
55189 2008-12-14  Bruno Haible  <bruno@clisp.org>
55190
55191         Update doc for POSIX:2008.
55192         * doc/posix-functions/*.texi: Update URL of POSIX specification.
55193
55194 2008-12-14  Bruno Haible  <bruno@clisp.org>
55195
55196         Update doc for POSIX:2008.
55197         * doc/pastposix-functions/bcmp.texi: Renamed from
55198         doc/posix-functions/bcmp.texi.
55199         * doc/pastposix-functions/bcopy.texi: Renamed from
55200         doc/posix-functions/bcopy.texi.
55201         * doc/pastposix-functions/bsd_signal.texi: Renamed from
55202         doc/posix-functions/bsd_signal.texi.
55203         * doc/pastposix-functions/bzero.texi: Renamed from
55204         doc/posix-functions/bzero.texi.
55205         * doc/pastposix-functions/ecvt.texi: Renamed from
55206         doc/posix-functions/ecvt.texi.
55207         * doc/pastposix-functions/fcvt.texi: Renamed from
55208         doc/posix-functions/fcvt.texi.
55209         * doc/pastposix-functions/ftime.texi: Renamed from
55210         doc/posix-functions/ftime.texi.
55211         * doc/pastposix-functions/gcvt.texi: Renamed from
55212         doc/posix-functions/gcvt.texi.
55213         * doc/pastposix-functions/getcontext.texi: Renamed from
55214         doc/posix-functions/getcontext.texi.
55215         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
55216         doc/posix-functions/gethostbyaddr.texi.
55217         * doc/pastposix-functions/gethostbyname.texi: Renamed from
55218         doc/posix-functions/gethostbyname.texi.
55219         * doc/pastposix-functions/getwd.texi: Renamed from
55220         doc/posix-functions/getwd.texi.
55221         * doc/pastposix-functions/h_errno.texi: Renamed from
55222         doc/posix-functions/h_errno.texi.
55223         * doc/pastposix-functions/index.texi: Renamed from
55224         doc/posix-functions/index.texi.
55225         * doc/pastposix-functions/makecontext.texi: Renamed from
55226         doc/posix-functions/makecontext.texi.
55227         * doc/pastposix-functions/mktemp.texi: Renamed from
55228         doc/posix-functions/mktemp.texi.
55229         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
55230         doc/posix-functions/pthread_attr_getstackaddr.texi.
55231         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
55232         doc/posix-functions/pthread_attr_setstackaddr.texi.
55233         * doc/pastposix-functions/rindex.texi: Renamed from
55234         doc/posix-functions/rindex.texi.
55235         * doc/pastposix-functions/scalb.texi: Renamed from
55236         doc/posix-functions/scalb.texi.
55237         * doc/pastposix-functions/setcontext.texi: Renamed from
55238         doc/posix-functions/setcontext.texi.
55239         * doc/pastposix-functions/swapcontext.texi: Renamed from
55240         doc/posix-functions/swapcontext.texi.
55241         * doc/pastposix-functions/ualarm.texi: Renamed from
55242         doc/posix-functions/ualarm.texi.
55243         * doc/pastposix-functions/usleep.texi: Renamed from
55244         doc/posix-functions/usleep.texi.
55245         * doc/pastposix-functions/vfork.texi: Renamed from
55246         doc/posix-functions/vfork.texi.
55247         * doc/pastposix-functions/wcswcs.texi: Renamed from
55248         doc/posix-functions/wcswcs.texi.
55249         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
55250         (Function Substitutes): Update.
55251
55252 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55253
55254         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
55255         m4/strerror.m4.
55256
55257 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55258             Bruno Haible  <bruno@clisp.org>
55259
55260         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
55261
55262 2008-12-13  Bruno Haible  <bruno@clisp.org>
55263
55264         * modules/strtoull (Depends-on): Remove unistd.
55265
55266 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55267
55268         * modules/strtoull (Depends-on): Add stdlib.
55269
55270 2008-12-11  Simon Josefsson  <simon@josefsson.org>
55271
55272         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
55273
55274 2008-12-10  Jim Meyering  <meyering@redhat.com>
55275
55276         gl_ASSERT: don't say assertions are disabled when they're not
55277         * m4/assert.m4 (gl_ASSERT): Do not make configure report
55278         "checking whether to enable assertions... no", when they are in
55279         fact enabled.  This is solely a bug in the output of configure.
55280         In spite of saying "no", NDEBUG was not defined in that case.
55281         Also, as noted by Eric Blake, leave assertions enabled upon
55282         --enable-assert=INVALID.
55283
55284 2008-12-10  Bruno Haible  <bruno@clisp.org>
55285
55286         Change MODULES.html to refer to POSIX:2008 where possible.
55287         * MODULES.html.sh (POSIX2008_URL): New variable.
55288         (posix_headers): Remove sys/timeb, ucontext.
55289         (posix2001_headers): New variable.
55290         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
55291         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
55292         index, makecontext, mktemp, pthread_attr_getstackaddr,
55293         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
55294         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
55295         (posix2001_functions): New variable.
55296         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
55297         otherwise.
55298
55299 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55300
55301         add missing include to parse-duration.c
55302         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
55303         * modules/parse-duration (Depends-on): Add xalloc.
55304
55305         fix sed script reading maint.mk
55306         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
55307         (syntax-check-rules): Use it.
55308
55309 2008-12-09  Bruno Haible  <bruno@clisp.org>
55310
55311         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
55312         MacOS X 10.4/PowerPC.
55313         Reported by Simon Josefsson.
55314
55315 2008-12-08  Jim Meyering  <meyering@redhat.com>
55316
55317         work around mingw's lack of some S_IF definitions
55318         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
55319         Reported by Simon Josefsson.
55320
55321 2008-12-08  Bruno Haible  <bruno@clisp.org>
55322
55323         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
55324         applied to variables. Needed on MacOS X 10.4/PowerPC.
55325         Reported by Simon Josefsson.
55326
55327 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
55328         and Eric Blake  <ebb9@byu.net>
55329
55330         assert: honor --enable-assert
55331         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
55332         order to honor --enable-assert, rather than treating it as a
55333         synonym for --disable-assert.
55334
55335 2008-12-08  Jim Meyering  <meyering@redhat.com>
55336
55337         * lib/posixtm.c: Remove now-useless declaration of mktime.
55338
55339         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
55340
55341 2008-12-07  Bruno Haible  <bruno@clisp.org>
55342
55343         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
55344         test_once): Mark functions as static.
55345         * tests/test-tls.c (test_tls): Likewise.
55346
55347 2008-12-07  Bruno Haible  <bruno@clisp.org>
55348
55349         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
55350         iconv_register_autodetect.
55351
55352 2008-12-07  Jim Meyering  <meyering@redhat.com>
55353
55354         posixtm.c: avoid a warning
55355         * lib/posixtm.c (posixtime): Don't initialize tm0.
55356         It's no longer needed to placate gcc4's -Wuninitialized,
55357         and the attempt to placate would elicit a new warning.
55358
55359         unicodeio.c: mark unused parameters
55360         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55361         (fallback_failure_callback): Likewise.
55362
55363 2008-12-07  Bruno Haible  <bruno@clisp.org>
55364
55365         * gnulib-tool (func_create_testdir): When building the tests
55366         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
55367         Reported by Simon Josefsson.
55368
55369 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55370
55371         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
55372
55373 2008-12-06  Bruno Haible  <bruno@clisp.org>
55374
55375         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
55376         Suggested by Eric Blake.
55377
55378 2008-12-06  Bruno Haible  <bruno@clisp.org>
55379
55380         Fix a c-stack test failure on MacOS X.
55381         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
55382         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
55383         handler for SIGBUS as well.
55384         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
55385         install a signal handler for SIGBUS as well.
55386         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
55387
55388 2008-12-06  Bruno Haible  <bruno@clisp.org>
55389
55390         Advocacy documentation.
55391         * doc/gnulib-intro.texi (Benefits): New section.
55392         * doc/gnulib.texi: Update.
55393
55394 2008-12-06  Bruno Haible  <bruno@clisp.org>
55395
55396         Document the 'manywarnings' module.
55397         * doc/manywarnings.texi: New file.
55398         * doc/gnulib.texi: Include it.
55399
55400 2008-12-05  Eric Blake  <ebb9@byu.net>
55401
55402         tests: silence some gcc warnings
55403         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
55404         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
55405         type mismatches.
55406
55407 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55408             Bruno Haible  <bruno@clisp.org>
55409
55410         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
55411
55412 2008-11-29  Jim Meyering  <meyering@redhat.com>
55413
55414         unicodeio.c: mark unused parameters
55415         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
55416         (fallback_failure_callback): Likewise.
55417
55418         fts: fix a thinko
55419         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
55420         (set_stat_type): Return S_IF*-valued "type" directly.
55421         Prompted by James Youngman's spotting a related bug.
55422         Confirmed by further testing through find.
55423
55424         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
55425         * lib/fts.c (D_TYPE): Define.
55426         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
55427         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
55428         (s_ifmt_shift_bits): New function.
55429         (set_stat_type): New function.
55430         (fts_build): When not calling fts_stat, call set_stat_type
55431         to propagate dirent.d_type info to fts_read caller.
55432         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
55433         fts_statp->st_mode type information may be valid.
55434
55435 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55436
55437         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
55438         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
55439         <sds@gnu.org>.
55440
55441 2008-11-20  Bruno Haible  <bruno@clisp.org>
55442
55443         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
55444         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
55445         INCLUDE_NEXT.
55446         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
55447         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
55448         * modules/math (Makefile.am): Substitute
55449         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
55450         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55451
55452 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
55453             Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/stdint.in.h: Define all type macros so that their expansion is
55456         a single typedef'ed token. Fixes a compilation failure in Boost which
55457         does "using ::int8_t;".
55458
55459 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55460
55461         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
55462         gl_MANYWARN_ALL_GCC.
55463         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
55464         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
55465         * modules/manywarnings: New file.
55466         * MODULES.html.sh: Mention manywarnings module.
55467
55468 2008-11-18  Bruno Haible  <bruno@clisp.org>
55469
55470         * doc/gnulib-tool.texi (Unit tests): New section.
55471
55472 2008-11-18  Simon Josefsson  <simon@josefsson.org>
55473
55474         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
55475         paths like 'lib/po/foo.po'.
55476
55477 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55478
55479         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
55480         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
55481
55482 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55483
55484         * m4/warnings.m4: Use CPPFLAGS to really check whether the
55485         parameter works.
55486
55487 2008-11-17  Simon Josefsson  <simon@josefsson.org>
55488
55489         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
55490
55491 2008-11-17  Bruce Korb  <bkorb@gnu.org>
55492
55493         * modules/parse-duration-tests: New file.
55494         * tests/test-parse-duration.sh: New file.
55495         * tests/test-parse-duration.c: New file.
55496
55497         New module 'parse-duration'.
55498         * lib/parse-duration.h: New file.
55499         * lib/parse-duration.c: New file.
55500         * modules/parse-duration: New file.
55501
55502 2008-11-17  Bruno Haible  <bruno@clisp.org>
55503
55504         * tests/test-select-out.sh: Comment out the first pipe test.
55505         Reported by Simon Josefsson.
55506
55507 2008-11-17  Bruno Haible  <bruno@clisp.org>
55508
55509         * modules/getaddrinfo (Depends-on): Add servent, hostent.
55510         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
55511         gl_HOSTENT.
55512
55513 2008-11-17  Bruno Haible  <bruno@clisp.org>
55514
55515         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
55516         -lnetwork and -lnet. Needed for Haiku and BeOS.
55517
55518 2008-11-16  Bruno Haible  <bruno@clisp.org>
55519
55520         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
55521
55522 2008-11-16  Bruno Haible  <bruno@clisp.org>
55523
55524         Avoid test failure on Haiku.
55525         * tests/test-fsync.c: Include <errno.h>.
55526         (main): Don't require that fsync (0) fails.
55527
55528 2008-11-15  Bruno Haible  <bruno@clisp.org>
55529
55530         New module 'hostent'.
55531         * modules/hostent: New file.
55532         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
55533
55534 2008-11-15  Bruno Haible  <bruno@clisp.org>
55535
55536         New module 'servent'.
55537         * modules/servent: New file.
55538         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
55539
55540 2008-11-15  Bruno Haible  <bruno@clisp.org>
55541
55542         Avoid generating same test program with two different rules.
55543         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
55544         test-frexp to test-frexp-nolibm.
55545         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
55546         test-frexpl to test-frexpl-nolibm.
55547
55548 2008-11-15  Bruno Haible  <bruno@clisp.org>
55549
55550         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
55551         $(FREXPL_LIBM).
55552
55553 2008-11-15  Bruno Haible  <bruno@clisp.org>
55554
55555         * lib/netdb.in.h: Activate the definitions also when the system's
55556         <netdb.h> has 'struct addrinfo'.
55557         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
55558         EAI_OVERFLOW or AI_NUMERICSERV.
55559         * doc/posix-headers/netdb.texi: Document the problem.
55560
55561 2008-11-15  Bruno Haible  <bruno@clisp.org>
55562
55563         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
55564
55565         Make the 'sched' module work on platforms where <sched.h> exists but
55566         is incomplete (such as Haiku).
55567         * lib/sched.in.h; Include the system's <sched.h> if it exists.
55568         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
55569         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
55570         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
55571         HAVE_STRUCT_SCHED_PARAM.
55572         * modules/sched (Depends-on): Add include_next.
55573         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
55574         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
55575         * doc/posix-headers/sched.texi: Document the issue.
55576
55577 2008-11-13  Jim Meyering  <meyering@redhat.com>
55578
55579         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
55580         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
55581         test would fail due to the difference in the Report bugs to ...
55582         line.  The expected address is empty, "<>", while the actual
55583         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
55584
55585 2008-11-12  Bruno Haible  <bruno@clisp.org>
55586
55587         lstat: don't compile lstat.c on systems lacking lstat
55588         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
55589         which don't have lstat; this is handled by lib/sys_stat.in.h already.
55590         Reported by Daniel P. Berrange via Jim Meyering.
55591
55592 2008-11-12  Jim Meyering  <meyering@redhat.com>
55593
55594         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
55595
55596 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55597
55598         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
55599         instead.
55600
55601 2008-11-12  Bruno Haible  <bruno@clisp.org>
55602
55603         * lib/unicodeio.c: Include unistr.h.
55604         (utf8_wctomb): Remove function.
55605         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
55606
55607 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55608
55609         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
55610         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
55611         <bruno@clisp.org>.
55612         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
55613
55614 2008-11-12  Simon Josefsson  <simon@josefsson.org>
55615
55616         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
55617         * doc/gnulib.texi: Add section for warnings.
55618
55619 2008-11-11  Bruno Haible  <bruno@clisp.org>
55620
55621         * lib/sockets.h: Add a comment.
55622
55623 2008-11-11  Karl Berry  <karl@gnu.org>
55624
55625         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
55626
55627 2008-11-11  Eric Blake  <ebb9@byu.net>
55628
55629         fdl.texi: avoid git symlinks
55630         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
55631
55632 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55633
55634         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
55635
55636 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55637
55638         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
55639         (gl_WARN_ADD): Substitute $2 if literal.
55640
55641 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55642
55643         * m4/warning.m4: Remove.
55644
55645 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
55646
55647         * m4/warnings.m4: Almost complete rewrite. :-)
55648
55649 2008-11-10  Simon Josefsson  <simon@josefsson.org>
55650
55651         * modules/warnings: New module.
55652         * m4/warnings.m4: New file.
55653         * MODULES.html.sh: Mention warnings module.
55654         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
55655         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55656
55657 2008-11-10  Eric Blake  <ebb9@byu.net>
55658
55659         fdl.texi: make a symlink to the latest version
55660         * doc/standards.texi: Revert today's earlier change.
55661         * doc/fdl-1.2.texi: Rename from old fdl.texi...
55662         * doc/fdl.texi: ...and replace this with a symlink to the newer
55663         fdl-1.3.texi.
55664
55665 2008-11-10  Bruno Haible  <bruno@clisp.org>
55666
55667         * tests/test-select-fd.c (main): Accept the result file name as fourth
55668         argument.
55669         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
55670         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
55671
55672 2008-11-10  Bruno Haible  <bruno@clisp.org>
55673
55674         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
55675         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
55676         as autoconf-substituted macros.
55677         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
55678         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
55679         gl_NETDB_H_DEFAULTS. Set these variables.
55680         * modules/netdb (Makefile.am): Substitute these variables.
55681
55682 2008-11-10  Eric Blake  <ebb9@byu.net>
55683
55684         standards.texi: include correct file for FDL 1.3
55685         * doc/standards.texi (GNU Free Documentation License): Change
55686         include file to pull in FDL 1.3, not 1.2.
55687
55688         fdl.texi: revert accidental change to license
55689         * doc/fdl.texi: This is FDL 1.2, not 1.3.
55690
55691 2008-11-10  Bruno Haible  <bruno@clisp.org>
55692
55693         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
55694         cross-compiling guesses also when the native compile gives no result.
55695
55696 2008-11-10  Bruno Haible  <bruno@clisp.org>
55697
55698         * lib/spawni.c (__spawni): Force variable into the stack.
55699
55700 2008-11-10  Bruno Haible  <bruno@clisp.org>
55701
55702         Add support for Haiku.
55703         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
55704         glibc and BeOS, but also on Haiku.
55705         * lib/fpurge.c (fpurge): Likewise.
55706         * lib/freadable.c (freadable): Likewise.
55707         * lib/freadahead.c (freadahead): Likewise.
55708         * lib/freading.c (freading): Likewise.
55709         * lib/freadptr.c (freadptr): Likewise.
55710         * lib/freadseek.c (freadptrinc): Likewise.
55711         * lib/fseeko.c (rpl_fseeko): Likewise.
55712         * lib/fseterr.c (fseterr): Likewise.
55713         * lib/fwritable.c (fwritable): Likewise.
55714         * lib/fwriting.c (fwriting): Likewise.
55715         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
55716
55717 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55718
55719         * lib/config.charset: Treat Haiku like BeOS.
55720
55721 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
55722
55723         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
55724         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
55725
55726 2008-11-08  Bruno Haible  <bruno@clisp.org>
55727
55728         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
55729         AC_CACHE_CHECK.
55730
55731 2008-11-08  Bruno Haible  <bruno@clisp.org>
55732
55733         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
55734
55735 2008-11-08  Bruno Haible  <bruno@clisp.org>
55736
55737         * tests/test-select-fd.c: New file.
55738         * tests/test-select-in.sh: New file.
55739         * tests/test-select-out.sh: New file.
55740         * tests/test-select-stdin.c: New file.
55741         * modules/select-tests (Files): Add the new files.
55742         (Depends-on): Add gettimeofday.
55743         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
55744         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
55745         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
55746
55747 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
55748             Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
55751
55752 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
55753
55754         * build-aux/pmccabe2html: Added support for C++ source files.
55755
55756 2008-11-05  Ben Pfaff  <blp@gnu.org>
55757
55758         Fix lib/close.c build on Windows.
55759         * modules/close (Files): Add lib/w32sock.h.
55760
55761 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
55762
55763         Accept Bison's NEWS format.
55764         * build-aux/announce-gen (print_news_deltas): Tweak
55765         $re_prefix.
55766
55767 2008-11-04  Bruno Haible  <bruno@clisp.org>
55768
55769         * modules/random_r (Maintainer): Add glibc.
55770
55771 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55772
55773         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
55774         by karl@freefriends.org (Karl Berry).
55775         * doc/alloca.texi: Likewise.
55776         * doc/c-ctype.texi: Likewise.
55777         * doc/c-strcase.texi: Likewise.
55778         * doc/c-strcaseeq.texi: Likewise.
55779         * doc/c-strcasestr.texi: Likewise.
55780         * doc/c-strstr.texi: Likewise.
55781         * doc/c-strtod.texi: Likewise.
55782         * doc/c-strtold.texi: Likewise.
55783         * doc/ctime.texi: Likewise.
55784         * doc/error.texi: Likewise.
55785         * doc/fdl.texi: Likewise.
55786         * doc/gcd.texi: Likewise.
55787         * doc/getdate.texi: Likewise.
55788         * doc/gnulib-intro.texi: Likewise.
55789         * doc/gnulib-tool.texi: Likewise.
55790         * doc/gnulib.texi: Likewise.
55791         * doc/inet_ntoa.texi: Likewise.
55792         * doc/maintain.texi: Likewise.
55793         * doc/make-stds.texi: Likewise.
55794         * doc/quote.texi: Likewise.
55795         * doc/regexprops-generic.texi: Likewise.
55796         * doc/standards.texi: Likewise.
55797         * doc/verify.texi: Likewise.
55798         * doc/visibility.texi: Likewise.
55799         * doc/gnulib.texi (GNU Free Documentation License): Include
55800         fdl-1.3.texi instead of fdl.texi.
55801
55802 2008-11-04  Simon Josefsson  <simon@josefsson.org>
55803
55804         * doc/fdl-1.3.texi: New file, from
55805         <http://www.gnu.org/licenses/fdl-1.3.texi>.
55806         * modules/fdl-1.3: Add.
55807         * MODULES.html.sh: Add fdl-1.3.
55808
55809 2008-11-03  Bruno Haible  <bruno@clisp.org>
55810
55811         Make determination of absolute name of header file work with AIX xlc.
55812         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
55813         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
55814         preprocessing.
55815         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55816         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
55817
55818 2008-11-03  Simon Josefsson  <simon@josefsson.org>
55819
55820         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
55821         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
55822         <ludo@gnu.org>.
55823
55824 2008-11-02  Bruno Haible  <bruno@clisp.org>
55825
55826         Mark 'strpbrk' obsolete.
55827         * modules/strpbrk (Status, Notice): New sections.
55828         * modules/strtok_r (Depends-on): Add strpbrk.
55829
55830 2008-11-02  Bruno Haible  <bruno@clisp.org>
55831
55832         Mark 'strdup' obsolete.
55833         * modules/strdup (Status, Notice): New sections.
55834         * modules/findprog (Depends-on): Add strdup.
55835         * modules/getaddrinfo (Depends-on): Likewise.
55836         * modules/localename (Depends-on): Likewise.
55837         * modules/relocatable-lib (Depends-on): Likewise.
55838         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
55839         * modules/relocatable-prog (Depends-on): Likewise.
55840         * modules/trim (Depends-on): Likewise.
55841         * modules/unictype/gen-ctype (Depends-on): Likewise.
55842         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55843
55844 2008-11-02  Bruno Haible  <bruno@clisp.org>
55845
55846         Mark 'strcspn' obsolete.
55847         * modules/strcspn (Status, Notice): New sections.
55848
55849 2008-11-02  Bruno Haible  <bruno@clisp.org>
55850
55851         Mark 'rmdir' obsolete.
55852         * modules/rmdir (Status, Notice): New sections.
55853         * modules/clean-temp (Depends-on): Add rmdir.
55854         * modules/openat (Depends-on): Likewise.
55855
55856 2008-11-02  Bruno Haible  <bruno@clisp.org>
55857
55858         Mark 'raise' obsolete.
55859         * modules/raise (Status, Notice): New sections.
55860         (Include): Specify <signal.h>.
55861         * modules/stdio (Depends-on): Add raise.
55862         * modules/write (Depends-on): Likewise.
55863
55864 2008-11-02  Bruno Haible  <bruno@clisp.org>
55865
55866         Mark 'memset' obsolete.
55867         * modules/memset (Status, Notice): New sections.
55868
55869 2008-11-02  Bruno Haible  <bruno@clisp.org>
55870
55871         Mark 'memmove' obsolete.
55872         * modules/memmove (Status, Notice): New sections.
55873         * modules/argp (Depends-on): Add memmove.
55874         * modules/argz (Depends-on): Likewise.
55875         * modules/canonicalize (Depends-on): Likewise.
55876         * modules/canonicalize-lgpl (Depends-on): Likewise.
55877         * modules/fts (Depends-on): Likewise.
55878         * modules/getcwd (Depends-on): Likewise.
55879         * modules/human (Depends-on): Likewise.
55880         * modules/regex (Depends-on): Likewise.
55881         * modules/striconveh (Depends-on): Likewise.
55882         * modules/trim (Depends-on): Likewise.
55883         * modules/unistr/u8-move (Depends-on): Likewise.
55884         * modules/unistr/u16-move (Depends-on): Likewise.
55885         * modules/unistr/u32-move (Depends-on): Likewise.
55886
55887 2008-11-02  Bruno Haible  <bruno@clisp.org>
55888
55889         Mark 'memcpy' obsolete.
55890         * modules/memcpy (Status, Notice): New sections.
55891
55892 2008-11-02  Bruno Haible  <bruno@clisp.org>
55893
55894         Mark 'memcmp' obsolete.
55895         * modules/memcmp (Status, Notice): New sections.
55896         * modules/argmatch (Depends-on): Add memchr.
55897         * modules/backupfile (Depends-on): Likewise.
55898         * modules/c-strcasestr (Depends-on): Likewise.
55899         * modules/crypto/des (Depends-on): Likewise.
55900         * modules/csharpcomp (Depends-on): Likewise.
55901         * modules/fnmatch (Depends-on): Likewise.
55902         * modules/git-merge-changelog (Depends-on): Likewise.
55903         * modules/isnand (Depends-on): Likewise.
55904         * modules/isnand-nolibm (Depends-on): Likewise.
55905         * modules/isnanf (Depends-on): Likewise.
55906         * modules/isnanf-nolibm (Depends-on): Likewise.
55907         * modules/isnanl (Depends-on): Likewise.
55908         * modules/isnanl-nolibm (Depends-on): Likewise.
55909         * modules/mbchar (Depends-on): Likewise.
55910         * modules/memcoll (Depends-on): Likewise.
55911         * modules/quotearg (Depends-on): Likewise.
55912         * modules/regex (Depends-on): Likewise.
55913         * modules/relocatable-prog (Depends-on): Likewise.
55914         * modules/same (Depends-on): Likewise.
55915         * modules/signbit (Depends-on): Likewise.
55916         * modules/strcasestr-simple (Depends-on): Likewise.
55917         * modules/unictype/gen-ctype (Depends-on): Likewise.
55918         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
55919         * modules/uniname/uniname (Depends-on): Likewise.
55920         * modules/unistr/u8-cmp (Depends-on): Likewise.
55921
55922 2008-11-02  Bruno Haible  <bruno@clisp.org>
55923
55924         Mark 'memchr' obsolete.
55925         * modules/memchr (Status, Notice): New sections.
55926         * modules/argp (Depends-on): Add memchr.
55927         * modules/base64 (Depends-on): Likewise.
55928         * modules/c-strcasestr (Depends-on): Likewise.
55929         * modules/chdir-long (Depends-on): Likewise.
55930         * modules/fnmatch (Depends-on): Likewise.
55931         * modules/getsubopt (Depends-on): Likewise.
55932         * modules/git-merge-changelog (Depends-on): Likewise.
55933         * modules/glob (Depends-on): Likewise.
55934         * modules/strcasestr-simple (Depends-on): Likewise.
55935         * modules/strnlen (Depends-on): Likewise.
55936
55937 2008-11-02  Bruno Haible  <bruno@clisp.org>
55938
55939         Mark 'atexit' obsolete.
55940         * modules/atexit (Status, Notice): New sections.
55941         * modules/chdir-long (Depends-on): Add atexit.
55942         * modules/wait-process (Depends-on): Likewise.
55943
55944 2008-11-02  Bruno Haible  <bruno@clisp.org>
55945
55946         * gnulib-tool: New option --with-obsolete.
55947         (func_usage): Document it.
55948         (func_modules_transitive_closure): Drop obsolete dependencies if
55949         incobsolete is not true.
55950         (func_import): Read and save the incobsolete variable to the cache.
55951
55952 2008-11-02  Bruno Haible  <bruno@clisp.org>
55953
55954         * modules/TEMPLATE-EXTENDED: New field 'Status'.
55955         * gnulib-tool: New option --extract-status.
55956         (func_usage): Document it.
55957         (sed_extract_prog): Recognize it.
55958         (func_get_status): New function.
55959
55960 2008-10-30  Simon Josefsson  <simon@josefsson.org>
55961
55962         * modules/sockets (License): Change from LGPL to LGPLv2+.
55963
55964 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55965
55966         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
55967
55968 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55969
55970         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55971         Mention times and sys_times.
55972         * modules/sys_times, modules/sys_times-tests: New modules.
55973         * modules/times, modules/times-tests: Likewise
55974         * m4/sys_times_h.m4: New file.
55975         * lib/sys_times.in.h: Likewise
55976         * lib/times.c: Likewise.
55977         * tests/test-sys_times.c: Likewise.
55978         * tests/test-times.c: Likewise.
55979         * doc/posix-headers/sys_times.texi: Update.
55980         * doc/posix-functions/times.texi: Update.
55981
55982 2008-10-28  Jim Meyering  <meyering@redhat.com>
55983
55984         * modules/tempname (Depends-on): Add lstat.
55985
55986         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
55987
55988 2008-10-28  Simon Josefsson  <simon@josefsson.org>
55989
55990         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
55991         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
55992         using idiom used elsewhere in gnulib.
55993
55994 2008-10-27  Jim Meyering  <meyering@redhat.com>
55995
55996         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
55997
55998 2008-10-27  Simon Josefsson  <simon@josefsson.org>
55999
56000         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
56001         TESTS_ENVIRONMENT, for shell scripts that needs to call built
56002         programs.
56003         * tests/test-argp-2.sh: Use $EXEEXT when needed.
56004
56005 2008-10-27  Simon Josefsson  <simon@josefsson.org>
56006
56007         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
56008
56009 2008-10-27  Bruno Haible  <bruno@clisp.org>
56010
56011         * tests/test-lstat.c: Include <stdio.h>.
56012
56013 2008-10-27  Simon Josefsson  <simon@josefsson.org>
56014
56015         * modules/lstat-tests: New module.
56016         * tests/test-lstat.c: New file.
56017
56018 2008-10-26  Jim Meyering  <meyering@redhat.com>
56019
56020         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
56021
56022 2008-10-26  Simon Josefsson  <simon@josefsson.org>
56023             Bruno Haible  <bruno@clisp.org>
56024
56025         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
56026         * modules/configmake (Include): Add a note that the include must come
56027         after all system headers.
56028         * lib/javaversion.c: Include configmake.h after all other includes.
56029
56030 2008-10-26  Bruno Haible  <bruno@clisp.org>
56031
56032         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
56033         HAVE_STRUCT_RANDOM_DATA to 1.
56034         (gl_STDLIB_H): Simplify.
56035
56036 2008-10-26  Simon Josefsson  <simon@josefsson.org>
56037
56038         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
56039         substitute HAVE_STRUCT_RANDOM_DATA.
56040         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
56041         random_data.
56042         * modules/stdlib (Makefile.am): Substitute
56043         HAVE_STRUCT_RANDOM_DATA.
56044
56045 2008-10-26  Simon Josefsson  <simon@josefsson.org>
56046
56047         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
56048         * doc/gnulib-intro.texi (Copyright): Likewise.
56049
56050 2008-10-26  Simon Josefsson  <simon@josefsson.org>
56051
56052         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
56053         findings.
56054
56055 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
56056             Bruno Haible  <bruno@clisp.org>
56057
56058         * lib/unistd.in.h: Include <winsock2.h>.
56059         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
56060         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
56061         Provide dummy declarations.
56062         (gethostname): Override.
56063         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
56064         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
56065         gl_PREREQ_SYS_H_WINSOCK2.
56066         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
56067         * doc/posix-functions/gethostname.texi: More details.
56068
56069 2008-10-25  Bruno Haible  <bruno@clisp.org>
56070
56071         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56072         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
56073         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
56074
56075         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
56076         here ...
56077         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
56078         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
56079         gl_UNISTD_H_DEFAULTS.
56080
56081 2008-10-25  Eric Blake  <ebb9@byu.net>
56082
56083         signbit: avoid spurious compiler failure
56084         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
56085         declarations inside function.
56086
56087 2008-10-24  Simon Josefsson  <simon@josefsson.org>
56088             Bruno Haible  <bruno@clisp.org>
56089
56090         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
56091         * modules/random_r (Depends-on): Add stdint.
56092
56093 2008-10-24  Bruno Haible  <bruno@clisp.org>
56094
56095         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
56096         Eggert.
56097         * modules/strerror (License): Likewise.
56098
56099 2008-10-24  Jim Meyering  <meyering@redhat.com>
56100
56101         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
56102         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
56103
56104 2008-10-24  Eric Blake  <ebb9@byu.net>
56105
56106         getgroups: fix compilation when getgroups is available
56107         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
56108         but with <config.h> override of getgroups disabled.
56109
56110 2008-10-24  Simon Josefsson  <simon@josefsson.org>
56111
56112         * doc/gnulib.texi (Header files): Add note about C++ problems.
56113         Explained by Bruno Haible <bruno@clisp.org>.
56114
56115 2008-10-23  Bruno Haible  <bruno@clisp.org>
56116
56117         Define a dummy SA_NODEFER macro on Interix.
56118         * lib/signal.in.h (SA_NODEFER): Define fallback.
56119         Reported by Aleksey Cheusov <cheusov@tut.by> via
56120         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
56121
56122 2008-10-23  Bruno Haible  <bruno@clisp.org>
56123
56124         * modules/freadahead (License): Change to LGPLv2+.
56125         Suggested by Simon Josefsson.
56126
56127 2008-10-23  Jim Meyering  <meyering@redhat.com>
56128
56129         random_r: new module
56130         * modules/random_r: New file.
56131         * m4/random_r.m4: New file.
56132         * lib/random_r.c: New file, from glibc.
56133         * modules/random_r-tests: New file.
56134         * tests/test-random_r.c: New file.
56135         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
56136          Declare.
56137         (RAND_MAX): Define.
56138         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
56139         * modules/stdlib: Substitute them, too.
56140         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
56141         * doc/glibc-functions/initstate_r.texi: Mention the new module.
56142         * doc/glibc-functions/random_r.texi: Likewise.
56143         * doc/glibc-functions/setstate_r.texi: Likewise.
56144         * doc/glibc-functions/srandom_r.texi: Likewise.
56145         * config/srclist.txt: Mention it.
56146
56147 2008-10-23  David Lutterkort  <lutter@redhat.com>
56148
56149         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
56150         link requirement
56151
56152 2008-10-23  Jim Meyering  <meyering@redhat.com>
56153
56154         selinux-h: mark parameters of stub functions as intentionally unused
56155         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
56156         * lib/se-context.in.h: Likewise.
56157
56158 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56159
56160         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
56161
56162 2008-10-22  Simon Josefsson  <simon@josefsson.org>
56163
56164         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
56165
56166 2008-10-22  Eric Blake  <ebb9@byu.net>
56167
56168         glthread/thread: avoid compiler warning
56169         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
56170         Add unreachable abort to silence compiler.
56171
56172 2008-10-22  Eric Blake  <ebb9@byu.net>
56173
56174         netdb: also supply struct addrinfo for cygwin 1.5.x
56175         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
56176         older cygwin.
56177         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
56178         cygwin.
56179         * doc/posix-headers/netdb.texi (netdb.h): Document this.
56180
56181 2008-10-22  Bruno Haible  <bruno@clisp.org>
56182
56183         * users.txt: Update entry about pspp.
56184
56185 2008-10-21  Bruno Haible  <bruno@clisp.org>
56186
56187         Simplification.
56188         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
56189         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
56190
56191         Simplification.
56192         * lib/ioctl.c (ioctl): Don't undefine.
56193         * lib/socket.c (socket): Don't undefine.
56194
56195         Remove unused module indicator macros.
56196         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
56197         GNULIB_$1 as a C macro.
56198
56199         * doc/posix-functions/close.texi: Undo last change.
56200         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
56201         Windows platforms.
56202
56203 2008-10-21  Bruno Haible  <bruno@clisp.org>
56204
56205         Add gethostname() declaration to <unistd.h>.
56206         * lib/unistd.in.h (gethostname): New declaration.
56207         * lib/gethostname.c: Include <unistd.h>.
56208         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
56209         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
56210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
56211         and HAVE_GETHOSTNAME.
56212         * modules/gethostname (Depends-on): Add unistd.
56213         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56214         (Include): Specify <unistd.h>.
56215         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
56216         HAVE_GETHOSTNAME.
56217         * tests/test-gethostname.c: Include <unistd.h> first.
56218
56219 2008-10-21  Bruno Haible  <bruno@clisp.org>
56220
56221         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
56222         * modules/select-tests (Depends-on): Likewise.
56223         Reported by Simon Josefsson.
56224
56225 2008-10-21  Simon Josefsson  <simon@josefsson.org>
56226
56227         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
56228         * lib/accept.c: New file, based on winsock.c.
56229         * lib/bind.c: New file, based on winsock.c.
56230         * lib/connect.c: New file, based on winsock.c.
56231         * lib/getpeername.c: New file, based on winsock.c.
56232         * lib/getsockname.c: New file, based on winsock.c.
56233         * lib/getsockopt.c: New file, based on winsock.c.
56234         * lib/ioctl.c: New file, based on winsock.c.
56235         * lib/listen.c: New file, based on winsock.c.
56236         * lib/recv.c: New file, based on winsock.c.
56237         * lib/recvfrom.c: New file, based on winsock.c.
56238         * lib/send.c: New file, based on winsock.c.
56239         * lib/sendto.c: New file, based on winsock.c.
56240         * lib/setsockopt.c: New file, based on winsock.c.
56241         * lib/shutdown.c: New file, based on winsock.c.
56242         * lib/socket.c: New file, based on winsock.c.
56243         * lib/w32sock.h: New file, based on winsock.c.
56244         * lib/winsock.c: Remove file.
56245         * modules/accept: Likewise.
56246         * modules/bind: Likewise.
56247         * modules/connect: Likewise.
56248         * modules/getpeername: Likewise.
56249         * modules/getsockname: Likewise.
56250         * modules/getsockopt: Likewise.
56251         * modules/ioctl: Likewise.
56252         * modules/listen: Likewise.
56253         * modules/recv: Likewise.
56254         * modules/recvfrom: Likewise.
56255         * modules/send: Likewise.
56256         * modules/sendto: Likewise.
56257         * modules/setsockopt: Likewise.
56258         * modules/shutdown: Likewise.
56259         * modules/socket: Use socket.c instead of winsock.c.
56260         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
56261         * doc/posix-functions/accept.texi: Doc fix.
56262         * doc/posix-functions/bind.texi: Doc fix.
56263         * doc/posix-functions/close.texi: Doc fix.
56264         * doc/posix-functions/connect.texi: Doc fix.
56265         * doc/posix-functions/getpeername.texi: Doc fix.
56266         * doc/posix-functions/getsockname.texi: Doc fix.
56267         * doc/posix-functions/getsockopt.texi: Doc fix.
56268         * doc/posix-functions/ioctl.texi: Doc fix.
56269         * doc/posix-functions/listen.texi: Doc fix.
56270         * doc/posix-functions/recv.texi: Doc fix.
56271         * doc/posix-functions/recvfrom.texi: Doc fix.
56272         * doc/posix-functions/send.texi: Doc fix.
56273         * doc/posix-functions/sendto.texi: Doc fix.
56274         * doc/posix-functions/setsockopt.texi: Doc fix.
56275         * doc/posix-functions/shutdown.texi: Doc fix.
56276         * doc/posix-functions/socket.texi: Doc fix.
56277
56278 2008-10-20  Bruno Haible  <bruno@clisp.org>
56279
56280         Take into account the role of SIGABRT_COMPAT on Windows 2008.
56281         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
56282         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
56283         as an alias for SIGABRT.
56284         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
56285         (sigaction): Map it to SIGABRT.
56286         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
56287
56288 2008-10-20  Bruno Haible  <bruno@clisp.org>
56289
56290         * lib/fts.c: Don't include lstat.h.
56291         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
56292
56293         Move the lstat() declaration to <sys/stat.h>.
56294         * lib/lstat.h: Remove file.
56295         * lib/sys_stat.in.h: Add special invocation convention.
56296         (lstat): New declaration.
56297         * lib/lstat.c (orig_lstat): New function.
56298         (rpl_lstat): Use orig_lstat instead of lstat.
56299         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
56300         AC_C_INLINE. Set REPLACE_LSTAT.
56301         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
56302         and REPLACE_LSTAT.
56303         * modules/lstat (Files): Remove lib/lstat.h.
56304         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56305         (Include): Specify <sys/stat.h> instead of lstat.h.
56306         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
56307         REPLACE_LSTAT.
56308         * NEWS: Mention the change.
56309
56310 2008-10-20  Bruno Haible  <bruno@clisp.org>
56311
56312         * modules/posix_spawn-tests: New file.
56313         * tests/test-posix_spawn3.c: New file.
56314
56315 2008-10-20  Bruno Haible  <bruno@clisp.org>
56316
56317         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
56318         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56319         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
56320         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
56321         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
56322
56323 2008-10-20  Bruno Haible  <bruno@clisp.org>
56324
56325         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
56326         of posix_spawn on AIX 5.3.
56327
56328 2008-10-20  Bruno Haible  <bruno@clisp.org>
56329
56330         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
56331
56332 2008-10-20  Bruno Haible  <bruno@clisp.org>
56333
56334         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
56335         of AC_LANG_PROGRAM.
56336
56337 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56338
56339         * lib/netdb.in.h: Don't define GNU specific constants until they
56340         are supported or needed.  Reported by Bruno Haible
56341         <bruno@clisp.org>.
56342
56343 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56344
56345         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
56346
56347 2008-10-20  Simon Josefsson  <simon@josefsson.org>
56348
56349         * lib/getaddrinfo.h: Remove file.
56350         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
56351         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
56352         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
56353         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
56354         * modules/netdb: Substitute GNULIB_GETADDRINFO.
56355         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
56356         * tests/test-getaddrinfo.c: Likewise.
56357         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
56358         * NEWS: Mention change.
56359
56360 2008-10-19  Bruno Haible  <bruno@clisp.org>
56361
56362         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
56363
56364 2008-10-19  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/wait-process.c: Include simply <sys/wait.h>.
56367         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
56368         WIFSTOPPED): Remove fallback definitions.
56369         * modules/wait-process (Depends-on): Add sys_wait.
56370
56371         New module 'sys_wait'.
56372         * modules/sys_wait: New file.
56373         * lib/sys_wait.in.h: New file, partially copied from
56374         lib/wait-process.c.
56375         * m4/sys_wait_h.m4: New file.
56376         * doc/posix-headers/sys_wait.texi: Mention the new module.
56377
56378 2008-10-19  Bruno Haible  <bruno@clisp.org>
56379
56380         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
56381
56382 2008-10-19  Bruno Haible  <bruno@clisp.org>
56383
56384         Assume that waitpid() fills an 'int' status, not a 'union wait'.
56385         * lib/wait-process.c (WAIT_T): Remove type.
56386         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
56387         (wait_subprocess): Update.
56388
56389 2008-10-19  Bruno Haible  <bruno@clisp.org>
56390
56391         New module 'atoll'.
56392         * modules/atoll: New file.
56393         * lib/stdlib.in.h (atoll): New declaration.
56394         * lib/atoll.c: New file, from glibc with modifications.
56395         * m4/atoll.m4: New file.
56396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
56397         HAVE_ATOLL.
56398         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
56399         * doc/posix-functions/atoll.texi: Mention the new module.
56400
56401 2008-10-19  Bruno Haible  <bruno@clisp.org>
56402
56403         Add strtoull() declaration to <stdlib.h>.
56404         * lib/stdlib.in.h (strtoull): New declaration.
56405         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56406         Set HAVE_STRTOULL.
56407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
56408         HAVE_STRTOULL.
56409         * modules/strtoull (Depends-on): Add stdlib.
56410         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56411         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
56412         HAVE_STRTOULL.
56413
56414 2008-10-19  Bruno Haible  <bruno@clisp.org>
56415
56416         Add strtoll() declaration to <stdlib.h>.
56417         * lib/stdlib.in.h (strtoll): New declaration.
56418         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
56419         Set HAVE_STRTOLL.
56420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
56421         HAVE_STRTOLL.
56422         * modules/strtoll (Depends-on): Add stdlib.
56423         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56424         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
56425
56426 2008-10-19  Bruno Haible  <bruno@clisp.org>
56427
56428         * modules/bcopy (Depends-on): Add strings.
56429         (Include): Specify <strings.h>.
56430
56431 2008-10-19  Bruno Haible  <bruno@clisp.org>
56432
56433         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
56434
56435 2008-10-19  Bruno Haible  <bruno@clisp.org>
56436
56437         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
56438         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
56439         mingw.
56440
56441 2008-10-19  Bruno Haible  <bruno@clisp.org>
56442
56443         * lib/atanl.c: Don't include isnanl.h.
56444         * lib/cosl.c: Likewise.
56445         * lib/ldexpl.c: Likewise.
56446         * lib/logl.c: Likewise.
56447         * lib/sinl.c: Likewise.
56448         * lib/sqrtl.c: Likewise.
56449         * lib/tanl.c: Likewise.
56450
56451         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
56452         * lib/isnanf.h: Remove file.
56453         * lib/isnand.h: Remove file.
56454         * lib/isnanl.h: Remove file.
56455         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
56456         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
56457         macros.
56458         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
56459         HAVE_ISNANF, don't define it as a C macro.
56460         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
56461         HAVE_ISNAND, don't define it as a C macro.
56462         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
56463         HAVE_ISNANL, don't define it as a C macro.
56464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
56465         HAVE_ISNAN[FDL].
56466         * modules/isnanf (Files): Remove lib/isnanf.h.
56467         (Depends-on): Add math.
56468         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56469         (Include): Specify <math.h> instead of isnanf.h.
56470         * modules/isnand (Files): Remove lib/isnand.h.
56471         (Depends-on): Add math.
56472         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56473         (Include): Specify <math.h> instead of isnand.h.
56474         * modules/isnanl (Files): Remove lib/isnanl.h.
56475         (Depends-on): Add math.
56476         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
56477         (Include): Specify <math.h> instead of isnanl.h.
56478         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
56479         HAVE_ISNAN[FDL].
56480         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
56481         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
56482         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
56483         * NEWS: Mention the change.
56484
56485 2008-10-18  Bruno Haible  <bruno@clisp.org>
56486
56487         Add getusershell(), setusershell(), endusershell() declarations to
56488         <unistd.h>.
56489         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
56490         declarations.
56491         * lib/getusershell.c: Include unistd.h.
56492         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
56493         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56494         HAVE_GETUSERSHELL.
56495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
56496         and HAVE_GETUSERSHELL.
56497         * modules/getusershell (Depends-on): Add unistd, extensions.
56498         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56499         (Include): Specify <unistd.h>.
56500         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
56501         HAVE_GETUSERSHELL.
56502
56503 2008-10-18  Bruno Haible  <bruno@clisp.org>
56504
56505         Add a getloadavg() declaration to <stdlib.h>.
56506         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
56507         getloadavg declaration.
56508         (getloadavg): New declaration.
56509         * lib/getloadavg.c: Include <stdlib.h> first.
56510         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
56511         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
56512         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
56513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
56514         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56515         * modules/getloadavg (Depends-on): Add stdlib, extensions.
56516         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56517         (Include): Specify <stdlib.h>.
56518         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
56519         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
56520
56521 2008-10-18  Bruno Haible  <bruno@clisp.org>
56522
56523         * lib/dirchownmod.c: Don't include lchmod.h.
56524
56525         Move the lchmod() declaration to <sys/stat.h>.
56526         * lib/lchmod.h: Remove file.
56527         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
56528         (lchmod): New declaration, moved here from lib/lchown.h.
56529         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
56530         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
56531         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
56532         and HAVE_LCHMOD.
56533         * modules/lchmod (Files): Remove lib/lchmod.h.
56534         (Depends-on): Add sys_stat, extensions.
56535         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
56536         (Include): Specify <sys/stat.h> instead of lchmod.h.
56537         * modules/sys_stat (Depends-on): Add link-warning.
56538         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
56539         definition of GL_LINK_WARNING.
56540         * NEWS: Mention the change.
56541
56542 2008-10-18  Bruno Haible  <bruno@clisp.org>
56543
56544         * lib/fchdir.c: Don't include dirfd.h.
56545         * lib/fts.c: Likewise.
56546         * lib/getcwd.c: Likewise.
56547         * lib/glob.c: Likewise.
56548
56549         Move the dirfd() declaration to <dirent.h>.
56550         * lib/dirfd.h: Remove file.
56551         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
56552         (dirfd): New declaration.
56553         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
56554         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
56555         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
56556         HAVE_DECL_DIRFD.
56557         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
56558         HAVE_DECL_DIRFD.
56559         * modules/dirfd (Files): Remove lib/dirfd.h.
56560         (Depends-on): Add dirent, extensions.
56561         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
56562         (Include): Specify <dirent.h> instead of dirfd.h.
56563         * modules/dirent (Depends-on): Add link-warning.
56564         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
56565         definition of GL_LINK_WARNING.
56566         * NEWS: Mention the change.
56567
56568 2008-10-18  Bruno Haible  <bruno@clisp.org>
56569
56570         Move the euidaccess() declaration to <unistd.h>.
56571         * lib/euidaccess.h: Remove file.
56572         * lib/unistd.in.h (euidaccess): New declaration.
56573         * lib/euidaccess.c: Don't include euidaccess.h.
56574         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
56575         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
56576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
56577         and HAVE_EUIDACCESS.
56578         * modules/euidaccess (Files): Remove lib/euidaccess.h.
56579         (Depends-on): Add unistd.
56580         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56581         (Include): Specify <unistd.h> instead of euidaccess.h.
56582         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
56583         HAVE_EUIDACCESS.
56584         * NEWS: Mention the change.
56585
56586 2008-10-18  Bruno Haible  <bruno@clisp.org>
56587
56588         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
56589
56590         Move the getdomainname() declaration to <unistd.h>.
56591         * lib/getdomainname.h: Remove file.
56592         * lib/unistd.in.h (getdomainname): New declaration.
56593         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
56594         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
56595         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
56596         HAVE_GETDOMAINNAME.
56597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56598         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
56599         * modules/getdomainname (Files): Remove lib/getdomainname.h.
56600         (Depends-on): Add unistd, extensions.
56601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
56602         (Includes): Specify <unistd.h> instead of getdomainname.h.
56603         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
56604         HAVE_GETDOMAINNAME.
56605         * NEWS: Mention the change.
56606
56607 2008-10-18  Bruno Haible  <bruno@clisp.org>
56608
56609         * modules/dirent: New file.
56610         * m4/dirent_h.m4: New file.
56611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
56612         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
56613         * modules/fchdir (Files): Remove lib/dirent.in.h.
56614         (Depends-on): Add dirent.
56615         (Makefile.am): Move rules to modules/dirent.
56616         * doc/posix-headers/dirent.texi: Mention the new module.
56617
56618 2008-10-18  Bruno Haible  <bruno@clisp.org>
56619
56620         Avoid -Wunused-parameter warnings in public gnulib header files.
56621         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
56622         macro.
56623         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
56624
56625 2008-10-18  Bruno Haible  <bruno@clisp.org>
56626
56627         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
56628         * doc/glibc-functions/error.texi: Mention the module 'error'.
56629         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
56630         * doc/glibc-functions/getdomainname.texi: Mention the module
56631         'getdomainname'.
56632         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
56633         * doc/glibc-functions/getpagesize.texi: Mention the module
56634         'getpagesize'.
56635         * doc/glibc-functions/getusershell.texi: Mention the module
56636         'getusershell'.
56637         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
56638         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
56639         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
56640         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
56641         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
56642         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
56643         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
56644         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
56645         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
56646         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
56647         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
56648         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
56649         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
56650         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
56651
56652 2008-10-17  Bruno Haible  <bruno@clisp.org>
56653
56654         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
56655         HP-UX and IRIX, use -0.0L.
56656         * tests/test-ceill.c (minus_zero): Likewise.
56657         * tests/test-floorl.c (minus_zero): Likewise.
56658         * tests/test-frexpl.c (minus_zero): Likewise.
56659         * tests/test-isnan.c (minus_zerol): Likewise.
56660         * tests/test-isnanl.h (minus_zero): Likewise.
56661         * tests/test-ldexpl.c (minus_zero): Likewise.
56662         * tests/test-roundl.c (minus_zero): Likewise.
56663         * tests/test-signbit.c (minus_zerol): Likewise.
56664         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
56665         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
56666         * tests/test-truncl.c (minus_zero): Likewise.
56667         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
56668         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
56669         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
56670         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
56671
56672 2008-10-17  Bruno Haible  <bruno@clisp.org>
56673
56674         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
56675         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
56676         that it gets activated only for gcc >= 3.0.
56677         * lib/dirent.in.h: Likewise.
56678         * lib/errno.in.h: Likewise.
56679         * lib/fcntl.in.h: Likewise.
56680         * lib/float.in.h: Likewise.
56681         * lib/iconv.in.h: Likewise.
56682         * lib/inttypes.in.h: Likewise.
56683         * lib/locale.in.h: Likewise.
56684         * lib/math.in.h: Likewise.
56685         * lib/netdb.in.h: Likewise.
56686         * lib/netinet_in.in.h: Likewise.
56687         * lib/search.in.h: Likewise.
56688         * lib/signal.in.h: Likewise.
56689         * lib/spawn.in.h: Likewise.
56690         * lib/stdarg.in.h: Likewise.
56691         * lib/stdint.in.h: Likewise.
56692         * lib/stdio.in.h: Likewise.
56693         * lib/stdlib.in.h: Likewise.
56694         * lib/string.in.h: Likewise.
56695         * lib/strings.in.h: Likewise.
56696         * lib/sys_file.in.h: Likewise.
56697         * lib/sys_ioctl.in.h: Likewise.
56698         * lib/sys_select.in.h: Likewise.
56699         * lib/sys_socket.in.h: Likewise.
56700         * lib/sys_stat.in.h: Likewise.
56701         * lib/sys_time.in.h: Likewise.
56702         * lib/sysexits.in.h: Likewise.
56703         * lib/time.in.h: Likewise.
56704         * lib/unistd.in.h: Likewise.
56705         * lib/wchar.in.h: Likewise.
56706         * lib/wctype.in.h: Likewise.
56707         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56708
56709 2008-10-17  Jim Meyering  <meyering@redhat.com>
56710
56711         ignore-value: don't depend on inline module
56712         * modules/ignore-value (Depends-on): Remove 'inline'.
56713         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
56714         Suggestion from Bruno Haible.
56715
56716 2008-10-17  Bruno Haible  <bruno@clisp.org>
56717
56718         New implementation of condition variables for Win32.
56719         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
56720         (gl_linked_waitqueue_t): New type.
56721         (gl_cond_t): Use it.
56722         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
56723         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
56724         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
56725         (glthread_cond_init_func, glthread_cond_wait_func,
56726         glthread_cond_timedwait_func, glthread_cond_signal_func,
56727         glthread_cond_broadcast_func, glthread_cond_destroy_func):
56728         Reimplemented on the basis of gl_linked_waitqueue_t.
56729         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
56730         gl_waitqueue_t.
56731         (gl_rwlock_t): Update.
56732         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
56733
56734 2008-10-17  Simon Josefsson  <simon@josefsson.org>
56735
56736         * modules/recvfrom (Depends-on): Add dependency on getpeername.
56737         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56738
56739 2008-10-17  Jim Meyering  <meyering@redhat.com>
56740
56741         ignore-value: new module
56742         * modules/ignore-value: New file.
56743         * lib/ignore-value.h: New file.
56744         * MODULES.html.sh (Compiler warning management): New section,
56745         just for this module.  More to come.
56746
56747 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56748
56749         open-safer.c: avoid 'signed and unsigned in conditional...' warning
56750         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
56751         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
56752
56753 2008-10-16  Jim Meyering  <meyering@redhat.com>
56754
56755         openat-die.c: avoid 'no previous prototype' warning
56756         * lib/openat-die.c: Include "openat.h".
56757         Reported by Reuben Thomas <rrt@sc3d.org>.
56758
56759 2008-10-16  Simon Josefsson  <simon@josefsson.org>
56760
56761         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
56762         * lib/netdb.in.h: Fix typo.
56763         Reported by Bruno Haible  <bruno@clisp.org>
56764
56765         * lib/netdb.in.h: Include sys/socket.h for platforms without
56766         netdb.h, to get structures like hostent on MinGW.
56767         * modules/netdb (Depends-on): Add sys_socket.
56768
56769 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56770
56771         * modules/netdb, modules/netdb-tests: New file.
56772         * m4/netdb_h.m4: New file.
56773         * lib/netdb.in.h: Add, currently just an empty file pending
56774         definitions.
56775         * tests/test-netdb.c: New file.
56776         * doc/posix-headers/netdb.texi: Mention that we replace it if
56777         needed.
56778         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56779         netdb.
56780
56781 2008-10-15  Simon Josefsson  <simon@josefsson.org>
56782
56783         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
56784         with code.
56785
56786 2008-10-13  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/glthread/cond.c (glthread_cond_wait_func,
56789         glthread_cond_timedwait_func): Add a comment.
56790
56791 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56792
56793         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
56794         * tests/test-select.c: Likewise,
56795
56796 2008-10-13  Bruno Haible  <bruno@clisp.org>
56797
56798         * lib/glthread/cond.c (glthread_cond_wait_func,
56799         glthread_cond_timedwait_func): Fix variable name.
56800         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56801
56802 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
56803
56804         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
56805         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
56806         struct sockaddr.sa_len.
56807         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
56808
56809 2008-10-13  Simon Josefsson  <simon@josefsson.org>
56810
56811         * build-aux/pmccabe2html: Add css and css_url parameters.
56812
56813 2008-10-12  Bruno Haible  <bruno@clisp.org>
56814
56815         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
56816         calling aclx_get.
56817         Reported by Rainer Tammer <tammer@tammer.net>.
56818
56819 2008-10-12  Bruno Haible  <bruno@clisp.org>
56820
56821         Use msvcrt aware primitives for creation/termination of Win32 threads.
56822         * lib/glthread/thread.c: Include <process.h>.
56823         (glthread_create_func): Use _beginthreadex instead of CreateThread.
56824         (wrapper_func): Update signature.
56825         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
56826
56827 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
56828             Bruno Haible  <bruno@clisp.org>
56829
56830         Provide a Win32 implementation of the 'cond' module.
56831         * lib/glthread/cond.h [USE_WIN32]: New implementation.
56832         * lib/glthread/cond.c (glthread_cond_init_func,
56833         glthread_cond_wait_func, glthread_cond_timedwait_func,
56834         glthread_cond_signal_func, glthread_cond_broadcast_func,
56835         glthread_cond_destroy_func) [USE_WIN32]: New functions.
56836         * modules/cond (Dependencies): Add gettimeofday.
56837
56838 2008-10-11  Bruno Haible  <bruno@clisp.org>
56839
56840         Make sleep work on older versions of mingw.
56841         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
56842         only whether it exists.
56843         * doc/posix-functions/sleep.texi: Mention the problem with older
56844         versions of mingw.
56845
56846 2008-10-11  Bruno Haible  <bruno@clisp.org>
56847
56848         New module 'shutdown'.
56849         * modules/shutdown: New file.
56850         * lib/sys_socket.in.h (shutdown): New declaration.
56851         * lib/winsock.c (shutdown): New function.
56852         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
56853         GNULIB_SHUTDOWN.
56854         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
56855         * doc/posix-functions/shutdown.texi: Document the new module.
56856
56857 2008-10-11  Jim Meyering  <meyering@redhat.com>
56858
56859         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
56860
56861 2008-10-11  Bruno Haible  <bruno@clisp.org>
56862
56863         New module 'fclose'.
56864         * modules/fclose: New file.
56865         * lib/stdio.in.h (fclose): New declaration.
56866         * lib/fclose.c: New file.
56867         * m4/fclose.m4: New file.
56868         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
56869         REPLACE_FCLOSE.
56870         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
56871         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
56872         REPLACE_FCLOSE.
56873         * modules/close (Depends-on): fclose.
56874         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
56875
56876 2008-10-11  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
56879         set errno and don't call _close.
56880
56881 2008-10-10  Bruno Haible  <bruno@clisp.org>
56882
56883         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
56884         ACL, not afterwards. Fixes test failure on Cygwin.
56885
56886 2008-10-09  Ben Pfaff  <blp@gnu.org>
56887
56888         * build-aux/announce-gen: Fix gnulib version related part of usage
56889         message.  Die with a useful error message if no tarballs are
56890         found.
56891
56892 2008-10-10  Jim Meyering  <meyering@redhat.com>
56893
56894         bootstrap: use git's --depth=N option only if it's supported
56895         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
56896         recognize the --depth option.  Reported by Pádraig Brady.
56897
56898 2008-10-09  Bruno Haible  <bruno@clisp.org>
56899
56900         New module 'ioctl'.
56901         * modules/ioctl: New file.
56902         * lib/sys_socket.in.h (ioctl): Remove declaration.
56903         * lib/winsock.c: Include <sys/ioctl.h>.
56904         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
56905         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
56906         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
56907         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
56908         * doc/posix-functions/ioctl.texi: Mention the new module.
56909
56910 2008-10-09  Bruno Haible  <bruno@clisp.org>
56911
56912         New module 'sys_ioctl'.
56913         * lib/sys_ioctl.in.h: New file.
56914         * m4/sys_ioctl_h.m4: New file.
56915         * modules/sys_ioctl: New file.
56916         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
56917
56918 2008-10-09  Bruno Haible  <bruno@clisp.org>
56919
56920         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
56921         * lib/winsock.c: Include <stdarg.h>.
56922         (rpl_ioctl): Change to second argument 'int' and then varargs.
56923
56924 2008-10-09  Bruno Haible  <bruno@clisp.org>
56925
56926         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
56927         when the sys_socket module is present and the system has <winsock2.h>.
56928
56929 2008-10-09  Bruno Haible  <bruno@clisp.org>
56930
56931         * doc/posix-functions/close.texi: Mention module 'close' instead of
56932         module 'sys_socket'.
56933
56934 2008-10-09  Bruno Haible  <bruno@clisp.org>
56935
56936         * doc/glibc-headers/sys_ioctl.texi: New file.
56937         * doc/gnulib.texi: Include it.
56938
56939 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56940             Bruno Haible  <bruno@clisp.org>
56941
56942         Combine the two replacements of 'close'.
56943         * lib/sys_socket.in.h (close): Define to a reminder to include
56944         <unistd.h>.
56945         (_gl_close_fd_maybe_socket): New declaration.
56946         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
56947         * lib/winsock.c (close): Remove undefinition.
56948         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
56949         needed for the gnulib module 'close'.
56950         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
56951         define to an error symbol or to a warning, if suitable.
56952         * lib/close.c: Include <sys/socket.h>.
56953         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
56954         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
56955         UNISTD_H_HAVE_WINSOCK2_H.
56956         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
56957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56958         UNISTD_H_HAVE_WINSOCK2_H.
56959         * modules/sys_socket (Files): Add m4/unistd_h.m4.
56960         (configure.ac): Set a module indicator.
56961         (Makefile.am): Substitute GNULIB_CLOSE.
56962         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
56963         * modules/poll-tests (Depends-on): Add close.
56964         * modules/select-tests (Depends-on): Likewise.
56965
56966 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56967             Bruno Haible  <bruno@clisp.org>
56968
56969         New module 'close'.
56970         * modules/close: New file.
56971         * lib/unistd.in.h (close): Move declaration out of the
56972         FCHDIR_REPLACEMENT scope.
56973         (_gl_unregister_fd): New declaration.
56974         * lib/close.c: New file.
56975         * lib/fchdir.c (rpl_close): Remove function.
56976         * m4/close.m4: New file.
56977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56978         close.
56979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
56980         REPLACE_CLOSE.
56981         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
56982         REPLACE_CLOSE.
56983         * modules/fchdir (Depends-on): Add close.
56984
56985 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
56986             Bruno Haible  <bruno@clisp.org>
56987
56988         * lib/fcntl.in.h (open): Simplify conditionals.
56989         (_gl_register_fd): New declaration.
56990         * lib/fchdir.c (rpl_open): Remove function.
56991         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
56992         also.
56993         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
56994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
56995         open.
56996
56997 2008-10-09  Jim Meyering  <meyering@redhat.com>
56998
56999         GNUmakefile: use the more name-space-friendly "_version"
57000         * top/GNUmakefile (_dummy): Update.
57001         (_version): Rename from "version".
57002
57003 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
57004             Bruno Haible  <bruno@clisp.org>
57005
57006         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
57007         rpl_close.
57008         (_gl_register_fd): New function, extracted from rpl_open.
57009         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
57010         (rpl_open, rpl_opendir): Use _gl_register_fd.
57011
57012 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
57013
57014         Fix organization of 'open' replacement.
57015         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
57016         (gl_FUNC_OPEN): Use it.
57017         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
57018
57019 2008-10-08  Bruno Haible  <bruno@clisp.org>
57020
57021         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
57022
57023 2008-10-08  Simon Josefsson  <simon@josefsson.org>
57024
57025         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
57026         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
57027         listen).
57028
57029 2008-10-08  Eric Blake  <ebb9@byu.net>
57030
57031         GNUmakefile: add 'make version' target
57032         * top/GNUmakefile (_curr-ver): Split version update rules...
57033         (version): ...into a target.
57034
57035 2008-10-07  Bruno Haible  <bruno@clisp.org>
57036
57037         Use a more portable replacement expression for -0.0L.
57038         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
57039         instead of -0.0L. Fix m4 quotation.
57040
57041         * tests/test-signbit.c: Include <float.h>.
57042         (minus_zero): New variable.
57043         (test_signbitl): Use minus_zero instead of -zero.
57044         * modules/signbit-tests (Depends-on): Add float.
57045
57046         * tests/test-ceill.c: Include <float.h>.
57047         (zero): Remove variable.
57048         (minus_zero): New variable.
57049         (main): Use minus_zero instead of -zero.
57050         * modules/ceill-tests (Depends-on): Add float.
57051
57052         * tests/test-floorl.c: Include <float.h>.
57053         (zero): Remove variable.
57054         (minus_zero): New variable.
57055         (main): Use minus_zero instead of -zero.
57056         * modules/floorl-tests (Depends-on): Add float.
57057
57058         * tests/test-roundl.c: Include <float.h>.
57059         (zero): Remove variable.
57060         (minus_zero): New variable.
57061         (main): Use minus_zero instead of -zero.
57062         * modules/roundl-tests (Depends-on): Add float.
57063
57064         * tests/test-truncl.c: Include <float.h>.
57065         (zero): Remove variable.
57066         (minus_zero): New variable.
57067         (main): Use minus_zero instead of -zero.
57068         * modules/truncl-tests (Depends-on): Add float.
57069
57070         * tests/test-frexpl.c (zero): Remove variable.
57071         (minus_zero): New variable.
57072         (main): Use minus_zero instead of -zero.
57073         * modules/frexpl-tests (Depends-on): Add float.
57074
57075         * tests/test-isnan.c (zerol): Remove variable.
57076         (minus_zerol): New variable.
57077         (test_long_double): Use minus_zerol instead of -zerol.
57078         * modules/isnan-tests (Depends-on): Add float.
57079
57080         * tests/test-isnanl.h (zero): Remove variable.
57081         (minus_zero): New variable.
57082         (main): Use minus_zero instead of -zero.
57083         * modules/isnanl-nolibm-tests (Depends-on): Add float.
57084         * modules/isnanl-tests (Depends-on): Add float.
57085
57086         * tests/test-ldexpl.c (zero): Remove variable.
57087         (minus_zero): New variable.
57088         (main): Use minus_zero instead of -zero.
57089         * modules/ldexpl-tests (Depends-on): Add float.
57090
57091         * tests/test-snprintf-posix.h (zerol): Remove variable.
57092         (minus_zerol): New variable.
57093         (test_function): Use minus_zerol instead of -zerol.
57094         * modules/snprintf-posix-tests (Depends-on): Add float.
57095         * modules/vsnprintf-posix-tests (Depends-on): Add float.
57096
57097         * tests/test-sprintf-posix.h (zerol): Remove variable.
57098         (minus_zerol): New variable.
57099         (test_function): Use minus_zerol instead of -zerol.
57100         * modules/sprintf-posix-tests (Depends-on): Add float.
57101         * modules/vsprintf-posix-tests (Depends-on): Add float.
57102
57103         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
57104         (minus_zerol): New variable.
57105         (test_function): Use minus_zerol instead of -zerol.
57106         * modules/vasnprintf-posix-tests (Depends-on): Add float.
57107
57108         * tests/test-vasprintf-posix.c (zerol): Remove variable.
57109         (minus_zerol): New variable.
57110         (test_function): Use minus_zerol instead of -zerol.
57111         * modules/vasprintf-posix-tests (Depends-on): Add float.
57112
57113 2008-10-07  Simon Josefsson  <simon@josefsson.org>
57114
57115         * MODULES.html.sh (Support for building documentation): Mention
57116         pmccabe2html.  Sort entries.
57117
57118         Add pmccabe2html module, from gnupdf.
57119         * build-aux/pmccabe.css: New file.
57120         * build-aux/pmccabe2html: New file.
57121         * m4/pmccabe2html.m4: New file.
57122         * modules/pmccabe2html: New file.
57123
57124 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
57125
57126         flock: new module
57127         * MODULES.html.sh: Add to list of modules.
57128         * lib/flock.c: flock implementation for Windows and Unix systems
57129         which have fcntl.
57130         * doc/glibc-functions/flock.texi: Update documentation.
57131         * lib/sys_file.in.h: <sys/file.h> header file.
57132         * m4/flock.m4: M4 macros.
57133         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
57134         * modules/flock: flock module.
57135         * modules/flock-tests: flock tests module.
57136         * modules/sys_file: sys/file.h module.
57137         * tests/test-flock.c: test suite for flock.
57138
57139 2008-10-06  Jim Meyering  <meyering@redhat.com>
57140
57141         bootstrap: check for LT_INIT more portably still ;-)
57142         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
57143         Spotted by Bruno Haible.
57144
57145 2008-10-06  Eric Blake  <ebb9@byu.net>
57146
57147         test-signbit: avoid tripping Irix cc bug on -0.0L
57148         * tests/test-signbit.c (minus_zerol): Delete, and replace with
57149         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
57150         entire testsuite consistent and avoids an Irix 6.2 bug.
57151
57152 2008-10-05  Bruno Haible  <bruno@clisp.org>
57153             Jim Meyering  <jim@meyering.net>
57154
57155         Add an option for ignoring EPIPE during close_stdout.
57156         * lib/closeout.h: Include <stdbool.h>.
57157         (close_stdout_set_ignore_EPIPE): New declaration.
57158         * lib/closeout.c: Include <stdbool.h>.
57159         (ignore_EPIPE): New variable.
57160         (close_stdout_set_ignore_EPIPE): New function.
57161         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
57162         * lib/close-stream.c (close_stream): Mention the possible EPIPE
57163         failure.
57164         * modules/closeout (Depends-on): Add stdbool.
57165
57166 2008-10-05  Bruno Haible  <bruno@clisp.org>
57167
57168         * modules/accept: New file.
57169         * modules/bind: New file.
57170         * modules/connect: New file.
57171         * modules/getpeername: New file.
57172         * modules/getsockname: New file.
57173         * modules/getsockopt: New file.
57174         * modules/listen: New file.
57175         * modules/recv: New file.
57176         * modules/recvfrom: New file.
57177         * modules/send: New file.
57178         * modules/sendto: New file.
57179         * modules/setsockopt: New file.
57180         * modules/socket: New file.
57181         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
57182         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
57183         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
57184         the particular module is requested. Add a link warning when the
57185         particular module is not requested.
57186         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
57187         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
57188         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
57189         the particular module is requested.
57190         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
57191         gl_SYS_SOCKET_H_DEFAULTS): New macros.
57192         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
57193         * modules/sys_socket (Depends-on): Add link-warning.
57194         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
57195         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
57196         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
57197         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
57198         GL_LINK_WARNING.
57199         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
57200         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
57201         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
57202         * doc/posix-functions/getpeername.texi: Mention the new module
57203         'getpeername'.
57204         * doc/posix-functions/getsockname.texi: Mention the new module
57205         'getsockname'.
57206         * doc/posix-functions/getsockopt.texi: Mention the new module
57207         'getsockopt'.
57208         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
57209         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
57210         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
57211         * doc/posix-functions/send.texi: Mention the new module 'send'.
57212         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
57213         * doc/posix-functions/setsockopt.texi: Mention the new module
57214         'setsockopt'.
57215         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
57216         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
57217         listen, connect, accept.
57218         * modules/select-tests (Depends-on): Likewise.
57219
57220 2008-10-05  Bruno Haible  <bruno@clisp.org>
57221
57222         * lib/winsock.c (strerror): Remove unused #undef.
57223         (rpl_close): Remove unused local variable.
57224
57225         * modules/sys_socket (Depends-on); Add errno.
57226
57227 2008-10-05  Bruno Haible  <bruno@clisp.org>
57228
57229         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
57230         (select): Add a link warning when the 'select' module is not used.
57231         * modules/sys_select (Depends-on): Add link-warning.
57232         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
57233         Suggested by Paolo Bonzini.
57234
57235 2008-10-05  Jim Meyering  <meyering@redhat.com>
57236
57237         bootstrap: check for LT_INIT more portably
57238         * build-aux/bootstrap: Avoid using grep -E, since it's not
57239         portable enough.  Suggestion from Bruno Haible.
57240
57241 2008-10-05  Bruno Haible  <bruno@clisp.org>
57242
57243         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
57244         as being fixed by gnulib.
57245
57246 2008-10-05  Bruno Haible  <bruno@clisp.org>
57247
57248         * modules/select-tests: New file, mostly copied from
57249         modules/sys_select-tests.
57250         * tests/test-select.c: New file, mostly copied from
57251         tests/test-sys_select.c.
57252         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
57253         * modules/sys_select-tests (Depends-on): Remove all dependencies.
57254         (Makefile.am): Remove test_sys_select_LDADD.
57255
57256         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
57257         to an undefined symbol, for an error message.
57258         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
57259         (gl_SYS_SELECT_H_DEFAULTS): New macro.
57260         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
57261         winsock-select.c here.
57262         * modules/sys_select (Files): Remove lib/winsock-select.c.
57263         (Depends-on): Remove alloca.
57264         (Makefile.am): Substitute GNULIB_SELECT.
57265         * modules/select: New file.
57266         * doc/posix-functions/select.texi: Update.
57267
57268 2008-10-05  Bruno Haible  <bruno@clisp.org>
57269
57270         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
57271         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
57272         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
57273         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
57274         getdtablesize.
57275         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
57276         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
57277
57278 2008-10-05  Bruno Haible  <bruno@clisp.org>
57279
57280         * modules/getdtablesize-tests: New file.
57281         * tests/test-getdtablesize.c: New file.
57282
57283         New module 'getdtablesize'.
57284         * lib/unistd.in.h (getdtablesize): New declaration.
57285         * lib/getdtablesize.c: New file.
57286         * m4/getdtablesize.m4: New file.
57287         * modules/getdtablesize: New file.
57288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57289         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
57290         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
57291         HAVE_GETDTABLESIZE.
57292         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
57293
57294 2008-10-05  Bruno Haible  <bruno@clisp.org>
57295
57296         * modules/sched (Makefile.am): Fix typo.
57297         Reported by Simon Josefsson.
57298
57299 2008-10-05  Jim Meyering  <meyering@redhat.com>
57300
57301         bootstrap: check for LT_INIT, too
57302         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
57303         are deprecated.  Suggestion from Ralf Wildenhues.
57304
57305 2008-10-05  Bruno Haible  <bruno@clisp.org>
57306
57307         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
57308         overriding them by ours.
57309         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
57310
57311 2008-10-05  Jim Meyering  <meyering@redhat.com>
57312
57313         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
57314         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
57315         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
57316
57317 2008-10-04  Bruno Haible  <bruno@clisp.org>
57318
57319         * modules/dup2 (License): Change to LGPLv2+.
57320         * modules/sleep (License): Likewise.
57321         * modules/perror (License): Likewise.
57322         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
57323         Blake.
57324         * modules/signal (License): Likewise.
57325         * modules/sigprocmask (License): Likewise.
57326         * modules/raise (License): Change to LGPLv2+, with approval by Jim
57327         Meyering.
57328
57329 2008-10-04  Bruno Haible  <bruno@clisp.org>
57330
57331         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
57332         Reported by Rainer Tammer <tammer@tammer.net>.
57333
57334 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
57335             Bruno Haible  <bruno@clisp.org>
57336
57337         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
57338         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
57339         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
57340
57341 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
57342
57343         filevercmp: new module
57344         * lib/filevercmp.h: New function filevercmp comparing version strings.
57345         * lib/filevercmp.c: Implementation of filevercmp function.
57346         * modules/filevercmp: Module metadata.
57347         * tests/test-filevercmp.c: Unit test for new module.
57348         * modules/filevercmp-tests: Unit test metadata.
57349         * MODULES.html.sh: Add filevercmp module.
57350
57351 2008-10-03  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/c-ctype.h: Add comment.
57354         Reported by Jim Meyering.
57355
57356 2008-10-02  Bruno Haible  <bruno@clisp.org>
57357
57358         * modules/posix_spawn-internal (Depends-on): Add 'open'.
57359
57360 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57361
57362         * build-aux/bootstrap: Allow renaming bootstrap, and change the
57363         name of bootstrap.conf accordingly.
57364
57365 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57366
57367         * build-aux/bootstrap: Install git-merge-changelog configuration
57368         items into .gitconfig if needed.
57369
57370 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
57371
57372         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
57373         git repository, and initialize/update it accordingly.
57374
57375 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
57376
57377         * modules/fsync-tests: New file.
57378         * tests/test-fsync.c: New file.
57379
57380         New module 'fsync'.
57381         * lib/fsync.c: New file.
57382         * m4/fsync.m4: New file.
57383         * modules/fsync: New file.
57384         * lib/unistd.in.h (fsync): New declaration.
57385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
57386         GNULIB_FSYNC and HAVE_FSYNC.
57387         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
57388         * MODULES.html.sh (posix_functions): Add fsync.
57389         * doc/posix-functions/fsync.texi: Mention the new module.
57390
57391 2008-10-02  Jim Meyering  <meyering@redhat.com>
57392
57393         fts.c: sync with similar code from coreutils' remove.c
57394         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
57395         Guard also with "#if defined __linux__", since for now at least,
57396         this code is Linux-kernel-specific.
57397
57398 2008-10-02  Jim Meyering  <meyering@redhat.com>
57399
57400         fts: bug fixes
57401         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
57402         Include <sys/vfs.h>, not <sys/statfs.h>.
57403
57404         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
57405         Include <sys/vfs.h>, not <sys/statfs.h>.
57406
57407 2008-10-01  Bruno Haible  <bruno@clisp.org>
57408
57409         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
57410         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
57411         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
57412         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
57413         * doc/posix-functions/posix_spawnp.texi: Likewise.
57414         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
57415         whether posix_spawn actually works.
57416         * m4/pipe.m4 (gl_PIPE): Likewise.
57417         * modules/execute (Files): Add m4/posix_spawn.m4.
57418         * modules/pipe (Files): Add m4/posix_spawn.m4.
57419         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
57420
57421 2008-10-01  Jim Meyering  <meyering@redhat.com>
57422
57423         remove trailing spaces
57424         * NEWS: Likewise.
57425         * lib/poll.c (poll): Likewise.
57426         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
57427         * lib/winsock.c (rpl_close): Likewise.
57428         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
57429         * modules/yield: Likewise.
57430         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
57431         * tests/test-sys_select.c (connect_to_socket): Likewise.
57432
57433         fts.c: adjust a new interface to be more generally useful
57434         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
57435         (fts_build): Adjust caller.
57436
57437 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57438
57439         * modules/cond-tests: New file.
57440         * tests/test-cond.c: New file.
57441
57442 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57443             Bruno Haible  <bruno@clisp.org>
57444
57445         * modules/cond (Dependencies): Add errno, time.
57446         * lib/glthread/cond.h: Include <time.h>.
57447         (gl_cond_define, gl_cond_define_initialized): Use the same definition
57448         across platforms.
57449
57450 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57451             Bruno Haible  <bruno@clisp.org>
57452
57453         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
57454
57455 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57456             Bruno Haible  <bruno@clisp.org>
57457
57458         * modules/tls-tests (Depends-on): Add thread, yield.
57459         (configure.ac): Remove all checks.
57460         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
57461         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57462         gl_thread_self): Remove definitions. Include glthread/thread.h and
57463         glthread/yield.h instead.
57464         (test_tls): Pass an additional NULL argument to gl_thread_join.
57465
57466 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57467             Bruno Haible  <bruno@clisp.org>
57468
57469         * modules/lock-tests (Depends-on): Add thread, yield.
57470         (configure.ac): Remove all checks.
57471         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
57472         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
57473         gl_thread_self): Remove definitions. Include glthread/thread.h and
57474         glthread/yield.h instead.
57475         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
57476         additional NULL argument to gl_thread_join.
57477
57478 2008-09-30  Bruno Haible  <bruno@clisp.org>
57479
57480         Fix the Win32 implementation of the 'thread' module.
57481         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
57482         pointer type.
57483         (gl_thread_self): Invoke gl_thread_self_func.
57484         (gl_thread_self_func): New declaration.
57485         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
57486         (do_init_self_key, init_self_key): New functions.
57487         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
57488         Remove some fields.
57489         (running_threads, running_lock): Remove variables.
57490         (get_current_thread_handle): New function.
57491         (gl_thread_self_func, wrapper_func, glthread_create_func,
57492         glthread_join_func, gl_thread_exit_func): Largely rewritten and
57493         simplified.
57494
57495 2008-09-30  Bruno Haible  <bruno@clisp.org>
57496
57497         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
57498         files.
57499
57500 2008-09-30  Jim Meyering  <meyering@redhat.com>
57501
57502         fts.m4: correct the test for statfs.f_type
57503         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
57504         when checking for statfs.f_type.
57505
57506 2008-09-15  Simon Josefsson  <simon@josefsson.org>
57507
57508         tests: avoid some compiler warnings
57509         * tests/test-memchr.c (main): Pass NULL indirectly.
57510         * tests/test-getdate.c (main): Remove unused variable 'ret'.
57511
57512 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
57513
57514         getdate.y: disallow countable dayshifts like "4 yesterday ago"
57515         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
57516         exactly specified dayshifts.
57517         (dayshift): New rule.
57518         (rel): Add dayshift.
57519         (relative_time_table) [tomorrow, yesterday, today, now]:
57520         Use tDAY_SHIFT in place of tDAY_UNIT.
57521         * tests/test-getdate.c: Add tests for now-disallowed countable
57522         dayshifts, e.g., "4 yesterday ago".
57523
57524 2008-09-29  Bruno Haible  <bruno@clisp.org>
57525
57526         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
57527         * tests/test-posix_spawn1.in.sh: Renamed from
57528         tests/test-posix_spawn.in.sh.
57529         * tests/test-posix_spawn2.c: New file.
57530         * tests/test-posix_spawn2.in.sh: New file.
57531         * modules/posix_spawnp-tests (Files): Update.
57532         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
57533
57534 2008-09-29  Bruno Haible  <bruno@clisp.org>
57535
57536         Propagate effects of putenv/setenv/unsetenv to child processes.
57537         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
57538         * lib/pipe.c (create_pipe): Likewise.
57539
57540 2008-09-29  Bruno Haible  <bruno@clisp.org>
57541
57542         Enable use of shell scripts as executables in mingw.
57543         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
57544         run the program as a shell script.
57545         * lib/pipe.c (create_pipe): Likewise.
57546         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
57547         resulting array.
57548
57549 2008-09-29  Eric Blake  <ebb9@byu.net>
57550
57551         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
57552
57553 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
57554
57555         * doc/posix-functions/accept.texi: Update mingw problems.
57556         * doc/posix-functions/bind.texi: Update mingw problems.
57557         * doc/posix-functions/close.texi: Update mingw problems.
57558         * doc/posix-functions/connect.texi: Update mingw problems.
57559         * doc/posix-functions/getpeername.texi: Update mingw problems.
57560         * doc/posix-functions/getsockname.texi: Update mingw problems.
57561         * doc/posix-functions/getsockopt.texi: Update mingw problems.
57562         * doc/posix-functions/ioctl.texi: Update mingw problems.
57563         * doc/posix-functions/listen.texi: Update mingw problems.
57564         * doc/posix-functions/recv.texi: Update mingw problems.
57565         * doc/posix-functions/recvfrom.texi: Update mingw problems.
57566         * doc/posix-functions/select.texi: Update mingw problems.
57567         * doc/posix-functions/send.texi: Update mingw problems.
57568         * doc/posix-functions/sendto.texi: Update mingw problems.
57569         * doc/posix-functions/setsockopt.texi: Update mingw problems.
57570         * doc/posix-functions/socket.texi: Update mingw problems.
57571
57572 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
57573             Bruno Haible  <bruno@clisp.org>
57574
57575         * lib/sys_select.in.h: Include sys/time.h.
57576         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
57577         * modules/sys_select: Depend on sys_time.
57578         * tests/test-sys_select.c: Test that sys/select.h defines struct
57579         timeval fully.
57580
57581 2008-09-29  Bruno Haible  <bruno@clisp.org>
57582
57583         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
57584         * lib/sys_select.in.h: Likewise.
57585
57586 2008-09-29  Bruno Haible  <bruno@clisp.org>
57587
57588         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
57589
57590 2008-09-29  Bruno Haible  <bruno@clisp.org>
57591
57592         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
57593         Set LIBSOCKET instead of augmenting LIBS.
57594         * modules/sockets (Link): New section.
57595         * modules/sockets-tests (test_sockets_LDADD): New variable.
57596         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
57597         * modules/poll-tests (test_poll_LDADD): New variable.
57598         * NEWS: Document the change.
57599
57600 2008-09-29  Bruno Haible  <bruno@clisp.org>
57601
57602         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
57603         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
57604         ARPA_INET_H directly.
57605         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57606
57607 2008-09-28  Bruno Haible  <bruno@clisp.org>
57608
57609         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
57610         from gl_HEADER_SYS_SOCKET.
57611         (gl_HEADER_SYS_SOCKET): Invoke it.
57612         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57613
57614 2008-09-28  Bruno Haible  <bruno@clisp.org>
57615
57616         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
57617         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
57618         Needed on OSF/1 4.0.
57619
57620 2008-09-28  Bruno Haible  <bruno@clisp.org>
57621
57622         Override open more carefully.
57623         * lib/open.c (orig_open): New function.
57624         (rpl_open): Use orig_open instead of open.
57625         * lib/fcntl.in.h: Add special invocation convention.
57626         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
57627         (gl_FUNC_OPEN): Invoke it.
57628
57629         Override freopen more carefully.
57630         * lib/freopen.c (orig_freopen): New function.
57631         (rpl_freopen): Use orig_freopen instead of freopen.
57632         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
57633         (gl_FUNC_FREOPEN): Invoke it.
57634
57635         Override fopen more carefully.
57636         * lib/fopen.c (orig_fopen): New function.
57637         (rpl_fopen): Use orig_fopen instead of fopen.
57638         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
57639         (gl_FUNC_FOPEN): Invoke it.
57640         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
57641
57642 2008-09-28  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
57645         SIGPIPE.
57646
57647 2008-09-28  Bruno Haible  <bruno@clisp.org>
57648
57649         * tests/test-sigaction.c (handler, main): Disable the check whether
57650         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
57651         glibc systems with LinuxThreads.
57652
57653 2008-09-28  Bruno Haible  <bruno@clisp.org>
57654
57655         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
57656
57657         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
57658         with AIX xlc.
57659         * lib/fcntl.in.h (open): Likewise.
57660         Reported by Rainer Tammer <tammer@tammer.net>.
57661
57662 2008-09-28  Bruno Haible  <bruno@clisp.org>
57663
57664         * modules/posix_spawnp-tests: New file.
57665         * tests/test-posix_spawn.c: New file.
57666         * tests/test-posix_spawn.in.sh: New file.
57667
57668         New module 'posix_spawnp'.
57669         * modules/posix_spawnp: New file.
57670         * lib/spawnp.c: New file, from GNU libc with modifications.
57671         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
57672
57673         New module 'posix_spawn'.
57674         * modules/posix_spawn: New file.
57675         * lib/spawn.c: New file, from GNU libc with modifications.
57676         * doc/posix-functions/posix_spawn.texi: Mention the new module.
57677
57678         New module 'posix_spawnattr_destroy'.
57679         * modules/posix_spawnattr_destroy: New file.
57680         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
57681         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
57682         module.
57683
57684         New module 'posix_spawnattr_setsigmask'.
57685         * modules/posix_spawnattr_setsigmask: New file.
57686         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
57687         modifications.
57688         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
57689         new module.
57690
57691         New module 'posix_spawnattr_getsigmask'.
57692         * modules/posix_spawnattr_getsigmask: New file.
57693         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
57694         modifications.
57695         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
57696         new module.
57697
57698         New module 'posix_spawnattr_setsigdefault'.
57699         * modules/posix_spawnattr_setsigdefault: New file.
57700         * lib/spawnattr_setdefault.c: New file, from GNU libc with
57701         modifications.
57702         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
57703         new module.
57704
57705         New module 'posix_spawnattr_getsigdefault'.
57706         * modules/posix_spawnattr_getsigdefault: New file.
57707         * lib/spawnattr_getdefault.c: New file, from GNU libc with
57708         modifications.
57709         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
57710         new module.
57711
57712         New module 'posix_spawnattr_setschedpolicy'.
57713         * modules/posix_spawnattr_setschedpolicy: New file.
57714         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
57715         modifications.
57716         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
57717         new module.
57718
57719         New module 'posix_spawnattr_getschedpolicy'.
57720         * modules/posix_spawnattr_getschedpolicy: New file.
57721         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
57722         modifications.
57723         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
57724         new module.
57725
57726         New module 'posix_spawnattr_setschedparam'.
57727         * modules/posix_spawnattr_setschedparam: New file.
57728         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
57729         modifications.
57730         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
57731         new module.
57732
57733         New module 'posix_spawnattr_getschedparam'.
57734         * modules/posix_spawnattr_getschedparam: New file.
57735         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
57736         modifications.
57737         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
57738         new module.
57739
57740         New module 'posix_spawnattr_setpgroup'.
57741         * modules/posix_spawnattr_setpgroup: New file.
57742         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
57743         modifications.
57744         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
57745         module.
57746
57747         New module 'posix_spawnattr_getpgroup'.
57748         * modules/posix_spawnattr_getpgroup: New file.
57749         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
57750         modifications.
57751         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
57752         module.
57753
57754         New module 'posix_spawnattr_setflags'.
57755         * modules/posix_spawnattr_setflags: New file.
57756         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
57757         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
57758         module.
57759
57760         New module 'posix_spawnattr_getflags'.
57761         * modules/posix_spawnattr_getflags: New file.
57762         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
57763         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
57764         module.
57765
57766         New module 'posix_spawnattr_init'.
57767         * modules/posix_spawnattr_init: New file.
57768         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
57769         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
57770         module.
57771
57772         New module 'posix_spawn_file_actions_destroy'.
57773         * modules/posix_spawn_file_actions_destroy: New file.
57774         * lib/spawn_faction_destroy.c: New file, from GNU libc with
57775         modifications.
57776         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
57777         the new module.
57778
57779         New module 'posix_spawn_file_actions_addopen'.
57780         * modules/posix_spawn_file_actions_addopen: New file.
57781         * lib/spawn_faction_addopen.c: New file, from GNU libc with
57782         modifications.
57783         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
57784         the new module.
57785
57786         New module 'posix_spawn_file_actions_adddup2'.
57787         * modules/posix_spawn_file_actions_adddup2: New file.
57788         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
57789         modifications.
57790         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
57791         the new module.
57792
57793         New module 'posix_spawn_file_actions_addclose'.
57794         * modules/posix_spawn_file_actions_addclose: New file.
57795         * lib/spawn_faction_addclose.c: New file, from GNU libc with
57796         modifications.
57797         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
57798         the new module.
57799
57800         New module 'posix_spawn_file_actions_init'.
57801         * modules/posix_spawn_file_actions_init: New file.
57802         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
57803         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
57804         new module.
57805
57806         New module 'posix_spawn-internal'.
57807         * modules/posix_spawn-internal: New file.
57808         * lib/spawn_int.h: New file, from GNU libc with modifications.
57809         * lib/spawni.c: New file, from GNU libc with modifications.
57810         * m4/posix_spawn.m4: New file.
57811
57812         New module 'spawn'.
57813         * modules/spawn: New file.
57814         * lib/spawn.in.h: New file, from GNU libc with modifications.
57815         * m4/spawn_h.m4: New file.
57816         * doc/posix-headers/spawn.texi: Mention the new module.
57817
57818 2008-09-28  Bruno Haible  <bruno@clisp.org>
57819
57820         * modules/sched-tests: New file.
57821         * tests/test-sched.c: New file.
57822
57823         New module 'sched'.
57824         * modules/sched: New file.
57825         * lib/sched.in.h: New file.
57826         * m4/sched_h.m4: New file.
57827         * doc/posix-headers/sched.texi: Mention the new module.
57828
57829 2008-09-27  Eric Blake  <ebb9@byu.net>
57830
57831         Fix previous patch, and tweak references to $0.
57832         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
57833         (func_version, func_gnulib_dir): Don't call this program
57834         gnulib-tool.
57835         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
57836         with using $0 in function.
57837         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
57838         (func_fatal_error): Reuse the name the user invoked us with.
57839
57840 2008-09-27  Bruno Haible  <bruno@clisp.org>
57841
57842         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
57843         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
57844         (gl_ICONV_H): Not here.
57845         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
57846         instead of assigning ICONV_H directly.
57847
57848         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
57849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
57850         WCHAR_H directly.
57851
57852 2008-09-27  Bruno Haible  <bruno@clisp.org>
57853
57854         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
57855         * modules/arpa_inet (Depends-on): Add link-warning.
57856         (Makefile.am): Insert the definition of GL_LINK-WARNING.
57857         * modules/unistd (Makefile.am): Likewise.
57858
57859 2008-09-26  Bruno Haible  <bruno@clisp.org>
57860
57861         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
57862         variables.
57863         (func_version): Essentially copied from gnulib-tool.
57864         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
57865         func_readlink): Copied from gnulib-tool.
57866
57867 2008-09-26  Bruno Haible  <bruno@clisp.org>
57868
57869         * gnulib-tool (func_version): Change directory to $gnulib_dir before
57870         invoking git-version-gen.
57871
57872 2008-09-26  Bruno Haible  <bruno@clisp.org>
57873
57874         * posix-modules: Update to directory names changed on 2008-01-19.
57875         Remove commas in output before splitting into words. No more need to
57876         avoid 'ftruncate' since 2007-02-19.
57877
57878 2008-09-26  Bruno Haible  <bruno@clisp.org>
57879
57880         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
57881
57882 2008-09-26  Bruno Haible  <bruno@clisp.org>
57883
57884         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
57885         * modules/fwriteerror (Depends-on): Add errno.
57886
57887 2008-09-26  Bruno Haible  <bruno@clisp.org>
57888
57889         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
57890         * tests/test-vc-list-files-cvs.sh: Likewise.
57891
57892 2008-09-26  Bruno Haible  <bruno@clisp.org>
57893
57894         * doc/posix-headers/sys_resource.texi: Reorder items.
57895
57896 2008-09-26  Jim Meyering  <meyering@redhat.com>
57897
57898         fts: tweak inode comparison function
57899         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
57900         inode numbers, as documented.
57901
57902         fts: sort dirent entries on inode number before traversing
57903         This avoids a quadratic, seek-related performance penalty when
57904         operating on a directory containing many entries (measurable at 10k;
57905         3.5 hours at 2 million entries with a cold cache) on certain types
57906         of file systems, including ext3 and ext4, but not tmpfs.
57907         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
57908         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
57909         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
57910         (fs_handles_readdir_ordered_dirents_efficiently): New function.
57911         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
57912         (fts_build): Set the stat.st_ino member from D_INO.
57913         If it is likely to be useful, sort dirent entries on inode number.
57914
57915         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
57916         and the struct statfs.f_type member.
57917         * modules/fts (Depends-on): Add d-ino.
57918
57919 2008-09-26  Bruno Haible  <bruno@clisp.org>
57920
57921         * modules/sigpipe-die (Depends-on): Add sigpipe.
57922
57923         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
57924         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
57925         and GNULIB_STDIO_H_SIGPIPE are set.
57926         * lib/stdio-write.c: New file.
57927         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
57928         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57929         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57930         REPLACE_STDIO_WRITE_FUNCS.
57931         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
57932         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57933         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57934         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57935         * modules/stdio (Files): Add lib/stdio-write.c.
57936         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
57937         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
57938         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
57939         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
57940         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
57941         REPLACE_FPRINTF_POSIX.
57942         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
57943         REPLACE_PRINTF_POSIX.
57944         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
57945         REPLACE_VFPRINTF_POSIX.
57946         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
57947         REPLACE_VPRINTF_POSIX.
57948         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
57949         SIGPIPE issue.
57950         * doc/posix-functions/fputc.texi: Likewise.
57951         * doc/posix-functions/fputs.texi: Likewise.
57952         * doc/posix-functions/fwrite.texi: Likewise.
57953         * doc/posix-functions/printf.texi: Likewise.
57954         * doc/posix-functions/putc.texi: Likewise.
57955         * doc/posix-functions/putchar.texi: Likewise.
57956         * doc/posix-functions/puts.texi: Likewise.
57957         * doc/posix-functions/vfprintf.texi: Likewise.
57958         * doc/posix-functions/vprintf.texi: Likewise.
57959
57960         * modules/safe-write (Depends-on): Add write.
57961
57962         * modules/sigpipe-tests: New file.
57963         * tests/test-sigpipe.c: New file.
57964         * tests/test-sigpipe.sh: New file.
57965
57966         * modules/write: New file.
57967         * lib/unistd.in.h: Include <sys/types.h>.
57968         (write): New declaration.
57969         * lib/write.c: New file.
57970         * m4/write.m4: New file.
57971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57972         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
57973         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
57974         GNULIB_WRITE, REPLACE_WRITE.
57975         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
57976         and the SIGPIPE issue.
57977
57978         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
57979         (raise): New declaration.
57980         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
57981         (ext_signal): New function.
57982         (rpl_raise): New function.
57983         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
57984         GNULIB_SIGNAL_H_SIGPIPE.
57985         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
57986         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
57987
57988         * modules/sigpipe: New file.
57989         * m4/sigpipe.m4: New file.
57990
57991 2008-09-25  Derek Price  <derek@ximbiot.com>
57992             Bruno Haible  <bruno@clisp.org>
57993
57994         * gnulib-tool (func_import): Report all license incompatibilities, not
57995         just the first one.
57996
57997 2008-09-25  Bruno Haible  <bruno@clisp.org>
57998
57999         * gnulib-tool (func_import): When computing the edits, consider not
58000         only the Makefile.ams that exist but also those that will be generated.
58001
58002 2008-09-25  Simon Josefsson  <simon@josefsson.org>
58003
58004         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
58005         fixes gnulib-tool --test warning about duplicate dependency.
58006
58007 2008-09-25  Bruno Haible  <bruno@clisp.org>
58008
58009         * gnulib-tool: Don't ask the user to perform edits in the generated
58010         Makefile.ams.
58011         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
58012         apply to the Makefile.am being generated.
58013         (func_emit_tests_Makefile_am): Execute edits that apply to the
58014         Makefile.am being generated.
58015         (func_import): Setup list of Makefile.am edits before emitting the
58016         Makefile.ams, not at the end.
58017         (func_create_testdir): Update.
58018         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58019
58020 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58021
58022         * gnulib-tool (func_import): Store the --tests-base option in the
58023         comment in gnulib-cache.m4.
58024
58025 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
58026
58027         * NEWS: Document increased portability that sys_select now provides.
58028
58029         * lib/sys_select.in.h: Install select wrapper.
58030         * lib/sys_socket.in.h: Use more descriptive name when there is no
58031         select wrapper.
58032         * lib/winsock-select.c: New.
58033         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
58034         Require gl_HEADER_SYS_SOCKET.
58035         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
58036         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
58037         * tests/test-sys_select.c: Add functional tests.
58038
58039 2008-09-24  Eric Blake  <ebb9@byu.net>
58040
58041         open, fopen: close fd leak in last patch
58042         * lib/open.c (rpl_open): Close fd before returning error.
58043         * lib/fopen.c (rpl_fopen): Close fd before returning error.
58044         * doc/posix-functions/open.texi (open): Document that Irix also
58045         has the bug.
58046         * doc/posix-functions/fopen.texi (fopen): Likewise.
58047         Reported by Paolo Bonzini.
58048
58049 2008-09-24  Bruno Haible  <bruno@clisp.org>
58050
58051         Ensure that a filename ending in a slash cannot be used to access a
58052         non-directory.
58053         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
58054         to check whether it's really a directory.
58055         * lib/fopen.c: Include fcntl.h, unistd.h.
58056         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
58057         and fdopen().
58058         * modules/fopen (Depends-on): Add unistd.
58059         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
58060         * tests/test-fopen.c (main): Likewise.
58061         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
58062         * doc/posix-functions/fopen.texi: Likewise.
58063         Reported by Eric Blake.
58064
58065 2008-09-23  Eric Blake  <ebb9@byu.net>
58066
58067         c-stack: avoid compiler optimizations when provoking overflow
58068         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
58069         recursion harder to optimize, to ensure a stack overflow occurs.
58070         * tests/test-c-stack.c (recurse): Likewise.
58071         Borrowed from libsigsegv.
58072
58073         c-stack: work around Irix sigaltstack bug
58074         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
58075         whether sigaltstack uses wrong end of stack_t (copied in part from
58076         libsigsegv).
58077         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
58078         Irix bug, without requiring an over-allocation.
58079         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
58080         bug.
58081
58082         fopen: document mingw bug on directories
58083         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
58084         not allowing a stream visiting a directory, even though reading
58085         from such a stream is not portable.
58086
58087 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58088
58089         * lib/poll.c: Rewrite.
58090         * modules/poll: Depend on alloca.
58091
58092 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58093
58094         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
58095         instead define prototypes for a full set of wrappers.  Ensure
58096         that Cygwin does not use the compatibility code, which is only
58097         for MinGW.
58098         * lib/winsock.c: New.
58099         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
58100         * modules/sys_socket: Add lib/winsock.c.
58101
58102         * modules/poll-tests: Add errno and perror.
58103         * tests/test-poll.c: Use ioctl, not ioctlsocket.
58104
58105 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
58106
58107         * tests/test-poll.c: Downgrade minimum needed Winsock version.
58108
58109 2008-09-23  Bruno Haible  <bruno@clisp.org>
58110
58111         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
58112         * doc/glibc-functions/*: Likewise.
58113
58114 2008-09-23  Simon Josefsson  <simon@josefsson.org>
58115
58116         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
58117         success.
58118
58119 2008-09-22  Eric Blake  <ebb9@byu.net>
58120             Bruno Haible  <bruno@clisp.org>
58121
58122         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
58123         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
58124         supply %A but mishandle pseudo-NaN.
58125         Reported by Simon Josefsson.
58126
58127 2008-09-21  Bruno Haible  <bruno@clisp.org>
58128
58129         * tests/test-lock.c (main): Tweak skip message.
58130         * tests/test-tls.c (main): Likewise.
58131
58132 2008-09-21  Bruno Haible  <bruno@clisp.org>
58133
58134         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
58135         whether 'struct sigaction' has sa_sigaction here...
58136         (gl_PREREQ_SIG_HANDLER_H): ... not here.
58137         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
58138
58139 2008-09-21  Bruno Haible  <bruno@clisp.org>
58140
58141         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
58142         section.
58143         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
58144         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
58145         the new section.
58146         (Support for obsolete systems lacking POSIX:2001): New section.
58147         (String handling <string.h>): Move strdup to the new section.
58148         Suggested by Simon Josefsson and Paolo Bonzini.
58149
58150 2008-09-21  Bruno Haible  <bruno@clisp.org>
58151
58152         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
58153         exponents in %e and %g results on 'long double'. Needed for mingw's
58154         improved *printf functions.
58155         * tests/test-vasprintf-posix.c (test_function): Likewise.
58156         * tests/test-snprintf-posix.h (test_function): Likewise.
58157         * tests/test-sprintf-posix.h (test_function): Likewise.
58158         Reported by Eric Blake.
58159
58160 2008-09-21  Bruno Haible  <bruno@clisp.org>
58161
58162         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
58163         * tests/test-sprintf-posix.h (test_function): Likewise.
58164
58165 2008-09-21  Bruno Haible  <bruno@clisp.org>
58166
58167         * modules/getpass (Depends-on): Add strdup-posix.
58168
58169         New module 'strdup-posix'.
58170         * modules/strdup-posix: New file.
58171         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
58172         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
58173         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58174         REPLACE_STRDUP.
58175         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
58176         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
58177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58178         strdup-posix.
58179
58180         * modules/strdup (Depends-on): Remove malloc-posix.
58181
58182 2008-09-20  Bruno Haible  <bruno@clisp.org>
58183
58184         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
58185         Wildenhues.
58186
58187 2008-09-20  Bruno Haible  <bruno@clisp.org>
58188
58189         Ensure that wint_t gets defined on IRIX 5.3.
58190         * lib/wchar.in.h (wint_t): Define if not defined by the system.
58191         * lib/wctype.in.h (wint_t): Likewise.
58192         (__wctype_wint_t): Remove type.
58193         (isw*): Use wint_t instead of __wctype_wint_t.
58194         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
58195         * modules/wchar (Files): Add m4/wint_t.m4.
58196         (Makefile.am): Substitute HAVE_WINT_T.
58197         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
58198         * tests/test-wctype.c: Check that wint_t is defined.
58199         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
58200         * doc/posix-headers/wctype.texi: Likewise.
58201         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58202
58203 2008-09-18  Bruno Haible  <bruno@clisp.org>
58204
58205         * gnulib-tool (func_exit): Update comment.
58206
58207 2008-09-18  Simon Josefsson  <simon@josefsson.org>
58208
58209         * modules/getaddrinfo (Depends-on): Remove strdup, this module
58210         assumes strdup exists and does not depend on strdup to return
58211         ENOMEM on out of memory conditions.
58212
58213 2008-09-18  Bruno Haible  <bruno@clisp.org>
58214
58215         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
58216         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
58217         digits for the exponent.
58218
58219 2008-09-18  Jim Meyering  <meyering@redhat.com>
58220             Bruno Haible  <bruno@clisp.org>
58221
58222         * lib/vasnprintf.c (decimal_point_char): Define also if
58223         NEED_PRINTF_INFINITE_LONG_DOUBLE.
58224
58225 2008-09-16  Bruno Haible  <bruno@clisp.org>
58226         and Eric Blake  <ebb9@byu.net>
58227
58228         vasnprintf: support Irix 5.3
58229         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
58230         that mishandle long double infinity.
58231         Reported by Tom G. Christensen.
58232
58233 2008-09-16  Bruno Haible  <bruno@clisp.org>
58234
58235         * doc/glibc-functions/scandir.texi: Mention the function is missing on
58236         Solaris 9.
58237         * doc/glibc-functions/alphasort.texi: Likewise.
58238         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
58239
58240 2008-09-16  Jim Meyering  <meyering@redhat.com>
58241
58242         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
58243         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
58244         a umask modification leak out of a subshell.  Otherwise, the
58245         opensolaris /bin/sh would be accepted and thus cause unwarranted
58246         failures in the coreutils test suite.
58247
58248 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
58249
58250         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
58251         to succeed.
58252
58253 2008-09-16  Jim Meyering  <meyering@redhat.com>
58254
58255         avoid spurious test failure when library is built without ACL support
58256         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
58257         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
58258         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
58259         * tests/test-copy-acl.sh: Likewise.
58260
58261 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58262
58263         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
58264         based on character occurrence counts.
58265
58266 2008-09-15  Eric Blake  <ebb9@byu.net>
58267
58268         tests: avoid some compiler warnings
58269         * tests/test-memchr.c (main): Pass NULL indirectly.
58270         * tests/test-closein.c (main): Avoid unused variable.
58271
58272 2008-09-15  Bruno Haible  <bruno@clisp.org>
58273
58274         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
58275         are missing on OpenBSD 4.0 individually.
58276         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58277
58278 2008-09-15  Bruno Haible  <bruno@clisp.org>
58279
58280         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
58281         * doc/posix-functions/strerror.texi: Mention also Cygwin.
58282         * doc/posix-functions/perror.texi: Likewise.
58283         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
58284         is missing.
58285         Reported by Eric Blake.
58286
58287         * lib/errno.in.h: Use replacement values >= 2000.
58288         Reported by Eric Blake.
58289
58290 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58291
58292         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
58293         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
58294         limit.
58295         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
58296         compareseq was aborted.
58297
58298 2008-09-14  Bruno Haible  <bruno@clisp.org>
58299
58300         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
58301         yvec_edit_count.
58302         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
58303         (fstrcmp_bounded): Simplify result computation accordingly.
58304
58305 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58306
58307         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
58308         (fstrcmp): Define in terms of fstrcmp_bounded.
58309         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
58310         lower_bound argument.
58311         Return quickly if the result is certainly < lower_bound.
58312         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
58313
58314 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58315
58316         * lib/diffseq.h (EARLY_ABORT): New macro.
58317         (compareseq): Change return type to bool. Return true when EARLY_ABORT
58318         evaluates to true.
58319
58320 2008-09-14  Bruno Haible  <bruno@clisp.org>
58321
58322         * modules/perror-tests: New file.
58323         * tests/test-perror.sh: New file.
58324         * tests/test-perror.c: New file.
58325
58326         New module 'perror'.
58327         * lib/stdio.in.h (perror): New declaration.
58328         * lib/perror.c: New file.
58329         * m4/perror.m4: New file.
58330         * modules/perror: New file.
58331         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
58332         * doc/posix-functions/perror.texi: Mention the perror module.
58333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
58334         REPLACE_PERROR.
58335         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
58336         REPLACE_PERROR.
58337
58338 2008-09-14  Bruno Haible  <bruno@clisp.org>
58339
58340         * modules/stdio (Makefile.am): Reorder to match the order in
58341         lib/stdio.in.h.
58342         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58343
58344 2008-09-13  Bruno Haible  <bruno@clisp.org>
58345
58346         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
58347
58348 2008-09-13  Bruno Haible  <bruno@clisp.org>
58349
58350         Extend strerror to cover the added errno values.
58351         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
58352         (rpl_strerror): Provide error messages for the added errno values and
58353         for the WSA* values.
58354         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
58355         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
58356         strerror.
58357         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
58358         * modules/strerror (Depends-on): Add errno.
58359         * doc/posix-functions/strerror.texi: Document the change.
58360         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
58361         and EOVERFLOW.
58362
58363 2008-09-13  Bruno Haible  <bruno@clisp.org>
58364
58365         * modules/EOVERFLOW: Remove file.
58366         * m4/eoverflow.m4: Remove file.
58367         * modules/EOVERFLOW-tests: Remove file.
58368         * tests/test-EOVERFLOW.c: Remove file.
58369         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
58370         * modules/ftell (Depends-on): Likewise.
58371         * modules/getdelim (Depends-on): Likewise.
58372         * modules/getugroups (Depends-on): Likewise.
58373         * modules/poll (Depends-on): Likewise.
58374         * modules/snprintf (Depends-on): Likewise.
58375         * modules/sprintf-posix (Depends-on): Likewise.
58376         * modules/vasnprintf (Depends-on): Likewise.
58377         * modules/vasprintf (Depends-on): Likewise.
58378         * modules/vfprintf-posix (Depends-on): Likewise.
58379         * modules/vsnprintf (Depends-on): Likewise.
58380         * modules/vsprintf-posix (Depends-on): Likewise.
58381         * modules/xvasprintf (Depends-on): Likewise.
58382         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58383         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
58384         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
58385         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
58386         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58387         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
58388         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
58389         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
58390         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58391         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
58392         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
58393         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
58394         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58395         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
58396         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
58397         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
58398         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58399         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
58400         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
58401         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
58402         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58403         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
58404         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
58405         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
58406         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
58407         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58408         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
58409         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
58410         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
58411         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
58412         * MODULES.html.sh: Remove EOVERFLOW.
58413         * NEWS: Mention the change.
58414
58415 2008-09-13  Bruno Haible  <bruno@clisp.org>
58416
58417         * modules/errno-tests: New file.
58418         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
58419
58420         * lib/errno.in.h: New file.
58421         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
58422         * modules/errno: New file.
58423         * doc/posix-headers/errno.texi: Update documentation.
58424         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
58425
58426 2008-09-13  Bruno Haible  <bruno@clisp.org>
58427
58428         * tests/test-poll.c: Use #if for native Windows, rather than testing
58429         __MSVCRT__.
58430
58431 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58432             Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/glob.c: Don't include <pwd.h> on native Windows.
58435         (WINDOWS32): New macro.
58436         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
58437
58438 2008-09-13  Bruno Haible  <bruno@clisp.org>
58439
58440         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
58441         (ETIMEDOUT): Remove macro.
58442         (glthread_cond_timedwait_multithreaded): New declaration.
58443         (glthread_cond_timedwait): Use it.
58444         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
58445         (glthread_cond_timedwait_multithreaded): New function.
58446
58447 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58448
58449         * modules/poll-tests: Do not check for io.h.
58450         * tests/test-poll.c: Check for __MSVCRT__ instead.
58451
58452 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58453
58454         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
58455         * modules/poll-tests: Add inet_pton, stdbool, sockets.
58456         * tests/test-poll.c: Use them.  Use _pipe on Windows.
58457
58458 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
58459
58460         * modules/poll-tests: New.
58461         * tests/test-poll.c: New.
58462
58463 2008-09-12  Eric Blake  <ebb9@byu.net>
58464
58465         frexp: test for NetBSD failure on -0.0
58466         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
58467         not all, bugs from NetBSD 3.0 have been fixed.
58468         * doc/posix-functions/frexp.texi (frexp): Document bug.
58469         Reported by Thomas Klausner.
58470
58471         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
58472         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
58473         literal -0.0.
58474         Reported by Jonathan C. Patschke <jp@centtech.com>.
58475
58476 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58477
58478         * lib/glthread/cond.h: Use dummy implementation also if
58479         USE_WIN32_THREADS.
58480
58481 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58482
58483         * modules/fnmatch-posix (License): Change to LGPLv2+.
58484         * modules/fnmatch-gnu (License): Likewise.
58485
58486 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58487
58488         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
58489
58490 2008-09-11  Jim Meyering  <meyering@redhat.com>
58491
58492         * users.txt: Add gtk-vnc.
58493
58494 2008-09-08  Simon Josefsson  <simon@josefsson.org>
58495
58496         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
58497         rotate amounts.
58498
58499         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
58500         required for 16-bit and 8-bit rotates.
58501         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
58502         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
58503         UINT8_MAX instead of hard-coded constants.
58504         Suggested by Paul Eggert.
58505
58506 2008-09-07  Bruno Haible  <bruno@clisp.org>
58507
58508         * tests/test-striconveh.c (main): Check behaviour when converting from
58509         UTF-7.
58510
58511         Make striconveh work better with stateful encodings.
58512         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
58513         that iconv does not increment the inptr when returning -1/EINVAL.
58514
58515 2008-09-07  Bruno Haible  <bruno@clisp.org>
58516
58517         * build-aux/config.rpath: Update according to libtool-2.2.6.
58518         * build-aux/config.libpath: Likewise.
58519
58520 2008-09-06  Bruno Haible  <bruno@clisp.org>
58521
58522         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
58523         * lib/freadptr.c (freadptr): Likewise.
58524         * lib/freadseek.c (freadptrinc): Likewise.
58525         Reported by Simon Josefsson.
58526
58527 2008-09-06  Bruno Haible  <bruno@clisp.org>
58528
58529         * modules/freadptr (License): Change to LGPLv2+.
58530         * modules/freadseek (License): Likewise.
58531         Suggested by Eric Blake.
58532
58533         * modules/memchr2 (License): Change to LGPLv2+.
58534         Approved by Eric Blake.
58535
58536 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58537             Bruno Haible  <bruno@clisp.org>
58538
58539         Make gnulib-tool work with native 'sed' on AIX.
58540         * gnulib-tool (sed_noop): New variable.
58541         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
58542         func_add_or_update, func_create_testdir): Use it to initialize sed
58543         script variables.
58544         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58545
58546 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
58547             Bruno Haible  <bruno@clisp.org>
58548
58549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
58550         also works after #include directives.
58551
58552 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
58553
58554         getdate.y: reject an out-of-range timezone value
58555         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
58556         the range [-24...+24].  When specified with only one or two digits,
58557         * tests/test-getdate.c: Tests for the fix.
58558         * doc/getdate.texi: Document this change.
58559
58560 2008-09-03  Bruno Haible  <bruno@clisp.org>
58561
58562         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
58563
58564 2008-09-02  Simon Josefsson  <simon@josefsson.org>
58565
58566         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
58567         <bruce.korb@gmail.com> with ideas from Ben Pfaff
58568         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
58569         Blake <ebb9@byu.net>.
58570
58571         * tests/test-bitrotate.c: Add more test vectors.
58572
58573 2008-09-02  Eric Blake  <ebb9@byu.net>
58574
58575         vasnprintf-posix: handle large precision via %.*d
58576         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
58577         when handling it ourselves.
58578         * tests/test-vasnprintf-posix.c (test_function): Add test.
58579         * tests/test-snprintf-posix.h (test_function): Likewise.
58580         * tests/test-sprintf-posix.h (test_function): Likewise.
58581         * tests/test-vasprintf-posix.c (test_function): Likewise.
58582         Reported by Alain Guibert.
58583
58584 2008-09-01  Eric Blake  <ebb9@byu.net>
58585
58586         c-stack: make configure-time check more robust
58587         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
58588         successful sigaction call.
58589         Reported by Tom G. Christensen.
58590
58591 2008-09-01  Bruno Haible  <bruno@clisp.org>
58592
58593         New module 'findprog-lgpl'.
58594         * modules/findprog-lgpl: New file.
58595         * lib/findprog-lgpl.c: New file.
58596         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
58597         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
58598         to decide whether to use strdup or xstrdup, concatenated_filename or
58599         xconcatenated_filename.
58600
58601 2008-09-01  Bruno Haible  <bruno@clisp.org>
58602
58603         Split module 'concat-filename' into 'concat-filename' (LGPL) and
58604         'xconcat-filename' (GPL).
58605         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
58606         (License): Change to LGPLv2+.
58607         * modules/xconcat-filename: New file.
58608         * lib/concat-filename.h (concatenated_filename): Change specification.
58609         (xconcatenated_filename): New declaration.
58610         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
58611         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
58612         memory situations.
58613         * lib/xconcat-filename.c: New file.
58614         * NEWS: Mention the change.
58615         * lib/findprog.c: Include concat-filename.h, not filename.h.
58616         (find_in_path): Use xconcatenated_filename instead of
58617         concatenated_filename.
58618         * lib/javacomp.c: Include concat-filename.h, not filename.h.
58619         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58620         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58621         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58622         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
58623         instead of concatenated_filename.
58624         * lib/javaexec.c: Include concat-filename.h, not filename.h.
58625         (execute_java_class): Use xconcatenated_filename instead of
58626         concatenated_filename.
58627         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
58628         * modules/javacomp (Depends-on): Likewise.
58629         * modules/javaexec (Depends-on): Likewise.
58630
58631 2008-09-01  Bruno Haible  <bruno@clisp.org>
58632
58633         Split module 'filename' into 'filename' and 'concat-filename'.
58634         * modules/filename: Keep only lib/filename.h.
58635         (License): Change to LGPLv2+.
58636         * modules/concat-filename: New file, extracted from modules/filename.
58637         * lib/filename.h (concatenated_filename): Remove declaration.
58638         * lib/concat-filename.h: New file, extracted from lib/filename.h.
58639         * lib/concat-filename.c: Include concat-filename.h.
58640         * NEWS: Mention the change.
58641
58642 2008-09-01  Simon Josefsson  <simon@josefsson.org>
58643
58644         * lib/bitrotate.h (rotl8, rotr8): Add.
58645
58646         * modules/bitrotate (configure.ac): Need
58647         AC_REQUIRE([AC_C_INLINE]).
58648         (Description): Mention stdint.h.  Reported by Bruno Haible
58649         <bruno@clisp.org>.
58650
58651         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
58652         Paolo Bonzini <bonzini@gnu.org>.
58653
58654 2008-08-31  Bruno Haible  <bruno@clisp.org>
58655
58656         Assume Solaris specific bi-arch conventions on Solaris systems.
58657         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
58658         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
58659         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
58660         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
58661         like acl_libdirstem.
58662         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
58663         acl_libdirstem.
58664         * NEWS: Mention the change.
58665         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
58666
58667 2008-08-31  Jim Meyering  <meyering@redhat.com>
58668
58669         * lib/strftime.h: Add comments describing the two added arguments.
58670
58671         remove duplicate #include directives
58672         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
58673         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
58674
58675 2008-08-31  Bruno Haible  <bruno@clisp.org>
58676
58677         New module 'sigpipe-die'.
58678         * modules/sigpipe-die: New file.
58679         * lib/sigpipe-die.h: New file.
58680         * lib/sigpipe-die.c: New file.
58681         * MODULES.html.sh (Signal handling): Add sigpipe-die.
58682
58683 2008-08-31  Bruno Haible  <bruno@clisp.org>
58684
58685         Don't override previously installed signal handlers.
58686         * lib/fatal-signal.c (saved_sigactions): New variable.
58687         (uninstall_handlers): Reset the signal to the saved handler, not
58688         to SIG_DFL (except when ignored).
58689         (install_handlers): Save the previous handlers.
58690
58691 2008-08-30  Bruno Haible  <bruno@clisp.org>
58692
58693         * gnulib-tool (func_reset_sigpipe): New function.
58694         (func_get_automake_snippet, func_modules_transitive_closure,
58695         func_import): Invoke it before a join command that reads from stdin,
58696         to avoid "echo: write error: Broken pipe" error messages on stderr.
58697         Reported by Sam Steingold <sds@gnu.org>.
58698
58699 2008-08-30  Bruno Haible  <bruno@clisp.org>
58700
58701         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
58702         Code copied from m4/open.m4.
58703         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
58704         access and the filename ends in a slash. Code copied from lib/open.c.
58705         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
58706         * tests/test-fopen.c (main): Check against bug with trailing slash.
58707
58708 2008-08-29  Bruno Haible  <bruno@clisp.org>
58709
58710         Avoid some "gcc -pedantic" warnings.
58711         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
58712         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
58713         * lib/dirent.in.h: Likewise.
58714         * lib/fcntl.in.h: Likewise.
58715         * lib/float.in.h: Likewise.
58716         * lib/iconv.in.h: Likewise.
58717         * lib/inttypes.in.h: Likewise.
58718         * lib/locale.in.h: Likewise.
58719         * lib/math.in.h: Likewise.
58720         * lib/netinet_in.in.h: Likewise.
58721         * lib/search.in.h: Likewise.
58722         * lib/signal.in.h: Likewise.
58723         * lib/stdarg.in.h: Likewise.
58724         * lib/stdint.in.h: Likewise.
58725         * lib/stdio.in.h: Likewise.
58726         * lib/stdlib.in.h: Likewise.
58727         * lib/string.in.h: Likewise.
58728         * lib/strings.in.h: Likewise.
58729         * lib/sys_select.in.h: Likewise.
58730         * lib/sys_socket.in.h: Likewise.
58731         * lib/sys_stat.in.h: Likewise.
58732         * lib/sys_time.in.h: Likewise.
58733         * lib/sysexits.in.h: Likewise.
58734         * lib/time.in.h: Likewise.
58735         * lib/unistd.in.h: Likewise.
58736         * lib/wchar.in.h: Likewise.
58737         * lib/wctype.in.h: Likewise.
58738         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
58739         * modules/fchdir (Makefile.am): Likewise.
58740         * modules/fcntl (Makefile.am): Likewise.
58741         * modules/float (Makefile.am): Likewise.
58742         * modules/iconv_open (Makefile.am): Likewise.
58743         * modules/inttypes (Makefile.am): Likewise.
58744         * modules/locale (Makefile.am): Likewise.
58745         * modules/math (Makefile.am): Likewise.
58746         * modules/netinet_in (Makefile.am): Likewise.
58747         * modules/search (Makefile.am): Likewise.
58748         * modules/signal (Makefile.am): Likewise.
58749         * modules/stdarg (Makefile.am): Likewise.
58750         * modules/stdint (Makefile.am): Likewise.
58751         * modules/stdio (Makefile.am): Likewise.
58752         * modules/stdlib (Makefile.am): Likewise.
58753         * modules/string (Makefile.am): Likewise.
58754         * modules/strings (Makefile.am): Likewise.
58755         * modules/sys_select (Makefile.am): Likewise.
58756         * modules/sys_socket (Makefile.am): Likewise.
58757         * modules/sys_stat (Makefile.am): Likewise.
58758         * modules/sys_time (Makefile.am): Likewise.
58759         * modules/sysexits (Makefile.am): Likewise.
58760         * modules/time (Makefile.am): Likewise.
58761         * modules/unistd (Makefile.am): Likewise.
58762         * modules/wchar (Makefile.am): Likewise.
58763         * modules/wctype (Makefile.am): Likewise.
58764         Reported by Reuben Thomas <rrt@sc3d.org>.
58765
58766 2008-08-29  Bruno Haible  <bruno@clisp.org>
58767
58768         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
58769         any more.
58770
58771 2008-08-29  Simon Josefsson  <simon@josefsson.org>
58772
58773         * MODULES.html.sh (Misc): Add bitrotate.
58774
58775         * modules/bitrotate: New file.
58776
58777         * lib/bitrotate.h: New file.
58778
58779         * modules/bitrotate-tests: New file.
58780
58781         * tests/test-bitrotate.c: New file.
58782
58783         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
58784         on the bitrotate module.
58785
58786         * lib/arctwo.c: Use new bitrotate module.
58787
58788 2008-08-29  Jim Meyering  <meyering@redhat.com>
58789
58790         bootstrap: merge changes from coreutils
58791         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
58792         of copied files.  Remove a kludge, now that this is fixed.
58793         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
58794         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
58795         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
58796
58797 2008-08-29  Bruno Haible  <bruno@clisp.org>
58798
58799         * MODULES.html.sh: Remove --cvs-urls option.
58800
58801 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
58802
58803         maint.mk: adjust to file name change
58804         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
58805
58806 2008-08-28  Jim Meyering  <meyering@redhat.com>
58807
58808         * modules/getndelim2 (License): Relicense to LGPLv2+.
58809         Approved by Richard Stallman for the version of 1995, and by
58810         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
58811
58812 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
58813
58814         * lib/getdelim.c (flockfile, funlockfile): Make all of them
58815         dummy if one is not available.  Do not touch them if
58816         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
58817         (getc_maybe_unlocked): New.
58818         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
58819
58820 2008-08-26  Eric Blake  <ebb9@byu.net>
58821
58822         doc/INSTALL: resync from autoconf
58823         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
58824         (INSTALL_PRELUDE): Delete; this is done more efficiently by
58825         moving...
58826         * install.texi [!autoconf]: ...here.  Resync from autoconf.
58827         * INSTALL: Regenerate.
58828         * INSTALL.ISO: New file.
58829         * INSTALL.UTF-8: Likewise.
58830
58831 2008-08-26  Jim Meyering  <meyering@redhat.com>
58832
58833         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
58834         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
58835         these definitions conditional, so that they may be overridden, too.
58836
58837 2008-08-26  Bruno Haible  <bruno@clisp.org>
58838
58839         Generate INSTALL file variants with prettier quotes.
58840         * doc/Makefile (INSTALL_PRELUDE): New macro.
58841         (INSTALL): Use it.
58842         (INSTALL.ISO, INSTALL.UTF-8): New rules.
58843
58844 2008-08-26  Bruno Haible  <bruno@clisp.org>
58845
58846         Run makeinfo in an English locale.
58847         * doc/Makefile (MAKEINFO): New variable.
58848
58849 2008-08-26  Bruno Haible  <bruno@clisp.org>
58850
58851         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
58852         Suggested by Eric Blake.
58853
58854 2008-08-25  Bruno Haible  <bruno@clisp.org>
58855
58856         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
58857
58858 2008-08-25  Eric Blake  <ebb9@byu.net>
58859
58860         c-stack: test that stack overflow can be caught
58861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
58862         that platform allows handling stack overflow; at least OS/2 EMX
58863         has sigaltstack, but crashes before transferring control to
58864         handler on stack overflow.
58865         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
58866         check for HAVE_STACK_OVERFLOW_HANDLING.
58867         Reported by Elbert Pol.
58868
58869 2008-08-25  Bruno Haible  <bruno@clisp.org>
58870
58871         * doc/posix-functions/strftime.texi: Fix description of strftime
58872         module.
58873
58874 2008-08-24  Bruno Haible  <bruno@clisp.org>
58875
58876         * tests/uniwidth/test-uc_width2.c: New file.
58877         * tests/uniwidth/test-uc_width2.sh: New file.
58878         * modules/uniwidth/width-tests (Files): Add the new files.
58879         (TESTS): Add uniwidth/test-uc_width2.sh.
58880         (TESTS_ENVIRONMENT): New variable.
58881         (check_PROGRAMS): Add test-uc_width2.
58882         (test_uc_width2_SOURCES): New variable.
58883
58884         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
58885         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
58886         not 0x00AB.
58887         Reported by Alexander V. Lukyanov <lav@netis.ru>.
58888
58889 2008-08-22  Eric Blake  <ebb9@byu.net>
58890
58891         test-lock, test-tls: mention why a test is skipped
58892         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
58893         skipped.
58894         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
58895
58896         count-one-bits: relax license
58897         * modules/count-one-bits (License): Relicense to LGPLv2+.
58898         Suggested by Ludovic Courtès, approved by Ben Pfaff.
58899
58900 2008-08-22  Andreas Schwab  <schwab@suse.de>
58901
58902         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
58903         Remove spurious space in assignment.
58904
58905 2008-08-21  Simon Josefsson  <simon@josefsson.org>
58906
58907         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
58908         Paul Eggert <eggert@CS.UCLA.EDU>.
58909
58910 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
58911
58912         * modules/gettext: Add m4/threadlib.m4.
58913
58914 2008-08-19  Eric Blake  <ebb9@byu.net>
58915
58916         test-c-stack: fix compilation failure on FreeBSD 5.0
58917         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
58918         headers before <sys/resource.h>.
58919         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
58920         the bug.
58921         Reported by Nelson H. F. Beebe.
58922
58923         strverscmp: migrate from "strverscmp.h" to <string.h>
58924         * modules/string (Makefile.am): Add new hooks.
58925         * modules/strverscmp (Files): Remove strverscmp.h.
58926         (Depends-on): Add string.
58927         (configure.ac): Add indicator.
58928         (Include): Mention new header.
58929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
58930         defaults.
58931         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
58932         results.
58933         * lib/strverscmp.h: Delete.
58934         * lib/string.in.h (strverscmp): Provide declaration, when needed.
58935         * tests/test-strverscmp.c (includes): Adjust client.
58936         * lib/check-version.c (includes): Likewise.
58937         * NEWS: Document the change.
58938
58939         strverscmp: add unit test
58940         * modules/strverscmp-tests: New file.
58941         * tests/test-strverscmp.c: Likewise.
58942
58943 2008-08-19  Simon Josefsson  <simon@josefsson.org>
58944
58945         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
58946         regarding Windows crypto stuff, from Mono.
58947
58948 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
58949
58950         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
58951         if present, for intel RND.  Return error on failures.
58952
58953 2008-08-18  Ben Pfaff  <blp@gnu.org>
58954
58955         gitlog-to-changelog: give better diagnostic for failed pipe-open
58956         * build-aux/gitlog-to-changelog: Improve error message: suggest
58957         that the version of Git may be too old.
58958
58959 2008-08-18  Simon Josefsson  <simon@josefsson.org>
58960
58961         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
58962         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
58963
58964 2008-08-18  Bruno Haible  <bruno@clisp.org>
58965
58966         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
58967         pthread_in_use().
58968
58969 2008-08-18  Bruno Haible  <bruno@clisp.org>
58970
58971         * lib/glthread/threadlib.c: Include <pthread.h>.
58972
58973 2008-08-18  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
58976         glthread_recursive_lock_* macros.
58977         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
58978         Fix syntax error.
58979
58980 2008-08-18  Bruno Haible  <bruno@clisp.org>
58981
58982         * lib/glthread/thread.c: Avoid forcing a context switch right after
58983         thread creation.
58984
58985 2008-08-17  Bruno Haible  <bruno@clisp.org>
58986
58987         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
58988         * lib/glthread/thread.h: Provide Win32 specific implementation.
58989         * modules/thread (Files): Add lib/glthread/thread.c.
58990         (Depends-on): Add lock.
58991         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
58992
58993 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58994
58995         New module 'yield'.
58996         * modules/yield: New file.
58997         * lib/glthread/yield.h: New file.
58998         * m4/yield.m4: New file.
58999         * MODULES.html.sh (Multithreading): Add yield.
59000
59001 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59002
59003         New module 'thread'.
59004         * modules/thread: New file.
59005         * lib/glthread/thread.h: New file.
59006         * m4/thread.m4: New file.
59007         * MODULES.html.sh (Multithreading): Add thread.
59008
59009 2008-08-17  Bruno Haible  <bruno@clisp.org>
59010
59011         * lib/glthread/lock.h: Include <stdlib.h> always.
59012         * lib/glthread/tls.h: Likewise.
59013         * lib/glthread/cond.h: Likewise.
59014
59015 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59016
59017         New module 'cond'.
59018         * modules/cond: New file.
59019         * lib/glthread/cond.h: New file.
59020         * lib/glthread/cond.c: New file.
59021         * m4/cond.m4: New file.
59022         * MODULES.html.sh (Multithreading): Add cond.
59023
59024 2008-08-16  Eric Blake  <ebb9@byu.net>
59025
59026         c-stack: fix regression on Irix 5.3 from 2008-06-21
59027         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
59028         sa_sigaction...
59029         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
59030         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
59031         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
59032         * modules/signal (Makefile.am): Use the value.
59033         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
59034         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
59035         * doc/posix-headers/signal.texi (signal.h): Document this
59036         portability issue.
59037         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
59038         Reported by Tom G. Christensen.
59039
59040 2008-08-17  Bruno Haible  <bruno@clisp.org>
59041
59042         New module 'threadlib'.
59043         * modules/threadlib: New file.
59044         * lib/glthread/threadlib.c: New file, extracted from
59045         lib/glthread/lock.c.
59046         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
59047         functions.
59048         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
59049         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
59050         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
59051         macros.
59052         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
59053         (gl_DISABLE_THREADS): Remove macro.
59054         * modules/lock (Files): Remove build-aux/config.rpath.
59055         (Depends-on): Remove havelib. Add threadlib.
59056         (configure.ac-early): Remove section.
59057         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
59058         * modules/tls (Depends-on): Remove lock. Add threadlib.
59059         (Link): New section, copied from threadlib.
59060         * MODULES.html.sh (Multithreading): Add threadlib.
59061
59062 2008-08-14  Bruno Haible  <bruno@clisp.org>
59063
59064         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
59065         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
59066         glthread_rwlock_unlock, glthread_rwlock_destroy,
59067         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
59068         glthread_recursive_lock_destroy): Define as macros always.
59069         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
59070         glthread_lock_lock.
59071         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
59072         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
59073         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
59074         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
59075         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
59076         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
59077         (glthread_recursive_lock_lock_func): Renamed from
59078         glthread_recursive_lock_lock.
59079         (glthread_recursive_lock_unlock_func): Renamed from
59080         glthread_recursive_lock_unlock.
59081         (glthread_recursive_lock_destroy_func): Renamed from
59082         glthread_recursive_lock_destroy.
59083
59084 2008-08-14  Bruno Haible  <bruno@clisp.org>
59085
59086         * lib/glthread/lock.h: Renamed from lib/lock.h.
59087         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
59088         * lib/glthread/tls.h: Renamed from lib/tls.h.
59089         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
59090         * lib/fstrcmp.c: Update includes.
59091         * lib/strsignal.c: Update includes.
59092         * modules/lock (Files, Makefile.am): Update.
59093         (Include): Change to "glthread/lock.h".
59094         * modules/tls (Files, Makefile.am): Update.
59095         (Include): Change to "glthread/tls.h".
59096         * tests/test-lock.c: Update includes.
59097         * tests/test-tls.c: Update includes.
59098         * NEWS: Mention the renamed header files.
59099
59100 2008-08-11  Jim Meyering  <meyering@redhat.com>
59101
59102         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
59103
59104 2008-08-11  Eric Blake  <ebb9@byu.net>
59105
59106         test-c-stack: avoid C99-ism
59107         * tests/test-c-stack.c (main): Fix whitespace, move declaration
59108         before statement.
59109         Reported by Alain Guibert.
59110
59111 2008-08-10  Jim Meyering  <meyering@redhat.com>
59112
59113         ensure that return value of uinttostr et al are not ignored
59114         * lib/inttostr.h (__GNUC_PREREQ): Define.
59115         (__attribute_warn_unused_result__): Define.
59116         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
59117
59118 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
59119
59120         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
59121         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
59122
59123 2008-08-07  Jim Meyering  <meyering@redhat.com>
59124
59125         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
59126
59127         * modules/mkstemp (License): Relicense under LGPLv2+.
59128         * modules/tempname (License): Likewise.
59129
59130 2008-08-06  Bruno Haible  <bruno@clisp.org>
59131
59132         * lib/poll.c (poll): Further micro-optimization.
59133
59134 2008-08-06  Jim Meyering  <meyering@redhat.com>
59135
59136         inet_pton.c: use locale-independent tolower
59137         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
59138         (inet_pton6): Use c_tolower rather than tolower.
59139         * modules/inet_pton (Depends-on): Add c-ctype.
59140
59141 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
59142
59143         * lib/poll.c (poll): Avoid division when timeout is 0, cache
59144         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
59145
59146 2008-08-06  Jim Meyering  <meyering@redhat.com>
59147
59148         * modules/inet_pton (License): Relicense under LGPLv2+.
59149
59150 2008-08-03  Bruno Haible  <bruno@clisp.org>
59151
59152         Additional non-aborting API for lock and tls.
59153         * lib/lock.h: Include <errno.h>.
59154         (glthread_lock_init): New macro/function.
59155         (gl_lock_init): Define as wrapper around glthread_lock_init.
59156         (glthread_lock_lock): New macro/function.
59157         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
59158         (glthread_lock_unlock): New macro/function.
59159         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
59160         (glthread_lock_destroy): New macro/function.
59161         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
59162         (glthread_rwlock_init): New macro/function.
59163         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
59164         (glthread_rwlock_rdlock): New macro/function.
59165         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
59166         (glthread_rwlock_wrlock): New macro/function.
59167         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
59168         (glthread_rwlock_unlock): New macro/function.
59169         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
59170         (glthread_rwlock_destroy): New macro/function.
59171         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
59172         (glthread_recursive_lock_init): New macro/function.
59173         (gl_recursive_lock_init): Define as wrapper around
59174         glthread_recursive_lock_init.
59175         (glthread_recursive_lock_lock): New macro/function.
59176         (gl_recursive_lock_lock): Define as wrapper around
59177         glthread_recursive_lock_lock.
59178         (glthread_recursive_lock_unlock): New macro/function.
59179         (gl_recursive_lock_unlock): Define as wrapper around
59180         glthread_recursive_lock_unlock.
59181         (glthread_recursive_lock_destroy): New macro/function.
59182         (gl_recursive_lock_destroy): Define as wrapper around
59183         glthread_recursive_lock_destroy.
59184         (glthread_once): New macro/function.
59185         (gl_once): Define as wrapper around glthread_once.
59186         Update function declarations.
59187         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
59188         glthread_rwlock_init. Return error code.
59189         (glthread_rwlock_rdlock_multithreaded): Renamed from
59190         glthread_rwlock_rdlock. Return error code.
59191         (glthread_rwlock_wrlock_multithreaded): Renamed from
59192         glthread_rwlock_wrlock. Return error code.
59193         (glthread_rwlock_unlock_multithreaded): Renamed from
59194         glthread_rwlock_unlock. Return error code.
59195         (glthread_rwlock_destroy_multithreaded): Renamed from
59196         glthread_rwlock_destroy. Return error code.
59197         (glthread_recursive_lock_init_multithreaded): Renamed from
59198         glthread_recursive_lock_init. Return error code.
59199         (glthread_recursive_lock_lock_multithreaded): Renamed from
59200         glthread_recursive_lock_lock. Return error code.
59201         (glthread_recursive_lock_unlock_multithreaded): Renamed from
59202         glthread_recursive_lock_unlock. Return error code.
59203         (glthread_recursive_lock_destroy_multithreaded): Renamed from
59204         glthread_recursive_lock_destroy. Return error code.
59205         (glthread_once_call): Make static.
59206         (glthread_once_multithreaded): Renamed from glthread_once.
59207         * lib/tls.h: Include <errno.h>.
59208         (glthread_tls_key_init): New macro/function.
59209         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
59210         (glthread_tls_set): New macro/function.
59211         (gl_tls_set): Define as wrapper around glthread_tls_set.
59212         (glthread_tls_key_destroy): New macro/function.
59213         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
59214         Update function declarations.
59215         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
59216         glthread_tls_get.
59217         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
59218
59219 2008-08-04  Eric Blake  <ebb9@byu.net>
59220
59221         gnumakefile: use space, not TAB, outside of targets
59222         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
59223
59224 2008-08-02  Jim Meyering  <meyering@redhat.com>
59225
59226         getdate.y: avoid locale-dependent date parsing failure
59227         In Turkish locales, getdate would fail to recognize keywords
59228         containing a lowercase "i".  The solution is not to rely on
59229         locale-sensitive case-conversion.
59230         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
59231         (lookup_word): Use c_toupper in place of toupper.
59232         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
59233         Reported by Vefa Bicakci <bicave@superonline.com> in
59234         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
59235         * modules/getdate (Depends-on): Add c-ctype.
59236
59237 2008-08-02  Bruno Haible  <bruno@clisp.org>
59238
59239         * gnulib-tool (func_import): When updating or creating a .gitignore
59240         file, prepend each added line with a slash, and ignore leading slashes
59241         from the existing lines.
59242         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59243
59244 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59245
59246         Portability fix for GNU make 3.79.1.
59247         * top/GNUmakefile: Avoid 'else COND', which older GNU make
59248         versions do not understand.
59249
59250 2008-08-01  Bruno Haible  <bruno@clisp.org>
59251
59252         Work around bug of HP-UX 10.20 cc with -0.0 literal.
59253         * tests/test-isnanf.h (zero): New variable.
59254         (main): Avoid literal -0.0f.
59255         * tests/test-isnand.h (zero): New variable.
59256         (main): Avoid literal -0.0.
59257         * tests/test-isnanl.h (zero): New variable.
59258         (main): Avoid literal -0.0L.
59259         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
59260         (test_float, test_double, test_long_double): Avoid literals -0.0f,
59261         -0.0, -0.0L.
59262         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
59263         (test_signbitd): Avoid literal -0.0.
59264         (test_signbitl): Avoid literal -0.0L.
59265         * tests/test-ceilf1.c (zero): New variable.
59266         (main): Avoid literal -0.0f.
59267         * tests/test-ceill.c (zero): New variable.
59268         (main): Avoid literal -0.0L.
59269         * tests/test-floorf1.c (zero): New variable.
59270         (main): Avoid literal -0.0f.
59271         * tests/test-floorl.c (zero): New variable.
59272         (main): Avoid literal -0.0L.
59273         * tests/test-roundf1.c (zero): New variable.
59274         (main): Avoid literal -0.0f.
59275         * tests/test-round1.c (zero): New variable.
59276         (main): Avoid literal -0.0.
59277         * tests/test-roundl.c (zero): New variable.
59278         (main): Avoid literal -0.0L.
59279         * tests/test-truncf1.c (zero): New variable.
59280         (main): Avoid literal -0.0f.
59281         * tests/test-trunc1.c (zero): New variable.
59282         (main): Avoid literal -0.0.
59283         * tests/test-truncl.c (zero): New variable.
59284         (main): Avoid literal -0.0L.
59285         * tests/test-frexp.c (zero): New variable.
59286         (main): Avoid literal -0.0.
59287         * tests/test-frexpl.c (zero): New variable.
59288         (main): Avoid literal -0.0L.
59289         * tests/test-ldexpl.c (zero): New variable.
59290         (main): Avoid literal -0.0L.
59291         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59292         (zerod, zerol): New variables.
59293         (test_function): Avoid literals -0.0, -0.0L.
59294         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
59295         (zerod, zerol): New variables.
59296         (test_function): Avoid literals -0.0, -0.0L.
59297         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59298         (zerod, zerol): New variables.
59299         (test_function): Avoid literals -0.0, -0.0L.
59300         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
59301         (zerod, zerol): New variables.
59302         (test_function): Avoid literals -0.0, -0.0L.
59303         * tests/test-strtod.c (zero): New variable.
59304         (main): Avoid literal -0.0.
59305         Reported by Jonathan C. Patschke <jp@centtech.com>.
59306
59307 2008-07-31  Jim Meyering  <meyering@redhat.com>
59308
59309         sha256.h: correct definition of SHA224_DIGEST_SIZE
59310         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
59311         Reported by Paulie Pena IV <paulie4@gmail.com>.
59312         Define as 224 / 8, rather than as a literal.
59313         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
59314         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
59315         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
59316
59317 2008-07-31  Bruno Haible  <bruno@clisp.org>
59318
59319         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
59320         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
59321         Reported by Jonathan Patschke <jp@centtech.com>.
59322
59323 2008-07-31  Bruno Haible  <bruno@clisp.org>
59324
59325         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
59326         Reported by Paolo Bonzini <bonzini@gnu.org>.
59327
59328 2008-07-30  Eric Blake  <ebb9@byu.net>
59329
59330         test-strtod: allow compilation without -lm
59331         * tests/test-strtod.c (main): Avoid link dependence on fabs.
59332         Reported by Dennis Clarke <blastwave@gmail.com>.
59333
59334 2008-07-28  Jim Meyering  <meyering@redhat.com>
59335
59336         bootstrap: work also when there are no .po files in po/
59337         * build-aux/bootstrap (update_po_files): Complete the change
59338         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
59339
59340 2008-07-27  Jim Meyering  <meyering@redhat.com>
59341
59342         * users.txt: Add zile.
59343
59344 2008-07-26  Ben Pfaff  <blp@gnu.org>
59345
59346         Add missing dependencies on new m4/exponent[fdl].m4 files.
59347         * modules/isnanf-nolibm: Add m4/exponentf.m4.
59348         * modules/isnand-nolibm: Add m4/exponentd.m4.
59349         * modules/isnanl-nolibm: Add m4/exponentl.m4.
59350         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
59351         m4/isnan[fdl].m4, because the macros actually used moved.
59352         Reported by Jim Meyering.
59353
59354 2008-07-14  Ben Pfaff  <blp@gnu.org>
59355
59356         Add isinf module.
59357         * lib/isinf.c: New file.
59358         * lib/math.in.h: Define isinf macro if we have decided to replace
59359         it.
59360         * m4/isinf.m4: New file.
59361         * m4/math_h.m4: Initialize and substitute variables for isinf
59362         module.
59363         * modules/isinf: New file.
59364         * modules/isinf-tests: New file.
59365         * modules/math: Add substitutions for new module.
59366         * tests/test-isinf.c: New file.
59367         * doc/posix-functions/isinf.texi: Mention new module.
59368         * MODULES.html.sh: Mention new module.
59369
59370 2008-07-14  Ben Pfaff  <blp@gnu.org>
59371
59372         Factor out some macros for use by additional modules.
59373         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
59374         exponentf.m4.
59375         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
59376         exponentd.m4.
59377         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
59378         file exponentl.m4.
59379         * m4/exponentf.m4: New file.
59380         * m4/exponentd.m4: New file.
59381         * m4/exponentl.m4: New file.
59382         * modules/isnanf: Use new file m4/exponentf.m4.
59383         * modules/isnand: Use new file m4/exponentd.m4.
59384         * modules/isnanl: Use new file m4/exponentl.m4.
59385
59386 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
59387
59388         mktime.c: normalize tp->tm_isdst value to -1/0/1.
59389         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
59390         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
59391         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
59392
59393         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
59394         readlink on platforms without PATH_MAX.
59395
59396 2008-07-21  Eric Blake  <ebb9@byu.net>
59397
59398         Warn, not fail, on stale version.
59399         * top/GNUmakefile (_curr-ver): Tone down previous patch.
59400
59401         Don't allow installation with stale devel version number.
59402         * top/GNUmakefile (_is-install-target): New macro.
59403         (_curr-ver): Forbid installation with stale version number.
59404
59405 2008-07-20  Bruno Haible  <bruno@clisp.org>
59406
59407         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
59408         TESTS_ENVIRONMENT.
59409         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
59410
59411 2008-07-20  Bruno Haible  <bruno@clisp.org>
59412
59413         * lib/c-stack.h (c_stack_action): Add documentation.
59414         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
59415
59416 2008-07-20  Bruno Haible  <bruno@clisp.org>
59417
59418         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
59419         * modules/readlink (License): Likewise.
59420
59421 2008-07-17  Eric Blake  <ebb9@byu.net>
59422
59423         * modules/c-stack (Link): Fix typo.
59424
59425         Make c-stack use libsigsegv, when available.
59426         * modules/c-stack (Depends-on): Add libsigsegv.
59427         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
59428         needed.
59429         * lib/c-stack.c (SIGSTKSZ): Define fallback.
59430         (segv_handler, overflow_handler, c_stack_action)
59431         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
59432         implementation when libsigsegv is available, but only when using
59433         the library is necessary.
59434         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
59435         comment, explaining why XSI check fails on Linux.
59436         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
59437         * tests/test-c-stack2.sh: Tweak skip message.
59438         * NEWS: Document new link-time requirements.
59439
59440 2008-07-16  Eric Blake  <ebb9@byu.net>
59441
59442         c-stack: Expose false positives when not using libsigsegv.
59443         * modules/c-stack-tests (Files): Expand test.
59444         * tests/test-c-stack.c (main): Add means to conditionally trigger
59445         non-overflow SIGSEGV.
59446         * tests/test-c-stack2.sh: New file.
59447
59448 2008-07-14  Bruno Haible  <bruno@clisp.org>
59449
59450         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
59451         Reported by Eric Blake.
59452
59453 2008-07-14  Sam Steingold  <sds@gnu.org>
59454             Bruno Haible  <bruno@clisp.org>
59455
59456         New module libsigsegv.
59457         * modules/libsigsegv: New file.
59458         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
59459         modifications.
59460         * MODULES.html.sh (Signal handling): New section.
59461
59462 2008-07-14  Bruno Haible  <bruno@clisp.org>
59463
59464         * modules/unictype/ctype-* (Description): Add the word "function".
59465         Improves the resulting doc in MODULES.html.
59466
59467 2008-07-12  Ben Pfaff  <blp@gnu.org>
59468
59469         Add longlong module.
59470         * modules/longlong: New file.
59471
59472 2008-07-12  Bruno Haible  <bruno@clisp.org>
59473
59474         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
59475         to empty.
59476
59477 2008-07-10  Ben Pfaff  <blp@gnu.org>
59478
59479         Add isnan module.
59480         * doc/posix-functions/isnan.texi: Mention new module.
59481         * lib/math.in.h: Define isnan macro if we have decided to replace
59482         it.
59483         * m4/isnan.m4: New file.
59484         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
59485         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
59486         also.
59487         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
59488         redundancy.
59489         * m4/math_h.m4: Initialize and substitute variables for isnan
59490         module.
59491         * modules/isnan: New file.
59492         * modules/isnan-tests: New file.
59493         * modules/math: Add substitutions for new module.
59494         * tests/test-isnan.c: New file.
59495         * MODULES.html.sh: Mention new module.
59496
59497 2008-07-10  Ben Pfaff  <blp@gnu.org>
59498
59499         Add isnanf module.
59500         * lib/isnanf.m4: New file.
59501         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
59502         (gl_HAVE_ISNANF_IN_LIBM): New macro.
59503         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
59504         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
59505         * modules/isnanf: New file.
59506         * modules/isnanf-tests: New file.
59507         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
59508         files.
59509         * tests/test-isnanf-nolibm.c: factored most of its contents into
59510         new file tests/test-isnanf.h.
59511         * tests/test-isnanf.h: New file.
59512         * tests/test-isnanf.c: New file.
59513         * MODULES.html.sh: Mention new module.
59514         * doc/glibc-functions/isnanf.texi: Mention new module.
59515
59516 2008-07-10  Ben Pfaff  <blp@gnu.org>
59517
59518         Add isnand module.
59519         * lib/isnand.h: New file.
59520         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
59521         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
59522         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
59523         functionality also.
59524         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
59525         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
59526         (gl_HAVE_ISNAND_IN_LIBM): New macro.
59527         * modules/isnand: New file.
59528         * modules/isnand-tests: New file.
59529         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
59530         files.
59531         * tests/test-isnand-nolibm.c: factored most of its contents into
59532         new file tests/test-isnand.h.
59533         * tests/test-isnand.h: New file.
59534         * tests/test-isnand.c: New file.
59535         * MODULES.html.sh: Mention new module.
59536
59537 2008-07-10  Ben Pfaff  <blp@gnu.org>
59538
59539         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
59540         * lib/isnand.h: Rename lib/isnand-nolibm.h.
59541         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
59542         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
59543         * modules/isnanf-nolibm: Update references to renamed files.
59544         * modules/isnand-nolibm: Likewise.
59545         * modules/isnanf-nolibm-tests: Likewise.
59546         * modules/isnand-nolibm-tests: Likewise.
59547         * lib/frexp.c: Likewise.
59548         * lib/isfinite.c: Likewise.
59549         * lib/signbitd.c: Likewise.
59550         * lib/signbitf.c: Likewise.
59551         * lib/vasnprintf.c: Likewise.
59552         * tests/test-ceilf1.c: Likewise.
59553         * tests/test-ceilf2.c: Likewise.
59554         * tests/test-floorf1.c: Likewise.
59555         * tests/test-floorf2.c: Likewise.
59556         * tests/test-frexp.c: Likewise.
59557         * tests/test-round1.c: Likewise.
59558         * tests/test-round2.c: Likewise.
59559         * tests/test-roundf1.c: Likewise.
59560         * tests/test-strtod.c: Likewise.
59561         * tests/test-trunc1.c: Likewise.
59562         * tests/test-trunc2.c: Likewise.
59563         * tests/test-truncf1.c: Likewise.
59564         * tests/test-truncf2.c: Likewise.
59565         * NEWS: Mention the renamed header files.
59566
59567 2008-07-11  Jim Meyering  <meyering@redhat.com>
59568
59569         vc-list-files: make the last-resort awk code more portable
59570         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
59571         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
59572         does not support it.
59573
59574 2008-07-10  Eric Blake  <ebb9@byu.net>
59575
59576         Work with tar's bootstrap.
59577         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
59578         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
59579         an m4 comment.
59580
59581 2008-07-09  Jim Meyering  <meyering@redhat.com>
59582
59583         posix-shell.m4: fix typo that made this test malfunction
59584         * m4/posix-shell.m4: Remove capitalization in variable name.
59585
59586 2008-07-08  Bruno Haible  <bruno@clisp.org>
59587
59588         * m4/onceonly.m4: Update comments.
59589         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59590
59591 2008-07-04  Jim Meyering  <meyering@redhat.com>
59592
59593         * users.txt: Add vc-dwim.
59594         (bison, coreutils): Use the gitweb URL.
59595
59596 2008-07-03  Jim Meyering  <meyering@redhat.com>
59597
59598         * users.txt: Add libffcall.  From Sam Steingold.
59599
59600 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
59601
59602         getdate.y: do not ignore TZ with relative day, month or year offset
59603         * lib/getdate.y (get_date): Move the tz-handling block to follow the
59604         relative-date-handling, since otherwise, the latter would clobber the
59605         sole output (an updated Start value) of the tz-handling block.
59606         * tests/test-getdate.c: Tests for the fix
59607
59608 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59609
59610         Recognize 'foo_LIBRARIES += libgnu.a'.
59611         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
59612         makefile snippet has already specified an installation location,
59613         also using '+='.
59614
59615 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
59616
59617         getdate.y: factor out common actions
59618         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
59619         Use them in place of open-coded actions.
59620
59621 2008-07-01  Simon Josefsson  <simon@josefsson.org>
59622
59623         Add self-test for getdate module.
59624         * modules/getdate-tests: New file.
59625         * tests/test-getdate.c: New file.
59626
59627 2008-06-29  Bruno Haible  <bruno@clisp.org>
59628
59629         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
59630         .gitignore.
59631         Reported by Sylvain Beucler <beuc@beuc.net>.
59632
59633 2008-06-29  Bruno Haible  <bruno@clisp.org>
59634
59635         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
59636         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
59637
59638 2008-06-29  Bruno Haible  <bruno@clisp.org>
59639
59640         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
59641         EXTRA_DIST.
59642         Reported by Sylvain Beucler <beuc@beuc.net>.
59643
59644 2008-06-26  Jim Meyering  <meyering@redhat.com>
59645
59646         make several modules depend on the "open" module
59647         This provides slightly increased consistency when opening-for-write
59648         the name of a non-directory spelled with a trailing slash.
59649         * modules/chdir-safer: Likewise.
59650         * modules/chown: Likewise.
59651         * modules/clean-temp: Likewise.
59652         * modules/copy-file: Likewise.
59653         * modules/fchdir: Likewise.
59654         * modules/fcntl-safer: Likewise.
59655         * modules/pipe: Likewise.
59656         * modules/utime: Likewise.
59657         Prompted by Eric Blake and Bruno Haible.
59658
59659 2008-06-24  Andreas Schwab  <schwab@suse.de>
59660
59661         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
59662         literals can be used as initializers for global variables.
59663
59664 2008-06-23  Eric Blake  <ebb9@byu.net>
59665
59666         Make gnulib-cache.m4 easier to diff.
59667         * gnulib-tool (func_import): Allow newlines when reading cached
59668         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
59669
59670 2008-06-23  Bruno Haible  <bruno@clisp.org>
59671
59672         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
59673         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
59674         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
59675         m4/signalblocking.m4.
59676         (gl_PREREQ_SIGACTION): Don't invoke it.
59677         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
59678         gl_PREREQ_SIG_HANDLER_H.
59679         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59680         Don't check for sigaction here.
59681
59682 2008-06-23  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
59685         (install_handlers): Don't set the SA_RESETHAND flag.
59686
59687 2008-06-23  Bruno Haible  <bruno@clisp.org>
59688
59689         * m4/sigaction.m4: Comment fixes.
59690         * lib/signal.in.h: Likewise.
59691
59692 2008-06-23  Eric Blake  <ebb9@byu.net>
59693
59694         Fix typo.
59695         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
59696
59697         Avoid SA_ namespace.
59698         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
59699         Reported by Ralf Wildenhues.
59700
59701         Avoid test failure due to SA_RESTORER.
59702         * tests/test-sigaction.c (SA_MASK): New macro.
59703         (main): Avoid failing due to extension flags being set.
59704         Reported by Jim Meyering.
59705
59706         Revert use of sig-handler.h in sigprocmask.c.
59707         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
59708         it requires the existence of struct sigaction.
59709         * lib/sigprocmask.c (handler_t): Restore typedef.
59710         (rpl_signal, old_handlers): Use local type.
59711
59712 2008-06-22  Bruno Haible  <bruno@clisp.org>
59713
59714         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
59715         conditionally.
59716         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59717
59718 2008-06-22  Bruno Haible  <bruno@clisp.org>
59719
59720         * doc/posix-functions/siginterrupt.texi: Move note.
59721
59722         * lib/signal.in.h (SA_RESTART): New macro.
59723         * lib/sigaction.c: Update comment.
59724
59725         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
59726
59727         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
59728         (gl_PREREQ_SIGPROCMASK): Invoke it.
59729         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
59730
59731         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
59732
59733         * lib/sigprocmask.c: Update a comment.
59734
59735 2008-06-21  Eric Blake  <ebb9@byu.net>
59736
59737         Use sigaction module rather than signal().
59738         * modules/c-stack (Depends-on): Add sigaction.
59739         * modules/fatal-signal (Depends-on): Likewise.
59740         * modules/nanosleep (Depends-on): Likewise.
59741         * modules/sigprocmask (Files): Add sig-handler.h.
59742         * modules/sigaction (Files): Likewise.
59743         * lib/sig-handler.h (get_handler): New file, suggested by Paul
59744         Eggert.
59745         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
59746         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
59747         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
59748         (init_fatal_signals): Likewise.
59749         * lib/nanosleep.c (rpl_nanosleep): Likewise.
59750         (siginterrupt): Delete fallback.
59751         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
59752         instead.
59753         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
59754         siginterrupt.
59755
59756         New module sigaction, for mingw.
59757         * modules/sigaction: New module...
59758         * modules/sigaction-tests: ...and its test.
59759         * m4/sigaction.m4: New file.
59760         * lib/sigaction.c: Likewise.
59761         * tests/test-sigaction.c: Likewise.
59762         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
59763         * modules/signal (Makefile.am): Likewise.
59764         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
59765         needed.
59766         * doc/posix-headers/signal.texi (signal.h): Mention provided
59767         types.
59768         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
59769         that sigaction is preferable.
59770         * doc/posix-functions/sigaction.texi (sigaction): Mention new
59771         module.
59772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59773         sigaction.
59774
59775         Improve robustness of sigprocmask by overriding signal.
59776         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
59777         is in use.
59778         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
59779         (SIGKILL, SIGSTOP): Provide fallbacks.
59780         (rpl_signal): Implement.
59781         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
59782         signal can be called inside handlers.
59783
59784         Fix nanosleep module on mingw.
59785         * modules/nanosleep (Depends-on): Add sys_select.
59786         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
59787
59788         Fix licensing of sigprocmask.
59789         * modules/raise (License): Relicense as LGPL.
59790
59791 2008-06-21  Bruno Haible  <bruno@clisp.org>
59792
59793         * lib/propername.c (proper_name_utf8): Don't use the transliterated
59794         result if it contains question marks.
59795         Reported by Michael Geng <linux@michaelgeng.de>.
59796
59797 2008-06-19  Bruno Haible  <bruno@clisp.org>
59798
59799         Fix CVS-ism.
59800         * doc/gnulib.texi: Include updated-stamp.texi.
59801         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
59802         (updated-stamp.texi): New rule.
59803         (gnulib.info): Depend on it.
59804         * doc/.gitignore: Add updated-stamp.texi.
59805         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
59806
59807 2008-06-19  Bruno Haible  <bruno@clisp.org>
59808
59809         * doc/Makefile (gnulib.info): Update and simplify dependencies.
59810         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59811
59812 2008-06-19  Eric Blake  <ebb9@byu.net>
59813
59814         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
59815         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
59816         Reported by Stepan Kasal.
59817
59818 2008-06-18  Bruno Haible  <bruno@clisp.org>
59819
59820         * lib/fatal-signal.c (init_fatal_signals): Add comment.
59821         Reported by Eric Blake.
59822
59823 2008-06-18  Eric Blake  <ebb9@byu.net>
59824
59825         Work around cygwin 1.5.25 strsignal bug.
59826         * tests/test-strsignal.c: Allow for const char *.
59827         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
59828
59829 2008-06-18  Simon Josefsson  <simon@josefsson.org>
59830
59831         * users.txt: Update URL to article and add author/date
59832         information.
59833
59834 2008-06-17  Bruno Haible  <bruno@clisp.org>
59835
59836         New macro gl_DISABLE_THREADS.
59837         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
59838         if the user did not pass --enable-threads or --disable-threads option.
59839         (gl_DISABLE_THREADS): New macro.
59840         Reported by Eric Blake <ebb9@byu.net>.
59841
59842 2008-06-17  Bruno Haible  <bruno@clisp.org>
59843
59844         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
59845         when the macro ignores it.
59846         Based on a patch by Eric Blake <ebb9@byu.net>.
59847
59848 2008-06-17  Bruno Haible  <bruno@clisp.org>
59849
59850         * modules/tls (License): Change to LGPLv2+.
59851         Reported by Eric Blake.
59852
59853 2008-06-17  Eric Blake  <ebb9@byu.net>
59854
59855         Simplify c-stack prerequisites.
59856         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
59857         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
59858         no longer requires <ucontext.h> to exist.  Optimize setrlimit
59859         check.
59860         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
59861         <sys/resource.h>.
59862
59863         Move c-stack test into testsuite.
59864         * modules/c-stack-tests: New file.
59865         * lib/c-stack.c [DEBUG]: Move test program...
59866         * tests/test-c-stack.c: ...into this new file.  Skip rather than
59867         fail test if sigaltstack is lacking.
59868         * tests/test-c-stack.sh: New driver file.
59869
59870 2008-06-16  Eric Blake  <ebb9@byu.net>
59871
59872         Use raise module consistently.
59873         * modules/fatal-signal (Depends-on): Add raise.
59874         * modules/sigprocmask (Depends-on): Likewise.
59875         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
59876         * lib/sigprocmask.c (sigprocmask): Likewise.
59877         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
59878         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
59879
59880         Fix compliance bug in sigpending.
59881         * lib/sigprocmask.c (sigpending): Return pending array via
59882         parameter, not return value.
59883
59884 2008-06-14  Eric Blake  <ebb9@byu.net>
59885
59886         Improve obstack-printf test code.
59887         * tests/test-obstack-printf.c (test_function): Fix comment, and
59888         simplify usage of obstack_* in macros.  Add a test for coverage.
59889         Reported by Bruno Haible.
59890
59891 2008-06-14  Bruno Haible  <bruno@clisp.org>
59892
59893         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
59894         array size as a constant, not as a const variable.
59895         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
59896         AC_USE_SYSTEM_EXTENSIONS.
59897         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
59898         Test whether the obstack_printf function actually exists.
59899         * modules/obstack-printf (Depends-on): Add extensions.
59900         (Include): Remove obstack.h.
59901         * modules/obstack-printf-posix (Depends-on): Add extensions.
59902         (Include): Remove obstack.h.
59903
59904 2008-06-13  Eric Blake  <ebb9@byu.net>
59905
59906         Add obstack-printf and obstack-printf-posix modules.
59907         * modules/obstack-printf: New file.
59908         * modules/obstack-printf-posix: Likewise.
59909         * MODULES.html.sh (Misc): Mention them.
59910         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
59911         Likewise.
59912         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
59913         Likewise.
59914         * modules/stdio (Makefile.am): Accomodate new modules.
59915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
59916         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
59917         Declare.
59918         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
59919         functions.
59920         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
59921         (gl_REPLACE_OBSTACK_PRINTF): New macros
59922         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
59923         * tests/test-obstack-printf.c: New file.
59924         * modules/obstack-printf-tests: Likewise.
59925         * modules/obstack-printf-posix-tests: Likewise.
59926
59927 2008-06-11  Bruno Haible  <bruno@clisp.org>
59928
59929         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
59930         * lib/open.c: Include errno.h.
59931         (open): Fail when attempting to write to a file that has a trailing
59932         slash.
59933         * tests/test-open.c (main): Test against trailing slash bug.
59934         * doc/posix-functions/open.texi: Mention the trailing slash bug.
59935
59936 2008-06-10  Bruno Haible  <bruno@clisp.org>
59937
59938         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
59939         for $? to work inside the trap command, with various /bin/sh-s.
59940         * tests/test-vc-list-files-cvs.sh: Likewise.
59941
59942 2008-06-10  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/acl-internal.h: Don't include gettext.h here.
59945         * lib/set-mode-acl.c: Include gettext.h here.
59946         * lib/copy-acl.c: Likewise.
59947
59948 2008-06-10  Bruno Haible  <bruno@clisp.org>
59949
59950         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
59951         * lib/wait-process.c (wait_subprocess): Likewise.
59952         * lib/execute.h (execute): Add termsigp argument.
59953         * lib/execute.c (execute): Likewise.
59954         * lib/csharpcomp.c (compile_csharp_using_pnet,
59955         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
59956         * lib/csharpexec.c (execute_csharp_using_pnet,
59957         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
59958         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
59959         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
59960         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
59961         is_jikes_present): Update.
59962         * lib/javaexec.c (execute_java_class): Update.
59963         * lib/javaversion.c (execute_and_read_line): Update.
59964         * NEWS: Document the changes.
59965         Reported by Eric Blake.
59966
59967 2008-06-10  Eric Blake  <ebb9@byu.net>
59968
59969         Add missing include.
59970         * tests/test-strstr.c (includes): Add <signal.h>.
59971         * tests/test-strcasestr.c (includes): Likewise.
59972         * tests/test-memmem.c (includes): Likewise.
59973
59974 2008-06-10  Bruno Haible  <bruno@clisp.org>
59975
59976         * lib/wait-process.c (wait_subprocess): Add an assertion.
59977
59978 2008-06-10  Bruno Haible  <bruno@clisp.org>
59979
59980         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
59981
59982 2008-06-10  Bruno Haible  <bruno@clisp.org>
59983
59984         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
59985         using alarm().
59986         * tests/test-strcasestr.c (main): Likewise.
59987         * tests/test-strstr.c (main): Likewise.
59988
59989 2008-06-09  Bruno Haible  <bruno@clisp.org>
59990
59991         Work around the Solaris 10 ACE ACLs ABI change.
59992         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
59993         declare if ACL_NO_TRIVIAL is present.
59994         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
59995         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
59996         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
59997         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
59998         define if ACL_NO_TRIVIAL is present.
59999         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
60000         and use the current ABI.
60001         (file_has_acl): Use same #if condition as elsewhere.
60002         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
60003         in use, and use the current ABI.
60004         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
60005         Reported by Jim Meyering.
60006
60007 2008-06-09  Eric Blake  <ebb9@byu.net>
60008
60009         Work around environments that (stupidly) ignore SIGALRM.
60010         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
60011         before using alarm().
60012         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60013         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
60014         Reported by Ian Beckwith <ianb@erislabs.net>.
60015
60016         Produce autobuild blurb earlier in log.
60017         * modules/autobuild (configure.ac-early): Move AB_INIT here.
60018
60019 2008-06-09  Jim Meyering  <meyering@redhat.com>
60020         and Ondřej Vašík  <ovasik@redhat.com>
60021
60022         utimens.c: correct kernel bug work-around
60023         Ondřej Vašík found that the invalid return value of 280 indicates
60024         failure, not success, and the kernel bug we're trying to work
60025         around affects not just the utimensat call, but also the fallback
60026         futimens call.
60027         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
60028         not success.
60029         [HAVE_FUTIMENS]: Use the same work-around, here.
60030
60031 2008-06-09  Jim Meyering  <meyering@redhat.com>
60032
60033         add more guards around definition of ACE_-related code
60034         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
60035         ALLOW and ACE_OWNER are also defined.
60036
60037 2008-06-08  Bruno Haible  <bruno@clisp.org>
60038
60039         * lib/acl-internal.h: Add me as co-author.
60040         * lib/file-has-acl.c: Likewise.
60041         * lib/set-mode-acl.c: Likewise.
60042         * lib/copy-acl.c: Likewise.
60043
60044 2008-06-08  Bruno Haible  <bruno@clisp.org>
60045
60046         Add support for AIX ACLs.
60047         * lib/acl-internal.h (acl_nontrivial): New declaration.
60048         * lib/file-has-acl.c (acl_nontrivial): New function.
60049         (file_has_acl): Add implementation using AIX 4 ACL API.
60050         * lib/set-mode-acl.c (qset_acl): Likewise.
60051         * lib/copy-acl.c (qcopy_acl): Likewise.
60052
60053 2008-06-08  Bruno Haible  <bruno@clisp.org>
60054
60055         Add support for HP-UX ACLs.
60056         * lib/acl-internal.h (acl_nontrivial): New declaration.
60057         * lib/file-has-acl.c (acl_nontrivial): New function.
60058         (file_has_acl): Add implementation using HP-UX 11 ACL API.
60059         * lib/set-mode-acl.c (qset_acl): Likewise.
60060         * lib/copy-acl.c (qcopy_acl): Likewise.
60061
60062 2008-06-08  Bruno Haible  <bruno@clisp.org>
60063
60064         Add support for Cygwin ACLs.
60065         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
60066         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
60067         the chmod_or_fchmod call.
60068         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
60069
60070 2008-06-08  Bruno Haible  <bruno@clisp.org>
60071
60072         Fix bug with setuid modes in Solaris 10+ code.
60073         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
60074         succeeded, when the mode contains some special bits.
60075
60076 2008-06-08  Bruno Haible  <bruno@clisp.org>
60077
60078         Add support for Solaris 7..10 ACLs.
60079         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
60080         declarations.
60081         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
60082         functions.
60083         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
60084         * lib/set-mode-acl.c (qset_acl): Likewise.
60085         * lib/copy-acl.c (qcopy_acl): Likewise.
60086
60087 2008-06-08  Bruno Haible  <bruno@clisp.org>
60088
60089         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
60090         declaration.
60091         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
60092         (acl_access_nontrivial): Remove MacOS X case.
60093         (file_has_acl): Use acl_extended_nontrivial.
60094         * lib/copy-acl.c (qcopy_acl): Likewise.
60095
60096 2008-06-08  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
60099
60100 2008-06-08  Jim Meyering  <meyering@redhat.com>
60101
60102         * modules/acl (Maintainer): Add Bruno Haible.
60103
60104 2008-06-07  Bruno Haible  <bruno@clisp.org>
60105
60106         Improve support for Tru64 ACLs.
60107         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
60108         ACL on OSF/1.
60109
60110 2008-06-07  Bruno Haible  <bruno@clisp.org>
60111
60112         Add support for MacOS X ACLs.
60113         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
60114         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
60115         * lib/set-mode-acl.c (qset_acl): Likewise.
60116         * lib/copy-acl.c (qcopy_acl): Likewise.
60117
60118 2008-06-07  Bruno Haible  <bruno@clisp.org>
60119
60120         Fix memory leak introduced on 2008-05-22.
60121         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
60122         use.
60123
60124 2008-06-07  Bruno Haible  <bruno@clisp.org>
60125
60126         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
60127         to construct an empty ACL.
60128
60129 2008-06-07  Bruno Haible  <bruno@clisp.org>
60130
60131         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
60132         precisely.
60133         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
60134
60135 2008-06-07  Bruno Haible  <bruno@clisp.org>
60136
60137         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
60138         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
60139
60140 2008-06-07  Bruno Haible  <bruno@clisp.org>
60141
60142         * doc/posix-functions/_setjmp.texi: Explain the use of this function
60143         regardless of POSIX.
60144         * doc/posix-functions/_longjmp.texi: Likewise.
60145         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
60146         SystemV platform in this case.
60147
60148 2008-06-06  Eric Blake  <ebb9@byu.net>
60149
60150         Document abort() bugs.
60151         * doc/posix-functions/abort.texi (abort): Mention anomalies.
60152
60153         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
60154         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
60155         sigsetjmp.
60156         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
60157         siglongjmp, but only as a macro.
60158         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
60159         is obsolete.
60160         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
60161
60162         Tweak documentation to cover cygwin argz bugs.
60163         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
60164         argz bug fix; no code change needed since no cygwin releases
60165         occurred between the last fix and the bug being tested.
60166         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
60167         module and recently fixed cygwin bugs.
60168         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
60169         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
60170         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
60171         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
60172         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
60173         Likewise.
60174         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
60175         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
60176         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
60177         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
60178         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
60179         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
60180         Likewise.
60181
60182         Avoid gcc warning on cygwin.
60183         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
60184         !ACL_NO_TRIVIAL]: Avoid unused variable.
60185
60186 2008-06-05  Eric Blake  <ebb9@byu.net>
60187
60188         Be tolerant of UNKNOWN version in gnulib-tool test dir.
60189         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
60190         git-version-gen fails to come up with a version.
60191         Reported by Simon Josefsson.
60192
60193 2008-06-05  Jim Meyering  <meyering@redhat.com>
60194             Paul Eggert  <eggert@cs.ucla.edu>
60195
60196         utimens.c: work around a probable Linux kernel bug
60197         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
60198         appears to be a kernel bug that causes utimensat to return 280
60199         instead of 0, indicating success.
60200
60201 2008-06-04  Bruno Haible  <bruno@clisp.org>
60202
60203         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
60204         2008-06-01 commit.
60205
60206 2008-06-04  Bruno Haible  <bruno@clisp.org>
60207
60208         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
60209         * lib/file-has-acl.c (acl_access_nontrivial): New function.
60210         (file_has_acl): Use it. Save errno afterwards.
60211         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
60212
60213 2008-06-03  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
60216         draft code. Simplify #ifs.
60217         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
60218         Put Solaris code after POSIX-draft code. Fix comments regarding
60219         Solaris 10, HP-UX. Mention Cygwin.
60220         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
60221
60222 2008-06-03  Eric Blake  <ebb9@byu.net>
60223
60224         Provide fallback for older kernels.
60225         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
60226         Provide runtime fallback if kernel lacks support.
60227         Reported by Mike Frysinger.
60228
60229 2008-06-02  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
60232         it exists.
60233
60234 2008-06-02  Bruno Haible  <bruno@clisp.org>
60235
60236         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
60237         * lib/copy-acl.c (qcopy_acl): Update comment.
60238
60239 2008-06-02  Bruno Haible  <bruno@clisp.org>
60240
60241         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
60242         like ACL APIs.
60243
60244 2008-06-02  Bruno Haible  <bruno@clisp.org>
60245
60246         * tests/test-file-has-acl.sh: Use different code for Cygwin.
60247         * tests/test-set-mode-acl.sh: Likewise.
60248         * tests/test-copy-acl.sh: Likewise.
60249         * tests/test-copy-file.sh: Likewise.
60250
60251 2008-06-02  Bruno Haible  <bruno@clisp.org>
60252
60253         * tests/test-file-has-acl.sh: Remove unused code.
60254
60255 2008-06-01  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
60258         (copy_acl): Just a wrapper around qcopy_acl that emits the error
60259         messages.
60260         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
60261
60262 2008-06-01  Bruno Haible  <bruno@clisp.org>
60263
60264         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
60265         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
60266         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
60267         APIs.
60268         * modules/acl-tests (configure.ac): Remove tests now contained in
60269         m4/acl.m4.
60270
60271 2008-06-02  Jim Meyering  <meyering@redhat.com>
60272
60273         announce-gen: use a better key-server host name
60274         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
60275         it may be more consistently reliable.  Suggested by Werner Koch
60276         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
60277
60278 2008-06-01  Bruno Haible  <bruno@clisp.org>
60279
60280         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
60281         Reported by Voroskoi Andras <voroskoi@gmail.com>.
60282
60283 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
60284
60285         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
60286
60287 2008-06-01  Bruno Haible  <bruno@clisp.org>
60288
60289         New ACL tests.
60290         * tests/test-file-has-acl.sh: New file.
60291         * tests/test-file-has-acl.c: New file.
60292         * tests/test-set-mode-acl.sh: New file.
60293         * tests/test-set-mode-acl.c: New file.
60294         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
60295         * tests/test-copy-acl.c: New file.
60296         * modules/acl-tests: New file, based on modules/copy-file-tests.
60297         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
60298         (Depends-on): Add acl-tests.
60299         (configure.ac): Remove checks.
60300         (Makefile.am): Don't create test-sameacls program here any more.
60301
60302 2008-06-01  Bruno Haible  <bruno@clisp.org>
60303
60304         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
60305         * tests/test-sameacls.c: Include progname.h.
60306         (main): Invoke set_program_name. Portability fixes for MacOS X,
60307         Solaris, HP-UX.
60308
60309 2008-06-01  Bruno Haible  <bruno@clisp.org>
60310
60311         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
60312         function.
60313         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
60314
60315 2008-06-01  Bruno Haible  <bruno@clisp.org>
60316
60317         * modules/rpmatch (Depends-on): Add strdup.
60318
60319 2008-06-01  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/pipe.c: Include unistd-safer.h.
60322         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
60323         * modules/pipe (Depends-on): Add unistd-safer.
60324
60325 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60326
60327         * modules/autobuild (configure.ac): Call AB_INIT.
60328
60329 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60330
60331         * tests/test-getaddrinfo.c: Don't print debug messages by default.
60332         Suggested by Bruno Haible <bruno@clisp.org>.
60333
60334 2008-05-30  Simon Josefsson  <simon@josefsson.org>
60335
60336         * tests/test-base64.c: Cast size_t to unsigned long when invoking
60337         printf.  Use %lu instead of %d.  Reported by Bruno Haible
60338         <bruno@clisp.org>.
60339
60340 2008-05-29  Eric Blake  <ebb9@byu.net>
60341
60342         Prefer new POSIX 200x interfaces over futimesat.
60343         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
60344         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
60345         when available.
60346         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
60347
60348 2008-05-28  Bruno Haible  <bruno@clisp.org>
60349
60350         * modules/stpcpy (License): Change to LGPLv2+.
60351         Requested by David Lutterkort <dlutter@redhat.com>.
60352
60353 2008-05-27  Bruno Haible  <bruno@clisp.org>
60354
60355         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
60356         current mingw.
60357         Reported by Jose E. Marchesi <jemarch@gnu.org>.
60358
60359 2008-05-27  Bruno Haible  <bruno@clisp.org>
60360
60361         * modules/iconv_open (Link): New section, from module 'iconv'.
60362         * modules/striconv (Link): Likewise.
60363         * modules/striconveh (Link): Likewise.
60364         * modules/xstriconv (Link): Likewise.
60365         * modules/unicodeio (Link): Likewise.
60366         * modules/propername (Link): Likewise.
60367         Reported by Jim Meyering.
60368
60369 2008-05-26  Jim Meyering  <meyering@redhat.com>
60370
60371         sha256: do not artificially restrict buffer length to be < 2^32
60372         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
60373         uint32_t to size_t.
60374         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
60375         to match.
60376
60377         avoid unaligned access errors, e.g., on sparc
60378         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
60379         direct access through a possibly-unaligned uint64* pointer.
60380         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
60381         direct access through a possibly-unaligned uint32* pointer.
60382         Prompted by this patch from Tom "spot" Callaway:
60383         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
60384
60385         sha512.c: fix typo in comment
60386         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
60387
60388 2008-05-25  Bruno Haible  <bruno@clisp.org>
60389
60390         * lib/set-mode-acl.c: Renamed from lib/acl.c.
60391         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
60392         (Makefile.am): Update lib_SOURCES.
60393
60394 2008-05-25  Bruno Haible  <bruno@clisp.org>
60395
60396         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
60397
60398 2008-05-25  Jim Meyering  <meyering@redhat.com>
60399
60400         useless-if-before-free: freed expr may have white-space differences
60401         * build-aux/useless-if-before-free: Recognize cases in which the
60402         freed expression differs from the tested one in embedded white
60403         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
60404         $1 was used, so we can't make any regexp shy.  Improved tests now
60405         detect this.
60406
60407         useless-if-before-free: accept white space in the expression.
60408         * build-aux/useless-if-before-free: For now, any white space
60409         in the expression must be identical in the free argument.
60410
60411         useless-if-before-free: efficiency tweak
60412         * build-aux/useless-if-before-free: Make the expression-matching
60413         regexp "shy".
60414         Make the *outer* regexp shy, not the expr-matching one.
60415
60416         update code-in-comment to accept cast of free arg
60417         * build-aux/useless-if-before-free: Update regexp.
60418
60419 2008-05-25  Bruno Haible  <bruno@clisp.org>
60420
60421         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
60422         * modules/copy-file-tests (Files, Makefile.am): Update.
60423         * tests/test-copy-file.c (func_test_copy): Update.
60424
60425 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
60426
60427         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
60428
60429 2008-05-23  Bruno Haible  <bruno@clisp.org>
60430
60431         Improve support for ACLs on OSF/1.
60432         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
60433         Remove fallback for unknown flavors of ACLs.
60434
60435 2008-05-22  Bruno Haible  <bruno@clisp.org>
60436
60437         Add support for ACLs on OSF/1.
60438         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
60439         replacements.
60440         (acl_free_text): New macro fallback.
60441         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
60442         acl_free.
60443         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
60444         acl_free_text function. Require AC_C_INLINE.
60445
60446 2008-05-22  Bruno Haible  <bruno@clisp.org>
60447
60448         Make copy_acl work on MacOS X 10.5.
60449         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
60450         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
60451         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
60452         If MODE_INSIDE_ACL, don't assume that every system has the same text
60453         representation for ACLs as FreeBSD.
60454         * lib/copy-acl.c (copy_acl): Add support for platforms with
60455         !MODE_INSIDE_ACL.
60456         * lib/file-has-acl.c (file_has_acl): Likewise.
60457         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
60458         FreeBSD, MacOS X, or IRIX, respectively.
60459
60460 2008-05-22  Bruno Haible  <bruno@clisp.org>
60461
60462         * lib/acl.h: Don't include <sys/acl.h>.
60463         (GETACLCNT): Move fallback to lib/acl-internal.h.
60464         * lib/acl-internal.h: Include <sys/acl.h> here.
60465         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
60466
60467 2008-05-22  Bruno Haible  <bruno@clisp.org>
60468
60469         Split off copy_acl function to separate file.
60470         * lib/copy-acl.c: New file, extracted from lib/acl.c.
60471         * lib/acl.c (copy_acl): Moved function to separate file.
60472         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
60473         * modules/acl (Files): Add lib/copy-acl.c.
60474         (Makefiles.am): Augment lib_SOURCES.
60475
60476 2008-05-22  Bruno Haible  <bruno@clisp.org>
60477
60478         * modules/copy-file-tests: New file.
60479         * tests/test-copy-file.sh: New file.
60480         * tests/test-copy-file.c: New file.
60481         * tests/test-copy-file-sameacls.c: New file.
60482
60483 2008-05-22  Eric Blake  <ebb9@byu.net>
60484
60485         Avoid gcc warning.
60486         * tests/test-memcmp.c (main): Pass NULL indirectly.
60487
60488 2008-05-21  Bruno Haible  <bruno@clisp.org>
60489
60490         Add reference doc about ACLs.
60491         * doc/acl-resources.txt: New file.
60492         * doc/acl-cygwin.txt: New file.
60493
60494 2008-05-21  Bruno Haible  <bruno@clisp.org>
60495
60496         Avoid one more warning from gcc.
60497         * lib/vasnprintf.c (IF_LINT): Update comments.
60498         (VASNPRINTF): Use it also for the 'prefix' array initializer.
60499
60500 2008-05-21  Jim Meyering  <meyering@redhat.com>
60501
60502         avoid a warning from gcc
60503         * lib/vasnprintf.c (IF_LINT): Define.
60504         (scale10_round_decimal_long_double):
60505         Use it to avoid a "may be used uninitialized" warning.
60506         (scale10_round_decimal_double): Likewise.
60507
60508 2008-05-21  Simon Josefsson  <simon@josefsson.org>
60509
60510         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
60511         declared.
60512
60513 2008-05-20  Bruno Haible  <bruno@clisp.org>
60514
60515         * tests/test-memcmp.c (main): Test also the sign of the result. Test
60516         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
60517
60518 2008-05-20  Simon Josefsson  <simon@josefsson.org>
60519
60520         * modules/memcmp-tests: New file.
60521         * tests/test-memcmp.c: New file.
60522
60523 2008-05-19  Bruno Haible  <bruno@clisp.org>
60524
60525         * modules/propername (Notice, configure.ac): Put quoted "..." into
60526         --keyword option.
60527         * lib/propername.h: Update comments accordingly.
60528         Reported by Eric Blake.
60529
60530 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
60531
60532         * modules/getpass-gnu (Depends-on): Add fseeko.
60533
60534 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60535
60536         * modules/base64-tests: New file.
60537
60538 2008-05-19  Bo Borgerson <gigabo@gmail.com>
60539
60540         * lib/base64.c (base64_decode_ctx): If a decode context structure
60541         was passed in use it to ignore newlines.  If a context structure
60542         was _not_ passed in, continue to treat newlines as garbage (this
60543         is the historical behavior).  Formerly base64_decode.
60544         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60545         takes a decode context structure.
60546         * lib/base64.h (base64_decode): Macro for four-argument calls.
60547         (base64_decode_alloc): Likewise.
60548         * lib/base64.c (base64_decode_ctx): If a decode context structure
60549         was passed in use it to ignore newlines.  If a context structure
60550         was _not_ passed in, continue to treat newlines as garbage (this
60551         is the historical behavior).  Formerly base64_decode.
60552         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
60553         takes a decode context structure.
60554         * lib/base64.h (base64_decode): Macro for four-argument calls.
60555         (base64_decode_alloc): Likewise.
60556
60557 2008-05-19  Jim Meyering  <meyering@redhat.com>
60558
60559         avoid a warning from gcc
60560         * lib/trim.c (IF_LINT): Define.
60561         (trim2): Use it to avoid a "may be used uninitialized" warning.
60562
60563         Fix doc typo.
60564         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
60565
60566 2008-05-19  Bruno Haible  <bruno@clisp.org>
60567
60568         * doc/glibc-functions/getpass.texi: Document limits of other
60569         implementations.
60570
60571 2008-05-19  Simon Josefsson  <simon@josefsson.org>
60572             Bruno Haible <bruno@clisp.org>
60573
60574         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
60575
60576 2008-05-18  Bruno Haible  <bruno@clisp.org>
60577
60578         * modules/propername: New file, from GNU gettext.
60579         * lib/propername.h: New file, from GNU gettext.
60580         * lib/propername.c: New file, from GNU gettext.
60581         * MODULES.html.sh (Internationalization functions): Add propername.
60582
60583 2008-05-16  Jim Meyering  <meyering@redhat.com>
60584             Bruno Haible  <bruno@clisp.org>
60585
60586         Avoid some warnings from "gcc -Wshadow".
60587         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
60588
60589 2008-05-15  Eric Blake  <ebb9@byu.net>
60590
60591         Extend previous patch to cygwin 1.7.0.
60592         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
60593         fast implementation in cygwin >= 1.7.0.
60594         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60595         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60596
60597 2008-05-15  Bruno Haible  <bruno@clisp.org>
60598
60599         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
60600         implementation in glibc >= 2.9.
60601         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60602         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60603
60604 2008-05-15  Bruno Haible  <bruno@clisp.org>
60605
60606         * MODULES.html.sh (Internationalization functions): Remove linebreak.
60607         (Unicode string functions): Add unilbrk/*.
60608         Reported by Karl Berry.
60609
60610 2008-05-15  Eric Blake  <ebb9@byu.net>
60611
60612         Fix violation of <stdbool.h> replacement in regex.
60613         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
60614         * lib/regexec.c (re_search_internal): Likewise.
60615         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
60616
60617 2008-05-15  Jim Meyering  <meyering@redhat.com>
60618
60619         avoid distracting test output when git or cvs is not found
60620         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
60621         * tests/test-vc-list-files-git.sh: Likewise.
60622
60623 2008-05-15  Eric Blake  <ebb9@byu.net>
60624
60625         Glibc finally accepted the memmem speedup code, bugzilla #5514.
60626         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
60627         glibc version.
60628         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
60629         * doc/posix-functions/strstr.texi (strstr): Likewise.
60630         * lib/str-two-way.h (MAX): Sychronize with glibc.
60631
60632 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
60633
60634         * lib/regcomp.c (optimize_utf8): Add a note on why we test
60635         opr.ctx_type.
60636         (calc_first): Initialize constraint field.
60637         (duplicate_node_closure): Use it instead of special casing ANCHORS.
60638         Fix grammar.
60639         (duplicate_node): Merge constraint field for all node types.
60640         (calc_eclosure_iter): Look at constraint field for all node types.
60641         * lib/regex_internal.c (create_cd_newstate): Don't look at
60642         opr.ctx_type.
60643
60644 2008-05-14  Bruno Haible  <bruno@clisp.org>
60645
60646         Help GCC to do better code generation.
60647         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
60648         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
60649         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
60650         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
60651         Declare with attribute 'malloc' if supported.
60652
60653 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
60654
60655         use "echo STR|wc -c" rather than unportable "expr length STR"
60656         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
60657         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
60658
60659 2008-05-14  Jim Meyering  <meyering@redhat.com>
60660
60661         use dd ibs=$n count=1 ... rather than less-portable head -c$n
60662         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
60663         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
60664         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
60665         via Collin Lasse.
60666
60667 2008-05-14  Eric Blake  <ebb9@byu.net>
60668
60669         Avoid quadratic growth in gl_LIBSOURCES.
60670         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
60671         Suggested by Bruno Haible.
60672
60673         Test xmemdup0.
60674         * modules/xmemdup0-tests: New file.
60675         * tests/test-xmemdup0.c: Likewise.
60676
60677 2008-05-13  Eric Blake  <ebb9@byu.net>
60678
60679         Split xmemdup0 into its own module.
60680         * modules/xmemdup0: New file.
60681         * lib/xmemdup0.h: Likewise.
60682         * lib/xmemdup0.c: Likewise.
60683         * MODULES.html.sh (Memory management functions): Add xmemdup0.
60684         * lib/xalloc.h (xmemdup0): Remove.
60685         * lib/xmalloc.c (xmemdup0): Likewise.
60686
60687 2008-05-13  Eric Blake  <ebb9@byu.net>
60688             Bruno Haible  <bruno@clisp.org>
60689
60690         Reduce number of forks required during autoconf.
60691         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
60692         and gl_LIBSOURCES_DIR.
60693         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
60694         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
60695         m4_syscmd per file.
60696         <m4_foreach_w>: Move...
60697         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
60698
60699 2008-05-13  Eric Blake  <ebb9@byu.net>
60700
60701         * gnulib-tool: Fix various comment typos.
60702
60703 2008-05-12  Bruno Haible  <bruno@clisp.org>
60704
60705         Tailor the linebreaking algorithm.
60706         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
60707
60708 2008-05-12  Bruno Haible  <bruno@clisp.org>
60709
60710         Update to Unicode 5.0.0.
60711         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60712         LBP_JV, LBP_JT. Redistribute values.
60713         (unilbrk_table): Change size.
60714         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
60715         Unicode TR#14 rev. 22.
60716         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
60717         LBP_JV, LBP_JT. Redistribute values.
60718         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
60719         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
60720         Update.
60721         * lib/unilbrk/lbrkprop1.h: Regenerated.
60722         * lib/unilbrk/lbrkprop2.h: Regenerated.
60723         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
60724         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
60725         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
60726         Likewise.
60727         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
60728         Likewise.
60729         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
60730         result.
60731         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
60732         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
60733         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
60734         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
60735         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
60736         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
60737
60738 2008-05-11  Bruno Haible  <bruno@clisp.org>
60739
60740         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
60741
60742 2008-05-11  Bruno Haible  <bruno@clisp.org>
60743
60744         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
60745         * modules/unilbrk/gen-lbrk: New file.
60746
60747 2008-05-11  Bruno Haible  <bruno@clisp.org>
60748
60749         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
60750         * m4/sha512.m4 (gl_SHA512): Likewise.
60751
60752 2008-05-11  Jim Meyering  <meyering@redhat.com>
60753
60754         New modules: crypto/sha256, crypto/sha512 (from coreutils)
60755         * modules/crypto/sha256: New file.
60756         * modules/crypto/sha512: Likewise.
60757         * lib/sha256.c: Likewise.
60758         * lib/sha256.h: Likewise.
60759         * lib/sha512.c: Likewise.
60760         * lib/sha512.h: Likewise.
60761         * lib/u64.h: Likewise.
60762         * m4/sha256.m4: Likewise.
60763         * m4/sha512.m4: Likewise.
60764         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
60765
60766 2008-05-10  Bruno Haible  <bruno@clisp.org>
60767
60768         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
60769         (Input/Output <stdio.h>): Add xprintf.
60770         (Signal handling <signal.h>): Add strsignal.
60771         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
60772         (Core language properties): Add func.
60773         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
60774         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
60775         strings.
60776         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
60777         (Input/output): New section.
60778         (File system functions): Add openat-die, stat-macros.
60779         (Networking functions): Add sockets.
60780         (Unicode string functions): Add unictype/*.
60781         (Support for building libraries and executables): Add gperf.
60782         (Support for building documentation): Add agpl-3.0.
60783         (Misc): Add nocrash.
60784
60785 2008-05-10  Bruno Haible  <bruno@clisp.org>
60786
60787         * modules/unictype/gen-ctype: New file.
60788
60789 2008-05-10  Jim Meyering  <meyering@redhat.com>
60790
60791         Make chdir-safer.c more efficient on a system with no symlinks.
60792         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
60793         also if ELOOP is zero.  Suggested by Bruno Haible.
60794
60795         Make chdir-safer.c slightly safer.
60796         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
60797         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
60798
60799         Avoid compile failure on systems without ELOOP (like mingw).
60800         * lib/chdir-safer.c (ELOOP): Define if not already defined.
60801         Reported by Bruno Haible.
60802
60803 2008-05-10  Bruno Haible  <bruno@clisp.org>
60804
60805         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
60806         (is_utf8_encoding): Use a case-insensitive comparison.
60807         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
60808         streq.
60809
60810 2008-05-10  Bruno Haible  <bruno@clisp.org>
60811
60812         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
60813         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
60814         * lib/unilbrk/ulc-common.h (iconv_string_length,
60815         iconv_string_keeping_offsets): Remove declarations.
60816         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
60817         Don't include <iconv.h>, streq.h, xsize.h.
60818         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
60819         conversion.
60820         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
60821         <iconv.h>, streq.h, xsize.h.
60822         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
60823         conversion.
60824         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
60825         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
60826         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
60827         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
60828
60829 2008-05-10  Bruno Haible  <bruno@clisp.org>
60830
60831         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
60832         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
60833
60834         * modules/unilbrk/u32-width-linebreaks-tests: New file.
60835         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
60836
60837         * modules/unilbrk/u16-width-linebreaks-tests: New file.
60838         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
60839
60840         * modules/unilbrk/u8-width-linebreaks-tests: New file.
60841         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
60842
60843         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
60844         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
60845
60846         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
60847         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
60848
60849         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
60850         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
60851
60852         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
60853         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
60854
60855 2008-05-10  Bruno Haible  <bruno@clisp.org>
60856
60857         Split up 'linebreak' module.
60858         * lib/unilbrk.h: New file, based on lib/linebreak.h.
60859         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
60860         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
60861         modifications.
60862         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
60863         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
60864         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
60865         lib/linebreak.c.
60866         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
60867         lib/linebreak.c.
60868         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
60869         lib/linebreak.c.
60870         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
60871         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
60872         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
60873         lib/linebreak.c.
60874         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
60875         lib/linebreak.c.
60876         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
60877         lib/linebreak.c.
60878         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
60879         lib/linebreak.c.
60880         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
60881         lib/linebreak.c.
60882         * modules/unilbrk/base: New file.
60883         * modules/unilbrk/tables: New file.
60884         * modules/unilbrk/u8-possible-linebreaks: New file.
60885         * modules/unilbrk/u16-possible-linebreaks: New file.
60886         * modules/unilbrk/u32-possible-linebreaks: New file.
60887         * modules/unilbrk/ulc-common: New file.
60888         * modules/unilbrk/ulc-possible-linebreaks: New file.
60889         * modules/unilbrk/u8-width-linebreaks: New file.
60890         * modules/unilbrk/u16-width-linebreaks: New file.
60891         * modules/unilbrk/u32-width-linebreaks: New file.
60892         * modules/unilbrk/ulc-width-linebreaks: New file.
60893         * lib/linebreak.h: Remove file.
60894         * lib/linebreak.c: Remove file.
60895         * m4/linebreak.m4: Remove file.
60896         * modules/linebreak: Remove file.
60897         * NEWS: Mention the changes.
60898
60899 2008-05-09  Eric Blake  <ebb9@byu.net>
60900
60901         Add xmemdup0.
60902         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
60903         implementation.
60904         * lib/xmalloc.c (xmemdup0): New C implementation.
60905
60906 2008-05-08  Bruno Haible  <bruno@clisp.org>
60907
60908         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
60909
60910 2008-05-07  Eric Blake  <ebb9@byu.net>
60911
60912         Support cross-compilation of <wctype.h>.
60913         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
60914         AC_CACHE_CHECK.
60915
60916 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
60917
60918         * build-aux/vc-list-files: Add support for bzr.
60919
60920 2008-05-03  Jim Meyering  <meyering@redhat.com>
60921
60922         avoid failed assertion with tight malloc
60923         * tests/test-getndelim2.c: Correct an off-by-one assertion.
60924
60925 2008-05-03  Simon Josefsson  <simon@josefsson.org>
60926
60927         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
60928         are needed from arpa/inet.h.
60929         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
60930         Reported by Bruno Haible.
60931
60932 2008-05-02  Jim Meyering  <meyering@redhat.com>
60933
60934         avoid compilation error on FreeBSD 6
60935         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
60936
60937 2008-05-01  Jim Meyering  <meyering@redhat.com>
60938
60939         useless-if-before-free: correct --help's exit status description
60940         * build-aux/useless-if-before-free (usage): Like grep, exit 0
60941         for one or more matches, etc.  Reported by Bruno Haible.
60942
60943         vc-list-files: make the stand-alone gnulib test work
60944         * modules/vc-list-files-tests (configure.ac):
60945         Define and AC_SUBST abs_aux_dir.
60946         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
60947         $(abs_top_srcdir) to each script and having each of them
60948         duplicate the work of setting PATH, set PATH here, using
60949         the new variable, abs_aux_dir instead.
60950         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
60951         * tests/test-vc-list-files-git.sh: Likewise.
60952         Reported by Bruno Haible.
60953
60954 2008-05-01  Bruno Haible  <bruno@clisp.org>
60955
60956         * lib/getndelim2.c (getndelim2): Fix newsize computation during
60957         reallocation. Rename 'done' to 'found_delimiter'.
60958
60959 2008-05-01  Jim Meyering  <meyering@redhat.com>
60960
60961         vc-list-files: accommodate /bin/sh like the one from Solaris 10
60962         * build-aux/vc-list-files: Use `...`, not $(...).
60963
60964 2008-04-30  Jim Meyering  <meyering@redhat.com>
60965
60966         add tests for vc-list-files
60967         * modules/vc-list-files-tests: New module.
60968         * tests/test-vc-list-files-cvs.sh: New file.
60969         * tests/test-vc-list-files-git.sh: New file.
60970
60971         avoid a warning from gcc
60972         * lib/getndelim2.c (IF_LINT): Define.
60973         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
60974
60975         vc-list-files: work properly with build-aux/cvsu, too
60976         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
60977         to all cvs-based clauses.
60978
60979         vc-list-files: work properly in the CVS+awk case, too
60980         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
60981
60982         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
60983         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
60984         take more than one file argument, so .  Add quotes, just in case $dir
60985         ever contains a shell meta-character.  Prompted by Soren Hansen in
60986         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
60987
60988 2008-04-29  Eric Blake  <ebb9@byu.net>
60989
60990         Optimize getndelim2 to use block operations when possible.
60991         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
60992         freadseek, and memchr2.
60993         * lib/getndelim2.c (getndelim2): Use them for block reads.
60994
60995 2008-04-29  Bruno Haible  <bruno@clisp.org>
60996
60997         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
60998         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
60999         * modules/inet_ntop (Depends-on): Add extensions.
61000         * modules/inet_pton (Depends-on): Likewise.
61001         Reported by Simon Josefsson.
61002
61003 2008-04-29  Jim Meyering  <meyering@redhat.com>
61004
61005         When the is more than one match in a block, match all of them.
61006         * build-aux/useless-if-before-free: Iterate through each block
61007         until there are no more matches.
61008
61009         Fix broken useless-if-before-free script.
61010         * build-aux/useless-if-before-free: Fix typo: missing "?" after
61011         the expression to match cast of argument to free-like function.
61012
61013 2008-04-29  Eric Blake  <ebb9@byu.net>
61014
61015         Use new header.
61016         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
61017
61018 2008-04-29  Jim Meyering  <meyering@redhat.com>
61019
61020         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
61021         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
61022         by gnulib to exist and to declare e.g., inet_ntop.
61023         Don't include "inet_ntop.h", now removed.
61024
61025         * m4/arpa_inet_h.m4: Remove trailing blanks.
61026
61027 2008-04-29  Eric Blake  <ebb9@byu.net>
61028
61029         Silence valgrind on safe reads beyond potential array bounds.
61030         * lib/rawmemchr.valgrind: New file.
61031         * lib/strchrnul.valgrind: Likewise.
61032         * modules/rawmemchr (Files): Distribute new file.
61033         * modules/strchrnul (Files): Likewise.
61034         Suggested by Bruno Haible.
61035
61036 2008-04-29  Bruno Haible  <bruno@clisp.org>
61037
61038         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
61039         (inet_ntop, inet_pton): Change portability warning's wording.
61040         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
61041         Invoke gl_CHECK_NEXT_HEADERS.
61042         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
61043         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
61044         set ARPA_INET_H.
61045         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
61046         * modules/arpa_inet (Description): No longer only for systems that
61047         lack it.
61048         (Depends-on): Add include_next.
61049         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
61050         HAVE_ARPA_INET_H.
61051
61052 2008-04-29  Jim Meyering  <meyering@redhat.com>
61053
61054         * modules/mkdir (License): Re-license as LGPLv2+.
61055
61056 2008-04-29  Bruno Haible  <bruno@clisp.org>
61057
61058         * modules/rawmemchr (Maintainer): Set to Eric.
61059         * modules/strchrnul (Maintainer): Likewise.
61060
61061 2008-04-29  Simon Josefsson  <simon@josefsson.org>
61062
61063         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
61064         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
61065
61066         * modules/arpa_inet (arpa/inet.h): Use them.
61067
61068 2008-04-28  Eric Blake  <ebb9@byu.net>
61069
61070         Test getndelim2.
61071         * modules/getndelim2-tests: New file.
61072         * tests/test-getndelim2.c: Likewise.
61073         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
61074         stream.
61075         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
61076
61077         * MODULES.html.sh: Document new module.
61078
61079 2008-04-20  Bruno Haible  <bruno@clisp.org>
61080
61081         * lib/c-stack.c (die): Use raise.
61082         * modules/c-stack (Depends-on): Add raise.
61083
61084 2008-04-28  Bruno Haible  <bruno@clisp.org>
61085
61086         Expect rpmatch to be declared.
61087         * lib/yesno.c (rpmatch): Remove declaration.
61088
61089         Declare rpmatch.
61090         * lib/stdlib.in.h (rpmatch): New declaration.
61091         * lib/rpmatch.c: Include <stdlib.h> first.
61092         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
61093         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
61094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
61095         HAVE_RPMATCH.
61096         * modules/rpmatch (Depends-on): Add stdlib, extensions.
61097         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61098         (Include): Set to <stdlib.h>.
61099         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
61100         HAVE_RPMATCH.
61101         * NEWS: Document the change.
61102
61103 2008-04-28  Bruno Haible  <bruno@clisp.org>
61104
61105         Change rpmatch to use nl_langinfo when appropriate.
61106         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
61107         (N_): New macro.
61108         (localized_pattern): New function/macro.
61109         (try): Remove match, nomatch arguments. Copy the pattern into safe
61110         memory before caching it.
61111         (rpmatch): Use localized_pattern. Add translator comments.
61112         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
61113         Suggested by Eric Blake.
61114         * modules/rpmatch (Depends-on): Add stdbool.
61115
61116 2008-04-28  Eric Blake  <ebb9@byu.net>
61117
61118         Add rawmemchr module, matching glibc.
61119         * modules/string (Makefile.am): New indicator.
61120         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
61121         * lib/string.in.h (rawmemchr): Declare when appropriate.
61122         * modules/rawmemchr: New file.
61123         * m4/rawmemchr.m4: Likewise.
61124         * lib/rawmemchr.c: Likewise.
61125         * modules/rawmemchr-tests: Likewise.
61126         * tests/test-rawmemchr.c: Likewise.
61127         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
61128         module.
61129         * modules/strchrnul (Depends-on): Add rawmemchr.
61130         * lib/strchrnul.c (strchrnul): Optimize a corner case.
61131
61132         Whitespace cleanup.
61133         * tests/test-strchrnul.c: Reindent.
61134         * lib/strchrnul.c: Likewise.
61135
61136         Optimize and test strchrnul.
61137         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
61138         * modules/strchrnul-tests: New file.
61139         * tests/test-strchrnul.c: Likewise.
61140
61141         Remove intprops dependency.
61142         * modules/memchr (Depends-on): Remove intprops.
61143         * modules/memrchr (Depends-on): Likewise.
61144         * modules/memchr2 (Depends-on): Likewise.
61145         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
61146         * lib/memrchr.c (__memrchr): Likewise.
61147         * lib/memrchr2.c (memchr2): Likewise.
61148         Reported by Simon Josefsson.
61149
61150 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61151
61152         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
61153         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61154
61155 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61156
61157         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
61158
61159         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
61160
61161         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
61162
61163         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
61164         declarations.
61165         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
61166
61167         * m4/inet_pton.m4: Don't check for header files.
61168
61169         * m4/inet_ntop.m4: Don't check for header files.
61170
61171 2008-04-28  Simon Josefsson  <simon@josefsson.org>
61172
61173         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
61174         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
61175         trigger for cygwin).
61176         Reported by Bruno Haible  <bruno@clisp.org>.
61177
61178 2008-04-28  Bruno Haible  <bruno@clisp.org>
61179
61180         * doc/posix-functions/strdup.texi: Mention mingw problem.
61181
61182 2008-04-27  Bruno Haible  <bruno@clisp.org>
61183
61184         * modules/stat-time-tests (Depends-on): Add sleep.
61185         * tests/test-stat-time.c (force_unlink): New function.
61186         (cleanup): Use it.
61187         (test_mtime): Remove the ctime related tests.
61188         (test_ctime): New function, containing the ctime related tests.
61189         (main): Call test_ctime, except on native Windows platforms.
61190
61191 2008-04-27  Bruno Haible  <bruno@clisp.org>
61192
61193         * lib/rpmatch.c (rpmatch): Add some comments.
61194         Reported by James Youngman <jay@gnu.org>.
61195
61196 2008-04-27  Bruno Haible  <bruno@clisp.org>
61197
61198         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
61199         quiet NaNs.
61200
61201 2008-04-27  Bruno Haible  <bruno@clisp.org>
61202
61203         Make test-yesno.sh work on mingw.
61204         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
61205         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
61206         (main): Set stdin to binary mode.
61207         * modules/yesno-tests (Depends-on): Add binary-io.
61208
61209 2008-04-27  Bruno Haible  <bruno@clisp.org>
61210
61211         Fix 'isfinite' on x86, x86_64, ia64 platforms.
61212         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
61213         argument that lie outside the IEEE 854 domain.
61214         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
61215         (gl_ISFINITE): Use it.
61216         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
61217
61218 2008-04-27  Bruno Haible  <bruno@clisp.org>
61219
61220         Allow local renaming in config.h.
61221         * lib/memrchr.c (memrchr): Don't undefine outside libc.
61222
61223 2008-04-27  Bruno Haible  <bruno@clisp.org>
61224
61225         * lib/memchr.c (__memchr): Change type of 'i'.
61226         * lib/memchr2.c (memchr2): Likewise.
61227
61228 2008-04-26  Eric Blake  <ebb9@byu.net>
61229         and Bruno Haible  <bruno@clisp.org>
61230
61231         Optimize and test memrchr.
61232         * modules/memrchr (Depends-on): Add intprops.
61233         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
61234         * modules/memrchr-tests: New file.
61235         * tests/test-memrchr.c: New file.
61236
61237 2008-04-26  Bruno Haible  <bruno@clisp.org>
61238
61239         Add tentative support for DragonFly BSD.
61240         * lib/stdio-impl.h: Add macros for DragonFly BSD.
61241         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
61242         fp.
61243         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61244         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
61245         * lib/fpurge.c (fpurge): Likewise.
61246         * lib/freadable.c (freaadable): Likewise.
61247         * lib/freadahead.c (freadahead): Likewise.
61248         * lib/freading.c (freading): Likewise.
61249         * lib/freadptr.c (freadptr): Likewise.
61250         * lib/freadseek.c (freadptrinc): Likewise.
61251         * lib/fseeko.c (fseeko): Likewise.
61252         * lib/fseterr.c (fseterr): Likewise.
61253         * lib/fwritable.c (fwritable): Likewise.
61254         * lib/fwriting.c (fwriting): Likewise.
61255
61256 2008-04-26  Bruno Haible  <bruno@clisp.org>
61257
61258         * lib/stdio-impl.h: New file.
61259         * lib/fbufmode.c: Include stdio-impl.h.
61260         (fbufmode): Use fp_, remove redundant #defines.
61261         * lib/fflush.c: Include stdio-impl.h.
61262         (clear_ungetc_buffer): Remove redundant #defines.
61263         * lib/fpurge.c: Include stdio-impl.h.
61264         (fpurge): Remove redundant #defines.
61265         * lib/freadable.c: Include stdio-impl.h.
61266         (freadable): Remove redundant #defines.
61267         * lib/freadahead.c: Include stdio-impl.h.
61268         (freadahead): Remove redundant #defines.
61269         * lib/freading.c: Include stdio-impl.h.
61270         (freading): Remove redundant #defines.
61271         * lib/freadptr.c: Include stdio-impl.h.
61272         (freadptr): Remove redundant #defines.
61273         * lib/freadseek.c: Include stdio-impl.h.
61274         (freadptrinc): Remove redundant #defines.
61275         * lib/fseeko.c: Include stdio-impl.h.
61276         (rpl_fseeko): Remove redundant #defines.
61277         * lib/fseterr.c: Include stdio-impl.h.
61278         (fseterr): Remove redundant #defines.
61279         * lib/fwritable.c: Include stdio-impl.h.
61280         (fwritable: Remove redundant #defines.
61281         * lib/fwriting.c: Include stdio-impl.h.
61282         (fwriting): Remove redundant #defines.
61283         * modules/fbufmode (Files): Add lib/stdio-impl.h.
61284         * modules/fflush (Files): Likewise.
61285         * modules/fpurge (Files): Likewise.
61286         * modules/freadable (Files): Likewise.
61287         * modules/freadahead (Files): Likewise.
61288         * modules/freading (Files): Likewise.
61289         * modules/freadptr (Files): Likewise.
61290         * modules/freadseek (Files): Likewise.
61291         * modules/fseeko (Files): Likewise.
61292         * modules/fseterr (Files): Likewise.
61293         * modules/fwritable (Files): Likewise.
61294         * modules/fwriting (Files): Likewise.
61295
61296 2008-04-26  Bruno Haible  <bruno@clisp.org>
61297
61298         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
61299         restore_seek_optimization, update_fpos_cache): New functions, extracted
61300         from rpl_fflush.
61301         (rpl_fflush): Use them.
61302         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
61303         (gl_REPLACE_FFLUSH): Use it.
61304
61305 2008-04-26  Bruno Haible  <bruno@clisp.org>
61306
61307         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
61308         on Solaris.
61309         * tests/test-xstrtoimax.sh: Likewise.
61310         * tests/test-xstrtoumax.sh: Likewise.
61311         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61312
61313 2008-04-26  Bruno Haible  <bruno@clisp.org>
61314
61315         * modules/memchr-tests: New file.
61316         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
61317
61318 2008-04-26  Eric Blake  <ebb9@byu.net>
61319             Bruno Haible  <bruno@clisp.org>
61320
61321         * lib/memchr.c: Include intprops.h.
61322         (__memchr): Optimize parallel detection of matching bytes. Rename local
61323         variables. Add explanatory comments.
61324
61325 2008-04-26  Bruno Haible  <bruno@clisp.org>
61326
61327         Fix module 'memchr', broken since 2000-10-28.
61328         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
61329
61330 2008-04-26  Bruno Haible  <bruno@clisp.org>
61331
61332         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
61333         comments.
61334
61335 2008-04-25  Eric Blake  <ebb9@byu.net>
61336
61337         Use native fstatat on cygwin 1.7.0.
61338         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
61339         first.
61340
61341 2008-04-23  Eric Blake  <ebb9@byu.net>
61342
61343         Improve memchr2 performance.
61344         * lib/memchr2.c (memchr2): Further optimize parallel detection of
61345         NUL bytes.
61346         * modules/memchr2 (Depends-on): Use intprops.h.
61347
61348 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61349
61350         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
61351         an inline function instead of a CPP macro.  Patch by Ben Pfaff
61352         <blp@cs.stanford.edu>.
61353
61354 2008-04-23  Simon Josefsson  <simon@josefsson.org>
61355
61356         * lib/arpa_inet.in.h: New file.
61357
61358         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
61359         (Makefile.am): Sed in substitute header file.
61360
61361         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
61362         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
61363
61364         * modules/inet_ntop (configure.ac): Use
61365         gl_ARPA_INET_MODULE_INDICATOR.
61366
61367         * modules/inet_pton (configure.ac): Use
61368         gl_ARPA_INET_MODULE_INDICATOR.
61369
61370 2008-04-22  Jim Meyering  <meyering@redhat.com>
61371
61372         * modules/verify (License): Re-license as LGPLv2+.
61373
61374 2008-04-22  Simon Josefsson  <simon@josefsson.org>
61375
61376         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
61377         parameter to void* as per POSIX standard (MinGW uses char*).
61378
61379 2008-04-21  Bruno Haible  <bruno@clisp.org>
61380
61381         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61382         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61383         Define to replacements if REPLACE_ISWCNTRL is 1.
61384         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
61385         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
61386         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
61387         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
61388         what it fixes.
61389         * doc/posix-functions/iswalpha.texi: Likewise.
61390         * doc/posix-functions/iswblank.texi: Likewise.
61391         * doc/posix-functions/iswcntrl.texi: Likewise.
61392         * doc/posix-functions/iswdigit.texi: Likewise.
61393         * doc/posix-functions/iswgraph.texi: Likewise.
61394         * doc/posix-functions/iswlower.texi: Likewise.
61395         * doc/posix-functions/iswprint.texi: Likewise.
61396         * doc/posix-functions/iswpunct.texi: Likewise.
61397         * doc/posix-functions/iswspace.texi: Likewise.
61398         * doc/posix-functions/iswupper.texi: Likewise.
61399         * doc/posix-functions/iswxdigit.texi: Likewise.
61400         Reported by Alain Guibert.
61401
61402 2008-04-21  Bruno Haible  <bruno@clisp.org>
61403
61404         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
61405         Patch by Alain Guibert.
61406
61407 2008-04-21  Bruno Haible  <bruno@clisp.org>
61408
61409         Fix test failures on mingw.
61410         * tests/test-xstrtol.c (print_no_progname): New function.
61411         (main): Install it in error_print_progname hook.
61412         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
61413         * tests/test-xstrtoimax.sh: Likewise.
61414         * tests/test-xstrtoumax.sh: Likewise.
61415
61416 2008-04-21  Bruno Haible  <bruno@clisp.org>
61417
61418         Fix test failure on mingw.
61419         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
61420
61421 2008-04-21  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
61424         Actually assign a value.
61425
61426 2008-04-20  Bruno Haible  <bruno@clisp.org>
61427
61428         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
61429         take 2.
61430         * lib/canonicalize.c (canonicalize_file_name): Elide if the
61431         'canonicalize-lgpl' module is also used.
61432         * lib/canonicalize-lgpl.c: Undo last change.
61433         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
61434
61435 2008-04-20  Bruno Haible  <bruno@clisp.org>
61436
61437         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
61438         config.h. Provide _mkdir based fallback for mingw.
61439         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
61440         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
61441         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
61442         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
61443         rather than defining mkdir in config.h.
61444         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
61445         (gl_SYS_STAT_H_DEFAULTS): New macro.
61446         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
61447         HAVE_IO_H any more.
61448         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
61449         HAVE_DECL_MKDIR and HAVE_IO_H.
61450
61451 2008-04-20  Bruno Haible  <bruno@clisp.org>
61452
61453         * lib/isapipe.c: Port to native Windows platforms.
61454
61455 2008-04-20  Bruno Haible  <bruno@clisp.org>
61456
61457         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
61458
61459 2008-04-21  Eric Blake  <ebb9@byu.net>
61460
61461         Work around preprocessors that don't handle UINTMAX_MAX.
61462         * lib/memchr2.c (memchr2): Avoid embedded #if.
61463         Reported by Alain Guibert, fix suggested by Bruno Haible.
61464
61465 2008-04-21  Simon Josefsson  <simon@josefsson.org>
61466
61467         * doc/posix-functions/strftime.texi (strftime): Explain better
61468         Windows incompatibility.  Suggested by Micah Cowan
61469         <micah@cowan.name>.
61470
61471 2008-04-20  Bruno Haible  <bruno@clisp.org>
61472
61473         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
61474         unistr/u8-mblen.
61475
61476 2008-04-20  Bruno Haible  <bruno@clisp.org>
61477
61478         Fix test failure on platforms with non-GNU iconv.
61479         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
61480         (U_TO_U8): Use it, rather than u16_to_u8.
61481         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
61482         units at the end of the input string.
61483         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
61484
61485 2008-04-20  Bruno Haible  <bruno@clisp.org>
61486
61487         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
61488         when the resulting length is 0.
61489         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
61490
61491 2008-04-20  Bruno Haible  <bruno@clisp.org>
61492
61493         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
61494         works.
61495         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
61496
61497 2008-04-20  Bruno Haible  <bruno@clisp.org>
61498
61499         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
61500         * modules/tsearch-tests (configure.ac): Test for initstate function.
61501
61502 2008-04-20  Bruno Haible  <bruno@clisp.org>
61503
61504         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
61505         for nlink_t if missing.
61506         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
61507
61508 2008-04-19  Bruno Haible  <bruno@clisp.org>
61509
61510         Work around snprintf bug on Linux libc5.
61511         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
61512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61513         gl_SNPRINTF_SIZE1.
61514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61515         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
61516         that test failed.
61517         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
61518         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
61519         * modules/snprintf (Files): Add m4/printf.m4.
61520         * modules/vsnprintf (Files): Likewise.
61521         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
61522         * doc/posix-functions/vsnprintf.texi: Likewise.
61523
61524 2008-04-19  Bruno Haible  <bruno@clisp.org>
61525
61526         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
61527         from 0.0058 to less than 10^-7.
61528
61529 2008-04-19  Bruno Haible  <bruno@clisp.org>
61530
61531         Fix rounding when a precision is given.
61532         * lib/vasnprintf.c (is_borderline): New function.
61533         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
61534         9...9x.
61535         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
61536         %e, %g.
61537         * tests/test-vasprintf-posix.c (test_function): Likewise.
61538         * tests/test-snprintf-posix.h (test_function): Likewise.
61539         * tests/test-sprintf-posix.h (test_function): Likewise.
61540         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
61541         * tests/test-printf-posix.h (test_function): Likewise.
61542         * tests/test-printf-posix.output: Update.
61543         Reported by John Darrington <john@darrington.wattle.id.au> via
61544         Ben Pfaff <blp@cs.stanford.edu>.
61545
61546 2008-04-18  Simon Josefsson  <simon@josefsson.org>
61547
61548         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
61549         Suggested by Bruno Haible <bruno@clisp.org>.
61550
61551 2008-04-17  Bruno Haible  <bruno@clisp.org>
61552
61553         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
61554         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
61555         implementation.
61556         Patch by Bruce Merry <bmerry@gmail.com>.
61557
61558 2008-04-17  Simon Josefsson  <simon@josefsson.org>
61559
61560         * doc/posix-functions/strftime.texi (strftime): Mention that %e
61561         doesn't work under Windows.
61562
61563 2008-04-16  Bruno Haible  <bruno@clisp.org>
61564
61565         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
61566         New macros.
61567         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
61568         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
61569         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
61570         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
61571         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
61572         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
61573         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
61574         macros.
61575         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
61576         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
61577         Northern Sotho, Uighur.
61578
61579 2008-04-16  Bruno Haible  <bruno@clisp.org>
61580
61581         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
61582         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
61583         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
61584         Reported by Daniel Bergström <daniel@octocode.com>.
61585
61586 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
61587             Bruno Haible  <bruno@clisp.org>
61588
61589         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
61590         function.
61591         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
61592         New functions, mostly extracted from gl_locale_name_default.
61593         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
61594
61595 2008-04-16  Eric Blake  <ebb9@byu.net>
61596
61597         Adjust strtod detection to catch glibc 2.7 bug.
61598         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
61599         Reported by John Gatewood Ham.
61600
61601 2008-04-16  Bruno Haible  <bruno@clisp.org>
61602
61603         Add tentative support for Linux libc5.
61604         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
61605         * lib/fpurge.c (fpurge): Likewise.
61606         * lib/freadable.c (freadable): Likewise.
61607         * lib/freadahead.c (freadahead): Likewise.
61608         * lib/freading.c (freading): Likewise.
61609         * lib/freadptr.c (freadptr): Likewise.
61610         * lib/freadseek.c (freadptrinc): Likewise.
61611         * lib/fseeko.c (rpl_fseeko): Likewise.
61612         * lib/fseterr.c (fseterr): Likewise.
61613         * lib/fwritable.c (fwritable): Likewise.
61614         * lib/fwriting.c (fwriting): Likewise.
61615         Reported by Alain Guibert <alguibert+bts@free.fr>.
61616
61617 2008-04-15  Bruno Haible  <bruno@clisp.org>
61618
61619         * modules/mathl (configure.ac): Define module indicator.
61620
61621 2008-04-15  Bruno Haible  <bruno@clisp.org>
61622
61623         * lib/logl.c (logl): Remove unused variables.
61624
61625 2008-04-15  Bruno Haible  <bruno@clisp.org>
61626
61627         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
61628         fails.
61629
61630 2008-04-15  Bruno Haible  <bruno@clisp.org>
61631
61632         * lib/trim.c (trim2): Fix argument of isspace() macro.
61633
61634 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
61635
61636         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
61637         to 0.
61638         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
61639
61640 2008-04-14  Bruno Haible  <bruno@clisp.org>
61641
61642         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
61643         AC_LANG_PROGRAM argument.
61644         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
61645         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
61646         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
61647         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
61648         * m4/math_h.m4 (gl_MATH_H): Likewise.
61649         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
61650         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61651         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
61652         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
61653         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
61654         * m4/regex.m4 (gl_REGEX): Likewise.
61655         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
61656         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
61657         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
61658         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
61659         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61660         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
61661         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
61662         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
61663
61664 2008-04-14  Jim Meyering  <meyering@redhat.com>
61665
61666         test-strtod: fix typos: s/abs/fabs/
61667         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
61668
61669 2008-04-13  Bruno Haible  <bruno@clisp.org>
61670
61671         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
61672         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
61673         module is also used and while not building the reloc-wrapper.
61674
61675 2008-04-13  Bruno Haible  <bruno@clisp.org>
61676
61677         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
61678
61679 2008-04-13  Bruno Haible  <bruno@clisp.org>
61680
61681         Fix AIX compilation failure introduced on 2008-04-02.
61682         * tests/test-frexp.c (exp): Undefine before redefining.
61683         * tests/test-frexpl.c (exp): Likewise.
61684
61685 2008-04-13  Bruno Haible  <bruno@clisp.org>
61686
61687         Work around a HP-UX stdio bug.
61688         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
61689         * tests/test-ftello.c (main): Likewise.
61690         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
61691         * doc/posix-functions/ftello.texi: Likewise.
61692
61693 2008-04-13  Bruno Haible  <bruno@clisp.org>
61694
61695         Make test-signbit pass on HP-UX/hppa.
61696         * tests/test-signbit.c (minus_zerol): New variable.
61697         (test_signbitl): Use it.
61698
61699 2008-04-13  Bruno Haible  <bruno@clisp.org>
61700
61701         Make truncl work on OSF/1 4.0.
61702         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
61703         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61704         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
61705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
61706         HAVE_DECL_TRUNCL.
61707         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
61708         HAVE_DECL_TRUNCL.
61709         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
61710
61711 2008-04-13  Bruno Haible  <bruno@clisp.org>
61712
61713         * lib/unictype.h: Remove trailing comma from enumeration definitions.
61714
61715 2008-04-13  Bruno Haible  <bruno@clisp.org>
61716
61717         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
61718         expression, so as to avoid HP-UX 11 cc compiler bug.
61719
61720 2008-04-13  Bruno Haible  <bruno@clisp.org>
61721
61722         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
61723
61724 2008-04-13  Bruno Haible  <bruno@clisp.org>
61725
61726         * lib/git-merge-changelog.c: Remove empty declaration outside of
61727         functions.
61728
61729 2008-04-13  Bruno Haible  <bruno@clisp.org>
61730
61731         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
61732
61733 2008-04-13  Bruno Haible  <bruno@clisp.org>
61734
61735         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
61736         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
61737         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
61738         also if it exists but lacks definitions of the SHUT_* macros.
61739         * modules/sys_socket (Description): Update.
61740         Reported by Elbert Pol <e.pol@chello.nl>.
61741
61742 2008-04-13  Bruno Haible  <bruno@clisp.org>
61743
61744         * lib/localcharset.c (OS2): Don't redefine if already defined.
61745         Reported by Elbert Pol <e.pol@chello.nl>.
61746
61747 2008-04-13  Bruno Haible  <bruno@clisp.org>
61748
61749         * lib/binary-io.h [__EMX__]: Include <io.h>.
61750         Reported by Elbert Pol <e.pol@chello.nl>.
61751
61752 2008-04-12  Bruno Haible  <bruno@clisp.org>
61753
61754         * lib/fpucw.h: Enable the definitions also for x86_64.
61755         Needed for NetBSD/x86_64.
61756         Reported by Thomas Klausner <tk@giga.or.at>.
61757
61758 2008-04-12  Bruno Haible  <bruno@clisp.org>
61759
61760         * tests/test-strtod.c: Include isnand.h.
61761         (main): Use isnand instead of isnan.
61762         Reported by Jim Meyering.
61763
61764 2008-04-12  Bruno Haible  <bruno@clisp.org>
61765
61766         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
61767         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
61768
61769 2008-04-12  Jim Meyering  <meyering@redhat.com>
61770
61771         * m4/math_h.m4 (gl_MATH_H): Fix typos.
61772
61773 2008-04-12  Bruno Haible  <bruno@clisp.org>
61774
61775         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
61776         Reported by Elbert Pol <e.pol@chello.nl>.
61777
61778 2008-04-12  Eric Blake  <ebb9@byu.net>
61779
61780         Work around Solaris 10 math.h bug.
61781         * m4/math_h.m4 (gl_MATH_H): Check for bug.
61782         (gl_MATH_H_DEFAULTS): Set up default.
61783         * modules/math (Makefile.am): Replace new indicators.
61784         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
61785         * tests/test-math.c (main): Test this.
61786         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
61787         * doc/posix-headers/math.texi (math.h): Mention bug.
61788         Reported by Nelson H. F. Beebe and Jim Meyering.
61789
61790 2008-04-11  Bruno Haible  <bruno@clisp.org>
61791
61792         Adapt to future versions of Apple GCC.
61793         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
61794         Reported by Peter O'Gorman <peter@pogma.com>.
61795
61796 2008-04-11  Bruno Haible  <bruno@clisp.org>
61797
61798         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
61799
61800 2008-04-11  Bruno Haible  <bruno@clisp.org>
61801
61802         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
61803
61804         * modules/getaddrinfo-tests (Makefile.am): Define
61805         test_getaddrinfo_LDADD.
61806
61807 2008-04-11  Bruno Haible  <bruno@clisp.org>
61808
61809         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
61810         (init): Fix syntax error.
61811         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
61812         is declared.
61813
61814 2008-04-11  Bruno Haible  <bruno@clisp.org>
61815
61816         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
61817         * modules/glob (Depends-on): Add stdbool.
61818
61819 2008-04-11  Bruno Haible  <bruno@clisp.org>
61820
61821         * lib/trim.c: Include <string.h>.
61822
61823 2008-04-11  Eric Blake  <ebb9@byu.net>
61824
61825         Avoid compile failure on OS/2.
61826         * lib/regex_internal.h (internal_function): Disable optimization
61827         on OS/2 (__EMX__), where it caused compiler error.
61828         Reported by Elbert Pol.
61829
61830 2008-04-11  Bruno Haible  <bruno@clisp.org>
61831
61832         Flush the standard error stream before aborting. Needed on mingw.
61833         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
61834         * tests/test-array_list.c (ASSERT): Likewise.
61835         * tests/test-array_oset.c (ASSERT): Likewise.
61836         * tests/test-avltree_list.c (ASSERT): Likewise.
61837         * tests/test-avltree_oset.c (ASSERT): Likewise.
61838         * tests/test-avltreehash_list.c (ASSERT): Likewise.
61839         * tests/test-binary-io.c (ASSERT): Likewise.
61840         * tests/test-byteswap.c (ASSERT): Likewise.
61841         * tests/test-c-ctype.c (ASSERT): Likewise.
61842         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
61843         * tests/test-c-strcasestr.c (ASSERT): Likewise.
61844         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
61845         * tests/test-c-strstr.c (ASSERT): Likewise.
61846         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
61847         * tests/test-canonicalize.c (ASSERT): Likewise.
61848         * tests/test-carray_list.c (ASSERT): Likewise.
61849         * tests/test-ceilf1.c (ASSERT): Likewise.
61850         * tests/test-ceilf2.c (ASSERT): Likewise.
61851         * tests/test-ceill.c (ASSERT): Likewise.
61852         * tests/test-count-one-bits.c (ASSERT): Likewise.
61853         * tests/test-fbufmode.c (ASSERT): Likewise.
61854         * tests/test-fflush2.c (ASSERT): Likewise.
61855         * tests/test-floorf1.c (ASSERT): Likewise.
61856         * tests/test-floorf2.c (ASSERT): Likewise.
61857         * tests/test-floorl.c (ASSERT): Likewise.
61858         * tests/test-fopen.c (ASSERT): Likewise.
61859         * tests/test-fpending.c (ASSERT): Likewise.
61860         * tests/test-fprintf-posix.c (ASSERT): Likewise.
61861         * tests/test-fpurge.c (ASSERT): Likewise.
61862         * tests/test-freadable.c (ASSERT): Likewise.
61863         * tests/test-freadahead.c (ASSERT): Likewise.
61864         * tests/test-freading.c (ASSERT): Likewise.
61865         * tests/test-freadptr.c (ASSERT): Likewise.
61866         * tests/test-freadptr2.c (ASSERT): Likewise.
61867         * tests/test-freadseek.c (ASSERT): Likewise.
61868         * tests/test-freopen.c (ASSERT): Likewise.
61869         * tests/test-frexp.c (ASSERT): Likewise.
61870         * tests/test-frexpl.c (ASSERT): Likewise.
61871         * tests/test-fseek.c (ASSERT): Likewise.
61872         * tests/test-fseeko.c (ASSERT): Likewise.
61873         * tests/test-fstrcmp.c (ASSERT): Likewise.
61874         * tests/test-ftell.c (ASSERT): Likewise.
61875         * tests/test-ftello.c (ASSERT): Likewise.
61876         * tests/test-func.c (ASSERT): Likewise.
61877         * tests/test-fwritable.c (ASSERT): Likewise.
61878         * tests/test-fwriting.c (ASSERT): Likewise.
61879         * tests/test-getdelim.c (ASSERT): Likewise.
61880         * tests/test-getline.c (ASSERT): Likewise.
61881         * tests/test-i-ring.c (ASSERT): Likewise.
61882         * tests/test-iconv-utf.c (ASSERT): Likewise.
61883         * tests/test-iconv.c (ASSERT): Likewise.
61884         * tests/test-isfinite.c (ASSERT): Likewise.
61885         * tests/test-isnand.c (ASSERT): Likewise.
61886         * tests/test-isnanf.c (ASSERT): Likewise.
61887         * tests/test-isnanl.h (ASSERT): Likewise.
61888         * tests/test-ldexpl.c (ASSERT): Likewise.
61889         * tests/test-linked_list.c (ASSERT): Likewise.
61890         * tests/test-linkedhash_list.c (ASSERT): Likewise.
61891         * tests/test-localename.c (ASSERT): Likewise.
61892         * tests/test-lseek.c (ASSERT): Likewise.
61893         * tests/test-mbscasecmp.c (ASSERT): Likewise.
61894         * tests/test-mbscasestr1.c (ASSERT): Likewise.
61895         * tests/test-mbscasestr2.c (ASSERT): Likewise.
61896         * tests/test-mbscasestr3.c (ASSERT): Likewise.
61897         * tests/test-mbscasestr4.c (ASSERT): Likewise.
61898         * tests/test-mbschr.c (ASSERT): Likewise.
61899         * tests/test-mbscspn.c (ASSERT): Likewise.
61900         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
61901         * tests/test-mbspbrk.c (ASSERT): Likewise.
61902         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
61903         * tests/test-mbsrchr.c (ASSERT): Likewise.
61904         * tests/test-mbsspn.c (ASSERT): Likewise.
61905         * tests/test-mbsstr1.c (ASSERT): Likewise.
61906         * tests/test-mbsstr2.c (ASSERT): Likewise.
61907         * tests/test-mbsstr3.c (ASSERT): Likewise.
61908         * tests/test-memchr2.c (ASSERT): Likewise.
61909         * tests/test-memmem.c (ASSERT): Likewise.
61910         * tests/test-open.c (ASSERT): Likewise.
61911         * tests/test-printf-frexp.c (ASSERT): Likewise.
61912         * tests/test-printf-frexpl.c (ASSERT): Likewise.
61913         * tests/test-printf-posix.c (ASSERT): Likewise.
61914         * tests/test-quotearg.c (ASSERT): Likewise.
61915         * tests/test-rbtree_list.c (ASSERT): Likewise.
61916         * tests/test-rbtree_oset.c (ASSERT): Likewise.
61917         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
61918         * tests/test-round1.c (ASSERT): Likewise.
61919         * tests/test-roundf1.c (ASSERT): Likewise.
61920         * tests/test-roundl.c (ASSERT): Likewise.
61921         * tests/test-signbit.c (ASSERT): Likewise.
61922         * tests/test-sleep.c (ASSERT): Likewise.
61923         * tests/test-snprintf-posix.c (ASSERT): Likewise.
61924         * tests/test-snprintf.c (ASSERT): Likewise.
61925         * tests/test-sprintf-posix.c (ASSERT): Likewise.
61926         * tests/test-stat-time.c (ASSERT): Likewise.
61927         * tests/test-strcasestr.c (ASSERT): Likewise.
61928         * tests/test-strerror.c (ASSERT): Likewise.
61929         * tests/test-striconv.c (ASSERT): Likewise.
61930         * tests/test-striconveh.c (ASSERT): Likewise.
61931         * tests/test-striconveha.c (ASSERT): Likewise.
61932         * tests/test-strsignal.c (ASSERT): Likewise.
61933         * tests/test-strstr.c (ASSERT): Likewise.
61934         * tests/test-strtod.c (ASSERT): Likewise.
61935         * tests/test-trunc1.c (ASSERT): Likewise.
61936         * tests/test-trunc2.c (ASSERT): Likewise.
61937         * tests/test-truncf1.c (ASSERT): Likewise.
61938         * tests/test-truncf2.c (ASSERT): Likewise.
61939         * tests/test-truncl.c (ASSERT): Likewise.
61940         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
61941         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
61942         * tests/test-vasnprintf.c (ASSERT): Likewise.
61943         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
61944         * tests/test-vasprintf.c (ASSERT): Likewise.
61945         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
61946         * tests/test-vprintf-posix.c (ASSERT): Likewise.
61947         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
61948         * tests/test-vsnprintf.c (ASSERT): Likewise.
61949         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
61950         * tests/test-wcwidth.c (ASSERT): Likewise.
61951         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
61952         * tests/test-xprintf-posix.c (ASSERT): Likewise.
61953         * tests/test-xvasprintf.c (ASSERT): Likewise.
61954         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
61955         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
61956         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
61957         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
61958         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
61959         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
61960         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
61961         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
61962         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
61963         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
61964         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
61965         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
61966         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
61967         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
61968         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
61969         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
61970         * tests/unictype/test-block_list.c (ASSERT): Likewise.
61971         * tests/unictype/test-block_of.c (ASSERT): Likewise.
61972         * tests/unictype/test-block_test.c (ASSERT): Likewise.
61973         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
61974         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
61975         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
61976         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
61977         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
61978         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
61979         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
61980         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
61981         * tests/unictype/test-combining.c (ASSERT): Likewise.
61982         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
61983         * tests/unictype/test-digit.c (ASSERT): Likewise.
61984         * tests/unictype/test-mirror.c (ASSERT): Likewise.
61985         * tests/unictype/test-numeric.c (ASSERT): Likewise.
61986         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
61987         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
61988         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
61989         * tests/unictype/test-scripts.c (ASSERT): Likewise.
61990         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
61991         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
61992         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
61993         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
61994         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
61995         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
61996         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
61997         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
61998         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
61999         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
62000         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
62001         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
62002         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
62003         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
62004         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
62005         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
62006         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
62007         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
62008         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
62009         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
62010         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
62011         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
62012         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
62013         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
62014         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
62015         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
62016         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
62017         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
62018         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
62019         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
62020         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
62021         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
62022         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
62023         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
62024         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
62025         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
62026         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
62027         Reported by Eric Blake.
62028
62029 2008-04-11  Bruno Haible  <bruno@clisp.org>
62030
62031         * lib/wchar.in.h: Tweak comment.
62032
62033 2008-04-11  Bruno Haible  <bruno@clisp.org>
62034
62035         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
62036         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
62037         gl_COMMON.
62038         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
62039
62040 2008-04-11  Bruno Haible  <bruno@clisp.org>
62041
62042         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
62043
62044 2008-04-11  Simon Josefsson  <simon@josefsson.org>
62045
62046         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
62047         of attempting to use non-existing /dev/*random.  Based on patch
62048         from Adam Strzelecki <ono@java.pl> in
62049         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
62050
62051 2008-04-08  Bruno Haible  <bruno@clisp.org>
62052
62053         Add tentative support for emx+gcc.
62054         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
62055         * lib/fpurge.c (fpurge): Likewise.
62056         * lib/freadable.c (freadable): Likewise.
62057         * lib/freadahead.c (freadahead): Likewise.
62058         * lib/freading.c (freading): Likewise.
62059         * lib/freadptr.c (freadptr): Likewise.
62060         * lib/freadseek.c (freadptrinc): Likewise.
62061         * lib/fseeko.c (rpl_fseeko): Likewise.
62062         * lib/fseterr.c (fseterr): Likewise.
62063         * lib/fwritable.c (fwritable): Likewise.
62064         * lib/fwriting.c (fwriting): Likewise.
62065         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
62066
62067 2008-04-09  Eric Blake  <ebb9@byu.net>
62068
62069         Avoid some autoconf warnings.
62070         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
62071         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
62072         * m4/afs.m4 (gl_AFS): Likewise.
62073         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
62074         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
62075         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62076         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
62077         (gl_INTEGER_TYPE_SUFFIX): Likewise.
62078         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
62079         (AC_CHECK_DECLS_ONCE): Likewise.
62080         Rename file...
62081         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
62082         gnulib-tool requires autoconf 2.59 or better.
62083         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
62084
62085 2008-04-08  Eric Blake  <ebb9@byu.net>
62086
62087         Use 'git describe --match' if present (added in git 1.5.5).
62088         * build-aux/git-version-gen: Limit result to tags that match 'v*'
62089         if possible.
62090
62091 2008-04-08  Bruno Haible  <bruno@clisp.org>
62092
62093         Add tentative support for OpenServer.
62094         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
62095         _ptr, _cnt.
62096         * lib/fpurge.c (fpurge): Likewise.
62097         * lib/freadable.c (freadable): Likewise.
62098         * lib/freadahead.c (freadahead): Likewise.
62099         * lib/freading.c (freading): Likewise.
62100         * lib/freadptr.c (freadptr): Likewise.
62101         * lib/freadseek.c (freadptrinc): Likewise.
62102         * lib/fseeko.c (rpl_fseeko): Likewise.
62103         * lib/fseterr.c (fseterr): Likewise.
62104         * lib/fwritable.c (fwritable): Likewise.
62105         * lib/fwriting.c (fwriting): Likewise.
62106         Reported by Roger Cornelius <rac@tenzing.org> and
62107         Brian K. White <brian@aljex.com>.
62108
62109 2008-04-06  Jim Meyering  <meyering@redhat.com>
62110
62111         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
62112
62113 2008-04-06  Bruno Haible  <bruno@clisp.org>
62114
62115         Avoid possible error with non-ASCII bytes in UTF-8 locales.
62116         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
62117         * tests/test-printf-posix.sh: Likewise.
62118         * tests/test-vfprintf-posix.sh: Likewise.
62119         * tests/test-vprintf-posix.sh: Likewise.
62120         * tests/test-xprintf-posix.sh: Likewise.
62121
62122 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62123
62124         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
62125         hide error from 'ls', needed on OS/2.
62126         Report by Elbert Pol <elbert.pol@gmail.com>.
62127
62128 2008-04-04  Eric Blake  <ebb9@byu.net>
62129
62130         Make test-fseeko.c failures meaningful.
62131         * tests/test-fseeko.c: Print line number on failure.
62132         * tests/test-fseek.c: Likewise.
62133         Reported by Nelson H. F. Beebe.
62134
62135         Improve strtod bug detection check.
62136         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
62137         required for Solaris 10.
62138         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
62139
62140 2008-04-04  Bruno Haible  <bruno@clisp.org>
62141
62142         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
62143         by m4/setenv.m4.
62144
62145 2008-04-03  Eric Blake  <ebb9@byu.net>
62146
62147         Ensure sane .version contents.
62148         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
62149         version string.
62150         * build-aux/git-version-gen: Improve documentation.
62151
62152         Make GNU make output nicer.
62153         * top/GNUmakefile [!_have-Makefile]: Add dependency on
62154         MAKECMDGOALS to enforce message for all command line targets.  Set
62155         srcdir for use in maint.mk.
62156
62157         Another maintainer tweak.
62158         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
62159         a target that regenerates version.
62160
62161 2008-04-03  Jim Meyering  <meyering@redhat.com>
62162
62163         vc-list-files: don't cause coreutils "make po-check" failure
62164         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
62165
62166 2008-04-03  Eric Blake  <ebb9@byu.net>
62167
62168         Allow VPATH usage of vc-list-files.
62169         * build-aux/vc-list-files (scriptversion): Add timestamp.
62170         (options): Add --help, --version, -C.
62171         (CVS): Support installed cvsu.
62172
62173 2008-04-02  Bruno Haible  <bruno@clisp.org>
62174
62175         Avoid some "statement with no effect" warnings from gcc.
62176         * tests/test-wctype.c (main): Explicitly ignore unused values.
62177         Reported by Jim Meyering.
62178
62179 2008-04-02  Jim Meyering  <meyering@redhat.com>
62180
62181         Avoid some warnings from "gcc -Wshadow".
62182         * tests/test-frexp.c (exp): Define to a different identifier.
62183         * tests/test-frexpl.c (exp): Likewise.
62184
62185 2008-04-03  Jim Meyering  <meyering@redhat.com>
62186
62187         bootstrap: remove dangling *.[ch] symlinks from lib
62188         * build-aux/bootstrap [dangling symlink removal]: Move find's
62189         -depth option to precede all others, to avoid a warning.
62190         Remove *.[ch] files too, and from "$source_base" (usually lib/).
62191
62192 2008-04-02  Bruno Haible  <bruno@clisp.org>
62193
62194         Avoid some warnings from "gcc -Wshadow".
62195         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
62196         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
62197         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
62198         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
62199         Reported by Jim Meyering.
62200
62201 2008-04-01  Bruno Haible  <bruno@clisp.org>
62202
62203         Fix test to work on IRIX 6.5 with cc.
62204         * tests/test-math.c (numeric_equal): New function.
62205         (main): Use it.
62206
62207 2008-04-01  Bruno Haible  <bruno@clisp.org>
62208
62209         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
62210
62211 2008-04-01  Bruno Haible  <bruno@clisp.org>
62212
62213         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
62214         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62215         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
62216         (Depends-on): Remove math.
62217
62218         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
62219         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62220         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
62221         (Depends-on): Remove math.
62222
62223         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
62224         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62225         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
62226         (Depends-on): Remove math.
62227         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
62228         (Depends-on): Remove math.
62229
62230         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
62231         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
62232         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
62233         (Depends-on): Remove math.
62234         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
62235         (Depends-on): Remove math.
62236
62237         * tests/test-round1.c: Include nan.h.
62238         (main): Use NaNd instead of NAN.
62239         * modules/round-tests (Files): Add tests/nan.h.
62240
62241         * tests/test-trunc1.c: Include nan.h.
62242         (main): Use NaNd instead of NAN.
62243         * modules/trunc-tests (Files): Add tests/nan.h.
62244
62245         * tests/test-roundf1.c: Include nan.h.
62246         (main): Use NaNf instead of NAN.
62247         * modules/roundf-tests (Files): Add tests/nan.h.
62248
62249         * tests/test-truncf1.c: Include nan.h.
62250         (main): Use NaNf instead of NAN.
62251         * modules/truncf-tests (Files): Add tests/nan.h.
62252
62253         * tests/test-ceilf1.c: Include nan.h.
62254         (main): Use NaNf instead of NAN.
62255         * modules/ceilf-tests (Files): Add tests/nan.h.
62256
62257         * tests/test-floorf1.c: Include nan.h.
62258         (main): Use NaNf instead of NAN.
62259         * modules/floorf-tests (Files): Add tests/nan.h.
62260
62261         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
62262         (main): Use NaNf instead of NAN.
62263         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
62264
62265         * tests/test-isnand.c: Include nan.h instead of <math.h>.
62266         (main): Use NaNd instead of NAN.
62267         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
62268
62269         * tests/test-frexp.c: Include nan.h.
62270         (main): Use NaNd instead of NAN.
62271         * modules/frexp-tests (Files): Add tests/nan.h.
62272
62273         * lib/isnan.c: Don't include <math.h>.
62274         (FUNC): Don't use NAN macro.
62275         * modules/isnand-nolibm (Depends-on): Remove math.
62276         * modules/isnanf-nolibm (Depends-on): Remove math.
62277         * modules/isnanl (Depends-on): Remove math.
62278         * modules/isnanl-nolibm (Depends-on): Remove math.
62279
62280         * tests/nan.h: New file.
62281
62282 2008-04-01  Eric Blake  <ebb9@byu.net>
62283
62284         Fix typos.
62285         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
62286         values to be the right type.
62287
62288         For now, cater to gnulib strtod inaccuracies.
62289         * tests/test-strtod.c (main): Allow 1-ulp error on expected
62290         fractional results.  While not as nice from a QoI perspective, it
62291         is a quicker patch than correctly implementing decimal to binary
62292         rounding.
62293
62294 2008-03-31  Eric Blake  <ebb9@byu.net>
62295
62296         Guarantee a definition of NAN.
62297         * lib/math.in.h (NAN): Define if missing.
62298         * tests/test-math.c (main): Test it.
62299         * doc/posix-headers/math.texi (math.h): Document this.
62300         * lib/isnan.c (rpl_isnand): Use it.
62301         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
62302         * tests/test-floorf1.c (NaN): Likewise.
62303         * tests/test-frexp.c (NaN): Likewise.
62304         * tests/test-isnand.c (NaN): Likewise.
62305         * tests/test-isnanf.c (NaN): Likewise.
62306         * tests/test-round1.c (NaN): Likewise.
62307         * tests/test-roundf1.c (NaN): Likewise.
62308         * tests/test-snprintf-posix.h (NaN): Likewise.
62309         * tests/test-sprintf-posix.h (NaN): Likewise.
62310         * tests/test-trunc1.c (NaN): Likewise.
62311         * tests/test-truncf1.c (NaN): Likewise.
62312         * tests/test-vasnprintf-posix.c (NaN): Likewise.
62313         * tests/test-vasprintf-posix.c (NaN): Likewise.
62314         * modules/isnand-nolibm (Depends-on): Add math.
62315         * modules/isnanf-nolibm (Depends-on): Likewise.
62316         * modules/isnanl (Depends-on): Likewise.
62317         * modules/isnanl-nolibm (Depends-on): Likewise.
62318         * modules/snprintf-posix-tests (Depends-on): Likewise.
62319         * modules/sprintf-posix-tests (Depends-on): Likewise.
62320         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
62321         * modules/vsprintf-posix-tests (Depends-on): Likewise.
62322         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
62323         * modules/vasprintf-posix-tests (Depends-on): Likewise.
62324
62325 2008-03-31  Bruno Haible  <bruno@clisp.org>
62326
62327         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
62328         * doc/posix-functions/strtod.texi: Likewise.
62329
62330 2008-03-31  Bruno Haible  <bruno@clisp.org>
62331
62332         * tests/test-strtod.c (main): Don't use C99 syntax.
62333
62334 2008-03-31  Bruno Haible  <bruno@clisp.org>
62335
62336         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
62337         Reported by Eric Blake.
62338
62339 2008-03-31  Jim Meyering  <meyering@redhat.com>
62340
62341         Don't compare actual signbit return values.
62342         * tests/test-strtod.c (main): Rather, compare only their
62343         zero/non-zero nature.
62344
62345 2008-03-31  Eric Blake  <ebb9@byu.net>
62346
62347         More strtod documentation.
62348         * doc/posix-functions/strtod.texi (strtod): Interpret more test
62349         failures as distinct bugs.
62350
62351 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62352
62353         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
62354         Problem reported by Erik Benada in
62355         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
62356
62357 2008-03-30  Bruno Haible  <bruno@clisp.org>
62358
62359         * tests/test-strtod.c: Add comments about which assertion fails on which
62360         platform.
62361         * doc/posix-functions/strtod.texi: Add info about many more platforms.
62362
62363 2008-03-30  Eric Blake  <ebb9@byu.net>
62364
62365         Test signbit behavior on zeros.
62366         * tests/test-signbit.c (test_signbitf): Add tests for zero.
62367         (test_signbitd, test_signbitl): Likewise.
62368
62369         More strtod touchups.
62370         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
62371         sign of negative underflow, for now.  Use .5, not .1.
62372         * doc/posix-functions/strtod.texi (strtod): Mention these
62373         limitations.
62374         Reported by Jim Meyering.
62375
62376 2008-03-30  Bruno Haible  <bruno@clisp.org>
62377
62378         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
62379         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
62380
62381 2008-03-30  Bruno Haible  <bruno@clisp.org>
62382
62383         Avoid failure when attempting to return empty iconv results on some
62384         platforms.
62385         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
62386         allocation, don't report ENOMEM when the resulting string is empty.
62387
62388 2008-03-30  Bruno Haible  <bruno@clisp.org>
62389
62390         Fix buffer overrun.
62391         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
62392         Don't consider the width for tmp_length. Check count against tmp_length
62393         before doing the padding. Ensure enough allocation during padding.
62394
62395 2008-03-30  Eric Blake  <ebb9@byu.net>
62396
62397         strtod touchups.
62398         * lib/strtod.c (strtod): Avoid compiler warnings.
62399         Reported by Jim Meyering.
62400
62401 2008-03-30  Bruno Haible  <bruno@clisp.org>
62402
62403         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
62404         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
62405         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
62406         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
62407         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
62408         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
62409         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
62410         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
62411
62412         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
62413         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
62414         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
62415         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
62416         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
62417         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
62418         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
62419         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
62420
62421         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
62422         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
62423         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
62424         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
62425         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
62426         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
62427         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
62428         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
62429
62430         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
62431         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
62432
62433         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
62434         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
62435
62436         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
62437         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
62438
62439         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
62440         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
62441         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
62442
62443         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
62444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
62445         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
62446
62447         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
62448         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
62449         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
62450
62451         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
62452         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
62453         * modules/vasprintf (Depends-on): Add EOVERFLOW.
62454
62455         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
62456         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
62457         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
62458         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
62459         (Depends-on): Add EOVERFLOW.
62460         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
62461         (Depends-on): Add EOVERFLOW.
62462         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62463         (Depends-on): Add EOVERFLOW.
62464         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
62465         (Depends-on): Add EOVERFLOW.
62466         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62467         (Depends-on): Add EOVERFLOW.
62468         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
62469         (Depends-on): Add EOVERFLOW.
62470         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62471         (Depends-on): Add EOVERFLOW.
62472         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
62473         (Depends-on): Add EOVERFLOW.
62474
62475         * lib/sprintf.c (EOVERFLOW): Remove fallback.
62476         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
62477         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
62478
62479         * lib/snprintf.c (EOVERFLOW): Remove fallback.
62480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
62481         * modules/snprintf (Depends-on): Add EOVERFLOW.
62482
62483         * lib/poll.c (EOVERFLOW): Remove fallback.
62484         * modules/poll (Depends-on): Add EOVERFLOW.
62485
62486         * lib/getugroups.c (EOVERFLOW): Remove fallback.
62487         * modules/getugroups (Depends-on): Add EOVERFLOW.
62488
62489         * lib/getdelim.c (EOVERFLOW): Remove fallback.
62490         * modules/getdelim (Depends-on): Add EOVERFLOW.
62491
62492         * lib/ftell.c (EOVERFLOW): Remove fallback.
62493         * modules/ftell (Depends-on): Add EOVERFLOW.
62494
62495         * lib/fprintf.c (EOVERFLOW): Remove fallback.
62496         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
62497         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
62498
62499         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
62500
62501         * modules/EOVERFLOW-tests: New file.
62502         * tests/test-EOVERFLOW.c: New file.
62503
62504         * modules/EOVERFLOW: New file.
62505         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
62506
62507 2008-03-30  Bruno Haible  <bruno@clisp.org>
62508
62509         Fix bug introduced on 2007-06-10.
62510         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
62511         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
62512
62513 2008-03-30  Bruno Haible  <bruno@clisp.org>
62514
62515         Improve freadseek's efficiency after ungetc.
62516         * lib/freadseek.c: Include freadahead.h.
62517         (freadptrinc): New function, extracted from freadseek.
62518         (freadseek): Use it in a loop. Use freadahead to determine the number
62519         of loop iterations.
62520         * modules/freadseek (Depends-on): Add freadahead.
62521         (configure.ac): Require AC_C_INLINE.
62522
62523 2008-03-30  Bruno Haible  <bruno@clisp.org>
62524
62525         * lib/freadseek.c (freadseek): Don't ignore the return value of
62526         freadptr.
62527
62528 2008-03-29  Eric Blake  <ebb9@byu.net>
62529
62530         Add hex float support.
62531         * modules/strtod (Depends-on): Add c-ctype.
62532         (Link): Mention POW_LIB.
62533         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
62534         whitespace between 'e' and exponent.
62535         * tests/test-strtod.c (main): Enable hex float tests.
62536         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
62537         now provides.
62538
62539         Document various strtod bugs, with some fixes.
62540         * doc/posix-functions/strtod.texi (strtod): Document bugs with
62541         "-0x", "inf", "nan", and hex constants.
62542         * doc/posix-functions/atof.texi (atof): Likewise.
62543         * modules/stdlib (Makefile.am): Support strtod.
62544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
62545         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
62546         detect additional strtod bugs.
62547         * lib/stdlib.in.h (rpl_strtod): Add declarations.
62548         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
62549         bool where appropriate.  Parse 'inf' and 'nan'.
62550         * tests/test-strtod.c: New file.
62551         * modules/strtod (Depends-on): Add stdbool, stdlib.
62552         (configure.ac): Turn on module indicator.
62553         * modules/strtod-tests: New module.
62554
62555 2008-03-29  Eric Blake  <ebb9@byu.net>
62556
62557         Fix ftell on mingw.
62558         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
62559         * modules/ftell-tests (Depends-on): Add binary-io.
62560         * modules/ftello-tests (Depends-on): Likewise.
62561         * tests/test-ftell.c (main): Enhance test to cover behavior after
62562         ungetc.  Enforce binary mode.
62563         * tests/test-ftello.c (main): Likewise.
62564
62565         Pass test-freadseek on cygwin.
62566         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
62567         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
62568         ungetc buffer.
62569
62570         * tests/test-fflush2.c (main): Fix typo.
62571
62572 2008-03-29  Bruno Haible  <bruno@clisp.org>
62573
62574         * tests/test-fflush2.c (main): Temporarily disable the contents of
62575         this test.
62576         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
62577         Reported by Eric Blake.
62578
62579 2008-03-28  Simon Josefsson  <simon@josefsson.org>
62580
62581         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
62582         (GC_SHA224_DIGEST_SIZE): Add.
62583
62584         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
62585         (gc_hash_digest_length): Likewise.
62586         (gc_hash_buffer): Likewise.
62587
62588 2008-03-25  Bruno Haible  <bruno@clisp.org>
62589
62590         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
62591         detail which gettext release to use.
62592         Reported by Simon Josefsson.
62593
62594 2008-03-26  Jim Meyering  <meyering@redhat.com>
62595
62596         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
62597         * modules/gnumakefile (clean-GNUmakefile): Also, use
62598         test ... && ... || : syntax rather than if-then ... fi.
62599
62600         gnumakefile: Don't double-quote-expand $(VPATH) value.
62601         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
62602
62603 2008-03-24  Eric Blake  <ebb9@byu.net>
62604
62605         Alter GNUmakefile to install into top directory.
62606         * modules/maintainer-makefile: Split, and add dependency...
62607         * modules/gnumakefile: to this new module.
62608         * build-aux/GNUmakefile: Move...
62609         * top/GNUmakefile: ...here.
62610         * build-aux/maint.mk: Move...
62611         * top/maint.mk: ...here.
62612         * MODULES.html.sh (Support for maintaining...): Document new
62613         module.
62614
62615 2008-03-23  Bruno Haible  <bruno@clisp.org>
62616
62617         * gnulib-tool: New options --vc-files, --no-vc-files.
62618         (func_usage): Document them.
62619         (vc_files): New variable.
62620         (func_import): Consider vc_files.
62621         (func_create_testdir): Set vc_files to empty.
62622         Suggested by Jim Meyering and Karl Berry.
62623
62624 2008-03-23  Bruno Haible  <bruno@clisp.org>
62625
62626         Fix regex compilation error on HP-UX 11.
62627         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
62628         * modules/regex (Files): Add m4/mbstate_t.m4.
62629         Reported by Ton Voon <ton.voon@altinity.com>.
62630
62631 2008-03-23  Bruno Haible  <bruno@clisp.org>
62632
62633         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
62634
62635 2008-03-23  Eric Blake  <ebb9@byu.net>
62636             Bruno Haible  <bruno@clisp.org>
62637
62638         Install files from top/ in the destination directory.
62639         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62640         augmentation also for the files from top/.
62641         (func_import, func_create_testdir): Rewrite file names:
62642         top/filename -> filename.
62643
62644 2008-03-23  Bruno Haible  <bruno@clisp.org>
62645
62646         Tweak "gnulib --version" output.
62647         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
62648
62649 2008-03-23  Bruno Haible  <bruno@clisp.org>
62650
62651         Tweak "gnulib --version" output.
62652         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
62653         rather than contents of ChangeLog, when possible.
62654
62655 2008-03-21  Eric Blake  <ebb9@byu.net>
62656
62657         More --version tweaks.
62658         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
62659         date of last ChangeLog entry.
62660
62661 2008-03-21  Jim Meyering  <meyering@redhat.com>
62662
62663         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
62664
62665 2008-03-20  Eric Blake  <ebb9@byu.net>
62666
62667         VPATH fix.
62668         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
62669
62670 2008-03-20  Simon Josefsson  <simon@josefsson.org>
62671
62672         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
62673         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
62674
62675 2008-03-20  Eric Blake  <ebb9@byu.net>
62676
62677         Sync GNUmakefile with coreutils.
62678         * build-aux/GNUmakefile (have-Makefile): Rename...
62679         (_have-Makefile): ...to this, for namespace consideration.
62680         (GNUmakefile.cfg): Include, if present.
62681         (_autoreconf): Define a default.
62682         (_is-dist-target): New rule for rebuilds to pick up intra-release
62683         version.
62684         (maint-cfg.mk): Rename...
62685         (cfg.mk): ...to this.
62686
62687 2008-03-18  Jim Meyering  <meyering@redhat.com>
62688
62689         New script and module: mktempd
62690         * MODULES.html.sh (maint+release support): Add mktempd.
62691         * build-aux/mktempd: New file.
62692         * modules/mktempd: New file.
62693
62694 2008-03-15  Jim Meyering  <meyering@redhat.com>
62695
62696         Undo last change.
62697         * lib/sha1.c, lib/md5.c: 63 != ~63.
62698         Reported by Andreas Schwab.
62699
62700         sha1.c, md5.c: Hoist a redundant expression.
62701         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
62702         "ctx->buflen" only once, before calling *_process_block.
62703         * lib/md5.c (md5_process_bytes): Likewise.
62704
62705 2008-03-14  Eric Blake  <ebb9@byu.net>
62706
62707         Bump copyright year in files generated by gnulib-tool.
62708         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
62709         gnulib-tool, rather than hard-coding it.
62710
62711         Fix 'gnulib-tool --version' output to work with git.
62712         * gnulib-tool (func_gnulib_dir): New function, extracted from...
62713         (startup): ...here.
62714         (func_version): Use it to invoke git-version-gen, rather than
62715         relying on CVS keyword expansion.  Modernize wording.
62716         (cvsdatestamp, last_checkin_date, version): Kill unused
62717         variables.
62718
62719 2008-03-12  Jim Meyering  <meyering@redhat.com>
62720
62721         Recognize optional cast of the argument to free.
62722         * build-aux/useless-if-before-free: Update regexps.
62723
62724         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
62725
62726 2008-03-11  Bruno Haible  <bruno@clisp.org>
62727
62728         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
62729         by a single package.
62730         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
62731         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
62732         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
62733         Reported by Sam Steingold <sds@gnu.org>.
62734
62735 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
62736
62737         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
62738         repositories.
62739
62740 2008-03-11  Bruno Haible  <bruno@clisp.org>
62741
62742         Avoid conflicts between local macro definitions.
62743         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62744         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
62745
62746 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
62747             Bruno Haible  <bruno@clisp.org>
62748
62749         Make va_copy work with some version of xlc on AIX 5.1.
62750         * lib/stdarg.in.h: New file.
62751         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
62752         On AIX, use a <stdarg.h> file substitute.
62753         * modules/stdarg (Files): Add lib/stdarg.in.h.
62754         (Depends-on): Add include_next.
62755         (Makefile.am): Build a stdarg.h substitute if requested.
62756         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
62757
62758 2008-03-10  Bruno Haible  <bruno@clisp.org>
62759
62760         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
62761         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
62762         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
62763
62764 2008-03-10  Bruno Haible  <bruno@clisp.org>
62765
62766         * modules/stdlib (Depends-on): Add include_next, remove
62767         absolute-header.
62768
62769 2008-03-09  Bruno Haible  <bruno@clisp.org>
62770
62771         * lib/freadahead.h (freadahead): Document more precisely.
62772         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
62773         the sum of both buffer sizes.
62774         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
62775         * NEWS: Document the change.
62776
62777 2008-03-09  Bruno Haible  <bruno@clisp.org>
62778
62779         Extend freadptr to return also the buffer size.
62780         * lib/freadptr.h (freadptr): Add sizep argument.
62781         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
62782         (freadptr): Add sizep argument. Determine buffer size like freadahead
62783         does.
62784         * tests/test-freadptr.c: Don't include freadahead.h.
62785         (main): Adapt for new calling convention of freadptr.
62786         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
62787         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
62788         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
62789         tests/test-freadptr2.sh.
62790         (Depends): Remove freadahead.
62791         (TESTS): Add test-freadptr2.sh.
62792         (check_PROGRAMS): Add test-freadptr2.
62793
62794 2008-03-09  Bruno Haible  <bruno@clisp.org>
62795
62796         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
62797         Report and solution by Simon Josefsson.
62798
62799 2008-03-06  Bruno Haible  <bruno@clisp.org>
62800
62801         Make fflush after ungetc work on BSD platforms.
62802         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
62803         * tests/test-fflush2.c: New file.
62804         * tests/test-fflush2.sh: New file.
62805         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
62806         tests/test-fflush2.c.
62807         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
62808         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
62809
62810 2008-03-06  Eric Blake  <ebb9@byu.net>
62811
62812         Likewise for ftello.
62813         * modules/ftello (Dependencies): Add extensions.
62814         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
62815
62816 2008-03-06  Bruno Haible  <bruno@clisp.org>
62817
62818         * modules/fseeko (Dependencies): Add extensions.
62819         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
62820         Needed on glibc systems.
62821
62822 2008-03-06  Bruno Haible  <bruno@clisp.org>
62823
62824         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
62825         email address.
62826         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62827
62828 2008-03-06  Bruno Haible  <bruno@clisp.org>
62829
62830         * users.txt: Add libgnupdf.
62831
62832 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
62833
62834         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
62835         (Header File Substitutes, Function Substitutes,
62836         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
62837         (Build robot for gnulib): Fix typo.
62838
62839 2008-03-06  Bruno Haible  <bruno@clisp.org>
62840
62841         * doc/gnulib-tool.texi (VCS Issues): Small updates.
62842         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
62843
62844 2008-03-06  Bruno Haible  <bruno@clisp.org>
62845
62846         * doc/func.texi: New file, extracted from doc/gnulib.texi.
62847         * doc/gnulib.texi: Include it.
62848
62849 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62850
62851         * modules/func (License): Change license to unlimited; there was
62852         no LGPL parts in the module anyway.
62853
62854 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62855
62856         * modules/__func__: Renamed to modules/func.
62857         * modules/__func__-tests: Renamed to modules/func-tests.
62858         * tests/test-__func__.c: Renamed to tests/test-func.c.
62859         * m4/__func__.m4: Renamed to m4/func.m4.
62860         * doc/gnulib.texi (__func__): Section renamed to func.
62861         Suggested by Eric Blake <ebb9@byu.net>.
62862
62863 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62864
62865         * doc/gnulib.texi (__func__): Use C99 terminology when talking
62866         about __func__.  Make example self-contained.  Suggested by Eric
62867         Blake <ebb9@byu.net>.
62868
62869         * tests/test-__func__.c (main): Avoid extraneous () around __func.
62870         Suggested by Eric Blake <ebb9@byu.net>.
62871
62872 2008-03-06  Simon Josefsson  <simon@josefsson.org>
62873
62874         * modules/__func__: New file.
62875         * modules/__func__-tests: New file.
62876         * tests/test-__func__.c: New file.
62877         * m4/__func__.m4: New file.
62878         * doc/gnulib.texi (__func__): Document __func__ module.
62879
62880 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62881
62882         * modules/byteswap (License): Re-license as LGPLv2+.
62883
62884 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62885
62886         * doc/Makefile: Add pdf target.
62887
62888 2008-03-05  Simon Josefsson  <simon@josefsson.org>
62889
62890         * modules/inline (License): Use 'unlimited', since there are only
62891         *.m4 files in this module.
62892
62893 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62894             Bruno Haible  <bruno@clisp.org>
62895
62896         Add support for HP C 7.1 on OpenVMS 8.3.
62897         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
62898
62899 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
62900
62901         Update VMS specifics.
62902         * lib/getopt.c [VMS]: Remove include of unixlib.h.
62903
62904 2008-03-02  Jim Meyering  <meyering@redhat.com>
62905
62906         Remove the last dependency on the "free" module.
62907         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
62908         Reported by Bob Proulx.
62909
62910         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
62911
62912         Remove useless "if" tests before free.  Deprecate "free" module.
62913         * doc/posix-functions/free.texi: Mention that this
62914         module is no longer useful.
62915         * modules/free (Notice): Say this module is obsolete.
62916         * modules/readutmp (Depends-on): Remove free.
62917         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
62918         * lib/putenv.c (putenv): Likewise.
62919         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
62920         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
62921         * tests/test-c-strcasestr.c (main): Likewise.
62922         * tests/test-c-strstr.c (main): Likewise.
62923         * tests/test-mbscasestr1.c (main): Likewise.
62924         * tests/test-mbscasestr2.c (main): Likewise.
62925         * tests/test-mbsstr1.c (main): Likewise.
62926         * tests/test-mbsstr2.c (main): Likewise.
62927         * tests/test-memmem.c (main): Likewise.
62928         * tests/test-strcasestr.c (main): Likewise.
62929         * tests/test-striconv.c (main): Likewise.
62930         * tests/test-striconveh.c (main): Likewise.
62931         * tests/test-striconveha.c (main): Likewise.
62932         * tests/test-strstr.c (main): Likewise.
62933
62934         * build-aux/git-version-gen: Adjust a comment and the Usage string.
62935
62936         bootstrap: sync from coreutils again
62937         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
62938
62939 2008-03-01  Jim Meyering  <meyering@redhat.com>
62940
62941         bootstrap: sync from coreutils
62942         * build-aux/bootstrap (update_po_files): Copy a .po file into place
62943         also when the target doesn't exist.
62944
62945 2008-03-01  Eric Blake  <ebb9@byu.net>
62946
62947         Fix bugs in last patch.
62948         * lib/memchr2.c (memchr2): Fix typo.
62949         * tests/test-memchr2.c: Test previous bug, and don't use GNU
62950         extension.
62951         Reported by Bruce Korb.
62952
62953         New module 'memchr2'.
62954         * modules/memchr2: New file.
62955         * modules/memchr2-tests: Likewise.
62956         * lib/memchr2.h: Likewise.
62957         * lib/memchr2.c: Likewise, based on memchr.c.
62958         * tests/test-memchr2.c: New test.
62959         * MODULES.html.sh (String handling): Add memchr2.
62960
62961 2008-02-29  Bruno Haible  <bruno@clisp.org>
62962
62963         * modules/freadseek-tests: New file.
62964         * tests/test-freadseek.sh: New file.
62965         * tests/test-freadseek.c: New file.
62966
62967         New module 'freadseek'.
62968         * modules/freadseek: New file.
62969         * lib/freadseek.h: New file.
62970         * lib/freadseek.c: New file.
62971         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
62972
62973 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62974
62975         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
62976         wydawca.
62977
62978         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
62979         program_invocation_name and program_invocation_short_name are
62980         present.
62981
62982 2008-02-28  Bruno Haible  <bruno@clisp.org>
62983
62984         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
62985         * tests/test-freadptr.sh: Also test non-seekable stdin.
62986
62987 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
62988
62989         * build-aux/bootstrap (source_base, m4_base)
62990         (doc_base, tests_base): New variables.
62991         (gnulib_tool_options): Do not hardcode base directories, use
62992         the above variables instead.
62993
62994 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
62995
62996         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
62997
62998 2008-02-28  Bruno Haible  <bruno@clisp.org>
62999
63000         * modules/freadptr-tests: New file.
63001         * tests/test-freadptr.sh: New file.
63002         * tests/test-freadptr.c: New file.
63003
63004         New module 'freadptr'.
63005         * modules/freadptr: New file.
63006         * lib/freadptr.h: New file.
63007         * lib/freadptr.c: New file.
63008         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
63009
63010 2008-02-26  Karl Berry  <karl@freefriends.org>
63011
63012         Sync from Libtool:
63013         * libltdl/argz.c (argz_add, argz_count): New functions.
63014         * libltdl/argz.in.h: Declare them.
63015         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
63016
63017 2008-02-22  Bruno Haible  <bruno@clisp.org>
63018
63019         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
63020         is a pointer type.  Needed for HP-UX 10.
63021         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
63022         * doc/posix-functions/gmtime_r.texi: Likewise.
63023         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
63024
63025 2008-02-24  Bruno Haible  <bruno@clisp.org>
63026
63027         * modules/environ-tests: New file.
63028         * tests/test-environ.c: New file.
63029
63030         New module 'environ'.
63031         * modules/environ: New file.
63032         * lib/unistd.in.h (environ): New declaration.
63033         * m4/environ.m4: New file.
63034         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
63035         after use.
63036         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
63037         HAVE_DECL_ENVIRON.
63038         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
63039         HAVE_DECL_ENVIRON.
63040         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
63041         wrong claim that 'environ' is missing on some systems.
63042         * modules/execute (Depends-on): Add environ.
63043         * lib/execute.c (environ): Remove fallback declaration.
63044         * modules/pipe (Depends-on): Add environ.
63045         * lib/pipe.c (environ): Remove fallback declaration.
63046         * modules/setenv (Depends-on): Add environ.
63047         * lib/setenv.c (environ): Remove fallback declaration.
63048         * modules/unsetenv (Depends-on): Add environ.
63049         * lib/unsetenv.c (environ): Remove fallback declaration.
63050         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
63051         m4/environ.m4.
63052         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
63053         (gl_PREREQ_UNSETENV): Likewise.
63054
63055 2008-02-24  Bruno Haible  <bruno@clisp.org>
63056
63057         * doc/posix-functions/environ.texi: Document the MacOS X problem.
63058
63059 2008-02-20  Bob Proulx  <bob@proulx.com>
63060
63061         Enable use of older two part flavor 'git describe'.
63062         * build-aux/git-version-gen: If using the older two part flavor of
63063         git version then recreate the third part now present in the
63064         newer three part flavor of git describe.
63065
63066 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
63067
63068         * lib/fts.c (fts_build): Typo correction to comment.
63069
63070 2008-02-17  Bruno Haible  <bruno@clisp.org>
63071
63072         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
63073         generating no-op conflicts.
63074
63075 2008-02-17  Bruno Haible  <bruno@clisp.org>
63076
63077         Speed up by 10%.
63078         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
63079         result_entries, rather than an index-based loop.
63080
63081 2008-02-17  Bruno Haible  <bruno@clisp.org>
63082
63083         Speed up by 25%.
63084         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
63085         'hashcode_cached'.
63086         (entry_create): New function.
63087         (entry_hashcode): Use the cached hashcode if possible.
63088         (read_changelog_file, try_split_merged_entry): Use entry_create.
63089
63090 2008-02-17  Bruno Haible  <bruno@clisp.org>
63091
63092         Speed up from O(n^2) to O(n) for long ChangeLog files.
63093         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
63094         (read_changelog_file): Change implementation of entries_reversed list
63095         to rbtreehash.
63096         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
63097
63098 2008-02-17  Bruno Haible  <bruno@clisp.org>
63099
63100         New option --split-merged-entry.
63101         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
63102         (find_paragraph_end, try_split_merged_entry): New functions.
63103         (long_options): Add option --split-merged-entry.
63104         (usage): Document option --split-merged-entry.
63105         (main): Implement option --split-merged-entry.
63106         Reported by Eric Blake.
63107
63108 2008-02-17  Bruno Haible  <bruno@clisp.org>
63109
63110         * lib/git-merge-changelog.c: Include c-strstr.h.
63111         (main): Support the "git pull --rebase" situation.
63112         * modules/git-merge-changelog (Depends-on): Add c-strstr.
63113         Reported by Eric Blake.
63114
63115 2008-02-16  Eric Blake  <ebb9@byu.net>
63116
63117         Avoid doubling \ in common case of "c-maybe" quoting style.
63118         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
63119         eliding outer quotes.
63120         * lib/quotearg.h: Document this.
63121         * tests/test-quotearg.c (result_strings, inputs, results_g)
63122         (flag_results, locale_results): Test it by adding a new string to
63123         each test group.
63124         (compare_strings): Test new string.
63125
63126 2008-02-13  Eric Blake  <ebb9@byu.net>
63127
63128         Avoid trigraph quoting in default output.
63129         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
63130         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
63131         unless explicitly requested.
63132         * tests/test-quotearg.c (flag_results, main): Add additional tests.
63133
63134 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
63135
63136         Don't rely on signed integer overflowing to negative value.
63137         * lib/getugroups.c (getugroups): Include <limits.h>.
63138         Instead, compare against INT_MAX, and increment only if the test passes.
63139
63140 2008-02-13  Jim Meyering  <meyering@redhat.com>
63141         and Eric Blake  <ebb9@byu.net>
63142
63143         Avoid shadowing warning and compile errors on Linux.
63144         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
63145         forwarding macros on Linux.
63146         (dcgettext): Define a stub, for Linux.
63147         (results_g, main): Avoid warnings.
63148
63149 2008-02-12  Eric Blake  <ebb9@byu.net>
63150
63151         Silence warning in last patch.
63152         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
63153
63154         Quotearg part 4: add tests, fix c-maybe colon quoting.
63155         * lib/quotearg.h: Improve documentation.
63156         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
63157         escapes when adding outer quotes.  When quoting trigraphs, use
63158         valid C notation.  When quoting NUL, omit extra characters if next
63159         character is not digit.  Alter prototype.
63160         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
63161         callers.
63162         * modules/quotearg-tests: New module.
63163         * tests/test-quotearg.c: New test.
63164
63165 2008-02-07  Eric Blake  <ebb9@byu.net>
63166
63167         Quotearg part 3: add flag to control outer quote elision.
63168         * lib/quotearg.h (c_maybe_quoting_style): New style.
63169         (enum quoting_flags): Better documentation of flags.
63170         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
63171         c-maybe style.
63172         (quotearg_buffer_restyled): Handle new flag to elide outer
63173         quotes.
63174
63175         Quotearg part 2: add flag that can control NUL elision.
63176         * lib/quotearg.h (set_quoting_flags): New prototype.
63177         * lib/quotearg.c (struct quoting_options): Add flag field.
63178         (set_quoting_flags): New function.
63179         (quotearg_buffer_restyled): Add flags parameter.
63180         (quotearg_alloc_mem): Set the flag if length cannot be returned.
63181         (quotearg_n_options): Set the flag, since length cannot be
63182         returned.
63183         (quoting_options_from_style): Default flags correctly.
63184
63185         Quotearg part 1: more wrappers, restore quotearg_char state.
63186         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
63187         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
63188         (quotearg_colon_mem): New wrappers.
63189         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
63190         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
63191         functions.
63192         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
63193         (quotearg_colon_mem): New functions.
63194
63195 2008-02-11  Bruno Haible  <bruno@clisp.org>
63196
63197         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
63198         library in the current directory: it does not work with parallel make.
63199         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63200
63201 2008-02-11  Bruno Haible  <bruno@clisp.org>
63202
63203         * .gitattributes: New file.
63204
63205 2008-02-11  Jim Meyering  <meyering@redhat.com>
63206
63207         useless-if-before-free: Fix reversed exit values.
63208         * build-aux/useless-if-before-free: Use correct values
63209         for EXIT_MATCH and EXIT_NO_MATCH.
63210
63211         * build-aux/useless-if-before-free: Close stdout carefully.
63212
63213 2008-02-10  Bruno Haible  <bruno@clisp.org>
63214
63215         New module 'git-merge-changelog'.
63216         * modules/git-merge-changelog: New file.
63217         * lib/git-merge-changelog.c: New file.
63218
63219 2008-02-10  Jim Meyering  <meyering@redhat.com>
63220
63221         useless-if-before-free: New option: --list (-l).
63222
63223         useless-if-before-free: Don't exit immediately upon open failure.
63224         * build-aux/useless-if-before-free: Exit 2 for errors.
63225         Upon failure to open a file, don't exit immediately.
63226         Rather, just warn and continue with any remaining files.
63227
63228 2008-02-10  Bruno Haible  <bruno@clisp.org>
63229
63230         New abstract list operation 'node_set_value'.
63231         * lib/gl_list.h (gl_list_node_set_value): New function.
63232         (struct gl_list_implementation): New field node_set_value.
63233         * lib/gl_list.c (gl_list_node_set_value): New function.
63234         * lib/gl_array_list.c (gl_array_node_set_value): New function.
63235         (gl_array_list_implementation): Update.
63236         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
63237         (gl_carray_list_implementation): Update.
63238         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
63239         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63240         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63241         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
63242         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63243         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63244         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63245         Update.
63246         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63247         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
63248         (gl_sublist_list_implementation): Update.
63249
63250 2008-02-10  Bruno Haible  <bruno@clisp.org>
63251
63252         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
63253         Needed when ELEMENT is #defined to 'some_type *'.
63254
63255 2008-02-10  Jim Meyering  <meyering@redhat.com>
63256
63257         New script and module: useless-if-before-free
63258         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
63259         * build-aux/useless-if-before-free: New file.
63260         * modules/useless-if-before-free: New file.
63261
63262         * build-aux/gitlog-to-changelog: Use committer date, not author date.
63263
63264         xstrtol_error: Fix typo.
63265         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
63266         s/exit_failure/exit_status/.
63267
63268 2008-02-09  Jim Meyering  <meyering@redhat.com>
63269
63270         New script and module: gitlog-to-changelog
63271         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
63272         * modules/gitlog-to-changelog: New file.
63273         * build-aux/gitlog-to-changelog: New file.
63274
63275 2008-02-08  Jim Meyering  <meyering@redhat.com>
63276
63277         Avoid two "parameter unused" warnings.
63278         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
63279         Mark "st" as used.
63280
63281         Use "git COMMAND", not "git-COMMAND".
63282         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
63283         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
63284         * build-aux/git-version-gen: Use "git status", not "git-status".
63285
63286 2008-02-07  Bruno Haible  <bruno@clisp.org>
63287
63288         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
63289         Avoids a crash on Windows Vista.
63290         Reported by Adam Strzelecki <ono@java.pl> via
63291         Simon Josefsson <simon@josefsson.org>.
63292
63293 2008-02-06  Bruno Haible  <bruno@clisp.org>
63294
63295         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
63296         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
63297         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
63298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
63299         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63301         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
63302         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
63303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63304         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63305         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63306         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63307         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63310         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
63311         left-adjust flag.
63312         * tests/test-snprintf-posix.h (test_function): Likewise.
63313         * tests/test-sprintf-posix.h (test_function): Likewise.
63314         * tests/test-vasprintf-posix.c (test_function): Likewise.
63315         * doc/posix-functions/fprintf.texi: Update.
63316         * doc/posix-functions/printf.texi: Update.
63317         * doc/posix-functions/snprintf.texi: Update.
63318         * doc/posix-functions/sprintf.texi: Update.
63319         * doc/posix-functions/vfprintf.texi: Update.
63320         * doc/posix-functions/vprintf.texi: Update.
63321         * doc/posix-functions/vsnprintf.texi: Update.
63322         * doc/posix-functions/vsprintf.texi: Update.
63323         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63324
63325 2008-02-06  Bruno Haible  <bruno@clisp.org>
63326
63327         Fix bug introduced on 2008-01-26.
63328         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
63329
63330 2008-02-06  Bruno Haible  <bruno@clisp.org>
63331
63332         Fix bug introduced on 2007-06-10.
63333         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
63334         !NEED_PRINTF_FLAG_ZERO.
63335
63336 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
63337
63338         getloadavg: use libperfstat on AIX5
63339         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
63340
63341 2008-02-03  Bruno Haible  <bruno@clisp.org>
63342
63343         * lib/diffseq.h: Add comments about required #includes.
63344         Reported by Michael Biggs <gnulib@doubleplum.net>.
63345
63346 2008-02-01  Bruno Haible  <bruno@clisp.org>
63347
63348         * users.txt: Add gnuit.
63349
63350 2008-01-31  Bruno Haible  <bruno@clisp.org>
63351
63352         * lib/md4.c (set_uint32): Mark as inline.
63353         * lib/md5.c (set_uint32): Likewise.
63354         * lib/sha1.c (set_uint32): Likewise.
63355         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
63356         * m4/md5.m4 (gl_MD5): Likewise.
63357         * m4/sha1.m4 (gl_SHA1): Likewise.
63358
63359 2008-01-31  Jim Meyering  <meyering@redhat.com>
63360
63361         Use "sizeof VAR", rather than a literal "4".
63362         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
63363         * lib/md4.c (md4_read_ctx): Likewise.
63364         * lib/sha1.c (sha1_read_ctx): Likewise.
63365
63366 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63367
63368         * tests/test-sha1.c: New file, based on test-md5.c.
63369
63370         * modules/crypto/sha1-tests: New file.
63371
63372 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63373
63374         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
63375
63376 2008-01-31  Jim Meyering  <meyering@redhat.com>
63377
63378         Prefer "sizeof v" over the equivalent "4".
63379         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
63380         * lib/md5.c (set_uint32): Likewise.
63381         * lib/sha1.c (set_uint32): Likewise.
63382
63383 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63384
63385         * lib/sha1.c (set_uint32): Mark function as static.
63386
63387 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63388
63389         md2: clarify comments to say that alignment is not required.
63390         * lib/md2.h: Remove warning about alignment in comment.
63391         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
63392         never been required.
63393
63394 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63395
63396         md4: adapt alignment constraint fix from sha1.
63397         * lib/md4.c (set_uint32): New function, from sha1.c
63398         (md4_read_ctx): Use it.
63399         (md4_finish_ctx): Doc fix.
63400         * lib/md4.h: Doc fix.
63401
63402 2008-01-31  Simon Josefsson  <simon@josefsson.org>
63403
63404         md5: adapt alignment constraint fix from sha1.
63405         * lib/md5.c (set_uint32): New function, from sha1.c
63406         (md5_read_ctx): Use it.
63407         (md5_finish_ctx): Doc fix.
63408         * lib/md5.h: Doc fix.
63409
63410 2008-01-30  Peter Palfrader  <weasel@debian.org>
63411
63412         sha1: remove the result buffer alignment constraint
63413         * lib/sha1.c (set_uint32): New function.
63414         (sha1_read_ctx): Rewrite to remove the result buffer alignment
63415         constraint.
63416         (sha1_finish_ctx): Remove comment warning about alignment constraint.
63417         * lib/sha1.h: Likewise.
63418
63419 2008-01-30  Andreas Schwab  <schwab@suse.de>
63420             Bruno Haible  <bruno@clisp.org>
63421
63422         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
63423         correct definition of LDBL_MIN_EXP.
63424
63425 2008-01-30  Karl Berry  <karl@gnu.org>
63426
63427         * config/srclist-update: try to preserve x bit on updates.
63428         * config/srclistvars.sh: update for karl.
63429
63430 2008-01-29  Jim Meyering  <meyering@redhat.com>
63431
63432         vasnprintf.c: Avoid warning about unused label
63433         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
63434         "overflow" label definition and associated code with the
63435         same cpp condition that guards the sole use of that label.
63436
63437 2008-01-26  Bruno Haible  <bruno@clisp.org>
63438
63439         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
63440         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
63441         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
63442         * lib/isnanl-nolibm.h (isnanl): Likewise.
63443         Reported by Paul Eggert <eggert@cs.ucla.edu>.
63444
63445 2008-01-26  Bruno Haible  <bruno@clisp.org>
63446
63447         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
63448         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
63449
63450 2008-01-26  Bruno Haible  <bruno@clisp.org>
63451
63452         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
63453         GCC >= 4.0 built-in.
63454         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
63455
63456 2008-01-26  Bruno Haible  <bruno@clisp.org>
63457
63458         Rename isnan, applicable to 'double' only, to isnand.
63459         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
63460         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
63461         (configure.ac): Update.
63462         (Include): Replace "isnan.h" with "isnand.h".
63463         * m4/isnand.m4: Renamed from m4/isnan.m4.
63464         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
63465         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
63466         instead of isnan.c.
63467         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
63468         instead of HAVE_ISNAN_IN_LIBC.
63469         (isnand): Renamed from isnan.
63470         * lib/isnand.c: New file.
63471         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
63472         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
63473         (Makefile.am): Update.
63474         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
63475         Include isnand.h instead of isnan.h.
63476         (main): Test isnand instead of isnan.
63477         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
63478         isnan-nolibm.
63479         * modules/frexp (Depends-on): Likewise.
63480         * modules/frexp-tests (Depends-on): Likewise.
63481         * modules/frexp-nolibm (Depends-on): Likewise.
63482         * modules/frexp-nolibm-tests (Depends-on): Likewise.
63483         * modules/isfinite (Depends-on): Likewise.
63484         * modules/round-tests (Depends-on): Likewise.
63485         * modules/signbit (Depends-on): Likewise.
63486         * modules/signbit-tests (Depends-on): Likewise.
63487         * modules/snprintf-posix (Depends-on): Likewise.
63488         * modules/sprintf-posix (Depends-on): Likewise.
63489         * modules/trunc-tests (Depends-on): Likewise.
63490         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63491         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63492         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63493         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63494         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63495         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63496         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63497         * modules/vasnprintf-posix (Depends-on): Likewise.
63498         * modules/vasprintf-posix (Depends-on): Likewise.
63499         * modules/vfprintf-posix (Depends-on): Likewise.
63500         * modules/vsnprintf-posix (Depends-on): Likewise.
63501         * modules/vsprintf-posix (Depends-on): Likewise.
63502         * lib/frexp.c: Include isnand.h instead of isnan.h.
63503         (ISNAN): Set to isnand instead of isnan.
63504         * lib/isfinite.c: Include isnand.h instead of isnan.h.
63505         (gl_isfinited): Use isnand instead of isnan.
63506         * lib/signbitd.c: Include isnand.h instead of isnan.h.
63507         (gl_signbitd): Use isnand instead of isnan.
63508         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
63509         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
63510         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
63511         (main): Use isnand instead of isnan.
63512         * tests/test-round1.c: Include isnand.h.
63513         (main): Use isnand instead of isnan.
63514         * tests/test-round2.c: Include isnand.h instead of isnan.h.
63515         (ISNAN): Set to isnand instead of isnan.
63516         * tests/test-trunc1.c: Include isnand.h.
63517         (main): Use isnand instead of isnan.
63518         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
63519         (equal): Use isnand instead of isnan.
63520         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
63521         isnand-nolibm.
63522         * NEWS: Mention the change.
63523
63524 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63525             Bruno Haible  <bruno@clisp.org>
63526
63527         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
63528         the GCC builtins for signbits are present and set
63529         REPLACE_SIGNBIT_USING_GCC if so.
63530         * lib/math.in.h (signbit): Define using GCC builtins if
63531         REPLACE_SIGNBIT_USING_GCC is set.
63532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
63533         REPLACE_SIGNBIT_USING_GCC.
63534         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
63535
63536 2008-01-25  Jim Meyering  <meyering@redhat.com>
63537
63538         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
63539         * lib/poll.c: Include <config.h>, not "config.h".
63540         * tests/test-getaddrinfo.c: Likewise.
63541
63542 2008-01-25  Simon Josefsson  <simon@josefsson.org>
63543
63544         * modules/sockets-tests: New file.
63545
63546 2008-01-24  Simon Josefsson  <simon@josefsson.org>
63547
63548         * modules/sockets: New module, can be used to call WSA_Startup and
63549         WSA_Cleanup when needed.
63550
63551         * lib/sockets.h, lib/sockets.c: New files.
63552
63553         * m4/sockets.m4: New file.
63554
63555         * tests/test-sockets.c: New file.
63556
63557 2008-01-19  Bruno Haible  <bruno@clisp.org>
63558
63559         * doc/posix-headers: Renamed from doc/headers.
63560         * doc/posix-functions: Renamed from doc/functions.
63561         * doc/gnulib.texi: Update.
63562
63563 2008-01-19  Bruno Haible  <bruno@clisp.org>
63564
63565         * doc/glibc-functions/strcasestr.texi: Include contents of
63566         doc/functions/strcasestr.texi, fixing the list of platforms.
63567         * doc/functions/strcasestr.texi: Remove file.
63568
63569 2008-01-19  Bruno Haible  <bruno@clisp.org>
63570
63571         * doc/glibc-functions/memmem.texi: Include contents of
63572         doc/functions/memmem.texi.
63573         * doc/functions/memmem.texi: Remove file.
63574
63575 2008-01-18  Bruno Haible  <bruno@clisp.org>
63576
63577         * doc/glibc-functions/*.texi: New files.
63578         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
63579         to use the new files.
63580
63581 2008-01-17  Bruno Haible  <bruno@clisp.org>
63582
63583         * tests/test-gethostname.c (main): Fix printf statement.
63584
63585 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63586
63587         * modules/gethostname-tests: New file.
63588
63589         * tests/test-gethostname.c: New file.
63590
63591 2008-01-17  Simon Josefsson  <simon@josefsson.org>
63592
63593         * lib/gethostname.c: Include string.h unconditionally, strncpy is
63594         used by the UNAME case.  Reported by Bruno Haible
63595         <bruno@clisp.org>.
63596
63597 2008-01-17  Eric Blake  <ebb9@byu.net>
63598
63599         Convert c-strcasestr to be more efficient.
63600         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
63601         (Depends-on): Add c-strcase, remove malloca, strnlen.
63602         * tests/test-c-strcasestr.c (main): Enhance test.
63603         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
63604
63605 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
63606
63607         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
63608         Use it in creating po/Makevars.
63609
63610 2008-01-15  Simon Josefsson  <simon@josefsson.org>
63611
63612         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
63613         Applications that requires it should initialize libgcrypt
63614         manually.
63615
63616 2008-01-16  Simon Josefsson  <simon@josefsson.org>
63617
63618         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
63619
63620 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         Fix problem with getdate on mingw32 reported by Simon Josefsson
63623         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
63624         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
63625         tzname", when deciding whether to declare tzname.
63626         * lib/strftime.c (tzname): Likewise.
63627
63628 2008-01-15  Bruno Haible  <bruno@clisp.org>
63629
63630         Work around a MacOS X 10.5 bug in frexpl().
63631         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
63632         * doc/functions/frexpl.texi: Document the bug.
63633         Reported by Elias Pipping <pipping@gentoo.org>.
63634
63635 2008-01-14  Eric Blake  <ebb9@byu.net>
63636
63637         Touch up previous patch.
63638         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
63639         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
63640
63641         Convert strcasestr module to use Two-Way algorithm.
63642         * modules/strcasestr-simple: New module, based on the old
63643         strcasestr, but with Two-Way rather than KMP.
63644         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
63645         * lib/string.in.h (rpl_strcasestr): Declare.
63646         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
63647         performance.
63648         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
63649         * modules/string (Makefile.am): Support strcasestr.
63650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
63651         * modules/strcasestr-tests (Depends-on): Check for alarm.
63652         * tests/test-strcasestr.c: Augment test.
63653         * lib/str-two-way.h: Clean up stray macro.
63654         * NEWS: Document new module.
63655         * MODULES.html.sh (string handling): Likewise.
63656         * doc/functions/strcasestr.texi: New file.
63657         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
63658         here, since it is not a POSIX function.
63659
63660 2008-01-14  Colin Watson  <cjwatson@debian.org>
63661             Bruno Haible  <bruno@clisp.org>
63662
63663         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
63664         works fine; if not, set REPLACE_STRSIGNAL.
63665         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
63666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63667         REPLACE_STRSIGNAL.
63668         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
63669         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
63670         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
63671
63672 2008-01-14  Bruno Haible  <bruno@clisp.org>
63673
63674         * modules/strsignal (Include): Change to <string.h>.
63675
63676 2008-01-14  Colin Watson  <cjwatson@debian.org>
63677
63678         * modules/argp (Notice): Add a notice recommending to change
63679         XGETTEXT_OPTIONS.
63680         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
63681
63682 2008-01-13  Colin Watson  <cjwatson@debian.org>
63683
63684         * modules/strsignal-tests: New file.
63685         * tests/test-strsignal.c: New file.
63686
63687         * lib/strsignal.c: New file, from glibc with modifications.
63688         * lib/siglist.h: New file, from glibc with modifications.
63689         * lib/string.in.h (strsignal): New declaration.
63690         * m4/strsignal.m4: New file.
63691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63692         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
63693         * modules/strsignal: New file.
63694         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
63695         HAVE_DECL_STRSIGNAL.
63696
63697 2008-01-13  Bruno Haible  <bruno@clisp.org>
63698
63699         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
63700         locale encoding is not ASCII. Needed for OpenBSD 4.0.
63701         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63702         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63703
63704 2008-01-13  Bruno Haible  <bruno@clisp.org>
63705
63706         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
63707         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
63708         * lib/argp.h (__attribute__): Likewise.
63709         * lib/c-stack.c (__attribute__): Likewise.
63710         * lib/error.h (__attribute__): Likewise.
63711         * lib/fts.c (__attribute__): Likewise.
63712         * lib/openat.h (__attribute__): Likewise.
63713         * lib/stdio.in.h (__attribute__): Likewise.
63714         * lib/string.in.h (__attribute__): Likewise.
63715         * lib/utimens.c (__attribute__): Likewise.
63716         * lib/vasnprintf.h (__attribute__): Likewise.
63717         * lib/xalloc.h (__attribute__): Likewise.
63718         * lib/xprintf.h (__attribute__): Likewise.
63719         * lib/xstrtol.h (__attribute__): Likewise.
63720         * lib/xvasprintf.h (__attribute__): Likewise.
63721
63722 2008-01-12  Bruno Haible  <bruno@clisp.org>
63723
63724         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
63725         * doc/glibc-headers/a.out.texi: New file.
63726         * doc/glibc-headers/aliases.texi: New file.
63727         * doc/glibc-headers/alloca.texi: New file.
63728         * doc/glibc-headers/ar.texi: New file.
63729         * doc/glibc-headers/argp.texi: New file.
63730         * doc/glibc-headers/argz.texi: New file.
63731         * doc/glibc-headers/byteswap.texi: New file.
63732         * doc/glibc-headers/crypt.texi: New file.
63733         * doc/glibc-headers/endian.texi: New file.
63734         * doc/glibc-headers/envz.texi: New file.
63735         * doc/glibc-headers/err.texi: New file.
63736         * doc/glibc-headers/error.texi: New file.
63737         * doc/glibc-headers/execinfo.texi: New file.
63738         * doc/glibc-headers/fpu_control.texi: New file.
63739         * doc/glibc-headers/fstab.texi: New file.
63740         * doc/glibc-headers/fts.texi: New file.
63741         * doc/glibc-headers/getopt.texi: New file.
63742         * doc/glibc-headers/ieee754.texi: New file.
63743         * doc/glibc-headers/ifaddrs.texi: New file.
63744         * doc/glibc-headers/libintl.texi: New file.
63745         * doc/glibc-headers/mcheck.texi: New file.
63746         * doc/glibc-headers/mntent.texi: New file.
63747         * doc/glibc-headers/obstack.texi: New file.
63748         * doc/glibc-headers/paths.texi: New file.
63749         * doc/glibc-headers/printf.texi: New file.
63750         * doc/glibc-headers/pty.texi: New file.
63751         * doc/glibc-headers/resolv.texi: New file.
63752         * doc/glibc-headers/shadow.texi: New file.
63753         * doc/glibc-headers/sysexits.texi: New file.
63754         * doc/glibc-headers/ttyent.texi: New file.
63755
63756 2008-01-12  Jim Meyering  <meyering@redhat.com>
63757
63758         announce-gen: emit Gnulib's git-based version string.
63759         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
63760         New option --gnulib-version=V, where V is expected to be
63761         the output of running git describe in the gnulib directory.
63762         (get_tool_versions): Request feedback on xdelta.  I suspect it's
63763         not useful, and plan to stop publishing an xdelta file with each
63764         coreutils release.
63765
63766         * build-aux/announce-gen: Also check for lzma-compressed files.
63767
63768 2008-01-11  Bruno Haible  <bruno@clisp.org>
63769
63770         * tests/test-memmem.c (main): Increase maximum allowed time.
63771         * tests/test-strstr.c (main): Likewise.
63772
63773 2008-01-11  Bruno Haible  <bruno@clisp.org>
63774
63775         * doc/functions/memmem.texi: Add more precisions about platforms.
63776         * doc/functions/strstr.texi: Likewise.
63777
63778 2008-01-10  Eric Blake  <ebb9@byu.net>
63779
63780         * m4/strstr.m4: Delete cruft from copy-n-paste.
63781         Reported by Bruno Haible.
63782
63783 2008-01-10  Bruno Haible  <bruno@clisp.org>
63784
63785         Make c-strstr rely on strstr.
63786         * lib/c-strstr.c: Don't include str-kmp.h.
63787         (c_strstr): Define in terms of strstr.
63788         * modules/c-strstr (Files): Remove lib/str-kmp.h.
63789         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
63790
63791 2008-01-10  Bruno Haible  <bruno@clisp.org>
63792
63793         * doc/gnulib.texi (String Functions in C Locale): New section.
63794         * doc/c-ctype.texi: New file.
63795         * doc/c-strcase.texi: New file.
63796         * doc/c-strcaseeq.texi: New file.
63797         * doc/c-strcasestr.texi: New file.
63798         * doc/c-strstr.texi: New file.
63799         * doc/c-strtod.texi: New file.
63800         * doc/c-strtold.texi: New file.
63801
63802 2008-01-10  Eric Blake  <ebb9@byu.net>
63803
63804         * lib/relocatable.h: Fix a comment.
63805
63806 2008-01-10  Eric Blake  <ebb9@byu.net>
63807
63808         Share two-way algorithm.
63809         * lib/str-two-way.h: New file, merged from...
63810         * lib/memmem.c: ...here...
63811         * lib/strstr.c: ...and here.
63812         * modules/memmem (Files): Use it.
63813         * modules/strstr (Files): Likewise.
63814
63815         Avoid quadratic strstr implementations.
63816         * lib/strstr.c: New file.
63817         * m4/strstr.m4: Likewise.
63818         * modules/strstr: Likewise.
63819         * modules/strstr-tests: Likewise.
63820         * tests/test-strstr.c: Likewise.
63821         * lib/string.in.h (rpl_strstr): Declare.
63822         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
63823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
63824         * modules/string (Makefile.am): Likewise.
63825         * MODULES.html.sh (string handling): Mention new module.
63826         * doc/functions/strstr.texi (strstr): Document the bug.
63827
63828 2008-01-10  Bruno Haible  <bruno@clisp.org>
63829
63830         * lib/relocatable.h (relocate): State whether result is freshly
63831         allocated or not.
63832         * lib/relocatable.c (relocate): Return a freshly allocated string
63833         instead of a pointer to a privately held string.
63834         Reported by Sylvain Beucler <beuc@gnu.org>.
63835
63836 2008-01-10  Colin Watson  <cjwatson@debian.org>
63837
63838         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
63839         s/S_ISNLK/S_ISLNK/.
63840
63841 2008-01-09  Bruno Haible  <bruno@clisp.org>
63842
63843         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
63844         and other files.
63845         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
63846         if it's only a guess.
63847         * modules/memmem: Simplify by depending on memmem-simple.
63848
63849 2008-01-09  Bruno Haible  <bruno@clisp.org>
63850
63851         Work around OpenBSD 4.0 tdelete() bug.
63852         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
63853         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
63854         macros and don't redefine the enum values.
63855         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
63856         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
63857         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
63858
63859 2008-01-09  Bruno Haible  <bruno@clisp.org>
63860
63861         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
63862         (main): Don't perform the tests if setlocale did not install a UTF-8
63863         locale. Needed on OpenBSD 4.0.
63864         * modules/wcwidth-tests (Depends-on): Add localcharset.
63865
63866 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
63867
63868         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
63869         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
63870         * NEWS: announce this.
63871         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
63872
63873 2008-01-09  Simon Josefsson  <simon@josefsson.org>
63874         and Eric Blake  <ebb9@byu.net>
63875
63876         Add memmem-simple module.
63877         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
63878         (gl_FUNC_MEMMEM): Separate performance from presence checks.
63879         * modules/memmem-simple: New file.
63880         * modules/memmem (Description): Tweak.
63881         * MODULES.html.sh (string handling): Mention new module.
63882         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
63883         addressed by memmem-simple.
63884         * NEWS: Document the difference.
63885
63886 2008-01-09  Eric Blake  <ebb9@byu.net>
63887
63888         Give gcc some memmem optimization hints.
63889         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
63890         (strcasestr): Declare as pure.
63891         * modules/memmem (Maintainer): Claim my implementation.
63892
63893 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63894
63895         Support AIX 6.1 and higher.
63896         * build-aux/config.libpath: Likewise.
63897         * build-aux/config.rpath: Likewise.
63898
63899 2008-01-08  Jim Meyering  <meyering@redhat.com>
63900             Bruno Haible  <bruno@clisp.org>
63901
63902         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
63903         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
63904         Reported by Peter Fales in
63905         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
63906
63907 2008-01-08  Bruno Haible  <bruno@clisp.org>
63908
63909         * modules/unictype/category-of (Depends-on): Add
63910         unictype/category-none.
63911         * modules/unictype/category-and-tests (Depends-on): Add
63912         unictype/category-{L,N,Lu,Nd}.
63913         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
63914         * modules/unictype/category-or-tests (Depends-on): Add
63915         unictype/category-{L,N}.
63916         * modules/unictype/category-name-tests (Depends-on): Add
63917         unictype/category-{Z,Nl}.
63918         Reported by Simon Josefsson.
63919
63920 2008-01-08  Bruno Haible  <bruno@clisp.org>
63921
63922         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
63923         convention better.
63924         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
63925         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
63926         Reported by Peter Miller <millerp@canb.auug.org.au>.
63927
63928 2008-01-08  Eric Blake  <ebb9@byu.net>
63929
63930         Rewrite memmem to guarantee linear complexity without malloc.
63931         * lib/memmem.c (memmem): Use Two-Way rather than
63932         Knuth-Morris-Pratt, to allow O(1) space usage.
63933         (critical_factorization, two_way_short_needle)
63934         (two_way_long_needle): New functions.
63935         (knuth_morris_pratt): Delete.
63936         * modules/memmem (Depends-on): No longer need malloca or stdbool.
63937         Add stdint.
63938         * tests/test-memmem.c (main): Add tests for periodic needle and
63939         sublinear performance.
63940         * doc/functions/memmem.texi (memmem): Document other deficiencies
63941         in cygwin and older glibc.
63942
63943 2008-01-08  Bruno Haible  <bruno@clisp.org>
63944
63945         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
63946         augmentation.
63947
63948 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
63949
63950         Add a configure time option: --disable-acl.
63951         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
63952         AC_ARG_ENABLE(acl).
63953
63954 2008-01-06  Simon Josefsson  <simon@josefsson.org>
63955
63956         * tests/test-localename.c: Don't include obsolete "setenv.h".
63957
63958         * modules/localename-tests (Depends-on): Need unsetenv.
63959
63960 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63961
63962         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
63963
63964 2008-01-06  Colin Watson  <cjwatson@debian.org>
63965
63966         * users.txt: Add man-db.
63967
63968 2008-01-07  Bruno Haible  <bruno@clisp.org>
63969
63970         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
63971         previous section name.
63972
63973 2008-01-07  Bruno Haible  <bruno@clisp.org>
63974
63975         * lib/progname.c (set_program_name): Don't strip off a leading
63976         "lt-" prefix outside a .libs directory.
63977         Suggested by Paul Eggert.
63978
63979 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
63980             Bruno Haible  <bruno@clisp.org>
63981
63982         Improve memory cleanup in 'relocatable' module.
63983         * lib/relocatable.h (compute_curr_prefix): Change return type to
63984         'char *'.
63985         * lib/relocatable.c (compute_curr_prefix): Change return type to
63986         'char *'. Free curr_installdir after use.
63987         (relocate): Free curr_prefix_better after use.
63988         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
63989
63990 2008-01-01  Bruno Haible  <bruno@clisp.org>
63991
63992         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
63993         failure on older glibc systems.
63994         Reported by Peter Fales <psfales@alcatel-lucent.com>.
63995
63996 2008-01-05  Eric Blake  <ebb9@byu.net>
63997
63998         Avoid quadratic system memmem.
63999         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
64000         Reported by Ralf Wildenhues.
64001
64002         Fix memmem test for mingw.
64003         * modules/memmem-tests (configure.ac): Check for alarm.
64004         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
64005         it.
64006         * doc/functions/memmem.texi: New file.
64007         * doc/gnulib.texi (Function Substitutes): Add memmem.
64008         Reported by Bruno Haible.
64009
64010 2008-01-04  Bruno Haible  <bruno@clisp.org>
64011
64012         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
64013         Require gl_HEADER_STRINGS_H_DEFAULTS, not
64014         gl_HEADER_STRING_H_DEFAULTS.
64015
64016 2008-01-04  Eric Blake  <ebb9@byu.net>
64017
64018         Shorten duration of memmem test.
64019         * tests/test-memmem.c (main): Use alarm to declare failure if test
64020         is taking too long.
64021         Reported by Ralf Wildenhues.
64022
64023 2007-12-21  Simon Josefsson  <simon@josefsson.org>
64024
64025         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
64026         string, needed by strerror.
64027
64028 2008-01-03  Colin Watson  <cjwatson@debian.org>
64029             Bruno Haible  <bruno@clisp.org>
64030
64031         * doc/gnulib-tool.texi (Localization): New section.
64032
64033 2008-01-02  Bruno Haible  <bruno@clisp.org>
64034
64035         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
64036         variables to 'unsigned char *' type.
64037         Reported by Paul Eggert.
64038
64039 2008-01-02  Jim Meyering  <jim@meyering.net>
64040
64041         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
64042
64043 2007-12-31  Jim Meyering  <jim@meyering.net>
64044
64045         Avoid use of private FTS type name.
64046         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
64047
64048 2007-12-30  Karl Berry  <karl@gnu.org>
64049
64050         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
64051         work around defect in Texinfo and/or the standalone Info browser.
64052
64053 2007-12-30  Bruno Haible  <bruno@clisp.org>
64054
64055         Unify 5 copies of the KMP code.
64056         * lib/str-kmp.h: New file.
64057         * lib/c-strcasestr.c: Include str-kmp.h.
64058         (knuth_morris_pratt): Remove function.
64059         (c_strcasestr): Update.
64060         * lib/c-strstr.c: Include str-kmp.h.
64061         (knuth_morris_pratt): Remove function.
64062         (c_strcasestr): Update.
64063         * lib/mbscasestr.c: Include str-kmp.h.
64064         (knuth_morris_pratt_unibyte): Remove function.
64065         * lib/mbsstr.c: Include str-kmp.h.
64066         (knuth_morris_pratt_unibyte): Remove function.
64067         * lib/strcasestr.c: Include str-kmp.h.
64068         (knuth_morris_pratt): Remove function.
64069         (strcasestr): Update.
64070         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
64071         * modules/c-strstr (Files): Likewise.
64072         * modules/mbscasestr (Files): Likewise.
64073         * modules/mbsstr (Files): Likewise.
64074         * modules/strcasestr (Files): Likewise.
64075         Suggested by Paul Eggert.
64076
64077 2007-12-30  Bruno Haible  <bruno@clisp.org>
64078
64079         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
64080         defined.
64081
64082 2007-12-30  Bruno Haible  <bruno@clisp.org>
64083
64084         * lib/xmalloca.h: Include xalloc.h.
64085         (xnmalloca): New macro.
64086
64087 2007-12-30  Bruno Haible  <bruno@clisp.org>
64088
64089         * lib/malloca.h (nmalloca): New macro.
64090         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
64091         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
64092         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
64093         knuth_morris_pratt_multibyte): Likewise.
64094         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
64095         knuth_morris_pratt_multibyte): Likewise.
64096         * lib/memmem.c (knuth_morris_pratt): Likewise.
64097         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
64098
64099 2007-12-25  Bruno Haible  <bruno@clisp.org>
64100
64101         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
64102         * lib/glob.c: Don't include openat.h.
64103         (link_exists2_p): Add back the code that deals with the
64104         !GLOB_ALTDIRFUNC case.
64105         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
64106         let it do the filename concatenation.
64107         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
64108         * modules/glob (Depends-on): Remove openat.
64109
64110 2007-12-31  Bruno Haible  <bruno@clisp.org>
64111
64112         * modules/dirfd (License): Change to LGPLv2+.
64113         Approved by Jim Meyering.
64114
64115 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
64118         when multiplying M by sizeof (size_t).
64119
64120 2007-12-10  Martin Lambers  <marlam@marlam.de>
64121
64122         Override getpagesize on mingw.
64123         * lib/getpagesize.c: New file.
64124         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
64125         * modules/getpagesize (Files): Add lib/getpagesize.c.
64126         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
64127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
64128         REPLACE_GETPAGESIZE.
64129         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
64130
64131 2007-12-25  Bruno Haible  <bruno@clisp.org>
64132
64133         * modules/localcharset (Notice): New field.
64134         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
64135         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
64136
64137 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
64138             Bruno Haible  <bruno@clisp.org>
64139
64140         Avoid using the syntax symbol() in formatted documentation.
64141         * MODULES.html.sh (func_module): When replacing symbol() with a
64142         hyperlink, remove the parentheses. Show an error if some remain.
64143         Recognize and render the '...' syntax.
64144         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
64145         Rework. Add paragraph about GCC's inlining.
64146         * doc/alloca.texi: Likewise.
64147         * doc/error.texi: Remove parentheses from symbol reference.
64148         * doc/gnulib-intro.texi: Likewise.
64149         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
64150         * modules/fnmatch (Description): Reword to say "the ... function".
64151         * modules/full-read (Description): Likewise.
64152         * modules/full-write (Description): Likewise.
64153         * modules/safe-read (Description): Likewise.
64154         * modules/safe-write (Description): Likewise.
64155         * modules/strchrnul (Description): Likewise.
64156         * modules/trim (Description): Likewise.
64157         * modules/error (Description): Remove parentheses from symbol
64158         references.
64159         * modules/verror (Description): Likewise.
64160         Reported by Karl Berry.
64161
64162 2007-12-25  Bruno Haible  <bruno@clisp.org>
64163
64164         Fixup after 2007-10-16 commit.
64165         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
64166
64167 2007-12-24  Bruno Haible  <bruno@clisp.org>
64168
64169         Make --enable-relocatable work with DESTDIR.
64170         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
64171         to compute installdir from destprog.
64172         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
64173         also set the RELOC_DESTDIR variable.
64174         Reported by Левашев Иван <octagram@bluebottle.com>.
64175
64176 2007-12-24  Bruno Haible  <bruno@clisp.org>
64177
64178         Fix link error due to xalloc_die().
64179         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
64180         of xreadlink.
64181         * lib/relocwrapper.c: Update comments.
64182         * build-aux/install-reloc: Remove xreadlink.c from file list.
64183         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
64184         xreadlink.c.
64185         Reported by Левашев Иван <octagram@bluebottle.com>.
64186
64187 2007-12-24  Bruno Haible  <bruno@clisp.org>
64188
64189         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
64190         * lib/setenv.h: Remove file.
64191         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
64192         lib/setenv.h.
64193         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
64194         (Depends-on): Add stdlib.
64195         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
64196         gl_FUNC_UNSETENV.
64197         (Include): Replace setenv.h with <stdlib.h>.
64198         * modules/unsetenv: New file.
64199         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
64200         * lib/unsetenv.c: Include <stdlib.h> first.
64201         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
64202         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
64203         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
64204         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
64205         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
64206         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
64208         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
64209         * doc/functions/unsetenv.texi: Update.
64210         * modules/xsetenv (Depends-on): Add unsetenv.
64211         * modules/getdate (Depends-on): Likewise.
64212         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
64213         * lib/xsetenv.c: Don't include setenv.h.
64214         * lib/getdate.y: Likewise.
64215         * lib/relocwrapper.c: Likewise.
64216         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
64217         (Depends-on): Add stdlib.
64218         * NEWS: Mention the changes.
64219         Reported by Левашев Иван <octagram@bluebottle.com>.
64220
64221 2007-12-23  Bruno Haible  <bruno@clisp.org>
64222
64223         * lib/memmem.c (memmem): Use lowercase variable names. Tab
64224         indentation.
64225
64226 2007-12-23  Bruno Haible  <bruno@clisp.org>
64227
64228         * lib/c-strcasestr.c: Add more comments.
64229         * lib/c-strstr.c: Likewise.
64230         * lib/mbscasestr.c: Likewise.
64231         * lib/mbsstr.c: Likewise.
64232         * lib/strcasestr.c: Likewise.
64233         * lib/memmem.c: Likewise.
64234
64235 2007-12-23  Bruno Haible  <bruno@clisp.org>
64236
64237         * tests/test-memmem.c: Include <string.h> first.
64238
64239 2007-12-22  Bruno Haible  <bruno@clisp.org>
64240
64241         * gnulib-tool (func_create_testdir): Change $auxdir while generating
64242         the contents of $testsbase.
64243         Reported by Ralf Wildenhues.
64244
64245 2007-12-22  Bruno Haible  <bruno@clisp.org>
64246
64247         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
64248         two variables local_ldadd_before, local_ldadd_last.
64249
64250 2007-12-20  Eric Blake  <ebb9@byu.net>
64251
64252         Work around circular library issue when cross-compiling.
64253         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
64254         that progname.o does not need to pull in rpl_memcmp.
64255
64256 2007-12-19  Eric Blake  <ebb9@byu.net>
64257
64258         Fix memmem to avoid O(n^2) worst-case complexity.
64259         * lib/memmem.c (knuth_morris_pratt): New function.
64260         (memmem): Use it if first few naive iterations fail.
64261         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
64262         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
64263         * modules/memchr (License): Likewise.
64264         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
64265         malloca.
64266         * tests/test-memmem.c: Rewrite, borrowing ideas from
64267         test-mbsstr1.c; the old version wouldn't even compile!
64268         * modules/memmem-tests: New file.
64269         * lib/string.in.h (rpl_memmem): Add declaration.
64270         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
64271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
64272         REPLACE_MEMMEM.
64273
64274 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
64275
64276         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
64277         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
64278         before any system include files, and undef after them all.  This
64279         should fix a problem on VMS reported by John E. Malmberg in
64280         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
64281
64282 2007-12-17  Eric Blake  <ebb9@byu.net>
64283
64284         Revert addition of verify, for BSD/OS.
64285         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
64286         can't handle large files, for the sake of obsolete platforms.
64287         * modules/fseeko (Depends-on): Remove verify.
64288         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
64289         * doc/functions/ftello.texi (ftello): Likewise.
64290         * doc/functions/fgetpos.texi (fgetpos): Likewise.
64291         Reported by Larry Jones.
64292
64293 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
64294
64295         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
64296         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
64297
64298 2007-12-17  Jim Meyering  <meyering@redhat.com>
64299
64300         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
64301         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
64302         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
64303         * modules/getcwd (Depends-on): Add openat.
64304         Reported by Petr Salinger.
64305
64306 2007-12-17  Bruno Haible  <bruno@clisp.org>
64307
64308         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
64309         avoid a segmentation fault of the configure test on x86_64 systems.
64310
64311 2007-12-15  Jim Meyering  <meyering@redhat.com>
64312
64313         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
64314
64315 2007-12-13  Eric Blake  <ebb9@byu.net>
64316
64317         Another fseek test.
64318         * tests/test-fseek.c (main): Also test ungetc handling.
64319         * tests/test-fseeko.c (main): Likewise.
64320         * modules/fseeko (Depends-on): Add verify.
64321         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
64322         large.
64323         Reported by Larry Jones.
64324
64325         Fix fseeko on mingw.
64326         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
64327         seek.
64328
64329         Beef up fseek tests.
64330         * tests/test-fseek.c (main): Also test eof handling.
64331         * tests/test-fseeko.c (main): Likewise.
64332         Reported by Larry Jones.
64333
64334 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
64335
64336         Fix fseeko on BSD-based platforms.
64337         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
64338         successful seek.
64339
64340 2007-12-12  Eric Blake  <ebb9@byu.net>
64341
64342         Allow circular dependency of separate libtests.a
64343         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
64344         when use_libtests.
64345
64346 2007-12-11  Eric Blake  <ebb9@byu.net>
64347
64348         Fix bug with -0.0L in previous patch.
64349         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
64350         * tests/test-isnan.c (main): Also test on zeroes.
64351         * tests/test-isnanf.c (main): Likewise.
64352         * tests/test-isnanl.h (main): Likewise.
64353
64354         Detect pseudo-denormals on x86 even when cross-compiling.
64355         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
64356         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
64357         invalid bit patterns that happen to satisfy ==.
64358
64359         Avoid link failures with separate libtests.a.
64360         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
64361         last, to satisfy circular dependencies.
64362
64363 2007-12-11  Eric Blake  <ebb9@byu.net>
64364         and Bruno Haible  <bruno@clisp.org>
64365
64366         Fix OpenBSD 4.0 <float.h> handling of long double.
64367         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
64368         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
64369         * doc/headers/float.texi (float.h): Document OpenBSD bug.
64370
64371 2007-12-11  Jim Meyering  <meyering@redhat.com>
64372
64373         * users.txt: Add libvirt.
64374
64375         Support versions of autoconf prior to 2.59c.
64376         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
64377         if it is not already defined.
64378
64379 2007-12-09  Bruno Haible  <bruno@clisp.org>
64380
64381         Let 'gnulib-tool --import' collect sources needed for the tests in
64382         tests/ rather than in lib/.
64383         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
64384         argument. If true, add rules to generate libtests.a, and put libtests.a
64385         into $(LDADD). Consider source files in subdirectories and set
64386         uses_subdirs.
64387         (func_emit_initmacro_start, func_emit_initmacro_end,
64388         func_emit_initmacro_done): Pass all arguments explicitly.
64389         (func_import): Determine two module lists main_modules,
64390         testsrelated_modules. Determine use_libtests. Determine two variables
64391         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
64392         instead of just sed_transform_lib_file. Determine two variables
64393         main_files and testsrelated_files. Compute 'files' as the union of
64394         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
64395         func_add_or_update. In the generated gnulib-comp.m4, collect the
64396         object files for tests/ in different variables than those for lib/.
64397         Substitute LIBTESTS_LIBDEPS.
64398         (func_create_testdir): Combine the uses_subdirs results from
64399         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
64400
64401 2007-12-09  Bruno Haible  <bruno@clisp.org>
64402
64403         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
64404         the build-aux directory.
64405
64406 2007-12-09  Bruno Haible  <bruno@clisp.org>
64407
64408         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
64409         introduced on 2006-09-09.
64410
64411 2007-12-07  Jim Meyering  <meyering@redhat.com>
64412
64413         Let these macros work also with autoconf-2.59.
64414         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
64415         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
64416         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64417
64418 2007-12-06  Jim Meyering  <meyering@redhat.com>
64419
64420         Avoid a configure-time syntax error in gl_FUNC_ACL.
64421         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
64422         function in each branch, before testing the cache variable.
64423
64424 2007-12-04  Eric Blake  <ebb9@byu.net>
64425
64426         Make scripts executable.
64427         * build-aux/config.guess: Add execute permissions.
64428         * build-aux/config.sub: Likewise.
64429         * build-aux/gendocs.sh: Likewise.
64430
64431         Fix frexp on mingw.
64432         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
64433         cross-compiling.
64434         * doc/functions/frexp.texi (frexp): Document the bug.
64435
64436         Make cygwin fseeko check more reliable.
64437         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
64438         version numbers, rather than unrelated feature check.
64439         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
64440         * doc/functions/ftello.texi (ftello): Likewise.
64441         Reported by Bruno Haible.
64442
64443         * m4/strerror.m4: Bump version number.
64444
64445 2007-12-03  Bruno Haible  <bruno@clisp.org>
64446
64447         * doc/functions/mprotect.texi: Mention the mingw problem.
64448
64449 2007-12-03  Eric Blake  <ebb9@byu.net>
64450
64451         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
64452         REPLACE_STRERROR is initialized before this macro.
64453
64454 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
64455
64456         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
64457         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
64458         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
64459         put -lsec in even for programs other than 'ls'.  This fixes a problem
64460         for gettext reported by Bruno Haible in
64461         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
64462         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
64463         Add support for Solaris 10.  This isn't efficient, but should get the
64464         job done for now.
64465
64466 2007-12-03  James Youngman  <jay@gnu.org>
64467
64468         * doc/regexprops-generic.texi: change "an close-group" to "a
64469         close-group" and "illegal" to "not allowed".
64470
64471 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64472
64473         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
64474         pr_byname.h. Needed for the rare case when the maintainer has done
64475         "make maintainer-clean" in the source directory and then attempts a
64476         build outside the source directory.
64477         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
64478         scripts_byname.h.
64479
64480 2007-12-02  Martin Lambers <marlam@marlam.de>
64481             Bruno Haible  <bruno@clisp.org>
64482
64483         * lib/getpagesize.h: Remove file.
64484         * lib/unistd.in.h: Include declaration of getpagesize here.
64485         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
64486         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
64487         HAVE_SYS_PARAM_H.
64488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
64489         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64490         * modules/getpagesize (Files): Remove lib/getpagesize.h.
64491         (Depends-on): Add unistd.
64492         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64493         (Include): Use <unistd.h> instead of getpagesize.h.
64494         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
64495         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
64496         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
64497         gl_GETPAGESIZE invocation, already handled by module dependency.
64498         * lib/pagealign_alloc.c: Don't include getpagesize.h.
64499
64500 2007-12-02  Bruno Haible  <bruno@clisp.org>
64501
64502         * modules/strings-tests: New file.
64503         * tests/test-strings.c: New file.
64504
64505         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
64506         * lib/strings.in.h: New file.
64507         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
64508         * m4/strings_h.m4: New file.
64509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
64510         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
64511         * modules/strings: New file.
64512         * modules/string (Makefile.am): Update.
64513         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
64514         Reported by Karl Berry.
64515
64516 2007-12-01  Eric Blake  <ebb9@byu.net>
64517
64518         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
64519         accommodate fix in cygwin 1.5.25.
64520
64521 2007-12-01  Jim Meyering  <meyering@redhat.com>
64522
64523         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
64524         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
64525         that would inhibit utf8-optimization of a regexp containing line-
64526         or buffer-anchors, e.g., `^', `$'.
64527
64528 2007-11-30  Bruno Haible  <bruno@clisp.org>
64529
64530         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
64531         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
64532         glthread_recursive_lock_init.
64533         * lib/lock.c (glthread_recursive_lock_init)
64534         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
64535         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
64536
64537 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
64538
64539         New function qset_acl, like set_acl but with syscall semantics.
64540         * lib/acl.h (qset_acl): New decl.
64541         * lib/acl.c (qset_acl): New function.
64542         (set_acl): Use new function.  Use more-consistent diagnostics.
64543
64544 2007-11-28  Jim Meyering  <meyering@redhat.com>
64545
64546         * modules/physmem (License): Change from GPL to LGPLv2+.
64547
64548 2007-11-26  Bruno Haible  <bruno@clisp.org>
64549
64550         * lib/vasnprintf.c (decode_long_double): Don't abort if the
64551         'long double' type has excess precision.
64552         Reported by Jim Meyering in
64553         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
64554
64555 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64556
64557         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
64558         Sync from <http://gnu.org/licenses>.
64559         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
64560         with license text from same location.
64561         * doc/maintain.texi, doc/standards.texi:  Sync from
64562         <http://savannah.gnu.org/projects/gnustandards>.
64563
64564 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
64565         and Jim Meyering  <meyering@redhat.com>
64566
64567         Adjust getdate' grammar to accept a slightly more regular language.
64568         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
64569         Before, the former was rejected.
64570         * lib/getdate.y (digits_to_date_time): New function, factored
64571         out of ...
64572         (number): ...here.  Just call digits_to_date_time.
64573         (hybrid): New non-terminal to handle an <unsigned number,
64574         signed relative offset> sequence consistently.
64575
64576 2007-11-18  Jim Meyering  <meyering@redhat.com>
64577
64578         Pull my changes from coreutils:
64579         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
64580         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
64581         use of $gnulib_tool_option_extras, so that it's separated from the
64582         preceding argument.
64583
64584         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
64585         * build-aux/bootstrap (cp_mark_as_generated): Create any required
64586         parent destination directories before copying a file into place.
64587
64588 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
64589
64590         bootstrap: work also with 4-argument variant of AC_INIT
64591         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
64592
64593 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
64594
64595         Port test-getaddrinfo to Solaris.
64596         Problem reported by Bruno Haible in
64597         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
64598         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
64599         explanation of setting 'hints'.
64600         Don't reject an implementation merely because it returns EAI_SERVICE.
64601         (EAI_SERVICE): Define to 0 if not defined.
64602
64603 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64604
64605         The license of gnu-make and posix-shell is now "GPLed build tool".
64606         * modules/gnu-make (License): Likewise.
64607         * modules/posix-shell (License): Likewise.
64608
64609         New module posix-shell, for determining a POSIX shell
64610         or perhaps something that is close enough to a POSIX shell.
64611         * m4/posix-shell.m4: New file.
64612         * modules/posix-shell: New file.
64613
64614         * MODULES.html.sh: Mention new module.
64615
64616         New module gnu-make, for determining whether we're using GNU Make.
64617         * m4/gnu-make.m4: New file.
64618         * modules/gnu-make: New file.
64619         * MODULES.html.sh: Mention new module.
64620
64621 2007-11-14  Jim Meyering  <meyering@redhat.com>
64622
64623         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
64624         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
64625         use this macro to create a function _definition_.
64626         Remove useless "#undef ARGMATCH_DIE".
64627
64628 2007-11-14  Bruno Haible  <bruno@clisp.org>
64629
64630         * lib/config.charset: Update for OpenBSD 4.1.
64631         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
64632
64633 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
64634
64635         Document 64-bit #if problems in stdint.texi.
64636         * doc/headers/stdint.texi (stdint.h): Mention problems with
64637         64-bit-#if, and how to work around them.
64638
64639         Don't insist on 'long long int' support in the preprocessor.  It
64640         breaks too many things.  For example, PRIdMAX still uses a 'long
64641         long int' format with the latest Sun compiler, even though
64642         HAVE_LONG_LONG_INT isn't defined due to that compiler's
64643         preprocessor problem.  This causes the latest coreutils to dump
64644         core on Solaris 10 sparc with the Sun C compiler.
64645         Instead, fix the 2007-10-16 problem in a different way, by evaluating
64646         the troublesome expressions at configure-time, not at #if-time.
64647         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
64648         preprocessor.
64649         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
64650         compile-time C checks, done at 'configure'-time.
64651         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
64652         * modules/inttypes (Makefile): Substitute the new symbols that
64653         gl_INTTYPES_H now generates.
64654         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
64655
64656 2007-11-12  Bruno Haible  <bruno@clisp.org>
64657
64658         Tests for Unicode character classification functions.
64659
64660         * modules/unictype/bidicategory-byname-tests: New file.
64661         * modules/unictype/bidicategory-name-tests: New file.
64662         * modules/unictype/bidicategory-of-tests: New file.
64663         * modules/unictype/bidicategory-test-tests: New file.
64664         * modules/unictype/block-list-tests: New file.
64665         * modules/unictype/block-of-tests: New file.
64666         * modules/unictype/block-test-tests: New file.
64667         * modules/unictype/category-C-tests: New file.
64668         * modules/unictype/category-Cc-tests: New file.
64669         * modules/unictype/category-Cf-tests: New file.
64670         * modules/unictype/category-Cn-tests: New file.
64671         * modules/unictype/category-Co-tests: New file.
64672         * modules/unictype/category-Cs-tests: New file.
64673         * modules/unictype/category-L-tests: New file.
64674         * modules/unictype/category-Ll-tests: New file.
64675         * modules/unictype/category-Lm-tests: New file.
64676         * modules/unictype/category-Lo-tests: New file.
64677         * modules/unictype/category-Lt-tests: New file.
64678         * modules/unictype/category-Lu-tests: New file.
64679         * modules/unictype/category-M-tests: New file.
64680         * modules/unictype/category-Mc-tests: New file.
64681         * modules/unictype/category-Me-tests: New file.
64682         * modules/unictype/category-Mn-tests: New file.
64683         * modules/unictype/category-N-tests: New file.
64684         * modules/unictype/category-Nd-tests: New file.
64685         * modules/unictype/category-Nl-tests: New file.
64686         * modules/unictype/category-No-tests: New file.
64687         * modules/unictype/category-P-tests: New file.
64688         * modules/unictype/category-Pc-tests: New file.
64689         * modules/unictype/category-Pd-tests: New file.
64690         * modules/unictype/category-Pe-tests: New file.
64691         * modules/unictype/category-Pf-tests: New file.
64692         * modules/unictype/category-Pi-tests: New file.
64693         * modules/unictype/category-Po-tests: New file.
64694         * modules/unictype/category-Ps-tests: New file.
64695         * modules/unictype/category-S-tests: New file.
64696         * modules/unictype/category-Sc-tests: New file.
64697         * modules/unictype/category-Sk-tests: New file.
64698         * modules/unictype/category-Sm-tests: New file.
64699         * modules/unictype/category-So-tests: New file.
64700         * modules/unictype/category-Z-tests: New file.
64701         * modules/unictype/category-Zl-tests: New file.
64702         * modules/unictype/category-Zp-tests: New file.
64703         * modules/unictype/category-Zs-tests: New file.
64704         * modules/unictype/category-and-not-tests: New file.
64705         * modules/unictype/category-and-tests: New file.
64706         * modules/unictype/category-byname-tests: New file.
64707         * modules/unictype/category-name-tests: New file.
64708         * modules/unictype/category-none-tests: New file.
64709         * modules/unictype/category-of-tests: New file.
64710         * modules/unictype/category-or-tests: New file.
64711         * modules/unictype/category-test-withtable-tests: New file.
64712         * modules/unictype/combining-class-tests: New file.
64713         * modules/unictype/ctype-alnum-tests: New file.
64714         * modules/unictype/ctype-alpha-tests: New file.
64715         * modules/unictype/ctype-blank-tests: New file.
64716         * modules/unictype/ctype-cntrl-tests: New file.
64717         * modules/unictype/ctype-digit-tests: New file.
64718         * modules/unictype/ctype-graph-tests: New file.
64719         * modules/unictype/ctype-lower-tests: New file.
64720         * modules/unictype/ctype-print-tests: New file.
64721         * modules/unictype/ctype-punct-tests: New file.
64722         * modules/unictype/ctype-space-tests: New file.
64723         * modules/unictype/ctype-upper-tests: New file.
64724         * modules/unictype/ctype-xdigit-tests: New file.
64725         * modules/unictype/decimal-digit-tests: New file.
64726         * modules/unictype/digit-tests: New file.
64727         * modules/unictype/mirror-tests: New file.
64728         * modules/unictype/numeric-tests: New file.
64729         * modules/unictype/property-alphabetic-tests: New file.
64730         * modules/unictype/property-ascii-hex-digit-tests: New file.
64731         * modules/unictype/property-bidi-arabic-digit-tests: New file.
64732         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
64733         * modules/unictype/property-bidi-block-separator-tests: New file.
64734         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
64735         * modules/unictype/property-bidi-common-separator-tests: New file.
64736         * modules/unictype/property-bidi-control-tests: New file.
64737         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
64738         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
64739         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
64740         * modules/unictype/property-bidi-european-digit-tests: New file.
64741         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
64742         * modules/unictype/property-bidi-left-to-right-tests: New file.
64743         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
64744         * modules/unictype/property-bidi-other-neutral-tests: New file.
64745         * modules/unictype/property-bidi-pdf-tests: New file.
64746         * modules/unictype/property-bidi-segment-separator-tests: New file.
64747         * modules/unictype/property-bidi-whitespace-tests: New file.
64748         * modules/unictype/property-byname-tests: New file.
64749         * modules/unictype/property-combining-tests: New file.
64750         * modules/unictype/property-composite-tests: New file.
64751         * modules/unictype/property-currency-symbol-tests: New file.
64752         * modules/unictype/property-dash-tests: New file.
64753         * modules/unictype/property-decimal-digit-tests: New file.
64754         * modules/unictype/property-default-ignorable-code-point-tests: New file.
64755         * modules/unictype/property-deprecated-tests: New file.
64756         * modules/unictype/property-diacritic-tests: New file.
64757         * modules/unictype/property-extender-tests: New file.
64758         * modules/unictype/property-format-control-tests: New file.
64759         * modules/unictype/property-grapheme-base-tests: New file.
64760         * modules/unictype/property-grapheme-extend-tests: New file.
64761         * modules/unictype/property-grapheme-link-tests: New file.
64762         * modules/unictype/property-hex-digit-tests: New file.
64763         * modules/unictype/property-hyphen-tests: New file.
64764         * modules/unictype/property-id-continue-tests: New file.
64765         * modules/unictype/property-id-start-tests: New file.
64766         * modules/unictype/property-ideographic-tests: New file.
64767         * modules/unictype/property-ids-binary-operator-tests: New file.
64768         * modules/unictype/property-ids-trinary-operator-tests: New file.
64769         * modules/unictype/property-ignorable-control-tests: New file.
64770         * modules/unictype/property-iso-control-tests: New file.
64771         * modules/unictype/property-join-control-tests: New file.
64772         * modules/unictype/property-left-of-pair-tests: New file.
64773         * modules/unictype/property-line-separator-tests: New file.
64774         * modules/unictype/property-logical-order-exception-tests: New file.
64775         * modules/unictype/property-lowercase-tests: New file.
64776         * modules/unictype/property-math-tests: New file.
64777         * modules/unictype/property-non-break-tests: New file.
64778         * modules/unictype/property-not-a-character-tests: New file.
64779         * modules/unictype/property-numeric-tests: New file.
64780         * modules/unictype/property-other-alphabetic-tests: New file.
64781         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
64782         * modules/unictype/property-other-grapheme-extend-tests: New file.
64783         * modules/unictype/property-other-id-continue-tests: New file.
64784         * modules/unictype/property-other-id-start-tests: New file.
64785         * modules/unictype/property-other-lowercase-tests: New file.
64786         * modules/unictype/property-other-math-tests: New file.
64787         * modules/unictype/property-other-uppercase-tests: New file.
64788         * modules/unictype/property-paired-punctuation-tests: New file.
64789         * modules/unictype/property-paragraph-separator-tests: New file.
64790         * modules/unictype/property-pattern-syntax-tests: New file.
64791         * modules/unictype/property-pattern-white-space-tests: New file.
64792         * modules/unictype/property-private-use-tests: New file.
64793         * modules/unictype/property-punctuation-tests: New file.
64794         * modules/unictype/property-quotation-mark-tests: New file.
64795         * modules/unictype/property-radical-tests: New file.
64796         * modules/unictype/property-sentence-terminal-tests: New file.
64797         * modules/unictype/property-soft-dotted-tests: New file.
64798         * modules/unictype/property-space-tests: New file.
64799         * modules/unictype/property-terminal-punctuation-tests: New file.
64800         * modules/unictype/property-test-tests: New file.
64801         * modules/unictype/property-titlecase-tests: New file.
64802         * modules/unictype/property-unassigned-code-value-tests: New file.
64803         * modules/unictype/property-unified-ideograph-tests: New file.
64804         * modules/unictype/property-uppercase-tests: New file.
64805         * modules/unictype/property-variation-selector-tests: New file.
64806         * modules/unictype/property-white-space-tests: New file.
64807         * modules/unictype/property-xid-continue-tests: New file.
64808         * modules/unictype/property-xid-start-tests: New file.
64809         * modules/unictype/property-zero-width-tests: New file.
64810         * modules/unictype/scripts-tests: New file.
64811         * modules/unictype/syntax-c-ident-tests: New file.
64812         * modules/unictype/syntax-c-whitespace-tests: New file.
64813         * modules/unictype/syntax-java-ident-tests: New file.
64814         * modules/unictype/syntax-java-whitespace-tests: New file.
64815         * tests/unictype/test-bidi_byname.c: New file.
64816         * tests/unictype/test-bidi_name.c: New file.
64817         * tests/unictype/test-bidi_of.c: New file.
64818         * tests/unictype/test-bidi_test.c: New file.
64819         * tests/unictype/test-block_list.c: New file.
64820         * tests/unictype/test-block_of.c: New file.
64821         * tests/unictype/test-block_test.c: New file.
64822         * tests/unictype/test-categ_and.c: New file.
64823         * tests/unictype/test-categ_and_not.c: New file.
64824         * tests/unictype/test-categ_byname.c: New file.
64825         * tests/unictype/test-categ_name.c: New file.
64826         * tests/unictype/test-categ_none.c: New file.
64827         * tests/unictype/test-categ_of.c: New file.
64828         * tests/unictype/test-categ_or.c: New file.
64829         * tests/unictype/test-categ_test_withtable.c: New file.
64830         * tests/unictype/test-combining.c: New file.
64831         * tests/unictype/test-decdigit.c: New file.
64832         * tests/unictype/test-digit.c: New file.
64833         * tests/unictype/test-mirror.c: New file.
64834         * tests/unictype/test-numeric.c: New file.
64835         * tests/unictype/test-pr_byname.c: New file.
64836         * tests/unictype/test-pr_test.c: New file.
64837         * tests/unictype/test-predicate-part1.h: New file.
64838         * tests/unictype/test-predicate-part2.h: New file.
64839         * tests/unictype/test-scripts.c: New file.
64840         * tests/unictype/test-sy_c_ident.c: New file.
64841         * tests/unictype/test-sy_java_ident.c: New file.
64842
64843         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
64844         for Unicode 5.0.0.
64845         * tests/unictype/test-categ_Cc.c: Likewise.
64846         * tests/unictype/test-categ_Cf.c: Likewise.
64847         * tests/unictype/test-categ_Cn.c: Likewise.
64848         * tests/unictype/test-categ_Co.c: Likewise.
64849         * tests/unictype/test-categ_Cs.c: Likewise.
64850         * tests/unictype/test-categ_L.c: Likewise.
64851         * tests/unictype/test-categ_Ll.c: Likewise.
64852         * tests/unictype/test-categ_Lm.c: Likewise.
64853         * tests/unictype/test-categ_Lo.c: Likewise.
64854         * tests/unictype/test-categ_Lt.c: Likewise.
64855         * tests/unictype/test-categ_Lu.c: Likewise.
64856         * tests/unictype/test-categ_M.c: Likewise.
64857         * tests/unictype/test-categ_Mc.c: Likewise.
64858         * tests/unictype/test-categ_Me.c: Likewise.
64859         * tests/unictype/test-categ_Mn.c: Likewise.
64860         * tests/unictype/test-categ_N.c: Likewise.
64861         * tests/unictype/test-categ_Nd.c: Likewise.
64862         * tests/unictype/test-categ_Nl.c: Likewise.
64863         * tests/unictype/test-categ_No.c: Likewise.
64864         * tests/unictype/test-categ_P.c: Likewise.
64865         * tests/unictype/test-categ_Pc.c: Likewise.
64866         * tests/unictype/test-categ_Pd.c: Likewise.
64867         * tests/unictype/test-categ_Pe.c: Likewise.
64868         * tests/unictype/test-categ_Pf.c: Likewise.
64869         * tests/unictype/test-categ_Pi.c: Likewise.
64870         * tests/unictype/test-categ_Po.c: Likewise.
64871         * tests/unictype/test-categ_Ps.c: Likewise.
64872         * tests/unictype/test-categ_S.c: Likewise.
64873         * tests/unictype/test-categ_Sc.c: Likewise.
64874         * tests/unictype/test-categ_Sk.c: Likewise.
64875         * tests/unictype/test-categ_Sm.c: Likewise.
64876         * tests/unictype/test-categ_So.c: Likewise.
64877         * tests/unictype/test-categ_Z.c: Likewise.
64878         * tests/unictype/test-categ_Zl.c: Likewise.
64879         * tests/unictype/test-categ_Zp.c: Likewise.
64880         * tests/unictype/test-categ_Zs.c: Likewise.
64881         * tests/unictype/test-ctype_alnum.c: Likewise.
64882         * tests/unictype/test-ctype_alpha.c: Likewise.
64883         * tests/unictype/test-ctype_blank.c: Likewise.
64884         * tests/unictype/test-ctype_cntrl.c: Likewise.
64885         * tests/unictype/test-ctype_digit.c: Likewise.
64886         * tests/unictype/test-ctype_graph.c: Likewise.
64887         * tests/unictype/test-ctype_lower.c: Likewise.
64888         * tests/unictype/test-ctype_print.c: Likewise.
64889         * tests/unictype/test-ctype_punct.c: Likewise.
64890         * tests/unictype/test-ctype_space.c: Likewise.
64891         * tests/unictype/test-ctype_upper.c: Likewise.
64892         * tests/unictype/test-ctype_xdigit.c: Likewise.
64893         * tests/unictype/test-decdigit.h: Likewise.
64894         * tests/unictype/test-digit.h: Likewise.
64895         * tests/unictype/test-numeric.h: Likewise.
64896         * tests/unictype/test-pr_alphabetic.c: Likewise.
64897         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
64898         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
64899         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
64900         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
64901         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
64902         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
64903         * tests/unictype/test-pr_bidi_control.c: Likewise.
64904         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
64905         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
64906         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
64907         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
64908         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
64909         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
64910         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
64911         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
64912         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
64913         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
64914         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
64915         * tests/unictype/test-pr_combining.c: Likewise.
64916         * tests/unictype/test-pr_composite.c: Likewise.
64917         * tests/unictype/test-pr_currency_symbol.c: Likewise.
64918         * tests/unictype/test-pr_dash.c: Likewise.
64919         * tests/unictype/test-pr_decimal_digit.c: Likewise.
64920         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
64921         * tests/unictype/test-pr_deprecated.c: Likewise.
64922         * tests/unictype/test-pr_diacritic.c: Likewise.
64923         * tests/unictype/test-pr_extender.c: Likewise.
64924         * tests/unictype/test-pr_format_control.c: Likewise.
64925         * tests/unictype/test-pr_grapheme_base.c: Likewise.
64926         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
64927         * tests/unictype/test-pr_grapheme_link.c: Likewise.
64928         * tests/unictype/test-pr_hex_digit.c: Likewise.
64929         * tests/unictype/test-pr_hyphen.c: Likewise.
64930         * tests/unictype/test-pr_id_continue.c: Likewise.
64931         * tests/unictype/test-pr_id_start.c: Likewise.
64932         * tests/unictype/test-pr_ideographic.c: Likewise.
64933         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
64934         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
64935         * tests/unictype/test-pr_ignorable_control.c: Likewise.
64936         * tests/unictype/test-pr_iso_control.c: Likewise.
64937         * tests/unictype/test-pr_join_control.c: Likewise.
64938         * tests/unictype/test-pr_left_of_pair.c: Likewise.
64939         * tests/unictype/test-pr_line_separator.c: Likewise.
64940         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
64941         * tests/unictype/test-pr_lowercase.c: Likewise.
64942         * tests/unictype/test-pr_math.c: Likewise.
64943         * tests/unictype/test-pr_non_break.c: Likewise.
64944         * tests/unictype/test-pr_not_a_character.c: Likewise.
64945         * tests/unictype/test-pr_numeric.c: Likewise.
64946         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
64947         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
64948         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
64949         * tests/unictype/test-pr_other_id_continue.c: Likewise.
64950         * tests/unictype/test-pr_other_id_start.c: Likewise.
64951         * tests/unictype/test-pr_other_lowercase.c: Likewise.
64952         * tests/unictype/test-pr_other_math.c: Likewise.
64953         * tests/unictype/test-pr_other_uppercase.c: Likewise.
64954         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
64955         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
64956         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
64957         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
64958         * tests/unictype/test-pr_private_use.c: Likewise.
64959         * tests/unictype/test-pr_punctuation.c: Likewise.
64960         * tests/unictype/test-pr_quotation_mark.c: Likewise.
64961         * tests/unictype/test-pr_radical.c: Likewise.
64962         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
64963         * tests/unictype/test-pr_soft_dotted.c: Likewise.
64964         * tests/unictype/test-pr_space.c: Likewise.
64965         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
64966         * tests/unictype/test-pr_titlecase.c: Likewise.
64967         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
64968         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
64969         * tests/unictype/test-pr_uppercase.c: Likewise.
64970         * tests/unictype/test-pr_variation_selector.c: Likewise.
64971         * tests/unictype/test-pr_white_space.c: Likewise.
64972         * tests/unictype/test-pr_xid_continue.c: Likewise.
64973         * tests/unictype/test-pr_xid_start.c: Likewise.
64974         * tests/unictype/test-pr_zero_width.c: Likewise.
64975         * tests/unictype/test-sy_c_whitespace.c: Likewise.
64976         * tests/unictype/test-sy_java_whitespace.c: Likewise.
64977
64978 2007-11-12  Bruno Haible  <bruno@clisp.org>
64979
64980         Unicode character classification functions.
64981         * lib/unictype.h: New file.
64982         * modules/unictype/base: New file.
64983         * modules/unictype/category-L: New file.
64984         * modules/unictype/category-Lu: New file.
64985         * modules/unictype/category-Ll: New file.
64986         * modules/unictype/category-Lt: New file.
64987         * modules/unictype/category-Lm: New file.
64988         * modules/unictype/category-Lo: New file.
64989         * modules/unictype/category-M: New file.
64990         * modules/unictype/category-Mn: New file.
64991         * modules/unictype/category-Mc: New file.
64992         * modules/unictype/category-Me: New file.
64993         * modules/unictype/category-N: New file.
64994         * modules/unictype/category-Nd: New file.
64995         * modules/unictype/category-Nl: New file.
64996         * modules/unictype/category-No: New file.
64997         * modules/unictype/category-P: New file.
64998         * modules/unictype/category-Pc: New file.
64999         * modules/unictype/category-Pd: New file.
65000         * modules/unictype/category-Ps: New file.
65001         * modules/unictype/category-Pe: New file.
65002         * modules/unictype/category-Pi: New file.
65003         * modules/unictype/category-Pf: New file.
65004         * modules/unictype/category-Po: New file.
65005         * modules/unictype/category-S: New file.
65006         * modules/unictype/category-Sm: New file.
65007         * modules/unictype/category-Sc: New file.
65008         * modules/unictype/category-Sk: New file.
65009         * modules/unictype/category-So: New file.
65010         * modules/unictype/category-Z: New file.
65011         * modules/unictype/category-Zs: New file.
65012         * modules/unictype/category-Zl: New file.
65013         * modules/unictype/category-Zp: New file.
65014         * modules/unictype/category-C: New file.
65015         * modules/unictype/category-Cc: New file.
65016         * modules/unictype/category-Cf: New file.
65017         * modules/unictype/category-Cs: New file.
65018         * modules/unictype/category-Co: New file.
65019         * modules/unictype/category-Cn: New file.
65020         * modules/unictype/category-or: New file.
65021         * modules/unictype/category-of: New file.
65022         * modules/unictype/category-test: New file.
65023         * modules/unictype/category-test-withtable: New file.
65024         * modules/unictype/category-byname: New file.
65025         * modules/unictype/category-none: New file.
65026         * modules/unictype/category-and: New file.
65027         * modules/unictype/category-and-not: New file.
65028         * modules/unictype/category-name: New file.
65029         * modules/unictype/combining-class: New file.
65030         * modules/unictype/category-all: New file.
65031         * modules/unictype/bidicategory-all: New file.
65032         * modules/unictype/bidicategory-byname: New file.
65033         * modules/unictype/bidicategory-name: New file.
65034         * modules/unictype/bidicategory-of: New file.
65035         * modules/unictype/bidicategory-test: New file.
65036         * modules/unictype/decimal-digit: New file.
65037         * modules/unictype/digit: New file.
65038         * modules/unictype/numeric: New file.
65039         * modules/unictype/mirror: New file.
65040         * modules/unictype/property-white-space: New file.
65041         * modules/unictype/property-alphabetic: New file.
65042         * modules/unictype/property-other-alphabetic: New file.
65043         * modules/unictype/property-not-a-character: New file.
65044         * modules/unictype/property-default-ignorable-code-point: New file.
65045         * modules/unictype/property-other-default-ignorable-code-point: New
65046         file.
65047         * modules/unictype/property-deprecated: New file.
65048         * modules/unictype/property-logical-order-exception: New file.
65049         * modules/unictype/property-variation-selector: New file.
65050         * modules/unictype/property-private-use: New file.
65051         * modules/unictype/property-unassigned-code-value: New file.
65052         * modules/unictype/property-uppercase: New file.
65053         * modules/unictype/property-other-uppercase: New file.
65054         * modules/unictype/property-lowercase: New file.
65055         * modules/unictype/property-other-lowercase: New file.
65056         * modules/unictype/property-titlecase: New file.
65057         * modules/unictype/property-soft-dotted: New file.
65058         * modules/unictype/property-id-start: New file.
65059         * modules/unictype/property-other-id-start: New file.
65060         * modules/unictype/property-id-continue: New file.
65061         * modules/unictype/property-other-id-continue: New file.
65062         * modules/unictype/property-xid-start: New file.
65063         * modules/unictype/property-xid-continue: New file.
65064         * modules/unictype/property-pattern-white-space: New file.
65065         * modules/unictype/property-pattern-syntax: New file.
65066         * modules/unictype/property-join-control: New file.
65067         * modules/unictype/property-grapheme-base: New file.
65068         * modules/unictype/property-grapheme-extend: New file.
65069         * modules/unictype/property-other-grapheme-extend: New file.
65070         * modules/unictype/property-grapheme-link: New file.
65071         * modules/unictype/property-bidi-control: New file.
65072         * modules/unictype/property-bidi-left-to-right: New file.
65073         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
65074         * modules/unictype/property-bidi-arabic-right-to-left: New file.
65075         * modules/unictype/property-bidi-european-digit: New file.
65076         * modules/unictype/property-bidi-eur-num-separator: New file.
65077         * modules/unictype/property-bidi-eur-num-terminator: New file.
65078         * modules/unictype/property-bidi-arabic-digit: New file.
65079         * modules/unictype/property-bidi-common-separator: New file.
65080         * modules/unictype/property-bidi-block-separator: New file.
65081         * modules/unictype/property-bidi-segment-separator: New file.
65082         * modules/unictype/property-bidi-whitespace: New file.
65083         * modules/unictype/property-bidi-non-spacing-mark: New file.
65084         * modules/unictype/property-bidi-boundary-neutral: New file.
65085         * modules/unictype/property-bidi-pdf: New file.
65086         * modules/unictype/property-bidi-embedding-or-override: New file.
65087         * modules/unictype/property-bidi-other-neutral: New file.
65088         * modules/unictype/property-hex-digit: New file.
65089         * modules/unictype/property-ascii-hex-digit: New file.
65090         * modules/unictype/property-ideographic: New file.
65091         * modules/unictype/property-unified-ideograph: New file.
65092         * modules/unictype/property-radical: New file.
65093         * modules/unictype/property-ids-binary-operator: New file.
65094         * modules/unictype/property-ids-trinary-operator: New file.
65095         * modules/unictype/property-zero-width: New file.
65096         * modules/unictype/property-space: New file.
65097         * modules/unictype/property-non-break: New file.
65098         * modules/unictype/property-iso-control: New file.
65099         * modules/unictype/property-format-control: New file.
65100         * modules/unictype/property-dash: New file.
65101         * modules/unictype/property-hyphen: New file.
65102         * modules/unictype/property-punctuation: New file.
65103         * modules/unictype/property-line-separator: New file.
65104         * modules/unictype/property-paragraph-separator: New file.
65105         * modules/unictype/property-quotation-mark: New file.
65106         * modules/unictype/property-sentence-terminal: New file.
65107         * modules/unictype/property-terminal-punctuation: New file.
65108         * modules/unictype/property-currency-symbol: New file.
65109         * modules/unictype/property-math: New file.
65110         * modules/unictype/property-other-math: New file.
65111         * modules/unictype/property-paired-punctuation: New file.
65112         * modules/unictype/property-left-of-pair: New file.
65113         * modules/unictype/property-combining: New file.
65114         * modules/unictype/property-composite: New file.
65115         * modules/unictype/property-decimal-digit: New file.
65116         * modules/unictype/property-numeric: New file.
65117         * modules/unictype/property-diacritic: New file.
65118         * modules/unictype/property-extender: New file.
65119         * modules/unictype/property-ignorable-control: New file.
65120         * modules/unictype/property-test: New file.
65121         * modules/unictype/property-byname: New file.
65122         * modules/unictype/property-all: New file.
65123         * modules/unictype/scripts: New file.
65124         * modules/unictype/scripts-all: New file.
65125         * modules/unictype/block-of: New file.
65126         * modules/unictype/block-test: New file.
65127         * modules/unictype/block-list: New file.
65128         * modules/unictype/block-all: New file.
65129         * modules/unictype/syntax-c-whitespace: New file.
65130         * modules/unictype/syntax-java-whitespace: New file.
65131         * modules/unictype/syntax-c-ident: New file.
65132         * modules/unictype/syntax-java-ident: New file.
65133         * modules/unictype/ctype-alnum: New file.
65134         * modules/unictype/ctype-alpha: New file.
65135         * modules/unictype/ctype-cntrl: New file.
65136         * modules/unictype/ctype-digit: New file.
65137         * modules/unictype/ctype-graph: New file.
65138         * modules/unictype/ctype-lower: New file.
65139         * modules/unictype/ctype-print: New file.
65140         * modules/unictype/ctype-punct: New file.
65141         * modules/unictype/ctype-space: New file.
65142         * modules/unictype/ctype-upper: New file.
65143         * modules/unictype/ctype-xdigit: New file.
65144         * modules/unictype/ctype-blank: New file.
65145         * lib/unictype/bidi_byname.c: New file.
65146         * lib/unictype/bidi_name.c: New file.
65147         * lib/unictype/bidi_of.c: New file.
65148         * lib/unictype/bidi_test.c: New file.
65149         * lib/unictype/bitmap.h: New file.
65150         * lib/unictype/block_test.c: New file.
65151         * lib/unictype/blocks.c: New file.
65152         * lib/unictype/categ_C.c: New file.
65153         * lib/unictype/categ_Cc.c: New file.
65154         * lib/unictype/categ_Cf.c: New file.
65155         * lib/unictype/categ_Cn.c: New file.
65156         * lib/unictype/categ_Co.c: New file.
65157         * lib/unictype/categ_Cs.c: New file.
65158         * lib/unictype/categ_L.c: New file.
65159         * lib/unictype/categ_Ll.c: New file.
65160         * lib/unictype/categ_Lm.c: New file.
65161         * lib/unictype/categ_Lo.c: New file.
65162         * lib/unictype/categ_Lt.c: New file.
65163         * lib/unictype/categ_Lu.c: New file.
65164         * lib/unictype/categ_M.c: New file.
65165         * lib/unictype/categ_Mc.c: New file.
65166         * lib/unictype/categ_Me.c: New file.
65167         * lib/unictype/categ_Mn.c: New file.
65168         * lib/unictype/categ_N.c: New file.
65169         * lib/unictype/categ_Nd.c: New file.
65170         * lib/unictype/categ_Nl.c: New file.
65171         * lib/unictype/categ_No.c: New file.
65172         * lib/unictype/categ_P.c: New file.
65173         * lib/unictype/categ_Pc.c: New file.
65174         * lib/unictype/categ_Pd.c: New file.
65175         * lib/unictype/categ_Pe.c: New file.
65176         * lib/unictype/categ_Pf.c: New file.
65177         * lib/unictype/categ_Pi.c: New file.
65178         * lib/unictype/categ_Po.c: New file.
65179         * lib/unictype/categ_Ps.c: New file.
65180         * lib/unictype/categ_S.c: New file.
65181         * lib/unictype/categ_Sc.c: New file.
65182         * lib/unictype/categ_Sk.c: New file.
65183         * lib/unictype/categ_Sm.c: New file.
65184         * lib/unictype/categ_So.c: New file.
65185         * lib/unictype/categ_Z.c: New file.
65186         * lib/unictype/categ_Zl.c: New file.
65187         * lib/unictype/categ_Zp.c: New file.
65188         * lib/unictype/categ_Zs.c: New file.
65189         * lib/unictype/categ_and.c: New file.
65190         * lib/unictype/categ_and_not.c: New file.
65191         * lib/unictype/categ_byname.c: New file.
65192         * lib/unictype/categ_name.c: New file.
65193         * lib/unictype/categ_none.c: New file.
65194         * lib/unictype/categ_of.c: New file.
65195         * lib/unictype/categ_or.c: New file.
65196         * lib/unictype/categ_test.c: New file.
65197         * lib/unictype/combining.c: New file.
65198         * lib/unictype/ctype_alnum.c: New file.
65199         * lib/unictype/ctype_alpha.c: New file.
65200         * lib/unictype/ctype_blank.c: New file.
65201         * lib/unictype/ctype_cntrl.c: New file.
65202         * lib/unictype/ctype_digit.c: New file.
65203         * lib/unictype/ctype_graph.c: New file.
65204         * lib/unictype/ctype_lower.c: New file.
65205         * lib/unictype/ctype_print.c: New file.
65206         * lib/unictype/ctype_punct.c: New file.
65207         * lib/unictype/ctype_space.c: New file.
65208         * lib/unictype/ctype_upper.c: New file.
65209         * lib/unictype/ctype_xdigit.c: New file.
65210         * lib/unictype/decdigit.c: New file.
65211         * lib/unictype/digit.c: New file.
65212         * lib/unictype/identsyntaxmap.h: New file.
65213         * lib/unictype/mirror.c: New file.
65214         * lib/unictype/numeric.c: New file.
65215         * lib/unictype/pr_alphabetic.c: New file.
65216         * lib/unictype/pr_ascii_hex_digit.c: New file.
65217         * lib/unictype/pr_bidi_arabic_digit.c: New file.
65218         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
65219         * lib/unictype/pr_bidi_block_separator.c: New file.
65220         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
65221         * lib/unictype/pr_bidi_common_separator.c: New file.
65222         * lib/unictype/pr_bidi_control.c: New file.
65223         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
65224         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
65225         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
65226         * lib/unictype/pr_bidi_european_digit.c: New file.
65227         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
65228         * lib/unictype/pr_bidi_left_to_right.c: New file.
65229         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
65230         * lib/unictype/pr_bidi_other_neutral.c: New file.
65231         * lib/unictype/pr_bidi_pdf.c: New file.
65232         * lib/unictype/pr_bidi_segment_separator.c: New file.
65233         * lib/unictype/pr_bidi_whitespace.c: New file.
65234         * lib/unictype/pr_byname.c: New file.
65235         * lib/unictype/pr_byname.gperf: New file.
65236         * lib/unictype/pr_combining.c: New file.
65237         * lib/unictype/pr_composite.c: New file.
65238         * lib/unictype/pr_currency_symbol.c: New file.
65239         * lib/unictype/pr_dash.c: New file.
65240         * lib/unictype/pr_decimal_digit.c: New file.
65241         * lib/unictype/pr_default_ignorable_code_point.c: New file.
65242         * lib/unictype/pr_deprecated.c: New file.
65243         * lib/unictype/pr_diacritic.c: New file.
65244         * lib/unictype/pr_extender.c: New file.
65245         * lib/unictype/pr_format_control.c: New file.
65246         * lib/unictype/pr_grapheme_base.c: New file.
65247         * lib/unictype/pr_grapheme_extend.c: New file.
65248         * lib/unictype/pr_grapheme_link.c: New file.
65249         * lib/unictype/pr_hex_digit.c: New file.
65250         * lib/unictype/pr_hyphen.c: New file.
65251         * lib/unictype/pr_id_continue.c: New file.
65252         * lib/unictype/pr_id_start.c: New file.
65253         * lib/unictype/pr_ideographic.c: New file.
65254         * lib/unictype/pr_ids_binary_operator.c: New file.
65255         * lib/unictype/pr_ids_trinary_operator.c: New file.
65256         * lib/unictype/pr_ignorable_control.c: New file.
65257         * lib/unictype/pr_iso_control.c: New file.
65258         * lib/unictype/pr_join_control.c: New file.
65259         * lib/unictype/pr_left_of_pair.c: New file.
65260         * lib/unictype/pr_line_separator.c: New file.
65261         * lib/unictype/pr_logical_order_exception.c: New file.
65262         * lib/unictype/pr_lowercase.c: New file.
65263         * lib/unictype/pr_math.c: New file.
65264         * lib/unictype/pr_non_break.c: New file.
65265         * lib/unictype/pr_not_a_character.c: New file.
65266         * lib/unictype/pr_numeric.c: New file.
65267         * lib/unictype/pr_other_alphabetic.c: New file.
65268         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
65269         * lib/unictype/pr_other_grapheme_extend.c: New file.
65270         * lib/unictype/pr_other_id_continue.c: New file.
65271         * lib/unictype/pr_other_id_start.c: New file.
65272         * lib/unictype/pr_other_lowercase.c: New file.
65273         * lib/unictype/pr_other_math.c: New file.
65274         * lib/unictype/pr_other_uppercase.c: New file.
65275         * lib/unictype/pr_paired_punctuation.c: New file.
65276         * lib/unictype/pr_paragraph_separator.c: New file.
65277         * lib/unictype/pr_pattern_syntax.c: New file.
65278         * lib/unictype/pr_pattern_white_space.c: New file.
65279         * lib/unictype/pr_private_use.c: New file.
65280         * lib/unictype/pr_punctuation.c: New file.
65281         * lib/unictype/pr_quotation_mark.c: New file.
65282         * lib/unictype/pr_radical.c: New file.
65283         * lib/unictype/pr_sentence_terminal.c: New file.
65284         * lib/unictype/pr_soft_dotted.c: New file.
65285         * lib/unictype/pr_space.c: New file.
65286         * lib/unictype/pr_terminal_punctuation.c: New file.
65287         * lib/unictype/pr_test.c: New file.
65288         * lib/unictype/pr_titlecase.c: New file.
65289         * lib/unictype/pr_unassigned_code_value.c: New file.
65290         * lib/unictype/pr_unified_ideograph.c: New file.
65291         * lib/unictype/pr_uppercase.c: New file.
65292         * lib/unictype/pr_variation_selector.c: New file.
65293         * lib/unictype/pr_white_space.c: New file.
65294         * lib/unictype/pr_xid_continue.c: New file.
65295         * lib/unictype/pr_xid_start.c: New file.
65296         * lib/unictype/pr_zero_width.c: New file.
65297         * lib/unictype/scripts.c: New file.
65298         * lib/unictype/sy_c_ident.c: New file.
65299         * lib/unictype/sy_c_whitespace.c: New file.
65300         * lib/unictype/sy_java_ident.c: New file.
65301         * lib/unictype/sy_java_whitespace.c: New file.
65302
65303         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
65304         Unicode 5.0.0.
65305         * lib/unictype/blocks.h: Likewise.
65306         * lib/unictype/categ_C.h: Likewise.
65307         * lib/unictype/categ_Cc.h: Likewise.
65308         * lib/unictype/categ_Cf.h: Likewise.
65309         * lib/unictype/categ_Cn.h: Likewise.
65310         * lib/unictype/categ_Co.h: Likewise.
65311         * lib/unictype/categ_Cs.h: Likewise.
65312         * lib/unictype/categ_L.h: Likewise.
65313         * lib/unictype/categ_Ll.h: Likewise.
65314         * lib/unictype/categ_Lm.h: Likewise.
65315         * lib/unictype/categ_Lo.h: Likewise.
65316         * lib/unictype/categ_Lt.h: Likewise.
65317         * lib/unictype/categ_Lu.h: Likewise.
65318         * lib/unictype/categ_M.h: Likewise.
65319         * lib/unictype/categ_Mc.h: Likewise.
65320         * lib/unictype/categ_Me.h: Likewise.
65321         * lib/unictype/categ_Mn.h: Likewise.
65322         * lib/unictype/categ_N.h: Likewise.
65323         * lib/unictype/categ_Nd.h: Likewise.
65324         * lib/unictype/categ_Nl.h: Likewise.
65325         * lib/unictype/categ_No.h: Likewise.
65326         * lib/unictype/categ_P.h: Likewise.
65327         * lib/unictype/categ_Pc.h: Likewise.
65328         * lib/unictype/categ_Pd.h: Likewise.
65329         * lib/unictype/categ_Pe.h: Likewise.
65330         * lib/unictype/categ_Pf.h: Likewise.
65331         * lib/unictype/categ_Pi.h: Likewise.
65332         * lib/unictype/categ_Po.h: Likewise.
65333         * lib/unictype/categ_Ps.h: Likewise.
65334         * lib/unictype/categ_S.h: Likewise.
65335         * lib/unictype/categ_Sc.h: Likewise.
65336         * lib/unictype/categ_Sk.h: Likewise.
65337         * lib/unictype/categ_Sm.h: Likewise.
65338         * lib/unictype/categ_So.h: Likewise.
65339         * lib/unictype/categ_Z.h: Likewise.
65340         * lib/unictype/categ_Zl.h: Likewise.
65341         * lib/unictype/categ_Zp.h: Likewise.
65342         * lib/unictype/categ_Zs.h: Likewise.
65343         * lib/unictype/categ_of.h: Likewise.
65344         * lib/unictype/combining.h: Likewise.
65345         * lib/unictype/ctype_alnum.h: Likewise.
65346         * lib/unictype/ctype_alpha.h: Likewise.
65347         * lib/unictype/ctype_blank.h: Likewise.
65348         * lib/unictype/ctype_cntrl.h: Likewise.
65349         * lib/unictype/ctype_digit.h: Likewise.
65350         * lib/unictype/ctype_graph.h: Likewise.
65351         * lib/unictype/ctype_lower.h: Likewise.
65352         * lib/unictype/ctype_print.h: Likewise.
65353         * lib/unictype/ctype_punct.h: Likewise.
65354         * lib/unictype/ctype_space.h: Likewise.
65355         * lib/unictype/ctype_upper.h: Likewise.
65356         * lib/unictype/ctype_xdigit.h: Likewise.
65357         * lib/unictype/decdigit.h: Likewise.
65358         * lib/unictype/digit.h: Likewise.
65359         * lib/unictype/mirror.h: Likewise.
65360         * lib/unictype/numeric.h: Likewise.
65361         * lib/unictype/pr_alphabetic.h: Likewise.
65362         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
65363         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
65364         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
65365         * lib/unictype/pr_bidi_block_separator.h: Likewise.
65366         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
65367         * lib/unictype/pr_bidi_common_separator.h: Likewise.
65368         * lib/unictype/pr_bidi_control.h: Likewise.
65369         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
65370         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
65371         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
65372         * lib/unictype/pr_bidi_european_digit.h: Likewise.
65373         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
65374         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
65375         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
65376         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
65377         * lib/unictype/pr_bidi_pdf.h: Likewise.
65378         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
65379         * lib/unictype/pr_bidi_whitespace.h: Likewise.
65380         * lib/unictype/pr_combining.h: Likewise.
65381         * lib/unictype/pr_composite.h: Likewise.
65382         * lib/unictype/pr_currency_symbol.h: Likewise.
65383         * lib/unictype/pr_dash.h: Likewise.
65384         * lib/unictype/pr_decimal_digit.h: Likewise.
65385         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
65386         * lib/unictype/pr_deprecated.h: Likewise.
65387         * lib/unictype/pr_diacritic.h: Likewise.
65388         * lib/unictype/pr_extender.h: Likewise.
65389         * lib/unictype/pr_format_control.h: Likewise.
65390         * lib/unictype/pr_grapheme_base.h: Likewise.
65391         * lib/unictype/pr_grapheme_extend.h: Likewise.
65392         * lib/unictype/pr_grapheme_link.h: Likewise.
65393         * lib/unictype/pr_hex_digit.h: Likewise.
65394         * lib/unictype/pr_hyphen.h: Likewise.
65395         * lib/unictype/pr_id_continue.h: Likewise.
65396         * lib/unictype/pr_id_start.h: Likewise.
65397         * lib/unictype/pr_ideographic.h: Likewise.
65398         * lib/unictype/pr_ids_binary_operator.h: Likewise.
65399         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
65400         * lib/unictype/pr_ignorable_control.h: Likewise.
65401         * lib/unictype/pr_iso_control.h: Likewise.
65402         * lib/unictype/pr_join_control.h: Likewise.
65403         * lib/unictype/pr_left_of_pair.h: Likewise.
65404         * lib/unictype/pr_line_separator.h: Likewise.
65405         * lib/unictype/pr_logical_order_exception.h: Likewise.
65406         * lib/unictype/pr_lowercase.h: Likewise.
65407         * lib/unictype/pr_math.h: Likewise.
65408         * lib/unictype/pr_non_break.h: Likewise.
65409         * lib/unictype/pr_not_a_character.h: Likewise.
65410         * lib/unictype/pr_numeric.h: Likewise.
65411         * lib/unictype/pr_other_alphabetic.h: Likewise.
65412         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
65413         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
65414         * lib/unictype/pr_other_id_continue.h: Likewise.
65415         * lib/unictype/pr_other_id_start.h: Likewise.
65416         * lib/unictype/pr_other_lowercase.h: Likewise.
65417         * lib/unictype/pr_other_math.h: Likewise.
65418         * lib/unictype/pr_other_uppercase.h: Likewise.
65419         * lib/unictype/pr_paired_punctuation.h: Likewise.
65420         * lib/unictype/pr_paragraph_separator.h: Likewise.
65421         * lib/unictype/pr_pattern_syntax.h: Likewise.
65422         * lib/unictype/pr_pattern_white_space.h: Likewise.
65423         * lib/unictype/pr_private_use.h: Likewise.
65424         * lib/unictype/pr_punctuation.h: Likewise.
65425         * lib/unictype/pr_quotation_mark.h: Likewise.
65426         * lib/unictype/pr_radical.h: Likewise.
65427         * lib/unictype/pr_sentence_terminal.h: Likewise.
65428         * lib/unictype/pr_soft_dotted.h: Likewise.
65429         * lib/unictype/pr_space.h: Likewise.
65430         * lib/unictype/pr_terminal_punctuation.h: Likewise.
65431         * lib/unictype/pr_titlecase.h: Likewise.
65432         * lib/unictype/pr_unassigned_code_value.h: Likewise.
65433         * lib/unictype/pr_unified_ideograph.h: Likewise.
65434         * lib/unictype/pr_uppercase.h: Likewise.
65435         * lib/unictype/pr_variation_selector.h: Likewise.
65436         * lib/unictype/pr_white_space.h: Likewise.
65437         * lib/unictype/pr_xid_continue.h: Likewise.
65438         * lib/unictype/pr_xid_start.h: Likewise.
65439         * lib/unictype/pr_zero_width.h: Likewise.
65440         * lib/unictype/scripts.h: Likewise.
65441         * lib/unictype/scripts_byname.gperf: Likewise.
65442         * lib/unictype/sy_c_ident.h: Likewise.
65443         * lib/unictype/sy_c_whitespace.h: Likewise.
65444         * lib/unictype/sy_java_ident.h: Likewise.
65445         * lib/unictype/sy_java_whitespace.h: Likewise.
65446
65447         * lib/unictype/Makefile: New file.
65448         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
65449         glibc.
65450         * lib/unictype/3level.h: New file, copied from glibc.
65451         * lib/unictype/3levelbit.h: New file.
65452
65453 2007-11-11  Bruno Haible  <bruno@clisp.org>
65454
65455         * modules/gperf: New file.
65456         * modules/iconv_open (Depends-on): Add it.
65457         (Makefile.am): Remove the GPERF definition.
65458
65459 2007-11-11  Bruno Haible  <bruno@clisp.org>
65460
65461         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
65462         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
65463
65464 2007-11-11  Bruno Haible  <bruno@clisp.org>
65465
65466         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
65467         (usage): Remove function.
65468
65469 2007-11-11  Bruno Haible  <bruno@clisp.org>
65470
65471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
65472         gl_FUNC_CEILF_LIBS.
65473         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
65474         gl_FUNC_CEIL_LIBS.
65475         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
65476         gl_FUNC_CEILL_LIBS.
65477         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
65478         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
65479         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
65480
65481 2007-11-11  Bruno Haible  <bruno@clisp.org>
65482
65483         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
65484         roundf were declared but do not exist on functions.
65485         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
65486         roundl were declared but do not exist on functions.
65487         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
65488         HAVE_FLOORL_AND_CEILL, respectively.
65489         Needed for Sun C on Solaris 10.
65490
65491 2007-11-11  Bruno Haible  <bruno@clisp.org>
65492
65493         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
65494         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
65495         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
65496         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
65497         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
65498         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
65499         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
65500         HAVE_DECL_ROUNDF.
65501         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
65502         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
65503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
65504         of HAVE_DECL_ROUND*.
65505         * modules/math (Makefile.am): Update.
65506
65507 2007-11-10  Bruno Haible  <bruno@clisp.org>
65508
65509         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
65510         ptrdiff_t as m4/intl.m4.
65511
65512 2007-11-10  Jim Meyering  <meyering@redhat.com>
65513
65514         Avoid link failure for the argmatch test.
65515         * tests/test-argmatch.c (usage): Define function to avoid a link
65516         failure: argmatch_die requires a usage function.
65517
65518 2007-11-09  Bruno Haible  <bruno@clisp.org>
65519
65520         * doc/functions/snprintf.texi: Mention BeOS deficiency.
65521         * doc/functions/vsnprintf.texi: Likewise.
65522         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
65523         with a size argument < 2.
65524
65525 2007-11-09  Bruno Haible  <bruno@clisp.org>
65526
65527         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
65528         buffer. Fixes an inefficiency introduced on 2007-11-03.
65529
65530 2007-11-09  Bruno Haible  <bruno@clisp.org>
65531
65532         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
65533         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
65534
65535 2007-11-08  Jim Meyering  <meyering@redhat.com>
65536
65537         Change cache variable name prefix "jm_" to "gl_" everywhere.
65538         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
65539         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
65540         * m4/uptime.m4: s/gl_/jm_/
65541
65542 2007-11-07  Bruno Haible  <bruno@clisp.org>
65543
65544         Update to GNU gettext 0.17.
65545         * m4/intl.m4: Update to GNU gettext 0.17.
65546         * m4/po.m4: Likewise.
65547         * modules/gettext (Files): Remove m4/ulonglong.m4.
65548         (configure.ac): Require gettext infrastructure from version 0.17.
65549
65550 2007-11-06  Bruno Haible  <bruno@clisp.org>
65551
65552         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
65553         symbolic values are not defined in a public header.
65554         * lib/freadable.c (freadable) [QNX]: Likewise.
65555         * lib/freadahead.c (freadahead) [QNX]: Likewise.
65556         * lib/freading.c (freading) [QNX]: Likewise.
65557         * lib/fseterr.c (fseterr) [QNX]: Likewise.
65558         * lib/fwritable.c (fwritable) [QNX]: Likewise.
65559         * lib/fwriting.c (fwriting) [QNX]: Likewise.
65560         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
65561         Reported by Alain Magloire.
65562
65563         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
65564
65565 2007-11-05  Bruno Haible  <bruno@clisp.org>
65566
65567         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
65568         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
65569         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
65570         Reported by Eric Blake.
65571
65572 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65573             Bruno Haible  <bruno@clisp.org>
65574
65575         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
65576         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
65577         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
65578         (malloc): Undefine also before including <stdlib.h>.
65579         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
65580         Needed on OSF/1 4.0.
65581
65582 2007-11-05  Jim Meyering  <meyering@redhat.com>
65583
65584         git-version-gen: sync from coreutils.
65585         * build-aux/git-version-gen: Add comments.
65586         Change the first '-' to '.' in the snapshot version string,
65587         e.g., 6.9-377-08144 -> 6.9.377-08144
65588         Remove first parameter.
65589         Don't declare a version "-dirty" merely because a time
65590         stamp has changed.
65591
65592 2007-11-04  Bruno Haible  <bruno@clisp.org>
65593
65594         * lib/lock.h: Protect all macro definitions containing an 'if'
65595         statement through a "do { ... } while (0)".
65596         * lib/tls.h: Likewise.
65597
65598 2007-11-04  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
65601
65602 2007-11-04  Bruno Haible  <bruno@clisp.org>
65603
65604         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
65605         * modules/fprintf-posix (Depends-on): Add nocrash.
65606         * modules/snprintf-posix (Depends-on): Likewise.
65607         * modules/sprintf-posix (Depends-on): Likewise.
65608         * modules/vasnprintf-posix (Depends-on): Likewise.
65609         * modules/vasprintf-posix (Depends-on): Likewise.
65610         * modules/vfprintf-posix (Depends-on): Likewise.
65611         * modules/vsnprintf-posix (Depends-on): Likewise.
65612         * modules/vsprintf-posix (Depends-on): Likewise.
65613         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
65614         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
65615         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
65616         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
65617         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
65618         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
65619         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
65620
65621 2007-11-04  Bruno Haible  <bruno@clisp.org>
65622
65623         * modules/nocrash: New file.
65624         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
65625         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
65626
65627 2007-11-04  Bruno Haible  <bruno@clisp.org>
65628
65629         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
65630         precision handling.
65631         * tests/test-vasprintf-posix.c (test_function): Likewise.
65632         * tests/test-snprintf-posix.h (test_function): Likewise.
65633         * tests/test-sprintf-posix.h (test_function): Likewise.
65634
65635         Fix *printf behaviour for large precisions on mingw and BeOS.
65636         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
65637         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
65638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
65639         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65641         gl_PRINTF_PRECISION and test its result. Invoke
65642         gl_PREREQ_VASNPRINTF_PRECISION.
65643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65650         * doc/functions/fprintf.texi: Update.
65651         * doc/functions/printf.texi: Update.
65652         * doc/functions/snprintf.texi: Update.
65653         * doc/functions/sprintf.texi: Update.
65654         * doc/functions/vfprintf.texi: Update.
65655         * doc/functions/vprintf.texi: Update.
65656         * doc/functions/vsnprintf.texi: Update.
65657         * doc/functions/vsprintf.texi: Update.
65658
65659 2007-11-04  Bruno Haible  <bruno@clisp.org>
65660
65661         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
65662
65663 2007-11-04  Bruno Haible  <bruno@clisp.org>
65664
65665         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
65666         Reported by Sylvain Beucler <beuc@gnu.org>.
65667
65668 2007-11-03  Bruno Haible  <bruno@clisp.org>
65669
65670         * tests/test-fprintf-posix2.sh: New file.
65671         * tests/test-fprintf-posix2.c: New file.
65672         * modules/fprintf-posix-tests (Files): Add them.
65673         (TESTS): Add test-fprintf-posix2.sh.
65674         (configure.ac): Check for getrlimit and setrlimit.
65675         (check_PROGRAMS): Add test-fprintf-posix2.
65676
65677         * tests/test-printf-posix2.sh: New file.
65678         * tests/test-printf-posix2.c: New file.
65679         * modules/printf-posix-tests (Files): Add them.
65680         (TESTS): Add test-printf-posix2.sh.
65681         (configure.ac): Check for getrlimit and setrlimit.
65682         (check_PROGRAMS): Add test-printf-posix2.
65683
65684         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
65685         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
65686         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
65687         (decode_double): New function, copied from decode_long_double.
65688         (scale10_round_decimal_decoded): New function, extracted from
65689         scale10_round_decimal_long_double.
65690         (scale10_round_decimal_long_double): Use it.
65691         (scale10_round_decimal_double): New function.
65692         (floorlog10): New function.
65693         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
65694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
65695         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
65696         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65697         gl_PRINTF_ENOMEM and test its result. Invoke
65698         gl_PREREQ_VASNPRINTF_ENOMEM.
65699         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65700         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65701         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65702         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65703         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65704         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65705         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65706         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
65707         * modules/snprintf-posix (Depends-on): Likewise.
65708         * modules/sprintf-posix (Depends-on): Likewise.
65709         * modules/vasnprintf-posix (Depends-on): Likewise.
65710         * modules/vasprintf-posix (Depends-on): Likewise.
65711         * modules/vfprintf-posix (Depends-on): Likewise.
65712         * modules/vsnprintf-posix (Depends-on): Likewise.
65713         * modules/vsprintf-posix (Depends-on): Likewise.
65714         * doc/functions/fprintf.texi: Update.
65715         * doc/functions/printf.texi: Update.
65716         * doc/functions/snprintf.texi: Update.
65717         * doc/functions/sprintf.texi: Update.
65718         * doc/functions/vfprintf.texi: Update.
65719         * doc/functions/vprintf.texi: Update.
65720         * doc/functions/vsnprintf.texi: Update.
65721         * doc/functions/vsprintf.texi: Update.
65722
65723 2007-11-03  Bruno Haible  <bruno@clisp.org>
65724
65725         * modules/frexp-nolibm-tests: New file.
65726
65727         * modules/frexp-nolibm: New file.
65728         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
65729
65730 2007-11-03  Bruno Haible  <bruno@clisp.org>
65731
65732         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
65733         value is C99 compliant.
65734         Needed for OSF/1 5.1.
65735
65736 2007-11-03  Bruno Haible  <bruno@clisp.org>
65737
65738         Fix out-of-memory handling of vasnprintf.
65739         * lib/printf-parse.c: Include <errno.h>.
65740         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
65741         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
65742         is already set.
65743
65744 2007-11-02  Eric Blake  <ebb9@byu.net>
65745
65746         Fix tests on cygwin.
65747         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
65748
65749 2007-11-01  Bruno Haible  <bruno@clisp.org>
65750
65751         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
65752         warning.
65753         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
65754         needed for POSIX compatibility.
65755
65756 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
65757
65758         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
65759         for compatibility with GNU.
65760
65761 2007-11-01  Bruno Haible  <bruno@clisp.org>
65762
65763         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
65764         (putenv): Renamed from rpl_putenv. Change argument type from
65765         'const char *' to 'char *'.
65766         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
65767         of defining putenv in config.h, just set REPLACE_PUTENV.
65768         * modules/putenv (Depends-on): Add stdlib.
65769         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65770         (Include): Use <stdlib.h>.
65771         * lib/stdlib.in.h (putenv): New declaration.
65772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
65773         REPLACE_PUTENV.
65774         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
65775         REPLACE_PUTENV.
65776         Needed for MacOS X 10.5.0.
65777         Reported by Peter O'Gorman <peter@pogma.com>.
65778
65779 2007-11-01  Jim Meyering  <meyering@redhat.com>
65780
65781         Treat an empty date string exactly like "0".
65782         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
65783         if the remaining date string (to be parsed) is empty, use "0".
65784         Reported by Mischa Molhoek and discussed in this thread:
65785         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
65786
65787 2007-10-31  Bruno Haible  <bruno@clisp.org>
65788
65789         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
65790         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
65791         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
65792         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
65793         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
65794         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
65795
65796 2007-10-31  Bruno Haible  <bruno@clisp.org>
65797
65798         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
65799         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
65800         (AC_TYPE_LONG_LONG_INT): Use it.
65801         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
65802         it as well.
65803         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
65804         to m4/longlong.m4.
65805         * modules/stdint (Files): Remove m4/ulonglong.m4.
65806         * modules/strtoull (Files): Use m4/longlong.m4 instead of
65807         m4/ulonglong.m4.
65808         * modules/strtoumax (Files): Likewise.
65809
65810 2007-10-30  Bruno Haible  <bruno@clisp.org>
65811
65812         * modules/xvasprintf-posix: New file.
65813         Suggested by Eric Blake.
65814
65815 2007-10-30  Bruno Haible  <bruno@clisp.org>
65816
65817         * modules/xprintf-posix-tests: New file.
65818         * tests/test-xprintf-posix.sh: New file.
65819         * tests/test-xprintf-posix.c: New file.
65820         * tests/test-xfprintf-posix.c: New file.
65821
65822         * modules/xprintf-posix: New file.
65823
65824 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65825
65826         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
65827         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
65828         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
65829
65830 2007-10-29  Bruno Haible  <bruno@clisp.org>
65831
65832         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
65833         contain the special marker '_cv_'.
65834         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
65835         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
65836         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
65837         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
65838         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
65839         Reported by Ralf Wildenhues.
65840
65841 2007-10-29  Bruno Haible  <bruno@clisp.org>
65842
65843         * gnulib-tool (func_import): When --lgpl is not specified, set
65844         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
65845         GPLv3.
65846         Reported by Simon Josefsson.
65847
65848 2007-10-28  Bruno Haible  <bruno@clisp.org>
65849
65850         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
65851         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
65852         HAVE_DECL_ISFINITE.
65853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65854         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
65855         HAVE_DECL_ISFINITE.
65856
65857 2007-10-28  Bruno Haible  <bruno@clisp.org>
65858
65859         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
65860         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
65861
65862 2007-10-28  Bruno Haible  <bruno@clisp.org>
65863
65864         Fix link errors with Sun C 5.0 on Solaris 10.
65865         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
65866         function is declared but not present in the compiler's libm.
65867         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
65868         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
65869         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
65870         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
65871         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
65872         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
65873         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
65874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
65875         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
65876         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
65877         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
65878         HAVE_DECL_FLOORL.
65879
65880 2007-10-28  Bruno Haible  <bruno@clisp.org>
65881
65882         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
65883         gl_FUNC_FLOORL. Cache the result.
65884         (gl_FUNC_FLOORL): Use it.
65885         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
65886         gl_FUNC_CEILL. Cache the result.
65887         (gl_FUNC_CEILL): Use it.
65888
65889         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
65890         gl_FUNC_FLOOR. Cache the result.
65891         (gl_FUNC_FLOOR): Use it.
65892         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
65893         gl_FUNC_CEIL. Cache the result.
65894         (gl_FUNC_CEIL): Use it.
65895
65896         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
65897         gl_FUNC_FLOORF. Cache the result.
65898         (gl_FUNC_FLOORF): Use it.
65899         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
65900         gl_FUNC_CEILF. Cache the result.
65901         (gl_FUNC_CEILF): Use it.
65902
65903 2007-10-28  Bruno Haible  <bruno@clisp.org>
65904
65905         * gnulib-tool: Allow specifying the LGPL version number through
65906         --lgpl=2 or --lgpl=3.
65907         (func_usage): Document --lgpl with argument.
65908         Handle --lgpl=... arguments.
65909         (func_import): Recognize also gl_LGPL calls with an argument. When
65910         --lgpl=2 is used and the module's license is just LGPL, report an
65911         error. Set sed_transform_lib_file according to the lgpl variable. In
65912         the generated files, use --lgpl or gl_LGPL invocations with argument,
65913         if necessary.
65914         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
65915         an LGPv2+ license.
65916         * doc/gnulib-tool.texi (Modified imports): Update explanation of
65917         gl_LGPL macro.
65918
65919 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65920             Bruno Haible  <bruno@clisp.org>
65921
65922         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
65923         (u16_uctomb_aux): Likewise.
65924         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
65925         !HAVE_INLINE.
65926         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
65927
65928 2007-10-28  Bruno Haible  <bruno@clisp.org>
65929
65930         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
65931         Invoke AM_GETTEXT_OPTION if it exists.
65932         * modules/vasprintf: Likewise.
65933         * modules/verror: Likewise.
65934         * modules/xprintf: Likewise.
65935         * modules/xvasprintf: Likewise.
65936
65937 2007-10-27  Ben Pfaff  <blp@gnu.org>
65938
65939         * lib/math.in.h: Define isfinite macro and prototypes for
65940         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
65941         implementations.
65942         * m4/math_h.m4: New substitutions for isfinite module.
65943         * lib/isfinite.c: New file.
65944         * m4/isfinite.m4: New file.
65945         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
65946         * modules/isfinite: New file.
65947         * modules/isfinite-tests: New file.
65948         * tests/tests-isfinite.c: New file.
65949         * doc/functions/isfinite.texi: Mention isfinite module.
65950         * MODULES.html.sh: Mention new module.
65951
65952 2007-10-27  Ben Pfaff  <blp@gnu.org>
65953
65954         Ralf Wildenhues reported that Tru64 4.0D declares the round
65955         functions but does not have definitions.
65956         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
65957         cannot be found in any library, set the output variable to
65958         "missing" instead of "".
65959         * m4/round.m4: Also use our substitute if we cannot find round in
65960         any library, even if it is declared.
65961         * m4/roundf.m4: Likewise for roundf.
65962         * m4/roundl.m4: Likewise for roundl.
65963         * lib/math.in.h: Undefine roundf, round, roundl before defining
65964         their replacements, to allow for hypothetical systems where these
65965         may be defined as macros but not available in libraries.
65966
65967 2007-10-27  Bruno Haible  <bruno@clisp.org>
65968
65969         * doc/gnulib.texi: Invoke @firstparagraphindent.
65970         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
65971         changes in gnulib.
65972         (Source changes): New section.
65973
65974 2007-10-26  Bruno Haible  <bruno@clisp.org>
65975
65976         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
65977         borrowed from autoconf.
65978
65979 2007-10-26  Bruno Haible  <bruno@clisp.org>
65980
65981         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
65982         strerror returned the empty string. Needed on HP-UX 11.00.
65983
65984 2007-10-24  Micah Cowan  <micah@cowan.name>
65985
65986         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
65987         * build-aux/bootstrap: Remove support for now-unnecessary option,
65988         --cvs-user, and envvars CVS_USER, CVS_RSH.
65989
65990 2007-10-24  Jim Meyering  <meyering@redhat.com>
65991
65992         Avoid diagnostics from sha1sum when there is no cached checksum.
65993         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
65994         if the po.s1 file hasn't been created yet.
65995
65996         * build-aux/bootstrap: Sync from coreutils:
65997         2007-10-24  Jim Meyering  <meyering@redhat.com>
65998         Get gnulib from the git repository, not from an obsolete cvs one.
65999         * build-aux/bootstrap: Suggestion from Micah Cowan.
66000         2007-10-04  Jim Meyering  <jim@meyering.net>
66001         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
66002         (update_po_files): Work also when there are no .po files in po/.
66003
66004 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66005
66006         * README: Append ".git" to git and cg examples.
66007         Problem reported by Benoit Sigoure.
66008
66009 2007-10-23  Micah Cowan  <micah@cowan.name>
66010
66011         * users.txt: Add wget.
66012
66013 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66014
66015         Fix linking of some unistdio tests on FreeBSD.
66016         * modules/unistdio/u16-vsnprintf-tests
66017         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
66018         * modules/unistdio/u16-vsprintf-tests
66019         (test_u16_vsnprintf1_LDADD): Likewise.
66020         * modules/unistdio/u32-vsnprintf-tests
66021         (test_u32_vsnprintf1_LDADD): Likewise.
66022         * modules/unistdio/u32-vsprintf-tests
66023         (test_u32_vsprintf1_LDADD): Likewise.
66024         * modules/unistdio/u8-vsnprintf-tests
66025         (test_u8_vsnprintf1_LDADD): Likewise.
66026         * modules/unistdio/u8-vsprintf-tests
66027         (test_u8_vsprintf1_LDADD): Likewise.
66028         * modules/unistdio/ulc-vsnprintf-tests
66029         (test_ulc_vsnprintf1_LDADD): Likewise.
66030         * modules/unistdio/ulc-vsprintf-tests
66031         (test_ulc_vsprintf1_LDADD): Likewise.
66032
66033         Fix linking of some uniconv tests on FreeBSD.
66034         * modules/uniconv/u16-conv-from-enc-tests
66035         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
66036         * modules/uniconv/u16-conv-to-enc-tests
66037         (test_u16_conv_to_enc_LDADD): Likewise.
66038         * modules/uniconv/u16-strconv-from-enc-tests
66039         (test_u16_strconv_from_enc_LDADD): Likewise.
66040         * modules/uniconv/u16-strconv-to-enc-tests
66041         (test_u16_strconv_to_enc_LDADD): Likewise.
66042         * modules/uniconv/u32-conv-from-enc-tests
66043         (test_u32_conv_from_enc_LDADD): Likewise.
66044         * modules/uniconv/u32-conv-to-enc-tests
66045         (test_u32_conv_to_enc_LDADD): Likewise.
66046         * modules/uniconv/u32-strconv-from-enc-tests
66047         (test_u32_strconv_from_enc_LDADD): Likewise.
66048         * modules/uniconv/u32-strconv-to-enc-tests
66049         (test_u32_strconv_to_enc_LDADD): Likewise.
66050         * modules/uniconv/u8-conv-from-enc-tests
66051         (test_u8_conv_from_enc_LDADD): Likewise.
66052         * modules/uniconv/u8-conv-to-enc-tests
66053         (test_u8_conv_to_enc_LDADD): Likewise.
66054         * modules/uniconv/u8-strconv-from-enc-tests
66055         (test_u8_strconv_from_enc_LDADD): Likewise.
66056         * modules/uniconv/u8-strconv-to-enc-tests
66057         (test_u8_strconv_to_enc_LDADD): Likewise.
66058
66059 2007-10-22  Bruno Haible  <bruno@clisp.org>
66060
66061         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
66062         size.
66063
66064 2007-10-22  Eric Blake  <ebb9@byu.net>
66065
66066         Tweak x*printf documentation.
66067         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
66068         variable name and comments.
66069         Suggested by Bruno Haible.
66070
66071 2007-10-22  Bruno Haible  <bruno@clisp.org>
66072
66073         * lib/acl.c (copy_acl): Fix file name in comment.
66074
66075 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66076
66077         Fix Tru64 problem with stdbool.h.
66078         * lib/stdbool.in.h (false, true):
66079         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
66080         Don't declare as an enum in this situation; it runs afoul of Tru64.
66081         Problem reported by Steven M. Schweda in
66082         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
66083
66084 2007-10-22  Eric Blake  <ebb9@byu.net>
66085
66086         Also wrap vf?printf.
66087         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
66088         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
66089         (xvprintf, xvfprintf): New functions.
66090
66091 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66092
66093         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
66094         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
66095
66096         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
66097         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
66098
66099 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
66100
66101         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
66102         by Bruno Haible.
66103
66104 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66105
66106         * lib/getloadavg.c
66107         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
66108         Undef `sys' after including sys/table.h, for Tru64 4.0D.
66109
66110         * tests/test-i-ring.c: Work for C89.
66111
66112 2007-10-22  Bruno Haible  <bruno@clisp.org>
66113
66114         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
66115         -1u, in preprocessor expression, so that we don't test for the bug
66116         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
66117         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
66118
66119 2007-10-22  Eric Blake  <ebb9@byu.net>
66120
66121         * tests/test-yesno.sh: Silence stderr during test.
66122
66123 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66124
66125         * modules/crypto/gc-camellia: New file.
66126
66127         * m4/gc-camellia.m4: New file.
66128
66129         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
66130
66131         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
66132
66133 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66134
66135         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
66136         --help to stdout.  Reported by sms@antinode.org (Steven
66137         M. Schweda).
66138
66139 2007-10-22  Simon Josefsson  <simon@josefsson.org>
66140
66141         * users.txt: Fix link to libksba.
66142
66143 2007-10-21  Ben Pfaff  <blp@gnu.org>
66144
66145         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
66146         round.c roundf implementation that depends on floorf and ceilf to
66147         be tested unconditionally.
66148
66149 2007-10-21  Ben Pfaff  <blp@gnu.org>
66150
66151         * m4/check-libm-func.m4: Removed.
66152         * m4/check-math-lib.m4: New file.
66153         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
66154         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
66155         definition and lack of AC_LIBOBJ([roundf]).
66156         * m4/roundl.m4: Ditto, and similarly for roundl.
66157         * modules/round: Reference new m4 file.
66158         * modules/roundf: Ditto.
66159         * modules/roundl: Ditto.
66160         * tests/test-round2.c (main): Use ROUND instead of round.
66161         Bug report from Bruno Haible.
66162
66163 2007-10-21  Bruno Haible  <bruno@clisp.org>
66164
66165         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
66166         context.
66167
66168 2007-10-21  Bruno Haible  <bruno@clisp.org>
66169
66170         * tests/test-wcwidth.c (main): Allow negative result for some control
66171         characters.
66172
66173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
66174         Needed on OSF/1 5.1.
66175
66176 2007-10-21  Bruno Haible  <bruno@clisp.org>
66177
66178         * tests/test-floorf1.c: Include isnanf.h.
66179         (main): Use isnanf() instead of isnan().
66180         * tests/test-ceilf1.c: Include isnanf.h.
66181         (main): Use isnanf() instead of isnan().
66182         * tests/test-truncf1.c: Include isnanf.h.
66183         (main): Use isnanf() instead of isnan().
66184         * tests/test-roundf1.c: Include isnanf.h.
66185         (main): Use isnanf() instead of isnan().
66186
66187 2007-10-21  Eric Blake  <ebb9@byu.net>
66188
66189         * users.txt: Update URL for m4.
66190
66191 2007-10-21  Bruno Haible  <bruno@clisp.org>
66192
66193         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
66194
66195 2007-10-21  Bruno Haible  <bruno@clisp.org>
66196
66197         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
66198         Git's management files if the CVS files are not present.
66199
66200 2007-10-20  Bruno Haible  <bruno@clisp.org>
66201
66202         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
66203         gcc-3.4.x.
66204
66205 2007-10-20  Ben Pfaff  <blp@gnu.org>
66206
66207         * lib/math.in.h: Declare round, roundf, roundl if we are providing
66208         implementations.
66209         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
66210         * lib/round.c: New file.
66211         * lib/roundf.c: New file.
66212         * lib/roundl.c: New file.
66213         * m4/round.m4: New file.
66214         * m4/roundf.m4: New file.
66215         * m4/roundl.m4: New file.
66216         * m4/check-libm-func-m4: New file.
66217         * modules/math: Replace round, roundf, roundl related @VARS@ in
66218         math.in.h.
66219         * modules/round: New file.
66220         * modules/round-tests: New file.
66221         * modules/roundf: New file.
66222         * modules/roundf-tests: New file.
66223         * modules/roundl: New file.
66224         * modules/roundl-tests: New file.
66225         * tests/test-round1.c: New file.
66226         * tests/test-round2.c: New file.
66227         * tests/test-roundf1.c: New file.
66228         * tests/test-roundf2.c: New file.
66229         * tests/test-roundl.c: New file.
66230         * doc/functions/round.texi: Mention round module.
66231         * doc/functions/roundf.texi: Mention roundf module.
66232         * doc/functions/roundl.texi: Mention roundl module.
66233         * MODULES.html.sh: Mention new modules.
66234         Thanks to Bruno Haible for suggestions.
66235
66236 2007-10-20  Jim Meyering  <meyering@redhat.com>
66237
66238         * lib/xprintf.c: Include <config.h> unconditionally.
66239
66240         Change xprintf's license to GPL.
66241         * modules/xprintf (License): s/LGPL/GPL/, since this module
66242         depends on modules (exit and exitfail) which are GPL.
66243         Suggestion from Bruno Haible.
66244
66245         xprintf fixes.
66246         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
66247         Use a clearer diagnostic.
66248         Patch from Bruno Haible.
66249
66250 2007-10-20  Bruno Haible  <bruno@clisp.org>
66251
66252         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
66253         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
66254         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66255
66256 2007-10-20  Bruno Haible  <bruno@clisp.org>
66257
66258         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
66259         precision in the comparison result > x - 1 or similar.
66260         * tests/test-ceilf2.c (correct_result_p): Likewise.
66261         * tests/test-truncf2.c (correct_result_p): Likewise.
66262         * tests/test-trunc2.c (correct_result_p): Likewise.
66263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
66264
66265 2007-10-20  Bruno Haible  <bruno@clisp.org>
66266
66267         * modules/ceil: New file.
66268         * m4/ceil.m4: New file.
66269         * doc/functions/ceil.texi: Mention the 'ceil' module.
66270
66271 2007-10-20  Bruno Haible  <bruno@clisp.org>
66272
66273         * modules/floor: New file.
66274         * m4/floor.m4: New file.
66275         * doc/functions/floor.texi: Mention the 'floor' module.
66276
66277 2007-10-20  Bruno Haible  <bruno@clisp.org>
66278
66279         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
66280         of %a.
66281         * modules/floorf-tests (Depends-on): Likewise.
66282         * modules/truncf-tests (Depends-on): Likewise.
66283         * modules/trunc-tests (Depends-on): Likewise.
66284         Reported by Ben Pfaff.
66285
66286 2007-10-19  Jim Meyering  <meyering@redhat.com>
66287
66288         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
66289         Don't bother testing specific errno values.  Just test ferror.
66290
66291         New module: xprintf
66292         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
66293
66294 2007-10-19  Bruno Haible  <bruno@clisp.org>
66295
66296         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
66297         syntax.
66298         * modules/javaexec (Makefile.am): Likewise.
66299         * modules/relocatable-prog (Makefile.am): Likewise.
66300         Suggested by Jim Meyering.
66301
66302 2007-10-18  Bruno Haible  <bruno@clisp.org>
66303
66304         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
66305         Reported by Jim Meyering.
66306
66307 2007-10-18  Eric Blake  <ebb9@byu.net>
66308
66309         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
66310
66311 2007-10-18  Bruno Haible  <bruno@clisp.org>
66312
66313         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
66314         the format string into writable memory. Needed in Fortify conditions.
66315
66316 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
66317             Bruno Haible  <bruno@clisp.org>
66318
66319         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
66320         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
66321         * modules/trim (Depends-on): Add mbchar.
66322         (configure.ac): Add gl_FUNC_MBRTOWC.
66323         (Makefile.am): Augment lib_SOURCES.
66324
66325 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
66326
66327         Modify glob.c to use fstatat and dirfd, to simplify it.
66328         Suggested by Eric Blake.
66329         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
66330         Don't include <stdbool.h>; not used.
66331         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
66332         (link_exists_p): Simplify implementation, since we can now assume
66333         dirfd and fstatat.
66334         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
66335
66336 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66337
66338         * gnulib-tool (func_get_dependencies): Fix sed script to
66339         match only tests.
66340
66341 2007-10-17  Bruno Haible  <bruno@clisp.org>
66342
66343         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
66344         allow locale names without encoding suffix.
66345         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
66346         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
66347
66348 2007-10-16  Bruno Haible  <bruno@clisp.org>
66349
66350         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
66351         * lib/getgroups.c (getgroups): Likewise.
66352         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
66353
66354 2007-10-16  Bruno Haible  <bruno@clisp.org>
66355
66356         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
66357         * modules/malloc-posix (License): Likewise.
66358         * modules/realloc-posix (License): Likewise.
66359         * modules/calloc-posix (License): Likewise.
66360         * modules/intprops (License): Change from GPL to LGPL, with
66361         Paul Eggert's approval.
66362
66363 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66364
66365         Merge glibc changes into lib/glob.c.
66366
66367         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
66368         2007-10-15 04:59:03 UTC.  Here are the changes:
66369
66370         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
66371
66372         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
66373
66374         * lib/glob.c: Add some branch prediction throughout.
66375
66376         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
66377
66378         [BZ #5103]
66379         * lib/glob.c (glob): Recognize patterns starting \/.
66380
66381         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
66382
66383         [BZ #3996]
66384         * lib/glob.c (attribute_hidden): Define if not defined.
66385         (glob): Unescape dirname, filename or username when needed and not
66386         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
66387         is NULL.  Handle unescaped [ in pattern without closing ].
66388         Don't pass GLOB_CHECK down to recursive glob for directories.
66389         (__glob_pattern_type): New function.
66390         (__glob_pattern_p): Implement using __glob_pattern_type.
66391         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
66392         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
66393         Remove unreachable code.
66394
66395         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
66396
66397         * lib/glob.c (glob_in_dir): Add some comments and asserts to
66398         explain why there are no leaks.
66399
66400         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
66401
66402         [BZ #3253]
66403         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
66404         time, rather allocate increasingly bigger arrays of pointers, if
66405         possible with alloca, if too large with malloc.
66406
66407 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
66408
66409         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
66410         Problem reported by H.Merijn Brand in
66411         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
66412         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
66413         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
66414
66415 2007-10-15  Bruno Haible  <bruno@clisp.org>
66416
66417         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
66418         with explicit rpl_ prefix.
66419         * lib/fopen.c (fopen): Likewise.
66420         * lib/freopen.c (freopen): Likewise.
66421         * lib/iconv.c (iconv): Likewise.
66422         * lib/iconv_close.c (iconv_close): Likewise.
66423
66424 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66425
66426         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
66427
66428 2007-10-15  Bruno Haible  <bruno@clisp.org>
66429
66430         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
66431         <stddef.h> instead of <stdlib.h> since we only need NULL.
66432         Reported by Ben Pfaff <blp@cs.stanford.edu>.
66433
66434 2007-10-15  Bruno Haible  <bruno@clisp.org>
66435
66436         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
66437         Replace paragraph talking about LIBOBJS.
66438         Reported by Colin Watson <cjwatson@debian.org>.
66439
66440 2007-10-15  Bruno Haible  <bruno@clisp.org>
66441
66442         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
66443         <stdlib.h> before using NULL.
66444
66445 2007-10-15  Simon Josefsson  <simon@josefsson.org>
66446
66447         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
66448         Reported by Albert Chin <china@thewrittenword.com>.
66449
66450 2007-10-14  Bruno Haible  <bruno@clisp.org>
66451
66452         * modules/iconv_open-utf-tests: New file.
66453         * tests/test-iconv-utf.c: New file.
66454
66455         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
66456         * modules/iconv_open-utf: New file.
66457         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
66458         (iconv, iconv_close): New declarations.
66459         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
66460         be defined.
66461         (iconv_open): Add special handling of conversion between UTF-8 and
66462         UTF-{16,32}{BE,LE}.
66463         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
66464         * lib/iconv_close.c: New file.
66465         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
66466         gl_FUNC_ICONV_OPEN.
66467         (gl_FUNC_ICONV_OPEN): Use it.
66468         (gl_FUNC_ICONV_OPEN_UTF): New macro.
66469         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
66470         and REPLACE_ICONV_UTF.
66471         * modules/iconv_open (Depends-on): Add c-strcase.
66472         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
66473         ICONV_CONST.
66474         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
66475
66476 2007-10-13  Albert Chin  <china@thewrittenword.com>
66477             Bruno Haible  <bruno@clisp.org>
66478
66479         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
66480         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
66481
66482 2007-10-13  Bruno Haible  <bruno@clisp.org>
66483
66484         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
66485         defined, use the ISO C99 inline semantics.
66486         * lib/argp.h (ARGP_EI): Likewise.
66487
66488 2007-10-13  Bruno Haible  <bruno@clisp.org>
66489
66490         Handle 'inline' change in gcc 4.3.0.
66491         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
66492         argp_fmtstream_write, argp_fmtstream_set_lmargin,
66493         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
66494         argp_fmtstream_point): Disable 'extern' declaration if the function
66495         definition is going to be provided inline.
66496         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
66497         semantics, not the ISO C99 inline semantics.
66498         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
66499         'extern' declaration if the function definition is going to be provided
66500         inline.
66501         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
66502         the GNU C inline semantics, not the ISO C99 inline semantics. With
66503         GCC 4.2, avoid a warning.
66504
66505 2007-10-13  Bruno Haible  <bruno@clisp.org>
66506
66507         * lib/freading.h (freading): Enable the use of __freading for
66508         glibc >= 2.7.
66509         * lib/freading.c (freading): Likewise.
66510
66511 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
66512
66513         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
66514         "warning: C99 inline functions are not supported; using GNU89".
66515
66516 2007-10-12  Bruno Haible  <bruno@clisp.org>
66517
66518         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
66519         of 2.
66520         * tests/test-ceilf2.c: New file.
66521         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
66522
66523         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
66524         * modules/ceilf-tests: Update.
66525
66526 2007-10-12  Bruno Haible  <bruno@clisp.org>
66527
66528         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
66529         of 2.
66530         * tests/test-floorf2.c: New file.
66531         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
66532
66533         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
66534         * modules/floorf-tests: Update.
66535
66536 2007-10-12  Bruno Haible  <bruno@clisp.org>
66537
66538         * tests/test-trunc2.c: New file.
66539         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
66540
66541         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
66542         * modules/trunc-tests: Update.
66543
66544 2007-10-12  Bruno Haible  <bruno@clisp.org>
66545
66546         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
66547         of 2.
66548         * tests/test-truncf2.c: New file.
66549         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
66550
66551         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
66552         * modules/truncf-tests: Update.
66553
66554 2007-10-11  Eric Blake  <ebb9@byu.net>
66555
66556         Don't claim strerror is broken on Interix.
66557         * doc/functions/strerror.texi (strerror): Known broken systems are
66558         now Solaris 8, and not Interix.
66559         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
66560         Interix on cross-compile.
66561         Reported by Martin Koeppe in
66562         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
66563
66564 2007-10-11  Bruno Haible  <bruno@clisp.org>
66565
66566         * modules/i-ring-tests: New file.
66567         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
66568         instead of assert.
66569
66570 2007-10-11  Bruno Haible  <bruno@clisp.org>
66571
66572         * modules/filenamecat-tests: New file.
66573         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
66574         * lib/filenamecat.c: Remove test code.
66575
66576 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
66577
66578         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
66579
66580         * lib/strerror.c: Include <string.h> always, to test interface,
66581         and to remove the need for the dummy.
66582         Include intprops.h to compute width instead of doing it ourselves
66583         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
66584         (strerror): Define it to return NULL if there's no system strerror.
66585         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
66586         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
66587         ancient pre-strerror Unix systems well any more.  Saying "unknown
66588         system error" is enough.
66589         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
66590         simpler strerror.c implementation.
66591         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
66592         Simplify the tests to reflect the simpler strerror implementation.
66593         * modules/strerror (Depends-on): Add intprops.
66594
66595 2007-10-09  Eric Blake  <ebb9@byu.net>
66596
66597         Silence test-fpending.
66598         * modules/fpending-tests (Files): Add wrapper script.
66599         * tests/test-fpending.sh: New file.
66600
66601 2007-10-09  Bruno Haible  <bruno@clisp.org>
66602
66603         * MODULES.html.sh (func_module): Don't create a hyperlink for
66604         function names like 'printf_frexp'.
66605         (Misc): Add crc, memxor.
66606         (Characteristics of floating types): New section.
66607         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
66608         isnanf-nolibm, signbit, trunc, truncf, truncl.
66609         (Enhancements for ISO C 99 functions): New subsection Input/output.
66610         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
66611         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
66612         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
66613         (Compatibility checks for POSIX:2001 functions): Add clock-time.
66614         (Enhancements for POSIX:2001 functions): Add chdir-long.
66615         (File system functions): Add areadlink, chdir-safer, read-file.
66616         Remove cycle-check.
66617         (File system as inode set): New section.
66618         (Date and time): Add gethrxtime.
66619         (Multithreading): Add openmp.
66620         (Internationalization functions): Add localename.
66621         (Unicode string functions): Add unistr/u*-mbsnlen.
66622         (Support for maintaining and releasing projects): Add git-version-gen.
66623         (Lone files): Remove directories.
66624
66625 2007-10-08  Ben Pfaff  <blp@gnu.org>
66626
66627         * lib/xmalloca.h: Fix typo in comment.
66628
66629 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
66632         when avoiding problems with integer overflow.  Use a portable test
66633         instead.
66634
66635 2007-10-08  Simon Josefsson  <simon@josefsson.org>
66636
66637         * modules/dummy (License): Change to LGPLv2+.
66638         * modules/float (License): Likewise
66639         * modules/realloc (License): Likewise
66640         * modules/stdlib (License): Likewise
66641
66642 2007-10-07  Bruno Haible  <bruno@clisp.org>
66643
66644         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
66645         * floor.c (TWO_MANT_DIG): Likewise.
66646         * ceil.c (TWO_MANT_DIG): Likewise.
66647         Reported by Ben Pfaff.
66648
66649 2007-10-07  Bruno Haible  <bruno@clisp.org>
66650
66651         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
66652         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
66653         * lib/frexp.c (FUNC): Likewise.
66654         * lib/printf-frexp.h (printf_frexp): Likewise.
66655         * lib/printf-frexpl.h (printf_frexpl): Likewise.
66656         * lib/printf-frexp.c (FUNC): Likewise.
66657         Suggested by Jim Meyering.
66658
66659 2007-10-07  Jim Meyering  <meyering@redhat.com>
66660
66661         Make xnanosleep's integer overflow test more robust.
66662         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
66663         so that gcc-4.3.0 doesn't optimize away this test for overflow.
66664
66665 2007-10-07  Bruno Haible  <bruno@clisp.org>
66666
66667         * NEWS: Mention the license change.
66668
66669         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
66670         abbreviations in the modules files.
66671
66672         Change copyright notice from GPLv2+ to GPLv3+.
66673         * README: Change copyright notice.
66674         * MODULES.html.sh: Likewise.
66675         * build-aux/bootstrap.conf: Likewise.
66676         * build-aux/config.libpath: Likewise.
66677         * build-aux/csharpcomp.sh.in: Likewise.
66678         * build-aux/csharpexec.sh.in: Likewise.
66679         * build-aux/install-reloc: Likewise.
66680         * build-aux/javacomp.sh.in: Likewise.
66681         * build-aux/javaexec.sh.in: Likewise.
66682         * build-aux/ldd.sh.in: Likewise.
66683         * build-aux/reloc-ldflags: Likewise.
66684         * build-aux/relocatable.sh.in: Likewise.
66685         * build-aux/x-to-1.in: Likewise.
66686         * check-module: Likewise.
66687         * config/srclistvars.sh: Likewise.
66688         * gnulib-tool: Likewise.
66689         * lib/acl-internal.h: Likewise.
66690         * lib/acl.c: Likewise.
66691         * lib/acl.h: Likewise.
66692         * lib/acl_entries.c: Likewise.
66693         * lib/areadlink-with-size.c: Likewise.
66694         * lib/areadlink.c: Likewise.
66695         * lib/areadlink.h: Likewise.
66696         * lib/argmatch.c: Likewise.
66697         * lib/argmatch.h: Likewise.
66698         * lib/argp-ba.c: Likewise.
66699         * lib/argp-eexst.c: Likewise.
66700         * lib/argp-fmtstream.c: Likewise.
66701         * lib/argp-fmtstream.h: Likewise.
66702         * lib/argp-fs-xinl.c: Likewise.
66703         * lib/argp-help.c: Likewise.
66704         * lib/argp-namefrob.h: Likewise.
66705         * lib/argp-parse.c: Likewise.
66706         * lib/argp-pin.c: Likewise.
66707         * lib/argp-pv.c: Likewise.
66708         * lib/argp-pvh.c: Likewise.
66709         * lib/argp-xinl.c: Likewise.
66710         * lib/argp.h: Likewise.
66711         * lib/at-func.c: Likewise.
66712         * lib/atanl.c: Likewise.
66713         * lib/backupfile.c: Likewise.
66714         * lib/backupfile.h: Likewise.
66715         * lib/basename.c: Likewise.
66716         * lib/binary-io.h: Likewise.
66717         * lib/byteswap.in.h: Likewise.
66718         * lib/c-stack.c: Likewise.
66719         * lib/c-stack.h: Likewise.
66720         * lib/c-strcasestr.c: Likewise.
66721         * lib/c-strcasestr.h: Likewise.
66722         * lib/c-strstr.c: Likewise.
66723         * lib/c-strstr.h: Likewise.
66724         * lib/c-strtod.c: Likewise.
66725         * lib/calloc.c: Likewise.
66726         * lib/canon-host.c: Likewise.
66727         * lib/canon-host.h: Likewise.
66728         * lib/canonicalize-lgpl.c: Likewise.
66729         * lib/canonicalize.c: Likewise.
66730         * lib/canonicalize.h: Likewise.
66731         * lib/ceil.c: Likewise.
66732         * lib/ceilf.c: Likewise.
66733         * lib/ceill.c: Likewise.
66734         * lib/chdir-long.c: Likewise.
66735         * lib/chdir-long.h: Likewise.
66736         * lib/chdir-safer.c: Likewise.
66737         * lib/chdir-safer.h: Likewise.
66738         * lib/chown.c: Likewise.
66739         * lib/classpath.c: Likewise.
66740         * lib/classpath.h: Likewise.
66741         * lib/clean-temp.c: Likewise.
66742         * lib/clean-temp.h: Likewise.
66743         * lib/cloexec.c: Likewise.
66744         * lib/close-stream.c: Likewise.
66745         * lib/closein.c: Likewise.
66746         * lib/closein.h: Likewise.
66747         * lib/closeout.c: Likewise.
66748         * lib/closeout.h: Likewise.
66749         * lib/concat-filename.c: Likewise.
66750         * lib/copy-file.c: Likewise.
66751         * lib/copy-file.h: Likewise.
66752         * lib/count-one-bits.h: Likewise.
66753         * lib/crc.c: Likewise.
66754         * lib/crc.h: Likewise.
66755         * lib/creat-safer.c: Likewise.
66756         * lib/csharpcomp.c: Likewise.
66757         * lib/csharpcomp.h: Likewise.
66758         * lib/csharpexec.c: Likewise.
66759         * lib/csharpexec.h: Likewise.
66760         * lib/cycle-check.c: Likewise.
66761         * lib/cycle-check.h: Likewise.
66762         * lib/diacrit.c: Likewise.
66763         * lib/diacrit.h: Likewise.
66764         * lib/diffseq.h: Likewise.
66765         * lib/dirchownmod.c: Likewise.
66766         * lib/dirent.in.h: Likewise.
66767         * lib/dirfd.c: Likewise.
66768         * lib/dirfd.h: Likewise.
66769         * lib/dirname.c: Likewise.
66770         * lib/dirname.h: Likewise.
66771         * lib/dummy.c: Likewise.
66772         * lib/dup-safer.c: Likewise.
66773         * lib/dup2.c: Likewise.
66774         * lib/eealloc.h: Likewise.
66775         * lib/error.c: Likewise.
66776         * lib/error.h: Likewise.
66777         * lib/euidaccess.c: Likewise.
66778         * lib/exclude.c: Likewise.
66779         * lib/exclude.h: Likewise.
66780         * lib/execute.c: Likewise.
66781         * lib/execute.h: Likewise.
66782         * lib/exitfail.c: Likewise.
66783         * lib/exitfail.h: Likewise.
66784         * lib/expl.c: Likewise.
66785         * lib/fatal-signal.c: Likewise.
66786         * lib/fatal-signal.h: Likewise.
66787         * lib/fbufmode.c: Likewise.
66788         * lib/fbufmode.h: Likewise.
66789         * lib/fchdir.c: Likewise.
66790         * lib/fchmodat.c: Likewise.
66791         * lib/fchownat.c: Likewise.
66792         * lib/fcntl--.h: Likewise.
66793         * lib/fcntl-safer.h: Likewise.
66794         * lib/fcntl.in.h: Likewise.
66795         * lib/fd-safer.c: Likewise.
66796         * lib/fflush.c: Likewise.
66797         * lib/file-has-acl.c: Likewise.
66798         * lib/file-set.c: Likewise.
66799         * lib/file-type.c: Likewise.
66800         * lib/file-type.h: Likewise.
66801         * lib/fileblocks.c: Likewise.
66802         * lib/filemode.c: Likewise.
66803         * lib/filemode.h: Likewise.
66804         * lib/filename.h: Likewise.
66805         * lib/filenamecat.c: Likewise.
66806         * lib/filenamecat.h: Likewise.
66807         * lib/findprog.c: Likewise.
66808         * lib/findprog.h: Likewise.
66809         * lib/float.in.h: Likewise.
66810         * lib/floor.c: Likewise.
66811         * lib/floorf.c: Likewise.
66812         * lib/floorl.c: Likewise.
66813         * lib/fopen-safer.c: Likewise.
66814         * lib/fopen.c: Likewise.
66815         * lib/fpending.c: Likewise.
66816         * lib/fpending.h: Likewise.
66817         * lib/fprintf.c: Likewise.
66818         * lib/fprintftime.h: Likewise.
66819         * lib/fpucw.h: Likewise.
66820         * lib/fpurge.c: Likewise.
66821         * lib/fpurge.h: Likewise.
66822         * lib/freadable.c: Likewise.
66823         * lib/freadable.h: Likewise.
66824         * lib/freadahead.c: Likewise.
66825         * lib/freadahead.h: Likewise.
66826         * lib/freading.c: Likewise.
66827         * lib/freading.h: Likewise.
66828         * lib/free.c: Likewise.
66829         * lib/freopen.c: Likewise.
66830         * lib/frexp.c: Likewise.
66831         * lib/frexpl.c: Likewise.
66832         * lib/fseek.c: Likewise.
66833         * lib/fseterr.c: Likewise.
66834         * lib/fseterr.h: Likewise.
66835         * lib/fstatat.c: Likewise.
66836         * lib/fstrcmp.c: Likewise.
66837         * lib/fstrcmp.h: Likewise.
66838         * lib/fsusage.c: Likewise.
66839         * lib/fsusage.h: Likewise.
66840         * lib/ftell.c: Likewise.
66841         * lib/ftello.c: Likewise.
66842         * lib/fts-cycle.c: Likewise.
66843         * lib/fts.c: Likewise.
66844         * lib/fts_.h: Likewise.
66845         * lib/full-read.c: Likewise.
66846         * lib/full-read.h: Likewise.
66847         * lib/full-write.c: Likewise.
66848         * lib/full-write.h: Likewise.
66849         * lib/fwritable.c: Likewise.
66850         * lib/fwritable.h: Likewise.
66851         * lib/fwriteerror.c: Likewise.
66852         * lib/fwriteerror.h: Likewise.
66853         * lib/fwriting.c: Likewise.
66854         * lib/fwriting.h: Likewise.
66855         * lib/gcd.c: Likewise.
66856         * lib/gcd.h: Likewise.
66857         * lib/getcwd.c: Likewise.
66858         * lib/getdate.h: Likewise.
66859         * lib/getdate.y: Likewise.
66860         * lib/getdomainname.c: Likewise.
66861         * lib/getdomainname.h: Likewise.
66862         * lib/getgroups.c: Likewise.
66863         * lib/gethostname.c: Likewise.
66864         * lib/gethrxtime.c: Likewise.
66865         * lib/gethrxtime.h: Likewise.
66866         * lib/getloadavg.c: Likewise.
66867         * lib/getndelim2.c: Likewise.
66868         * lib/getndelim2.h: Likewise.
66869         * lib/getnline.c: Likewise.
66870         * lib/getnline.h: Likewise.
66871         * lib/getopt.c: Likewise.
66872         * lib/getopt.in.h: Likewise.
66873         * lib/getopt1.c: Likewise.
66874         * lib/getopt_int.h: Likewise.
66875         * lib/getpagesize.h: Likewise.
66876         * lib/getsubopt.c: Likewise.
66877         * lib/gettime.c: Likewise.
66878         * lib/getugroups.c: Likewise.
66879         * lib/getugroups.h: Likewise.
66880         * lib/getusershell.c: Likewise.
66881         * lib/gl_anyavltree_list1.h: Likewise.
66882         * lib/gl_anyavltree_list2.h: Likewise.
66883         * lib/gl_anyhash_list1.h: Likewise.
66884         * lib/gl_anyhash_list2.h: Likewise.
66885         * lib/gl_anylinked_list1.h: Likewise.
66886         * lib/gl_anylinked_list2.h: Likewise.
66887         * lib/gl_anyrbtree_list1.h: Likewise.
66888         * lib/gl_anyrbtree_list2.h: Likewise.
66889         * lib/gl_anytree_list1.h: Likewise.
66890         * lib/gl_anytree_list2.h: Likewise.
66891         * lib/gl_anytree_oset.h: Likewise.
66892         * lib/gl_anytreehash_list1.h: Likewise.
66893         * lib/gl_anytreehash_list2.h: Likewise.
66894         * lib/gl_array_list.c: Likewise.
66895         * lib/gl_array_list.h: Likewise.
66896         * lib/gl_array_oset.c: Likewise.
66897         * lib/gl_array_oset.h: Likewise.
66898         * lib/gl_avltree_list.c: Likewise.
66899         * lib/gl_avltree_list.h: Likewise.
66900         * lib/gl_avltree_oset.c: Likewise.
66901         * lib/gl_avltree_oset.h: Likewise.
66902         * lib/gl_avltreehash_list.c: Likewise.
66903         * lib/gl_avltreehash_list.h: Likewise.
66904         * lib/gl_carray_list.c: Likewise.
66905         * lib/gl_carray_list.h: Likewise.
66906         * lib/gl_linked_list.c: Likewise.
66907         * lib/gl_linked_list.h: Likewise.
66908         * lib/gl_linkedhash_list.c: Likewise.
66909         * lib/gl_linkedhash_list.h: Likewise.
66910         * lib/gl_list.c: Likewise.
66911         * lib/gl_list.h: Likewise.
66912         * lib/gl_oset.c: Likewise.
66913         * lib/gl_oset.h: Likewise.
66914         * lib/gl_rbtree_list.c: Likewise.
66915         * lib/gl_rbtree_list.h: Likewise.
66916         * lib/gl_rbtree_oset.c: Likewise.
66917         * lib/gl_rbtree_oset.h: Likewise.
66918         * lib/gl_rbtreehash_list.c: Likewise.
66919         * lib/gl_rbtreehash_list.h: Likewise.
66920         * lib/gl_sublist.c: Likewise.
66921         * lib/gl_sublist.h: Likewise.
66922         * lib/group-member.c: Likewise.
66923         * lib/group-member.h: Likewise.
66924         * lib/hard-locale.c: Likewise.
66925         * lib/hard-locale.h: Likewise.
66926         * lib/hash-pjw.c: Likewise.
66927         * lib/hash-pjw.h: Likewise.
66928         * lib/hash-triple.c: Likewise.
66929         * lib/hash.c: Likewise.
66930         * lib/hash.h: Likewise.
66931         * lib/human.c: Likewise.
66932         * lib/human.h: Likewise.
66933         * lib/i-ring.c: Likewise.
66934         * lib/i-ring.h: Likewise.
66935         * lib/idcache.c: Likewise.
66936         * lib/imaxabs.c: Likewise.
66937         * lib/imaxdiv.c: Likewise.
66938         * lib/inet_pton.c: Likewise.
66939         * lib/inet_pton.h: Likewise.
66940         * lib/intprops.h: Likewise.
66941         * lib/inttostr.c: Likewise.
66942         * lib/inttostr.h: Likewise.
66943         * lib/inttypes.in.h: Likewise.
66944         * lib/isapipe.c: Likewise.
66945         * lib/isdir.c: Likewise.
66946         * lib/isnan.c: Likewise.
66947         * lib/isnan.h: Likewise.
66948         * lib/isnanf.c: Likewise.
66949         * lib/isnanf.h: Likewise.
66950         * lib/isnanl-nolibm.h: Likewise.
66951         * lib/isnanl.c: Likewise.
66952         * lib/isnanl.h: Likewise.
66953         * lib/javacomp.c: Likewise.
66954         * lib/javacomp.h: Likewise.
66955         * lib/javaexec.c: Likewise.
66956         * lib/javaexec.h: Likewise.
66957         * lib/javaversion.c: Likewise.
66958         * lib/javaversion.h: Likewise.
66959         * lib/javaversion.java: Likewise.
66960         * lib/lbrkprop.h: Likewise.
66961         * lib/lchmod.h: Likewise.
66962         * lib/lchown.c: Likewise.
66963         * lib/ldexpl.c: Likewise.
66964         * lib/linebreak.c: Likewise.
66965         * lib/linebreak.h: Likewise.
66966         * lib/linebuffer.c: Likewise.
66967         * lib/linebuffer.h: Likewise.
66968         * lib/locale.in.h: Likewise.
66969         * lib/logl.c: Likewise.
66970         * lib/long-options.c: Likewise.
66971         * lib/long-options.h: Likewise.
66972         * lib/lstat.c: Likewise.
66973         * lib/lstat.h: Likewise.
66974         * lib/math.in.h: Likewise.
66975         * lib/mbchar.c: Likewise.
66976         * lib/mbchar.h: Likewise.
66977         * lib/mbfile.h: Likewise.
66978         * lib/mbiter.h: Likewise.
66979         * lib/mbscasecmp.c: Likewise.
66980         * lib/mbscasestr.c: Likewise.
66981         * lib/mbschr.c: Likewise.
66982         * lib/mbscspn.c: Likewise.
66983         * lib/mbslen.c: Likewise.
66984         * lib/mbsncasecmp.c: Likewise.
66985         * lib/mbsnlen.c: Likewise.
66986         * lib/mbspbrk.c: Likewise.
66987         * lib/mbspcasecmp.c: Likewise.
66988         * lib/mbsrchr.c: Likewise.
66989         * lib/mbssep.c: Likewise.
66990         * lib/mbsspn.c: Likewise.
66991         * lib/mbsstr.c: Likewise.
66992         * lib/mbstok_r.c: Likewise.
66993         * lib/mbswidth.c: Likewise.
66994         * lib/mbswidth.h: Likewise.
66995         * lib/mbuiter.h: Likewise.
66996         * lib/memcasecmp.c: Likewise.
66997         * lib/memcasecmp.h: Likewise.
66998         * lib/memchr.c: Likewise.
66999         * lib/memcmp.c: Likewise.
67000         * lib/memcoll.c: Likewise.
67001         * lib/memcoll.h: Likewise.
67002         * lib/memcpy.c: Likewise.
67003         * lib/memrchr.c: Likewise.
67004         * lib/mkancesdirs.c: Likewise.
67005         * lib/mkdir-p.c: Likewise.
67006         * lib/mkdir-p.h: Likewise.
67007         * lib/mkdir.c: Likewise.
67008         * lib/mkdirat.c: Likewise.
67009         * lib/mkdtemp.c: Likewise.
67010         * lib/mkstemp-safer.c: Likewise.
67011         * lib/mkstemp.c: Likewise.
67012         * lib/modechange.c: Likewise.
67013         * lib/modechange.h: Likewise.
67014         * lib/mountlist.c: Likewise.
67015         * lib/mountlist.h: Likewise.
67016         * lib/mpsort.c: Likewise.
67017         * lib/nanosleep.c: Likewise.
67018         * lib/obstack.c: Likewise.
67019         * lib/obstack.h: Likewise.
67020         * lib/open-safer.c: Likewise.
67021         * lib/open.c: Likewise.
67022         * lib/openat-die.c: Likewise.
67023         * lib/openat-priv.h: Likewise.
67024         * lib/openat-proc.c: Likewise.
67025         * lib/openat.c: Likewise.
67026         * lib/openat.h: Likewise.
67027         * lib/pagealign_alloc.c: Likewise.
67028         * lib/pagealign_alloc.h: Likewise.
67029         * lib/physmem.c: Likewise.
67030         * lib/physmem.h: Likewise.
67031         * lib/pipe-safer.c: Likewise.
67032         * lib/pipe.c: Likewise.
67033         * lib/pipe.h: Likewise.
67034         * lib/posixtm.c: Likewise.
67035         * lib/posixtm.h: Likewise.
67036         * lib/posixver.c: Likewise.
67037         * lib/printf-frexp.c: Likewise.
67038         * lib/printf-frexp.h: Likewise.
67039         * lib/printf-frexpl.c: Likewise.
67040         * lib/printf-frexpl.h: Likewise.
67041         * lib/printf.c: Likewise.
67042         * lib/progname.c: Likewise.
67043         * lib/progname.h: Likewise.
67044         * lib/progreloc.c: Likewise.
67045         * lib/putenv.c: Likewise.
67046         * lib/quote.c: Likewise.
67047         * lib/quote.h: Likewise.
67048         * lib/quotearg.c: Likewise.
67049         * lib/quotearg.h: Likewise.
67050         * lib/raise.c: Likewise.
67051         * lib/readline.c: Likewise.
67052         * lib/readline.h: Likewise.
67053         * lib/readlink.c: Likewise.
67054         * lib/readtokens.c: Likewise.
67055         * lib/readtokens.h: Likewise.
67056         * lib/readtokens0.c: Likewise.
67057         * lib/readtokens0.h: Likewise.
67058         * lib/readutmp.c: Likewise.
67059         * lib/readutmp.h: Likewise.
67060         * lib/realloc.c: Likewise.
67061         * lib/relocwrapper.c: Likewise.
67062         * lib/rename-dest-slash.c: Likewise.
67063         * lib/rename.c: Likewise.
67064         * lib/rmdir.c: Likewise.
67065         * lib/rpmatch.c: Likewise.
67066         * lib/safe-read.c: Likewise.
67067         * lib/safe-read.h: Likewise.
67068         * lib/safe-write.c: Likewise.
67069         * lib/safe-write.h: Likewise.
67070         * lib/same-inode.h: Likewise.
67071         * lib/same.c: Likewise.
67072         * lib/same.h: Likewise.
67073         * lib/save-cwd.c: Likewise.
67074         * lib/save-cwd.h: Likewise.
67075         * lib/savedir.c: Likewise.
67076         * lib/savedir.h: Likewise.
67077         * lib/savewd.c: Likewise.
67078         * lib/savewd.h: Likewise.
67079         * lib/search.in.h: Likewise.
67080         * lib/setenv.c: Likewise.
67081         * lib/setenv.h: Likewise.
67082         * lib/settime.c: Likewise.
67083         * lib/sh-quote.c: Likewise.
67084         * lib/sh-quote.h: Likewise.
67085         * lib/sig2str.c: Likewise.
67086         * lib/sig2str.h: Likewise.
67087         * lib/signal.in.h: Likewise.
67088         * lib/signbitd.c: Likewise.
67089         * lib/signbitf.c: Likewise.
67090         * lib/signbitl.c: Likewise.
67091         * lib/sigprocmask.c: Likewise.
67092         * lib/sincosl.c: Likewise.
67093         * lib/sleep.c: Likewise.
67094         * lib/sprintf.c: Likewise.
67095         * lib/sqrtl.c: Likewise.
67096         * lib/stat-time.h: Likewise.
67097         * lib/stdio--.h: Likewise.
67098         * lib/stdio-safer.h: Likewise.
67099         * lib/stdlib--.h: Likewise.
67100         * lib/stdlib-safer.h: Likewise.
67101         * lib/stdlib.in.h: Likewise.
67102         * lib/stpcpy.c: Likewise.
67103         * lib/stpncpy.c: Likewise.
67104         * lib/strchrnul.c: Likewise.
67105         * lib/strcspn.c: Likewise.
67106         * lib/strerror.c: Likewise.
67107         * lib/strftime.c: Likewise.
67108         * lib/strftime.h: Likewise.
67109         * lib/striconveh.c: Likewise.
67110         * lib/striconveh.h: Likewise.
67111         * lib/striconveha.c: Likewise.
67112         * lib/striconveha.h: Likewise.
67113         * lib/stripslash.c: Likewise.
67114         * lib/strnlen1.c: Likewise.
67115         * lib/strnlen1.h: Likewise.
67116         * lib/strtod.c: Likewise.
67117         * lib/strtoimax.c: Likewise.
67118         * lib/strtok_r.c: Likewise.
67119         * lib/strtol.c: Likewise.
67120         * lib/strtoll.c: Likewise.
67121         * lib/strtoul.c: Likewise.
67122         * lib/strtoull.c: Likewise.
67123         * lib/sysexits.in.h: Likewise.
67124         * lib/tempname.c: Likewise.
67125         * lib/tempname.h: Likewise.
67126         * lib/timespec.h: Likewise.
67127         * lib/tls.c: Likewise.
67128         * lib/tls.h: Likewise.
67129         * lib/tmpdir.c: Likewise.
67130         * lib/tmpdir.h: Likewise.
67131         * lib/tmpfile-safer.c: Likewise.
67132         * lib/tmpfile.c: Likewise.
67133         * lib/trigl.c: Likewise.
67134         * lib/trigl.h: Likewise.
67135         * lib/trim.c: Likewise.
67136         * lib/trim.h: Likewise.
67137         * lib/trunc.c: Likewise.
67138         * lib/truncf.c: Likewise.
67139         * lib/truncl.c: Likewise.
67140         * lib/tsearch.c: Likewise.
67141         * lib/unicodeio.c: Likewise.
67142         * lib/unicodeio.h: Likewise.
67143         * lib/unistd--.h: Likewise.
67144         * lib/unistd-safer.h: Likewise.
67145         * lib/unistdio/ulc-fprintf.c: Likewise.
67146         * lib/unistdio/ulc-vfprintf.c: Likewise.
67147         * lib/unlinkdir.c: Likewise.
67148         * lib/unlinkdir.h: Likewise.
67149         * lib/unlocked-io.h: Likewise.
67150         * lib/unsetenv.c: Likewise.
67151         * lib/userspec.c: Likewise.
67152         * lib/utime.c: Likewise.
67153         * lib/utimecmp.c: Likewise.
67154         * lib/utimecmp.h: Likewise.
67155         * lib/utimens.c: Likewise.
67156         * lib/verify.h: Likewise.
67157         * lib/verror.c: Likewise.
67158         * lib/verror.h: Likewise.
67159         * lib/version-etc-fsf.c: Likewise.
67160         * lib/version-etc.c: Likewise.
67161         * lib/version-etc.h: Likewise.
67162         * lib/vfprintf.c: Likewise.
67163         * lib/vprintf.c: Likewise.
67164         * lib/vsprintf.c: Likewise.
67165         * lib/w32spawn.h: Likewise.
67166         * lib/wait-process.c: Likewise.
67167         * lib/wait-process.h: Likewise.
67168         * lib/wcwidth.c: Likewise.
67169         * lib/write-any-file.c: Likewise.
67170         * lib/xalloc-die.c: Likewise.
67171         * lib/xalloc.h: Likewise.
67172         * lib/xasprintf.c: Likewise.
67173         * lib/xgetcwd.c: Likewise.
67174         * lib/xgetcwd.h: Likewise.
67175         * lib/xgetdomainname.c: Likewise.
67176         * lib/xgetdomainname.h: Likewise.
67177         * lib/xgethostname.c: Likewise.
67178         * lib/xmalloc.c: Likewise.
67179         * lib/xmalloca.c: Likewise.
67180         * lib/xmalloca.h: Likewise.
67181         * lib/xmemcoll.c: Likewise.
67182         * lib/xnanosleep.c: Likewise.
67183         * lib/xreadlink.c: Likewise.
67184         * lib/xreadlink.h: Likewise.
67185         * lib/xsetenv.c: Likewise.
67186         * lib/xsetenv.h: Likewise.
67187         * lib/xstriconv.c: Likewise.
67188         * lib/xstriconv.h: Likewise.
67189         * lib/xstrndup.c: Likewise.
67190         * lib/xstrndup.h: Likewise.
67191         * lib/xstrtod.c: Likewise.
67192         * lib/xstrtod.h: Likewise.
67193         * lib/xstrtol-error.c: Likewise.
67194         * lib/xstrtol.c: Likewise.
67195         * lib/xstrtol.h: Likewise.
67196         * lib/xtime.h: Likewise.
67197         * lib/xvasprintf.c: Likewise.
67198         * lib/xvasprintf.h: Likewise.
67199         * lib/yesno.c: Likewise.
67200         * lib/yesno.h: Likewise.
67201         * posix-modules: Likewise.
67202         * tests/test-alloca-opt.c: Likewise.
67203         * tests/test-arcfour.c: Likewise.
67204         * tests/test-arctwo.c: Likewise.
67205         * tests/test-argmatch.c: Likewise.
67206         * tests/test-argp-2.sh: Likewise.
67207         * tests/test-argp.c: Likewise.
67208         * tests/test-arpa_inet.c: Likewise.
67209         * tests/test-array_list.c: Likewise.
67210         * tests/test-array_oset.c: Likewise.
67211         * tests/test-atexit.c: Likewise.
67212         * tests/test-avltree_list.c: Likewise.
67213         * tests/test-avltree_oset.c: Likewise.
67214         * tests/test-avltreehash_list.c: Likewise.
67215         * tests/test-base64.c: Likewise.
67216         * tests/test-binary-io.c: Likewise.
67217         * tests/test-byteswap.c: Likewise.
67218         * tests/test-c-ctype.c: Likewise.
67219         * tests/test-c-strcasecmp.c: Likewise.
67220         * tests/test-c-strcasestr.c: Likewise.
67221         * tests/test-c-strncasecmp.c: Likewise.
67222         * tests/test-c-strstr.c: Likewise.
67223         * tests/test-canonicalize-lgpl.c: Likewise.
67224         * tests/test-canonicalize.c: Likewise.
67225         * tests/test-carray_list.c: Likewise.
67226         * tests/test-ceilf.c: Likewise.
67227         * tests/test-ceill.c: Likewise.
67228         * tests/test-count-one-bits.c: Likewise.
67229         * tests/test-crc.c: Likewise.
67230         * tests/test-dirname.c: Likewise.
67231         * tests/test-fbufmode.c: Likewise.
67232         * tests/test-fcntl.c: Likewise.
67233         * tests/test-fflush.c: Likewise.
67234         * tests/test-floorf.c: Likewise.
67235         * tests/test-floorl.c: Likewise.
67236         * tests/test-fopen.c: Likewise.
67237         * tests/test-fprintf-posix.c: Likewise.
67238         * tests/test-fprintf-posix.h: Likewise.
67239         * tests/test-fpurge.c: Likewise.
67240         * tests/test-freadable.c: Likewise.
67241         * tests/test-freadahead.c: Likewise.
67242         * tests/test-freading.c: Likewise.
67243         * tests/test-freopen.c: Likewise.
67244         * tests/test-frexp.c: Likewise.
67245         * tests/test-frexpl.c: Likewise.
67246         * tests/test-fseek.c: Likewise.
67247         * tests/test-fseeko.c: Likewise.
67248         * tests/test-fseterr.c: Likewise.
67249         * tests/test-fstrcmp.c: Likewise.
67250         * tests/test-ftell.c: Likewise.
67251         * tests/test-ftello.c: Likewise.
67252         * tests/test-fwritable.c: Likewise.
67253         * tests/test-fwriting.c: Likewise.
67254         * tests/test-getaddrinfo.c: Likewise.
67255         * tests/test-getpass.c: Likewise.
67256         * tests/test-gettimeofday.c: Likewise.
67257         * tests/test-hmac-md5.c: Likewise.
67258         * tests/test-hmac-sha1.c: Likewise.
67259         * tests/test-iconv.c: Likewise.
67260         * tests/test-iconvme.c: Likewise.
67261         * tests/test-inttypes.c: Likewise.
67262         * tests/test-isnan.c: Likewise.
67263         * tests/test-isnanf.c: Likewise.
67264         * tests/test-isnanl-nolibm.c: Likewise.
67265         * tests/test-isnanl.c: Likewise.
67266         * tests/test-isnanl.h: Likewise.
67267         * tests/test-ldexpl.c: Likewise.
67268         * tests/test-linked_list.c: Likewise.
67269         * tests/test-linkedhash_list.c: Likewise.
67270         * tests/test-locale.c: Likewise.
67271         * tests/test-localename.c: Likewise.
67272         * tests/test-lock.c: Likewise.
67273         * tests/test-lseek.c: Likewise.
67274         * tests/test-malloca.c: Likewise.
67275         * tests/test-math.c: Likewise.
67276         * tests/test-mbscasecmp.c: Likewise.
67277         * tests/test-mbscasestr1.c: Likewise.
67278         * tests/test-mbscasestr2.c: Likewise.
67279         * tests/test-mbscasestr3.c: Likewise.
67280         * tests/test-mbscasestr4.c: Likewise.
67281         * tests/test-mbschr.c: Likewise.
67282         * tests/test-mbscspn.c: Likewise.
67283         * tests/test-mbsncasecmp.c: Likewise.
67284         * tests/test-mbspbrk.c: Likewise.
67285         * tests/test-mbspcasecmp.c: Likewise.
67286         * tests/test-mbsrchr.c: Likewise.
67287         * tests/test-mbsspn.c: Likewise.
67288         * tests/test-mbsstr1.c: Likewise.
67289         * tests/test-mbsstr2.c: Likewise.
67290         * tests/test-mbsstr3.c: Likewise.
67291         * tests/test-md5.c: Likewise.
67292         * tests/test-memmem.c: Likewise.
67293         * tests/test-netinet_in.c: Likewise.
67294         * tests/test-open.c: Likewise.
67295         * tests/test-printf-frexp.c: Likewise.
67296         * tests/test-printf-frexpl.c: Likewise.
67297         * tests/test-printf-posix.c: Likewise.
67298         * tests/test-printf-posix.h: Likewise.
67299         * tests/test-rbtree_list.c: Likewise.
67300         * tests/test-rbtree_oset.c: Likewise.
67301         * tests/test-rbtreehash_list.c: Likewise.
67302         * tests/test-read-file.c: Likewise.
67303         * tests/test-rijndael.c: Likewise.
67304         * tests/test-search.c: Likewise.
67305         * tests/test-signbit.c: Likewise.
67306         * tests/test-sleep.c: Likewise.
67307         * tests/test-snprintf-posix.c: Likewise.
67308         * tests/test-snprintf-posix.h: Likewise.
67309         * tests/test-snprintf.c: Likewise.
67310         * tests/test-sprintf-posix.c: Likewise.
67311         * tests/test-sprintf-posix.h: Likewise.
67312         * tests/test-stat-time.c: Likewise.
67313         * tests/test-stdbool.c: Likewise.
67314         * tests/test-stdint.c: Likewise.
67315         * tests/test-stdio.c: Likewise.
67316         * tests/test-stdlib.c: Likewise.
67317         * tests/test-stpncpy.c: Likewise.
67318         * tests/test-strcasestr.c: Likewise.
67319         * tests/test-striconv.c: Likewise.
67320         * tests/test-striconveh.c: Likewise.
67321         * tests/test-striconveha.c: Likewise.
67322         * tests/test-string.c: Likewise.
67323         * tests/test-sys_select.c: Likewise.
67324         * tests/test-sys_socket.c: Likewise.
67325         * tests/test-sys_stat.c: Likewise.
67326         * tests/test-sys_time.c: Likewise.
67327         * tests/test-sysexits.c: Likewise.
67328         * tests/test-time.c: Likewise.
67329         * tests/test-tls.c: Likewise.
67330         * tests/test-trunc.c: Likewise.
67331         * tests/test-truncf.c: Likewise.
67332         * tests/test-truncl.c: Likewise.
67333         * tests/test-unistd.c: Likewise.
67334         * tests/test-vasnprintf-posix.c: Likewise.
67335         * tests/test-vasnprintf-posix2.c: Likewise.
67336         * tests/test-vasnprintf.c: Likewise.
67337         * tests/test-vasprintf-posix.c: Likewise.
67338         * tests/test-vasprintf.c: Likewise.
67339         * tests/test-verify.c: Likewise.
67340         * tests/test-vfprintf-posix.c: Likewise.
67341         * tests/test-vprintf-posix.c: Likewise.
67342         * tests/test-vsnprintf-posix.c: Likewise.
67343         * tests/test-vsnprintf.c: Likewise.
67344         * tests/test-vsprintf-posix.c: Likewise.
67345         * tests/test-wchar.c: Likewise.
67346         * tests/test-wctype.c: Likewise.
67347         * tests/test-wcwidth.c: Likewise.
67348         * tests/test-xstrtol.c: Likewise.
67349         * tests/test-xvasprintf.c: Likewise.
67350         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
67351         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
67352         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67353         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67354         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67355         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
67356         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67357         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67358         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67359         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
67360         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67361         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67362         * tests/uniname/test-uninames.c: Likewise.
67363         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
67364         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
67365         * tests/unistdio/test-u16-printf1.h: Likewise.
67366         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
67367         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
67368         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
67369         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
67370         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
67371         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
67372         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
67373         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
67374         * tests/unistdio/test-u32-printf1.h: Likewise.
67375         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
67376         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
67377         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
67378         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
67379         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
67380         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
67381         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
67382         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
67383         * tests/unistdio/test-u8-printf1.h: Likewise.
67384         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
67385         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
67386         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
67387         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
67388         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
67389         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
67390         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
67391         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
67392         * tests/unistdio/test-ulc-printf1.h: Likewise.
67393         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
67394         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
67395         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
67396         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
67397         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
67398         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
67399         * tests/uniwidth/test-u16-strwidth.c: Likewise.
67400         * tests/uniwidth/test-u16-width.c: Likewise.
67401         * tests/uniwidth/test-u32-strwidth.c: Likewise.
67402         * tests/uniwidth/test-u32-width.c: Likewise.
67403         * tests/uniwidth/test-u8-strwidth.c: Likewise.
67404         * tests/uniwidth/test-u8-width.c: Likewise.
67405         * tests/uniwidth/test-uc_width.c: Likewise.
67406         * config/srclist-update: Likewise.
67407         (fixlicense): Update to GPLv3+.
67408
67409         Change copyright notice from LGPLv2.1+ to LGPLv3+.
67410         * tests/test-tsearch.c: Change copyright notice.
67411
67412         Change copyright notice from LGPLv2.0+ to LGPLv3+.
67413         * lib/c-strcaseeq.h: Change copyright notice.
67414         * lib/streq.h: Likewise.
67415         * lib/uniconv.h: Likewise.
67416         * lib/uniconv/u-conv-from-enc.h: Likewise.
67417         * lib/uniconv/u-conv-to-enc.h: Likewise.
67418         * lib/uniconv/u-strconv-from-enc.h: Likewise.
67419         * lib/uniconv/u-strconv-to-enc.h: Likewise.
67420         * lib/uniconv/u16-conv-from-enc.c: Likewise.
67421         * lib/uniconv/u16-conv-to-enc.c: Likewise.
67422         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
67423         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
67424         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
67425         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
67426         * lib/uniconv/u32-conv-from-enc.c: Likewise.
67427         * lib/uniconv/u32-conv-to-enc.c: Likewise.
67428         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
67429         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
67430         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
67431         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
67432         * lib/uniconv/u8-conv-from-enc.c: Likewise.
67433         * lib/uniconv/u8-conv-to-enc.c: Likewise.
67434         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
67435         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
67436         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
67437         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
67438         * lib/uniname.h: Likewise.
67439         * lib/uniname/uniname.c: Likewise.
67440         * lib/unistdio.h: Likewise.
67441         * lib/unistdio/u-asnprintf.h: Likewise.
67442         * lib/unistdio/u-asprintf.h: Likewise.
67443         * lib/unistdio/u-printf-args.c: Likewise.
67444         * lib/unistdio/u-printf-args.h: Likewise.
67445         * lib/unistdio/u-printf-parse.h: Likewise.
67446         * lib/unistdio/u-snprintf.h: Likewise.
67447         * lib/unistdio/u-sprintf.h: Likewise.
67448         * lib/unistdio/u-vasprintf.h: Likewise.
67449         * lib/unistdio/u-vsnprintf.h: Likewise.
67450         * lib/unistdio/u-vsprintf.h: Likewise.
67451         * lib/unistdio/u16-asnprintf.c: Likewise.
67452         * lib/unistdio/u16-asprintf.c: Likewise.
67453         * lib/unistdio/u16-printf-parse.c: Likewise.
67454         * lib/unistdio/u16-snprintf.c: Likewise.
67455         * lib/unistdio/u16-sprintf.c: Likewise.
67456         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
67457         * lib/unistdio/u16-u16-asprintf.c: Likewise.
67458         * lib/unistdio/u16-u16-snprintf.c: Likewise.
67459         * lib/unistdio/u16-u16-sprintf.c: Likewise.
67460         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
67461         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
67462         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
67463         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
67464         * lib/unistdio/u16-vasnprintf.c: Likewise.
67465         * lib/unistdio/u16-vasprintf.c: Likewise.
67466         * lib/unistdio/u16-vsnprintf.c: Likewise.
67467         * lib/unistdio/u16-vsprintf.c: Likewise.
67468         * lib/unistdio/u32-asnprintf.c: Likewise.
67469         * lib/unistdio/u32-asprintf.c: Likewise.
67470         * lib/unistdio/u32-printf-parse.c: Likewise.
67471         * lib/unistdio/u32-snprintf.c: Likewise.
67472         * lib/unistdio/u32-sprintf.c: Likewise.
67473         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
67474         * lib/unistdio/u32-u32-asprintf.c: Likewise.
67475         * lib/unistdio/u32-u32-snprintf.c: Likewise.
67476         * lib/unistdio/u32-u32-sprintf.c: Likewise.
67477         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
67478         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
67479         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
67480         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
67481         * lib/unistdio/u32-vasnprintf.c: Likewise.
67482         * lib/unistdio/u32-vasprintf.c: Likewise.
67483         * lib/unistdio/u32-vsnprintf.c: Likewise.
67484         * lib/unistdio/u32-vsprintf.c: Likewise.
67485         * lib/unistdio/u8-asnprintf.c: Likewise.
67486         * lib/unistdio/u8-asprintf.c: Likewise.
67487         * lib/unistdio/u8-printf-parse.c: Likewise.
67488         * lib/unistdio/u8-snprintf.c: Likewise.
67489         * lib/unistdio/u8-sprintf.c: Likewise.
67490         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
67491         * lib/unistdio/u8-u8-asprintf.c: Likewise.
67492         * lib/unistdio/u8-u8-snprintf.c: Likewise.
67493         * lib/unistdio/u8-u8-sprintf.c: Likewise.
67494         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
67495         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
67496         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
67497         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
67498         * lib/unistdio/u8-vasnprintf.c: Likewise.
67499         * lib/unistdio/u8-vasprintf.c: Likewise.
67500         * lib/unistdio/u8-vsnprintf.c: Likewise.
67501         * lib/unistdio/u8-vsprintf.c: Likewise.
67502         * lib/unistdio/ulc-asnprintf.c: Likewise.
67503         * lib/unistdio/ulc-asprintf.c: Likewise.
67504         * lib/unistdio/ulc-printf-parse.c: Likewise.
67505         * lib/unistdio/ulc-snprintf.c: Likewise.
67506         * lib/unistdio/ulc-sprintf.c: Likewise.
67507         * lib/unistdio/ulc-vasnprintf.c: Likewise.
67508         * lib/unistdio/ulc-vasprintf.c: Likewise.
67509         * lib/unistdio/ulc-vsnprintf.c: Likewise.
67510         * lib/unistdio/ulc-vsprintf.c: Likewise.
67511         * lib/unistr.h: Likewise.
67512         * lib/unistr/u-cpy-alloc.h: Likewise.
67513         * lib/unistr/u-cpy.h: Likewise.
67514         * lib/unistr/u-endswith.h: Likewise.
67515         * lib/unistr/u-move.h: Likewise.
67516         * lib/unistr/u-set.h: Likewise.
67517         * lib/unistr/u-startswith.h: Likewise.
67518         * lib/unistr/u-stpcpy.h: Likewise.
67519         * lib/unistr/u-stpncpy.h: Likewise.
67520         * lib/unistr/u-strcat.h: Likewise.
67521         * lib/unistr/u-strcpy.h: Likewise.
67522         * lib/unistr/u-strcspn.h: Likewise.
67523         * lib/unistr/u-strdup.h: Likewise.
67524         * lib/unistr/u-strlen.h: Likewise.
67525         * lib/unistr/u-strncat.h: Likewise.
67526         * lib/unistr/u-strncpy.h: Likewise.
67527         * lib/unistr/u-strnlen.h: Likewise.
67528         * lib/unistr/u-strpbrk.h: Likewise.
67529         * lib/unistr/u-strspn.h: Likewise.
67530         * lib/unistr/u-strstr.h: Likewise.
67531         * lib/unistr/u-strtok.h: Likewise.
67532         * lib/unistr/u16-check.c: Likewise.
67533         * lib/unistr/u16-chr.c: Likewise.
67534         * lib/unistr/u16-cmp.c: Likewise.
67535         * lib/unistr/u16-cpy-alloc.c: Likewise.
67536         * lib/unistr/u16-cpy.c: Likewise.
67537         * lib/unistr/u16-endswith.c: Likewise.
67538         * lib/unistr/u16-mblen.c: Likewise.
67539         * lib/unistr/u16-mbsnlen.c: Likewise.
67540         * lib/unistr/u16-mbtouc-aux.c: Likewise.
67541         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
67542         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
67543         * lib/unistr/u16-mbtouc.c: Likewise.
67544         * lib/unistr/u16-mbtoucr.c: Likewise.
67545         * lib/unistr/u16-move.c: Likewise.
67546         * lib/unistr/u16-next.c: Likewise.
67547         * lib/unistr/u16-prev.c: Likewise.
67548         * lib/unistr/u16-set.c: Likewise.
67549         * lib/unistr/u16-startswith.c: Likewise.
67550         * lib/unistr/u16-stpcpy.c: Likewise.
67551         * lib/unistr/u16-stpncpy.c: Likewise.
67552         * lib/unistr/u16-strcat.c: Likewise.
67553         * lib/unistr/u16-strchr.c: Likewise.
67554         * lib/unistr/u16-strcmp.c: Likewise.
67555         * lib/unistr/u16-strcpy.c: Likewise.
67556         * lib/unistr/u16-strcspn.c: Likewise.
67557         * lib/unistr/u16-strdup.c: Likewise.
67558         * lib/unistr/u16-strlen.c: Likewise.
67559         * lib/unistr/u16-strmblen.c: Likewise.
67560         * lib/unistr/u16-strmbtouc.c: Likewise.
67561         * lib/unistr/u16-strncat.c: Likewise.
67562         * lib/unistr/u16-strncmp.c: Likewise.
67563         * lib/unistr/u16-strncpy.c: Likewise.
67564         * lib/unistr/u16-strnlen.c: Likewise.
67565         * lib/unistr/u16-strpbrk.c: Likewise.
67566         * lib/unistr/u16-strrchr.c: Likewise.
67567         * lib/unistr/u16-strspn.c: Likewise.
67568         * lib/unistr/u16-strstr.c: Likewise.
67569         * lib/unistr/u16-strtok.c: Likewise.
67570         * lib/unistr/u16-to-u32.c: Likewise.
67571         * lib/unistr/u16-to-u8.c: Likewise.
67572         * lib/unistr/u16-uctomb-aux.c: Likewise.
67573         * lib/unistr/u16-uctomb.c: Likewise.
67574         * lib/unistr/u32-check.c: Likewise.
67575         * lib/unistr/u32-chr.c: Likewise.
67576         * lib/unistr/u32-cmp.c: Likewise.
67577         * lib/unistr/u32-cpy-alloc.c: Likewise.
67578         * lib/unistr/u32-cpy.c: Likewise.
67579         * lib/unistr/u32-endswith.c: Likewise.
67580         * lib/unistr/u32-mblen.c: Likewise.
67581         * lib/unistr/u32-mbsnlen.c: Likewise.
67582         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
67583         * lib/unistr/u32-mbtouc.c: Likewise.
67584         * lib/unistr/u32-mbtoucr.c: Likewise.
67585         * lib/unistr/u32-move.c: Likewise.
67586         * lib/unistr/u32-next.c: Likewise.
67587         * lib/unistr/u32-prev.c: Likewise.
67588         * lib/unistr/u32-set.c: Likewise.
67589         * lib/unistr/u32-startswith.c: Likewise.
67590         * lib/unistr/u32-stpcpy.c: Likewise.
67591         * lib/unistr/u32-stpncpy.c: Likewise.
67592         * lib/unistr/u32-strcat.c: Likewise.
67593         * lib/unistr/u32-strchr.c: Likewise.
67594         * lib/unistr/u32-strcmp.c: Likewise.
67595         * lib/unistr/u32-strcpy.c: Likewise.
67596         * lib/unistr/u32-strcspn.c: Likewise.
67597         * lib/unistr/u32-strdup.c: Likewise.
67598         * lib/unistr/u32-strlen.c: Likewise.
67599         * lib/unistr/u32-strmblen.c: Likewise.
67600         * lib/unistr/u32-strmbtouc.c: Likewise.
67601         * lib/unistr/u32-strncat.c: Likewise.
67602         * lib/unistr/u32-strncmp.c: Likewise.
67603         * lib/unistr/u32-strncpy.c: Likewise.
67604         * lib/unistr/u32-strnlen.c: Likewise.
67605         * lib/unistr/u32-strpbrk.c: Likewise.
67606         * lib/unistr/u32-strrchr.c: Likewise.
67607         * lib/unistr/u32-strspn.c: Likewise.
67608         * lib/unistr/u32-strstr.c: Likewise.
67609         * lib/unistr/u32-strtok.c: Likewise.
67610         * lib/unistr/u32-to-u16.c: Likewise.
67611         * lib/unistr/u32-to-u8.c: Likewise.
67612         * lib/unistr/u32-uctomb.c: Likewise.
67613         * lib/unistr/u8-check.c: Likewise.
67614         * lib/unistr/u8-chr.c: Likewise.
67615         * lib/unistr/u8-cmp.c: Likewise.
67616         * lib/unistr/u8-cpy-alloc.c: Likewise.
67617         * lib/unistr/u8-cpy.c: Likewise.
67618         * lib/unistr/u8-endswith.c: Likewise.
67619         * lib/unistr/u8-mblen.c: Likewise.
67620         * lib/unistr/u8-mbsnlen.c: Likewise.
67621         * lib/unistr/u8-mbtouc-aux.c: Likewise.
67622         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
67623         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
67624         * lib/unistr/u8-mbtouc.c: Likewise.
67625         * lib/unistr/u8-mbtoucr.c: Likewise.
67626         * lib/unistr/u8-move.c: Likewise.
67627         * lib/unistr/u8-next.c: Likewise.
67628         * lib/unistr/u8-prev.c: Likewise.
67629         * lib/unistr/u8-set.c: Likewise.
67630         * lib/unistr/u8-startswith.c: Likewise.
67631         * lib/unistr/u8-stpcpy.c: Likewise.
67632         * lib/unistr/u8-stpncpy.c: Likewise.
67633         * lib/unistr/u8-strcat.c: Likewise.
67634         * lib/unistr/u8-strchr.c: Likewise.
67635         * lib/unistr/u8-strcmp.c: Likewise.
67636         * lib/unistr/u8-strcpy.c: Likewise.
67637         * lib/unistr/u8-strcspn.c: Likewise.
67638         * lib/unistr/u8-strdup.c: Likewise.
67639         * lib/unistr/u8-strlen.c: Likewise.
67640         * lib/unistr/u8-strmblen.c: Likewise.
67641         * lib/unistr/u8-strmbtouc.c: Likewise.
67642         * lib/unistr/u8-strncat.c: Likewise.
67643         * lib/unistr/u8-strncmp.c: Likewise.
67644         * lib/unistr/u8-strncpy.c: Likewise.
67645         * lib/unistr/u8-strnlen.c: Likewise.
67646         * lib/unistr/u8-strpbrk.c: Likewise.
67647         * lib/unistr/u8-strrchr.c: Likewise.
67648         * lib/unistr/u8-strspn.c: Likewise.
67649         * lib/unistr/u8-strstr.c: Likewise.
67650         * lib/unistr/u8-strtok.c: Likewise.
67651         * lib/unistr/u8-to-u16.c: Likewise.
67652         * lib/unistr/u8-to-u32.c: Likewise.
67653         * lib/unistr/u8-uctomb-aux.c: Likewise.
67654         * lib/unistr/u8-uctomb.c: Likewise.
67655         * lib/unitypes.h: Likewise.
67656         * lib/uniwidth.h: Likewise.
67657         * lib/uniwidth/cjk.h: Likewise.
67658         * lib/uniwidth/u16-strwidth.c: Likewise.
67659         * lib/uniwidth/u16-width.c: Likewise.
67660         * lib/uniwidth/u32-strwidth.c: Likewise.
67661         * lib/uniwidth/u32-width.c: Likewise.
67662         * lib/uniwidth/u8-strwidth.c: Likewise.
67663         * lib/uniwidth/u8-width.c: Likewise.
67664         * lib/uniwidth/width.c: Likewise.
67665
67666 2007-10-07  Bruno Haible  <bruno@clisp.org>
67667
67668         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
67669         The file is still under LGPL (see modules/inttypes).
67670
67671 2007-10-06  Bruno Haible  <bruno@clisp.org>
67672
67673         * modules/trunc (Dependencies): Add 'extensions'.
67674         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
67675         Reported by Ben Pfaff <blp@gnu.org>.
67676
67677 2007-10-06  Bruno Haible  <bruno@clisp.org>
67678
67679         * modules/freopen-tests: New file.
67680         * tests/test-freopen.c: New file.
67681
67682         * modules/fopen-tests: New file.
67683         * tests/test-fopen.c: New file.
67684
67685         * modules/fopen: New file.
67686         * lib/fopen.c: New file.
67687         * m4/fopen.m4: New file.
67688         * modules/freopen: New file.
67689         * lib/freopen.c: New file.
67690         * m4/freopen.m4: New file.
67691         * lib/stdio.in.h (fopen, freopen): New declarations.
67692         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
67693         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67694         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
67695         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
67696         * doc/functions/fopen.texi: Mention the 'fopen' module.
67697         * doc/functions/freopen.texi: Mention the 'freopen' module.
67698
67699 2007-10-06  Bruno Haible  <bruno@clisp.org>
67700
67701         * modules/open-tests: New file.
67702         * tests/test-open.c: New file.
67703
67704         * modules/open: New file.
67705         * lib/open.c: New file.
67706         * m4/open.m4: New file.
67707         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
67708         lib/open.c does.
67709         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
67710         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
67711         macros.
67712         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
67713         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
67714         REPLACE_OPEN.
67715         * doc/functions/open.texi: Mention the 'open' module.
67716
67717 2007-10-04  Bruno Haible  <bruno@clisp.org>
67718
67719         * modules/ceill-tests: New file.
67720         * tests/test-ceill.c: New file.
67721
67722         * modules/ceill: New file.
67723         * lib/ceill.c: Replace entire file.
67724         * m4/ceill.m4: New file.
67725         * lib/math.in.h (ceill): Replace declaration.
67726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
67727         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
67728         * doc/functions/ceill.texi: Mention the 'ceill' module.
67729         * modules/mathl (Files): Remove lib/ceill.c.
67730         (Depends-on): Add ceill.
67731
67732 2007-10-04  Bruno Haible  <bruno@clisp.org>
67733
67734         * modules/ceilf-tests: New file.
67735         * tests/test-ceilf.c: New file.
67736
67737         * modules/ceilf: New file.
67738         * lib/ceil.c: New file.
67739         * lib/ceilf.c: New file.
67740         * m4/ceilf.m4: New file.
67741         * lib/math.in.h (ceilf): New declaration.
67742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
67743         HAVE_DECL_CEILF.
67744         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
67745         HAVE_DECL_CEILF.
67746         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
67747
67748 2007-10-04  Bruno Haible  <bruno@clisp.org>
67749
67750         * modules/floorl-tests: New file.
67751         * tests/test-floorl.c: New file.
67752
67753         * modules/floorl: New file.
67754         * lib/floorl.c: Replace entire file.
67755         * m4/floorl.m4: New file.
67756         * lib/math.in.h (floorl): Replace declaration.
67757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
67758         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
67759         * doc/functions/floorl.texi: Mention the 'floorl' module.
67760         * modules/mathl (Files): Remove lib/floorl.c.
67761         (Depends-on): Add floorl.
67762
67763 2007-10-04  Bruno Haible  <bruno@clisp.org>
67764
67765         * modules/floorf-tests: New file.
67766         * tests/test-floorf.c: New file.
67767
67768         * modules/floorf: New file.
67769         * lib/floor.c: New file.
67770         * lib/floorf.c: New file.
67771         * m4/floorf.m4: New file.
67772         * lib/math.in.h (floorf): New declaration.
67773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
67774         HAVE_DECL_FLOORF.
67775         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
67776         HAVE_DECL_FLOORF.
67777         * doc/functions/floorf.texi: Mention the 'floorf' module.
67778
67779 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
67780             Bruno Haible  <bruno@clisp.org>
67781
67782         Advertise for the Git server instead of the CVS server.
67783         * doc/gnulib-intro.texi (Steady Development): Mention the Git
67784         repository instead of the CVS one.
67785         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
67786         about all VCS systems generically.
67787         * doc/gnulib.texi (Introduction): Capitalize `Git'.
67788
67789 2007-10-04  Bruno Haible  <bruno@clisp.org>
67790
67791         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
67792         means.
67793         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
67794
67795 2007-10-04  Bruno Haible  <bruno@clisp.org>
67796
67797         * modules/truncl-tests: New file.
67798         * tests/test-truncl.c: New file.
67799
67800         * modules/truncl: New file.
67801         * lib/truncl.c: New file.
67802         * m4/truncl.m4: New file.
67803         * lib/math.in.h (truncl): New declaration.
67804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
67805         HAVE_DECL_TRUNCL.
67806         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
67807         HAVE_DECL_TRUNCL.
67808         * doc/functions/truncl.texi: Mention the 'truncl' module.
67809
67810 2007-10-04  Bruno Haible  <bruno@clisp.org>
67811
67812         * modules/truncf-tests: New file.
67813         * tests/test-truncf.c: New file.
67814
67815         * modules/truncf: New file.
67816         * lib/trunc.c: Make paramerizable through USE_* macros.
67817         * lib/truncf.c: New file.
67818         * m4/truncf.m4: New file.
67819         * lib/math.in.h (truncf): New declaration.
67820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
67821         HAVE_DECL_TRUNCF.
67822         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
67823         HAVE_DECL_TRUNCF.
67824         * doc/functions/truncf.texi: Mention the 'truncf' module.
67825
67826 2007-10-03  Bruno Haible  <bruno@clisp.org>
67827
67828         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
67829         augmentation also for tests modules.
67830         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
67831         * modules/atexit-tests (Makefile.am): Likewise.
67832         * modules/binary-io-tests (Makefile.am): Likewise.
67833         * modules/c-strcase-tests (Makefile.am): Likewise.
67834         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
67835         * modules/canonicalize-tests (Makefile.am): Likewise.
67836         * modules/closein-tests (Makefile.am): Likewise.
67837         * modules/fprintf-posix-tests (Makefile.am): Likewise.
67838         * modules/freadahead-tests (Makefile.am): Likewise.
67839         * modules/fseek-tests (Makefile.am): Likewise.
67840         * modules/fseeko-tests (Makefile.am): Likewise.
67841         * modules/ftell-tests (Makefile.am): Likewise.
67842         * modules/ftello-tests (Makefile.am): Likewise.
67843         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
67844         * modules/isnanl-tests (Makefile.am): Likewise.
67845         * modules/lseek-tests (Makefile.am): Likewise.
67846         * modules/mbscasecmp-tests (Makefile.am): Likewise.
67847         * modules/mbscasestr-tests (Makefile.am): Likewise.
67848         * modules/mbschr-tests (Makefile.am): Likewise.
67849         * modules/mbscspn-tests (Makefile.am): Likewise.
67850         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
67851         * modules/mbspbrk-tests (Makefile.am): Likewise.
67852         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
67853         * modules/mbsrchr-tests (Makefile.am): Likewise.
67854         * modules/mbsspn-tests (Makefile.am): Likewise.
67855         * modules/mbsstr-tests (Makefile.am): Likewise.
67856         * modules/printf-posix-tests (Makefile.am): Likewise.
67857         * modules/snprintf-posix-tests (Makefile.am): Likewise.
67858         * modules/sprintf-posix-tests (Makefile.am): Likewise.
67859         * modules/tsearch-tests (Makefile.am): Likewise.
67860         * modules/uniname/uniname-tests (Makefile.am): Likewise.
67861         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
67862         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
67863         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
67864         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
67865         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
67866         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
67867         * modules/vprintf-posix-tests (Makefile.am): Likewise.
67868         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
67869         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
67870         * modules/xstrtoimax-tests (Makefile.am): Likewise.
67871         * modules/xstrtol-tests (Makefile.am): Likewise.
67872         * modules/xstrtoumax-tests (Makefile.am): Likewise.
67873         * modules/yesno-tests (Makefile.am): Likewise.
67874
67875 2007-10-03  Bruno Haible  <bruno@clisp.org>
67876
67877         * modules/trunc-tests: New file.
67878         * tests/test-trunc.c: New file.
67879
67880         * modules/trunc: New file.
67881         * lib/trunc.c: New file.
67882         * m4/trunc.m4: New file.
67883         * lib/math.in.h (trunc): New declaration.
67884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
67885         HAVE_DECL_TRUNC.
67886         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
67887         HAVE_DECL_TRUNC.
67888         * doc/functions/trunc.texi: Mention the 'trunc' module.
67889
67890 2007-10-03  Bruno Haible  <bruno@clisp.org>
67891
67892         * tests/test-fpending.c: New file, mostly copied
67893         from coreutils/lib/t-fpending.c.
67894         * modules/fpending-tests: New file.
67895
67896 2007-10-03  Bruno Haible  <bruno@clisp.org>
67897
67898         Port the stdio extensions to QNX (untested).
67899         * lib/fseterr.c (fseterr): Add support for QNX.
67900         * lib/fbufmode.c (fbufmode): Likewise.
67901         * lib/freadable.c (freadable): Likewise.
67902         * lib/fwritable.c (fwritable): Likewise.
67903         * lib/freading.c (freading): Likewise.
67904         * lib/fwriting.c (fwriting): Likewise.
67905         * lib/freadahead.c (freadahed): Likewise.
67906         * lib/fpurge.c (fpurge): Likewise.
67907         * lib/fseeko.c (rpl_fseeko): Likewise.
67908
67909 2007-10-03  Bruno Haible  <bruno@clisp.org>
67910             Jim Meyering  <jim@meyering.net>
67911             Eric Blake  <ebb9@byu.net>
67912
67913         * doc/relocatable.texi: Use @command instead of @program.
67914
67915 2007-10-02  Jim Meyering  <jim@meyering.net>
67916
67917         Perform one more "_.h" -> ".in.h" substitution.
67918         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
67919         instead of unistd_.h here, too.
67920
67921 2007-10-01  Bruno Haible  <bruno@clisp.org>
67922
67923         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
67924         Needed for the alloca-opt module.
67925
67926 2007-09-30  Bruno Haible  <bruno@clisp.org>
67927
67928         * lib/alloca.in.h: Renamed from lib/alloca_.h.
67929         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
67930         alloca_.h.
67931         * lib/argz.in.h: Renamed from lib/argz_.h.
67932         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
67933         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
67934         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
67935         byteswap_.h.
67936         * lib/dirent.in.h: Renamed from lib/dirent_.h.
67937         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
67938         dirent_.h.
67939         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
67940         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
67941         fcntl_.h.
67942         * lib/float.in.h: Renamed from lib/float_.h.
67943         * modules/float (Files, Makefile.am): Use float.in.h instead of
67944         float_.h.
67945         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
67946         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
67947         fnmatch_.h.
67948         * lib/getopt.in.h: Renamed from lib/getopt_.h.
67949         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
67950         getopt_.h.
67951         * lib/glob.in.h: Renamed from lib/glob_.h.
67952         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
67953         * lib/iconv.in.h: Renamed from lib/iconv_.h.
67954         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
67955         iconv_.h.
67956         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
67957         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
67958         inttypes_.h.
67959         * lib/locale.in.h: Renamed from lib/locale_.h.
67960         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
67961         locale_.h.
67962         * lib/math.in.h: Renamed from lib/math_.h.
67963         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
67964         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
67965         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
67966         of netinet_in_.h. Add dependency.
67967         * lib/poll.in.h: Renamed from lib/poll_.h.
67968         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
67969         * lib/search.in.h: Renamed from lib/search_.h.
67970         * modules/search (Files, Makefile.am): Use search.in.h instead of
67971         search_.h.
67972         * lib/signal.in.h: Renamed from lib/signal_.h.
67973         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
67974         _signal.h.
67975         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
67976         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
67977         stdbool_.h.
67978         * lib/stdint.in.h: Renamed from lib/stdint_.h.
67979         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
67980         stdint_.h.
67981         * lib/stdio.in.h: Renamed from lib/stdio_.h.
67982         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
67983         stdio_.h.
67984         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
67985         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
67986         stdlib_.h.
67987         * lib/string.in.h: Renamed from lib/string_.h.
67988         * modules/string (Files, Makefile.am): Use string.in.h instead of
67989         string_.h.
67990         * doc/gnulib-tool.texi (Initial import): Update.
67991         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
67992         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
67993         of sys_select_.h. Add dependency.
67994         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
67995         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
67996         of sys_socket_.h.
67997         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
67998         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
67999         sys_stat_.h.
68000         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
68001         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
68002         sys_time_.h.
68003         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
68004         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
68005         sysexits_.h.
68006         * lib/time.in.h: Renamed from lib/time_.h.
68007         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
68008         * lib/unistd.in.h: Renamed from lib/unistd_.h.
68009         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
68010         unistd_.h.
68011         * lib/wchar.in.h: Renamed from lib/wchar_.h.
68012         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
68013         wchar_.h.
68014         * lib/wctype.in.h: Renamed from lib/wctype_.h.
68015         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
68016         wctype_.h.
68017         * build-aux/bootstrap (slurp): Update.
68018         * lib/.cppi-disable: Update.
68019
68020 2007-09-30  Bruno Haible  <bruno@clisp.org>
68021
68022         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
68023         Needed on BeOS.
68024
68025 2007-09-30  Bruno Haible  <bruno@clisp.org>
68026
68027         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
68028
68029 2007-09-29  Bruno Haible  <bruno@clisp.org>
68030
68031         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
68032
68033 2007-09-29  Bruno Haible  <bruno@clisp.org>
68034
68035         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
68036         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
68037         * build-aux/install-reloc: Compile also areadlink.c.
68038         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
68039
68040 2007-09-29  Bruno Haible  <bruno@clisp.org>
68041
68042         * gnulib-tool (func_emit_initmacro_done): Indentation.
68043
68044 2007-09-29  Bruno Haible  <bruno@clisp.org>
68045
68046         * README: Add CVS checkout update instructions.
68047         Info from Bob Proulx <bob@proulx.com>.
68048
68049 2007-09-28  Eric Blake  <ebb9@byu.net>
68050
68051         Provide move-if-change.
68052         * build-aux/move-if-change: New file, based on best practice
68053         rather than any canonical upstream location.
68054
68055 2007-09-28  Jim Meyering  <jim@meyering.net>
68056
68057         Fix canonicalize loop-detection corner case.
68058         Do not attempt to stat the symlink values stored via seen_triple.
68059         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
68060         on linux-2.6.18, (but not 2.6.22).
68061         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
68062         triple_compare.  The former compares dev,ino,filename, while the latter
68063         would actually stat dirname(filename) when dev and ino were equal.
68064         * lib/hash-triple.c: Install <string.h>.
68065         (STREQ): Define.
68066         (triple_compare_ino_str): New function.
68067         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
68068
68069 2007-09-28  Eric Blake  <ebb9@byu.net>
68070
68071         Enforce that AC_REPLACE_FUNCS files exist.
68072         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
68073         override check for typos.
68074
68075         Fix test-closein on Solaris 10.
68076         * tests/test-closein.c (main): Don't assume stdin can be inherited
68077         closed on all systems.
68078         * tests/test-closein.sh: Likewise.
68079         Reported by Piotr Tarnowski.
68080
68081 2007-09-28  Jim Meyering  <jim@meyering.net>
68082
68083         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
68084
68085 2007-09-27  Jim Meyering  <jim@meyering.net>
68086
68087         canonicalize: Avoid a false-positive cycle failure.
68088         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
68089         Sort.  Remove cycle-check.
68090         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
68091         not cycle-check.h.
68092         (seen_triple): New function.
68093         (canonicalize_filename_mode): Use it instead of cycle-check.
68094         * tests/test-canonicalize.c: Add a test for this bug.
68095         * tests/test-canonicalize.sh: Set up and run the test.
68096
68097         New module, file-set, from coreutils.
68098         * modules/file-set: Define it.
68099         * lib/file-set.c, lib/file-set.h: Implement.
68100
68101         New module, hash-triple, from coreutils.
68102         * modules/hash-triple: Define it.
68103         * lib/hash-triple.c, lib/hash-triple.h: Implement.
68104
68105 2007-09-25  Eric Blake  <ebb9@byu.net>
68106
68107         Fix strerror on Interix.
68108         * lib/string_.h (strerror): Declare replacement.
68109         * doc/functions/strerror.texi (strerror): Document the Interix
68110         shortcoming.
68111         * modules/string (Makefile.am): Support new hooks.
68112         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
68113         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
68114         gl_FUNC_STRERROR_SEPARATE.
68115         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
68116         * lib/strerror.c (rpl_strerror): Provide replacement.
68117         * modules/strerror (Depends-on): Add string.
68118         (configure.ac): Detect use of module.
68119         * tests/test-strerror.c: New file.
68120         * modules/strerror-tests: New test module.
68121         * modules/argp (Depends-on): Add strerror.
68122         * modules/error (Depends-on): Likewise.
68123         Reported by Martin Koeppe.
68124
68125 2007-09-24  Bruno Haible  <bruno@clisp.org>
68126
68127         * README: Update git instructions.
68128
68129 2007-09-24  Eric Blake  <ebb9@byu.net>
68130
68131         Revert fpending breakage from 2007-09-08.
68132         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
68133         __fpending.c.
68134
68135 2007-09-24  Jim Meyering  <jim@meyering.net>
68136
68137         filenamecat.c: Add a test.
68138         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
68139         showing how the function works when DIR is the empty string.
68140
68141 2007-09-21  Simon Josefsson  <simon@josefsson.org>
68142
68143         * tests/test-canonicalize.sh: Turn on executable bit.
68144
68145 2007-09-19  Eric Blake  <ebb9@byu.net>
68146
68147         * README: Update CVS instructions.
68148
68149 2007-09-18  Bruno Haible  <bruno@clisp.org>
68150
68151         * modules/areadlink: New file.
68152         * lib/areadlink.h (areadlink): New declaration.
68153         * lib/areadlink.c: New file, based on lib/xreadlink.c.
68154
68155 2007-09-17  Jim Meyering  <jim@meyering.net>
68156
68157         * lib/savewd.c (ESTALE) [!defined]: Define.
68158         Reported to be required on Interix by Martin Koeppe.
68159
68160 2007-09-17  Bruno Haible  <bruno@clisp.org>
68161
68162         * gnulib-tool (func_version): Use $version.
68163
68164 2007-09-16  Bruno Haible  <bruno@clisp.org>
68165
68166         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
68167         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
68168         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
68169         Reported by Greg Schafer <gschafer@zip.com.au>.
68170
68171 2007-09-15  Bruno Haible  <bruno@clisp.org>
68172
68173         * gnulib-tool (sed): Try a little harder to make bash understand the
68174         alias.
68175         Reported by Bruce Korb <bruce.korb@gmail.com>.
68176
68177 2007-09-13  Eric Blake  <ebb9@byu.net>
68178
68179         * ChangeLog: Remove conflict markers.
68180
68181 2007-09-13  Simon Josefsson  <simon@josefsson.org>
68182
68183         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
68184         Reported by Bruno Haible <bruno@clisp.org>.
68185
68186 2007-09-12  Bruno Haible  <bruno@clisp.org>
68187
68188         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
68189         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
68190         is not defined.
68191
68192 2007-09-12  Eric Blake  <ebb9@byu.net>
68193
68194         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
68195         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
68196         Autoconf definition.
68197         * modules/euidaccess (Depends-on): Add extensions, for
68198         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
68199         * modules/fnmatch (Depends-on): Likewise.
68200         * modules/getaddrinfo (Depends-on): Likewise.
68201         * modules/getdelim (Depends-on): Likewise.
68202         * modules/getline (Depends-on): Likewise.
68203         * modules/getsubopt (Depends-on): Likewise.
68204         * modules/gettext (Depends-on): Likewise.
68205         * modules/group-member (Depends-on): Likewise.
68206         * modules/mbchar (Depends-on): Likewise.
68207         * modules/memmem (Depends-on): Likewise.
68208         * modules/mempcpy (Depends-on): Likewise.
68209         * modules/memrchr (Depends-on): Likewise.
68210         * modules/pagealign_alloc (Depends-on): Likewise.
68211         * modules/readutmp (Depends-on): Likewise.
68212         * modules/stpcpy (Depends-on): Likewise.
68213         * modules/stpncpy (Depends-on): Likewise.
68214         * modules/strchrnul (Depends-on): Likewise.
68215         * modules/strndup (Depends-on): Likewise.
68216         * modules/strsep (Depends-on): Likewise.
68217         * modules/strverscmp (Depends-on): Likewise.
68218         * modules/vasprintf (Depends-on): Likewise.
68219         * modules/wcwidth (Depends-on): Likewise.
68220         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
68221         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
68222         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
68223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
68224         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
68225         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68226         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
68227         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
68228         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
68229         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
68230         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
68231         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68232         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68233         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
68234         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
68235         * m4/readutmp.m4 (gl_READUTMP): Likewise.
68236         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68237         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68238         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68239         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68240         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68242         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68243         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
68244         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
68245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
68246         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
68247         so that lock.m4 can be used in gettext without extensions module.
68248
68249 2007-09-11  Bruno Haible  <bruno@clisp.org>
68250
68251         * m4/isc-posix.m4: Remove file.
68252         Suggested by Eric Blake.
68253
68254 2007-09-11  Eric Blake  <ebb9@byu.net>
68255
68256         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
68257
68258 2007-09-10  Bruno Haible  <bruno@clisp.org>
68259
68260         * posix-modules: Fix typo in error message.
68261         Reported by Matt <mkraai@beckman.com>.
68262
68263 2007-09-09  Bruno Haible  <bruno@clisp.org>
68264
68265         * doc/functions/getdelim.texi: Update list of platforms lacking the
68266         function.
68267         * doc/functions/getline.texi: Likewise.
68268
68269 2007-09-09  Jim Meyering  <jim@meyering.net>
68270
68271         * lib/hash.c (hash_initialize): Detect calloc failure.
68272         Reported by Bruno Haible.
68273
68274 2007-09-09  Bruno Haible  <bruno@clisp.org>
68275
68276         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
68277         malloc or realloc fails.
68278
68279 2007-09-09  Bruno Haible  <bruno@clisp.org>
68280
68281         * modules/getcwd (Depends-on): Add malloc-posix.
68282         * modules/glob (Depends-on): Likewise.
68283         * modules/putenv (Depends-on): Likewise.
68284         * modules/strdup (Depends-on): Likewise.
68285         * modules/getdelim (Depends-on): Add realloc-posix.
68286         * modules/read-file (Depends-on): Likewise.
68287
68288 2007-09-09  Bruno Haible  <bruno@clisp.org>
68289
68290         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
68291         (gl_FUNC_MALLOC_POSIX): Require it.
68292         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
68293         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
68294         * modules/realloc (Files): Add m4/malloc.m4.
68295         * modules/calloc (Files): Likewise.
68296
68297 2007-09-09  Bruno Haible  <bruno@clisp.org>
68298
68299         * modules/malloc-posix: New file.
68300         * modules/malloc (Depends-on): Add malloc-posix.
68301         * lib/malloc.c: Include errno.h.
68302         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
68303         and a POSIX-compatible malloc into a single function. Set ENOMEM
68304         when returning NULL.
68305         * m4/malloc.m4: New file.
68306         * doc/functions/malloc.texi: Mention the malloc-posix module.
68307         * lib/stdlib_.h (malloc): New declaration.
68308         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68309         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
68310         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
68311         and HAVE_MALLOC_POSIX.
68312
68313 2007-09-09  Bruno Haible  <bruno@clisp.org>
68314
68315         * modules/realloc-posix: New file.
68316         * modules/realloc (Depends-on): Add realloc-posix.
68317         * lib/realloc.c: Include errno.h.
68318         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
68319         and a POSIX-compatible realloc into a single function. Set ENOMEM
68320         when returning NULL.
68321         * m4/realloc.m4: New file.
68322         * doc/functions/realloc.texi: Mention the realloc-posix module.
68323         * lib/stdlib_.h (realloc): New declaration.
68324         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68325         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
68326         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
68327         and HAVE_REALLOC_POSIX.
68328
68329 2007-09-09  Bruno Haible  <bruno@clisp.org>
68330
68331         * modules/calloc-posix: New file.
68332         * modules/calloc (Depends-on): Add calloc-posix.
68333         * lib/calloc.c: Include errno.h.
68334         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
68335         and a POSIX-compatible calloc into a single function. Set ENOMEM
68336         when returning NULL.
68337         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
68338         * doc/functions/calloc.texi: Mention the calloc-posix module.
68339         * lib/stdlib_.h (calloc): New declaration.
68340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
68341         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
68342         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
68343         and HAVE_CALLOC_POSIX.
68344
68345 2007-09-09  Bruno Haible  <bruno@clisp.org>
68346
68347         Allow for modules to show an arbitrary notice.
68348         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
68349         * gnulib-tool: New option --extract-notice.
68350         (func_usage): Document it.
68351         (sed_extract_prog): Update.
68352         (func_get_notice): New function.
68353         (func_modules_notice): New function.
68354         (func_import, func_create_testdir): Invoke it.
68355         Suggested by Jim Meyering.
68356
68357 2007-09-09  Bruno Haible  <bruno@clisp.org>
68358
68359         * gnulib-tool: New options --verbose, --quiet.
68360         (func_usage): Document them.
68361         (verbose): New variable.
68362         (func_execute_command): New function.
68363         (func_import): Don't show the module list and the file list if
68364         $verbose < 0.
68365         (func_create_testdir): Likewise. Use func_execute_command.
68366         (func_create_megatestdir): Use func_execute_command.
68367
68368 2007-09-08  Bruno Haible  <bruno@clisp.org>
68369
68370         * gnulib-tool (func_import): Prefer rsync over wget when available,
68371         for fetching the PO files.
68372
68373 2007-09-08  Bruno Haible  <bruno@clisp.org>
68374
68375         * posix-modules: New file. Portions copied from gnulib-tool.
68376         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
68377
68378 2007-09-08  Jim Meyering  <jim@meyering.net>
68379
68380         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
68381         * lib/fpending.h: Rename from __fpending.h.
68382         * lib/fpending.c: Rename from __fpending.c.
68383         Include "fpending.h", not "__fpending.h".
68384         * lib/__fpending.h, lib/__fpending.c: Remove files.
68385         * modules/fpending (Files): Reflect new file names.
68386         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
68387
68388 2007-09-08  Bruno Haible  <bruno@clisp.org>
68389
68390         * m4/inttypes-h.m4: Remove stub file.
68391
68392 2007-09-07  Simon Josefsson  <simon@josefsson.org>
68393
68394         * doc/headers/stdint.texi: Discuss #include_next issue.
68395
68396 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68397
68398         * build-aux/bootstrap: Remove obsolete comment about wget --help.
68399
68400 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68401
68402         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
68403         in variable name.
68404
68405 2007-09-03  Jim Meyering  <jim@meyering.net>
68406
68407         New module: git-version-gen.
68408         * modules/git-version-gen: New file.
68409
68410         Import changes from coreutils for bootstrap script.
68411
68412         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
68413
68414         bootstrap: uses rsync to download the .po files
68415         * build-aux/bootstrap (po_download_command_format): New global.
68416         (download_po_files): Use rsync.
68417         (update_po_files): Don't remove .po files after download,
68418         so future rsync runs can take advantage of the copies.
68419
68420         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
68421
68422         Solve the unnecessary-.po-file-regeneration problem once and for all.
68423         * build-aux/bootstrap (download_po_files): New function, renamed from
68424         get_translations.  Now, downloads, but doesn't update LINGUAS.
68425         (update_po_files): New function.
68426
68427         bootstrap: Ignore more.
68428         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
68429         uniwidth to e.g., lib/.gitignore.
68430         (slurp): Handle the sys_stat_.h -> sys mapping, too.
68431
68432         * build-aux/bootstrap: New setting: vc_ignore.
68433         (insert_sorted_if_absent): Create $file if absent.
68434         Adapt to new, possibly empty, list: $vc_ignore.
68435
68436         bootstrap: generate more ignorable names
68437         * build-aux/bootstrap (slurp): When generating ignorable names,
68438         also map .sin to .sed, .gperf to .c, and .y to .c.
68439
68440 2007-09-03  Jim Meyering  <jim@meyering.net>
68441
68442         * build-aux/git-version-gen: New file, from coreutils.  For details, see
68443         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
68444
68445 2007-09-02  Bruno Haible  <bruno@clisp.org>
68446
68447         Fix mis-recognition of 'mcs' on QNX 6.
68448         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
68449         output contains the string "Mono".
68450         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
68451         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
68452
68453 2007-09-01  Bruno Haible  <bruno@clisp.org>
68454
68455         Fix collision between uniwidth/* and linebreak modules.
68456         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
68457         u32_width): Remove declarations.
68458         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
68459         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
68460         streq3, streq2, streq1, streq0): Remove functions.
68461         (STREQ): Remove macro.
68462         (is_cjk_encoding): Remove function.
68463         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
68464         (uc_width, u8_width, u16_width, u32_width): Remove functions.
68465         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
68466         * NEWS: Document the change.
68467
68468 2007-09-01  Bruno Haible  <bruno@clisp.org>
68469
68470         * lib/streq.h: Add double-inclusion guard.
68471
68472 2007-09-01  Karl Berry  <karl@gnu.org>
68473
68474         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
68475
68476 2007-08-28  Jim Meyering  <jim@meyering.net>
68477
68478         Rename mreadlink_with_size to areadlink_with_size.
68479         * NEWS: Document the change.
68480         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
68481         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
68482         * lib/mreadlink.h: Rename this to...
68483         * lib/areadlink.h: ...this.
68484         * modules/mreadlink-with-size: Rename this to...
68485         * modules/areadlink-with-size: ...this.
68486         * lib/canonicalize.c: Reflect the renaming.
68487         * modules/canonicalize: Likewise.
68488
68489 2007-08-26  Bruno Haible  <bruno@clisp.org>
68490
68491         * gnulib-tool (func_import): When deciding which files to remove,
68492         consider also dangling symbolic links.
68493         Reported by Eric Blake.
68494
68495 2007-08-26  Bruno Haible  <bruno@clisp.org>
68496
68497         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
68498
68499 2007-08-23  Simon Josefsson  <simon@josefsson.org>
68500
68501         * lib/readline.c: Don't include getline.h, the prototype is now
68502         found in stdio.h.
68503
68504 2007-08-23  Jim Meyering  <jim@meyering.net>
68505
68506         Getdelim touchup.
68507         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
68508         around the funlockfile call, since funlockfile never sets errno.
68509         Don't set errno upon failed realloc.
68510
68511 2007-08-22  Eric Blake  <ebb9@byu.net>
68512
68513         Getline touchups.
68514         * lib/getdelim.c (getdelim): Revert regression that required *n to
68515         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
68516         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
68517         getdelim, rather than whether implementation is missing.
68518         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
68519         * lib/stdio_.h (getline): Also declare if replacement is
68520         required.
68521         * doc/functions/getdelim.texi: New file.
68522         * doc/functions/getline.texi: Likewise.
68523         * doc/gnulib.texi (Function Substitutes): Add new files.
68524         Reported by Bruno Haible.
68525
68526 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
68527
68528         * users.txt: Add Guile.
68529
68530 2007-08-22  Eric Blake  <ebb9@byu.net>
68531
68532         * tests/test-getdelim.c (main): Use remove, not unlink.
68533         * tests/test-getline.c (main): Likewise.
68534
68535         Move getline and getdelim into stdio.h, per POSIX 200x.
68536         * modules/getline (Files): Remove getline.h.
68537         (Depends-on): Add stdio.
68538         (configure.ac): Add module indicator.
68539         * modules/getdelim (Files): Remove getdelim.h.
68540         (Depends-on): Add stdio.
68541         (configure.ac): Add module indicator.
68542         * modules/stdio (Makefile.am): Work with new indicators.
68543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
68544         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
68545         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
68546         * lib/getdelim.h: Delete.
68547         * lib/getline.h: Delete.
68548         * lib/stdio_.h (getdelim, getline): Declare.
68549         * modules/getdelim-tests: New module.
68550         * modules/getline-tests: Likewise.
68551         * tests/test-getdelim.c: New file.
68552         * tests/test-getline.c: Likewise.
68553         * NEWS: Document the change.
68554         * lib/getline.c: Update choice of header.
68555         * lib/csharpcomp.c: Likewise.
68556         * lib/getpass.c: Likewise.
68557         * lib/javacomp.c: Likewise.
68558         * lib/javaversion.c: Likewise.
68559         * lib/yesno.c: Likewise.
68560         * lib/getdelim.c: Likewise.
68561         (getdelim): Set errno on failure, and avoid memory leak.
68562
68563 2007-08-19  Bruno Haible  <bruno@clisp.org>
68564
68565         * modules/closein (Depends-on): Add freadahead.
68566         * lib/closein.c: Include freadahead.h.
68567         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
68568         is zero.
68569
68570 2007-08-19  Bruno Haible  <bruno@clisp.org>
68571
68572         * modules/freadahead-tests: New file.
68573         * tests/test-freadahead.sh: New file.
68574         * tests/test-freadahead.c: New file.
68575
68576         * modules/freadahead: New file.
68577         * lib/freadahead.h: New file.
68578         * lib/freadahead.c: New file.
68579         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
68580         fbufmode, fpurge, freadable, fwritable.
68581
68582 2007-08-19  Eric Blake  <ebb9@byu.net>
68583
68584         Test yesno in combination with closein.
68585         * lib/yesno.c (yesno): Document use of stdin.
68586         * modules/yesno-tests (Files): New module.
68587         * tests/test-yesno.c (main): New file.
68588         * tests/test-yesno.sh: Likewise.
68589
68590 2007-08-19  Bruno Haible  <bruno@clisp.org>
68591
68592         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
68593         * lib/fseeko.c (rpl_fseeko): Likewise.
68594         * lib/fseterr.c (fseterr): Likewise.
68595
68596 2007-08-19  Bruno Haible  <bruno@clisp.org>
68597
68598         * tests/test-lseek.c (main): Disable a test for BeOS.
68599         * doc/functions/lseek.texi: Document the BeOS bug.
68600
68601 2007-08-19  Bruno Haible  <bruno@clisp.org>
68602             Eric Blake  <ebb9@byu.net>
68603
68604         * lib/lseek.c: Include <sys/stat.h>.
68605         (rpl_lseek): Add workaround code also for Unix platforms.
68606         Needed for BeOS.
68607         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
68608         * doc/functions/lseek.texi: Document BeOS definiency.
68609
68610 2007-08-18  Bruno Haible  <bruno@clisp.org>
68611
68612         * modules/fstrcmp-tests: New file.
68613         * tests/test-fstrcmp.c: New file.
68614
68615 2007-08-18  Bruno Haible  <bruno@clisp.org>
68616
68617         * modules/fstrcmp: New file, from GNU gettext with modifications.
68618         * lib/fstrcmp.h: New file, from GNU gettext.
68619         * lib/fstrcmp.c: New file, from GNU gettext.
68620         * MODULES.html.sh (String handling): Add fstrcmp.
68621
68622 2007-08-18  Bruno Haible  <bruno@clisp.org>
68623
68624         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
68625         'bool'.
68626         (diag, compareseq): Remove const from the ctxt argument.
68627         (USE_HEURISTIC): Undefine at the end.
68628
68629 2007-08-18  Jim Meyering  <jim@meyering.net>
68630
68631         New file: lib/idcache.h
68632         * NEWS: Mention the addition.
68633         * modules/idcache (Files): Add lib/idcache.h
68634         * lib/idcache.c: Include "idcache.h".
68635         Don't include <sys/types.h>.
68636         Add a FIXME comment.
68637         Move file-scoped "static" declarations to the top.
68638         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
68639
68640 2007-08-17  Bruno Haible  <bruno@clisp.org>
68641         and Paul Eggert  <eggert@cs.ucla.edu>
68642
68643         * MODULES.html.sh: Add diffseq.
68644         * modules/diffseq: New file.
68645         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
68646         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
68647
68648 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         Import changes from coreutils for bootstrap script.
68651
68652         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         * build-aux/bootstrap (slurp): Work even in environments where
68655         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
68656         current code does not slurp files whose names start with ".", and
68657         this looks like it might be a troublesome area.
68658
68659         2007-07-11  Jim Meyering  <jim@meyering.net>
68660
68661         If there's a GPL vN copyright comment, require that N == 3.
68662
68663         2007-07-08  Jim Meyering  <jim@meyering.net>
68664
68665         Run the coreutils-specific code only if tests/Makefile.am.in exists.
68666         * build-aux/bootstrap (mam_template): Move definition out of loop.
68667
68668         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
68669
68670         * build-aux/bootstrap (symlink_to_dir): Rename function from
68671         symlink_to_gnulib.  Add a directory parameter.  Update all
68672         callers.
68673         (cp_mark_as_generated): Also check for -- and link to -- files in
68674         gl/.
68675
68676         2007-07-08  Jim Meyering  <jim@meyering.net>
68677
68678         Adapt to deeper hierarchy in gnulib.
68679         * build-aux/bootstrap (symlink_to_dir): If the destination
68680         directory doesn't exist, create it. This is required at least for
68681         "lib/uniwidth/cjk.h".
68682
68683         2007-05-15  Jim Meyering  <jim@meyering.net>
68684
68685         * build-aux/bootstrap: Now that generated Makefile.am files
68686         are no longer under version control, they must be created at
68687         bootstrap time.
68688
68689 2007-08-14  Ben Pfaff  <blp@gnu.org>
68690
68691         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
68692
68693 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
68694
68695         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
68696         given the changes below.
68697         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
68698         even on hosts that have padding bits beyond the supported 64.
68699
68700 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
68703         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
68704         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
68705         depends on it.
68706         (xstrtol_error): Remove.
68707         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
68708         but with a different signature.
68709         (ATTRIBUTE_NORETURN, __attribute__): New macros.
68710         * lib/xstrtol-error.c: Include exitfail.h.
68711         (xstrtol_fatal): New function, with a different signature from the
68712         old xstrtol_error, so that the caller need not worry about passing
68713         in an exit status, or about storage management of the option argument.
68714         (xstrtol_error): Now a static function.  Redo signature to
68715         implement xstrtol_fatal.  Output the correct number of hyphens in
68716         front of the option so that the caller need not worry about
68717         storage management.
68718         (N_): New macro.
68719         (_): Remove; not used now.
68720         * modules/xstrtol: Depend on getopt.
68721         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
68722         of old STRTOL_FATAL_ERROR macro.
68723         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
68724         of test program.
68725         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
68726         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
68727
68728 2007-08-08  Eric Blake  <ebb9@byu.net>
68729
68730         * lib/xstrtol-error.c: Add missing include.
68731
68732         Move xstrtol messages into gnulib domain, when --pobase is used.
68733         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
68734         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
68735         * modules/xstrtol (Files): Distribute new file.
68736         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
68737         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
68738         * tests/test-xstrtol.c: ...into new file.
68739         * tests/test-xstrtoul.c: Also test xstrtoul.
68740         * tests/test-xstrtoimax.c: Also test xstrtoimax.
68741         * tests/test-xstrtoumax.c: Also test xstrtoumax.
68742         * tests/test-xstrtol.sh: Drive the tests.
68743         * tests/test-xstrtoimax.sh: Likewise.
68744         * tests/test-xstrtoumax.sh: Likewise.
68745         * modules/xstrtol-tests: New module.
68746         * modules/xstrtoimax-tests: Likewise.
68747         * modules/xstrtoumax-tests: Likewise.
68748
68749 2007-08-08  Jim Meyering  <jim@meyering.net>
68750
68751         New function: mfile_name_concat.
68752         * lib/filenamecat.c (mfile_name_concat): New function, just like
68753         file_name_concat, but return NULL upon failure rather than exiting
68754         with a diagnostic.
68755         * lib/filenamecat.h: Declare it.
68756
68757 2007-08-07  Bruno Haible  <bruno@clisp.org>
68758
68759         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
68760         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
68761         warning from gcc.
68762         Reported by Eric Blake.
68763
68764 2007-08-07  Simon Josefsson  <simon@josefsson.org>
68765
68766         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
68767         * modules/crypto/arcfour (License): Likewise.
68768         * modules/crypto/des-tests (License): Likewise.
68769         * modules/crypto/gc-arctwo-tests (License): Likewise.
68770         * modules/crypto/gc-des-tests (License): Likewise.
68771         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
68772         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
68773         * modules/crypto/gc-md2-tests (License): Likewise.
68774         * modules/crypto/gc-md4-tests (License): Likewise.
68775         * modules/crypto/gc-md5-tests (License): Likewise.
68776         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
68777         * modules/crypto/gc-rijndael-tests (License): Likewise.
68778         * modules/crypto/gc-sha1-tests (License): Likewise.
68779         * modules/crypto/gc-tests (License): Likewise.
68780         * modules/crypto/hmac-md5 (License): Likewise.
68781         * modules/crypto/hmac-sha1 (License): Likewise.
68782         * modules/crypto/md2-tests (License): Likewise.
68783         * modules/crypto/md4-tests (License): Likewise.
68784         * modules/crypto/md5 (License): Likewise.
68785         * modules/crypto/rijndael (License): Likewise.
68786         * modules/crypto/sha1 (License): Likewise.
68787         * modules/memxor (License): Likewise.
68788
68789 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
68790         and Bruno Haible  <bruno@clisp.org>
68791
68792         * NEWS: Describe interface changes to human, xstrtol.
68793         * lib/human.h: Include <xstrtol.h>.
68794         (human_options): Return enum strtol_error, not int.  Remove
68795         bool arg; take int * instead.
68796         * lib/human.c: Don't include "gettext.h".
68797         (_): Remove; no longer used.
68798         Don't include <xstrtol.h>, since human.h does it.
68799         (human_options): Adjust to abovementioned interface changes.
68800         Do not report error to stderr; that's now the caller's
68801         responsibility.
68802         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
68803         interface change.
68804         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
68805         Str, Argument_type_string.  All uses changed.  Put " argument"
68806         in diagnostics to make them clearer.  Change wording of suffix
68807         message for clarity.
68808         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
68809         Argument_type_string.
68810         (STRTOL_FATAL_WARN): Remove; no longer used.
68811         * modules/human (Depends-on): Remove gettext-h.
68812
68813 2007-08-06  Simon Josefsson  <simon@josefsson.org>
68814
68815         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
68816
68817 2007-07-31  Bruno Haible  <bruno@clisp.org>
68818
68819         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
68820         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
68821         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
68822
68823 2007-07-31  Bruno Haible  <bruno@clisp.org>
68824
68825         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
68826         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
68827
68828 2007-07-30  Bruno Haible  <bruno@clisp.org>
68829
68830         * modules/base64 (License): Use the synonymous term "LGPLv2+".
68831         * modules/c-ctype (License): Likewise.
68832         * modules/c-strcase (License): Likewise.
68833         * modules/check-version (License): Likewise.
68834         * modules/iconv (License): Likewise.
68835         * modules/iconv_open (License): Likewise.
68836         * modules/read-file (License): Likewise.
68837         * modules/striconv (License): Likewise.
68838         * modules/strverscmp (License): Likewise.
68839         * modules/vasprintf (License): Likewise.
68840         * modules/crypto/des (License): Likewise.
68841         * modules/crypto/gc (License): Likewise.
68842         * modules/crypto/gc-arcfour (License): Likewise.
68843         * modules/crypto/gc-arctwo (License): Likewise.
68844         * modules/crypto/gc-des (License): Likewise.
68845         * modules/crypto/gc-hmac-md5 (License): Likewise.
68846         * modules/crypto/gc-hmac-sha1 (License): Likewise.
68847         * modules/crypto/gc-md2 (License): Likewise.
68848         * modules/crypto/gc-md4 (License): Likewise.
68849         * modules/crypto/gc-md5 (License): Likewise.
68850         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
68851         * modules/crypto/gc-random (License): Likewise.
68852         * modules/crypto/gc-rijndael (License): Likewise.
68853         * modules/crypto/gc-sha1 (License): Likewise.
68854         * modules/crypto/md2 (License): Likewise.
68855         * modules/crypto/md4 (License): Likewise.
68856
68857 2007-07-30  Jim Meyering  <jim@meyering.net>
68858
68859         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
68860         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
68861         it has valid stat data.  This bug would cause du not to count the
68862         sizes of inaccessible directories.
68863         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
68864         in <http://bugzilla.redhat.com/250077>.
68865
68866 2007-07-25  Peter O'Gorman  <peter@pogma.com>
68867             Bruno Haible  <bruno@clisp.org>
68868
68869         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
68870         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
68871         #include_next, gives a diagnostic about it, but reports no error in
68872         the exit code.
68873         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
68874
68875 2007-07-24  Ben Pfaff  <blp@gnu.org>
68876
68877         Improve name: "count-one-bits" is better than "popcount".
68878         * MODULES.html.sh: Update name.
68879         * lib/popcount.h: Renamed lib/count-one-bits.h.
68880         (popcount): Renamed count_one_bits.
68881         (popcountl): Renamed count_one_bits_l.
68882         (popcountll): Renamed count_one_bits_ll.
68883         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
68884         * modules/popcount: Renamed module/count-one-bits.
68885         * modules/popcount-tests: Renamed module/count-one-bits-tests.
68886         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
68887
68888 2007-07-23  Ben Pfaff  <blp@gnu.org>
68889
68890         * lib/popcount.h (popcount32): Reduce size of constants, to allow
68891         better code generation, and add U to large constants to avoid
68892         warnings, in non-GCC case.
68893         Suggested by Bruno Haible.
68894
68895 2007-07-23  Ben Pfaff  <blp@gnu.org>
68896
68897         * lib/popcount.h: Use verify_true instead of if...abort.
68898         * modules/popcount: Depend on verify module.
68899         Suggested by Jim Meyering.
68900
68901 2007-07-23  Bruno Haible  <bruno@clisp.org>
68902
68903         * gnulib-tool (func_import): Create a .cvsignore file also when the
68904         directory is not yet in CVS but the toplevel directory is. When
68905         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
68906         Reported by Karl Berry.
68907
68908 2007-07-22  Ben Pfaff  <blp@gnu.org>
68909
68910         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
68911         case.
68912         Suggested by Eric Blake.
68913
68914 2007-07-22  Ben Pfaff  <blp@gnu.org>
68915
68916         New module: popcount.
68917         * MODULES.html.sh: Add popcount.
68918         * modules/popcount: New file.
68919         * modules/popcount-tests: New file.
68920         * tests/test-popcount.c: New file.
68921         * lib/popcount.h: New file.
68922         * m4/popcount.m4: New file.
68923
68924 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
68925
68926         * build-aux/announce-gen: Update to GPLv3.
68927
68928         * build-aux/config.guess: Update from config.
68929
68930 2007-07-21  Bruno Haible  <bruno@clisp.org>
68931
68932         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
68933         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
68934
68935 2007-07-20  Jim Meyering  <jim@meyering.net>
68936
68937         * check-module: Diagnose a self-dependency.
68938
68939 2007-07-19  Bruno Haible  <bruno@clisp.org>
68940
68941         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
68942         empty.
68943         Reported by Eric Blake.
68944
68945 2007-07-18  Bruno Haible  <bruno@clisp.org>
68946
68947         * gnulib-tool: New options --po-base, --po-domain.
68948         (func_usage): Document them.
68949         (pobase, po_domain): New variables.
68950         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
68951         DEFAULT_TEXT_DOMAIN.
68952         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
68953         (func_import): Consider pobase and po_domain. Create a po/ directory.
68954         (func_create_testdir): Set pobase and po_domain to empty.
68955         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
68956         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
68957
68958 2007-07-18  Bruno Haible  <bruno@clisp.org>
68959
68960         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68961         EXTRA_DIST augmentation for files in build-aux/.
68962
68963 2007-07-16  Bruno Haible  <bruno@clisp.org>
68964
68965         * modules/lseek (License): Use the synonymous term "LGPLv2+".
68966         * modules/getdelim (License): Likewise.
68967
68968 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68969
68970         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
68971         * modules/d-type (License): Likewise.
68972         * modules/extensions (License): Likewise.
68973         * modules/fnmatch (License): Likewise.
68974         * modules/fseeko (License): Likewise.
68975         * modules/getaddrinfo (License): Likewise.
68976         * modules/getline (License): Likewise.
68977         * modules/getlogin_r (License): Likewise.
68978         * modules/getpass (License): Likewise.
68979         * modules/gettimeofday (License): Likewise.
68980         * modules/glob (License): Likewise.
68981         * modules/inet_ntop (License): Likewise.
68982         * modules/malloc (License): Likewise.
68983         * modules/malloca (License): Likewise.
68984         * modules/memmem (License): Likewise.
68985         * modules/mempcpy (License): Likewise.
68986         * modules/memset (License): Likewise.
68987         * modules/minmax (License): Likewise.
68988         * modules/mktime (License): Likewise.
68989         * modules/netinet_in (License): Likewise.
68990         * modules/pathmax (License): Likewise.
68991         * modules/poll (License): Likewise.
68992         * modules/regex (License): Likewise.
68993         * modules/snprintf (License): Likewise.
68994         * modules/stdbool (License): Likewise.
68995         * modules/stdint (License): Likewise.
68996         * modules/stdio (License): Likewise.
68997         * modules/strcase (License): Likewise.
68998         * modules/strcasestr (License): Likewise.
68999         * modules/strdup (License): Likewise.
69000         * modules/string (License): Likewise.
69001         * modules/strndup (License): Likewise.
69002         * modules/strnlen (License): Likewise.
69003         * modules/strpbrk (License): Likewise.
69004         * modules/strptime (License): Likewise.
69005         * modules/strsep (License): Likewise.
69006         * modules/sys_select (License): Likewise.
69007         * modules/sys_socket (License): Likewise.
69008         * modules/sys_stat (License): Likewise.
69009         * modules/sys_time (License): Likewise.
69010         * modules/time (License): Likewise.
69011         * modules/time_r (License): Likewise.
69012         * modules/timegm (License): Likewise.
69013         * modules/unistd (License): Likewise.
69014         * modules/vsnprintf (License): Likewise.
69015         * modules/wctype (License): Likewise.
69016
69017 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69018
69019         * modules/argz (License): LGPLv2+.
69020
69021 2007-07-15  Karl Berry  <karl@gnu.org>
69022
69023         * doc/gnulib.texi: revise node structure per new fdl.texi.
69024
69025 2007-07-14  Bruno Haible  <bruno@clisp.org>
69026
69027         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
69028         the output file.
69029         * lib/uniname/uninames.h: Regenerated.
69030
69031 2007-07-14  Karl Berry  <karl@gnu.org>
69032
69033         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
69034         omitting sectioning and index commands.
69035
69036 2007-07-13  Bruno Haible  <bruno@clisp.org>
69037
69038         New gnulib-tool option --more-symlinks.
69039         * gnulib-tool (func_usage): Document --more-symlinks.
69040         (do_copyrights): New variable.
69041         Recognize option --more-symlinks.
69042         (func_import): Don't add a copyright notice transform to
69043         sed_transform_lib_file if do_copyrights is empty.
69044
69045 2007-07-13  Bruno Haible  <bruno@clisp.org>
69046
69047         * lib/vasnprintf.c (decimal_point_char): Define also if
69048         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
69049         && !NEED_PRINTF_DIRECTIVE_A.
69050         Reported by Clemens Koller <clemens.koller@anagramm.de> via
69051         Gary V. Vaughan <gary@gnu.org>.
69052
69053 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * lib/inttypes_.h: Undo previous change, since it was fixed
69056         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
69057
69058 2007-07-13  Bruno Haible  <bruno@clisp.org>
69059
69060         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
69061         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
69062
69063 2007-07-13  Jim Meyering  <jim@meyering.net>
69064
69065         df: Don't fail for Tru64's "file-on-file mount".
69066         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
69067         so we fall through and use statfs instead.  Details here:
69068         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
69069         Reported by Albert Chin.
69070
69071 2007-07-13  Bruno Haible  <bruno@clisp.org>
69072
69073         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
69074         * modules/configmake (License): Likewise.
69075         * modules/gettext (License): Likewise.
69076         * modules/gettext-h (License): Likewise.
69077         * modules/include_next (License): Likewise.
69078         * modules/link-warning (License): Likewise.
69079         * modules/localcharset (License): Likewise.
69080         * modules/localename (License): Likewise.
69081         * modules/lock (License): Likewise.
69082         * modules/relocatable-lib-lgpl (License): Likewise.
69083         * modules/size_max (License): Likewise.
69084         * modules/vasnprintf (License): Likewise.
69085         * modules/wchar (License): Likewise.
69086         * modules/xsize (License): Likewise.
69087
69088 2007-07-13  Bruno Haible  <bruno@clisp.org>
69089
69090         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
69091         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
69092
69093 2007-07-12  Bruno Haible  <bruno@clisp.org>
69094
69095         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
69096         in the modules files.
69097
69098 2007-07-11  Karl Berry  <karl@gnu.org>
69099
69100         * MODULES.html.sh (func_module): use
69101          sed -e '\|^'"${includefile}"'$|d'
69102          instead of /.../d, to avoid errors on $includefile's containing /.
69103
69104 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69105
69106         * gnulib-tool (func_import): Avoid duplication of --avoid
69107         statements
69108         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
69109         names to `_' in variable names.
69110
69111 2007-07-10  Eric Blake  <ebb9@byu.net>
69112
69113         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
69114         * NEWS: Document this change.
69115
69116 2007-07-08  Bruno Haible  <bruno@clisp.org>
69117
69118         Update to Unicode 5.0.
69119         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
69120         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
69121         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
69122         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
69123         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
69124         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
69125         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
69126         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
69127         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
69128         U+10A3F, U+1D242..U+1D244.
69129         (nonspacing_table_ind): Update.
69130         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
69131         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
69132
69133 2007-07-08  Bruno Haible  <bruno@clisp.org>
69134
69135         Update to Unicode 5.0.
69136         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
69137         code transform. Extend the name index field of unicode_name_to_code and
69138         unicode_code_to_name from 16 to 24 bits.
69139         * lib/uniname/uniname.c (unicode_character_name,
69140         unicode_name_character): Add the range 0x12xxx to the code transform.
69141         * lib/uniname/uninames.h: Regenerated.
69142         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
69143
69144 2007-07-07  Bruno Haible  <bruno@clisp.org>
69145
69146         * modules/wcwidth-tests: New file.
69147         * tests/test-wcwidth.c: New file.
69148
69149         Work around MacOS X wcwidth() bug.
69150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
69151         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
69152         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
69153         original wcwidth in non-UTF-8 locales.
69154         * modules/wcwidth (Depends-on): Add localcharset, streq,
69155         uniwidth/width.
69156         * doc/functions/wcwidth.texi: Update.
69157
69158 2007-07-07  Bruno Haible  <bruno@clisp.org>
69159
69160         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
69161         (wcwidth): New declaration.
69162         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
69163         macros.
69164         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
69165         here. Prepare for creating <wchar.h> unconditionally.
69166         * modules/wchar (Depends-on): Add link-warning.
69167         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
69168         REPLACE_WCWIDTH, and GL_LINK_WARNING.
69169         * lib/wcwidth.h: Remove file.
69170         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
69171         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
69172         * modules/wcwidth (Files): Remove lib/wcwidth.h.
69173         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
69174         (Include): Replace wcwidth.h with <wchar.h>.
69175         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
69176         * lib/mbchar.h: Don't include wcwidth.h.
69177         * lib/mbswidth.c: Likewise.
69178         * NEWS: Mention the change.
69179
69180 2007-07-07  Bruno Haible  <bruno@clisp.org>
69181
69182         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
69183         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
69184         definition with an external declaration.
69185         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
69186         defined as a function. Remove AC_C_INLINE requirement.
69187         * modules/wcwidth (Files): Add lib/wcwidth.c.
69188         (Makefile.am): Remove redundant statement.
69189
69190 2007-07-07  Bruno Haible  <bruno@clisp.org>
69191
69192         * MODULES.html.sh (Unicode string functions): Add the new modules.
69193
69194         * tests/uniwidth/test-u32-strwidth.c: New file.
69195         * modules/uniwidth/u32-strwidth-tests: New file.
69196
69197         * lib/uniwidth/u32-strwidth.c: New file.
69198         * modules/uniwidth/u32-strwidth: New file.
69199
69200         * tests/uniwidth/test-u16-strwidth.c: New file.
69201         * modules/uniwidth/u16-strwidth-tests: New file.
69202
69203         * lib/uniwidth/u16-strwidth.c: New file.
69204         * modules/uniwidth/u16-strwidth: New file.
69205
69206         * tests/uniwidth/test-u8-strwidth.c: New file.
69207         * modules/uniwidth/u8-strwidth-tests: New file.
69208
69209         * lib/uniwidth/u8-strwidth.c: New file.
69210         * modules/uniwidth/u8-strwidth: New file.
69211
69212         * tests/uniwidth/test-u32-width.c: New file.
69213         * modules/uniwidth/u32-width-tests: New file.
69214
69215         * lib/uniwidth/u32-width.c: New file.
69216         * modules/uniwidth/u32-width: New file.
69217
69218         * tests/uniwidth/test-u16-width.c: New file.
69219         * modules/uniwidth/u16-width-tests: New file.
69220
69221         * lib/uniwidth/u16-width.c: New file.
69222         * modules/uniwidth/u16-width: New file.
69223
69224         * tests/uniwidth/test-u8-width.c: New file.
69225         * modules/uniwidth/u8-width-tests: New file.
69226
69227         * lib/uniwidth/u8-width.c: New file.
69228         * modules/uniwidth/u8-width: New file.
69229
69230         * tests/uniwidth/test-uc_width.c: New file.
69231         * modules/uniwidth/width-tests: New file.
69232
69233         * lib/uniwidth/width.c: New file, from GNU libiconv.
69234         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
69235         * modules/uniwidth/width: New file.
69236
69237         * lib/uniwidth.h: New file, from GNU libiconv.
69238         * modules/uniwidth/base: New file.
69239
69240 2007-07-07  Bruno Haible  <bruno@clisp.org>
69241
69242         * lib/uniname.h: New file, from GNU gettext.
69243         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
69244         * lib/uniname/uninames.h: New file, from GNU gettext.
69245         * lib/uniname/uniname.c: New file, from GNU gettext.
69246         * tests/uniname/test-uninames.sh: New file.
69247         * tests/uniname/test-uninames.c: New file, from GNU gettext.
69248         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
69249         * modules/uniname/base: New file.
69250         * modules/uniname/uniname: New file.
69251         * modules/uniname/uniname-tests: New file.
69252         * MODULES.html.sh (Unicode string functions): Add the new modules.
69253
69254 2007-07-06  Bruno Haible  <bruno@clisp.org>
69255
69256         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
69257
69258 2007-07-06  Bruno Haible  <bruno@clisp.org>
69259
69260         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
69261         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
69262         includes <cygwin/sys_time.h> which includes <sys/select.h> which
69263         include <sys/time.h>.
69264         Reported by Eric Blake.
69265
69266 2007-07-06  Eric Blake  <ebb9@byu.net>
69267
69268         Fix testing canonicalize on cygwin.
69269         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69270         Revert patch from 2007-06-19.
69271         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
69272         canonicalize module is also in use.
69273         * tests/test-canonicalize.c: New file.
69274         * tests/test-canonicalize.sh: Likewise.
69275         * modules/canonicalize-tests: Likewise.
69276
69277 2007-07-06  Jim Meyering  <jim@meyering.net>
69278
69279         * lib/getugroups.c (getugroups): Detect getgrent failure.
69280         Adjust comment to reflect reality: this function may return -1.
69281
69282 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
69283
69284         * build-aux/bootstrap (TP_URL,get_translations): Update to use
69285         the new TP address.
69286         (usage): Fix typo
69287         (gnulib_mk): New variable.
69288
69289 2007-07-05  Jim Meyering  <jim@meyering.net>
69290
69291         Don't let endgrent clobber errno, no matter how improbable.
69292         * lib/getugroups.c (getugroups): Save and restore errno around
69293         endgrent call.
69294
69295         Close the group DB even when failing with 2^31 or more members.
69296         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
69297
69298 2007-07-04  Jim Meyering  <jim@meyering.net>
69299
69300         * lib/getugroups.h: New file.
69301         * lib/getugroups.c: Include "getugroups.h".
69302         Remove uses of "register" keyword.
69303         Move local variable, "cp", down into scope where used.
69304         Give "username" parameter the "const" attribute.
69305         * modules/getugroups (Files): Add lib/getugroups.h
69306
69307 2007-07-04  Karl Berry  <karl@gnu.org>
69308
69309         * MODULES.html.sh (func_all_modules): Complete rename of
69310         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
69311
69312 2007-07-02  Bruno Haible  <bruno@clisp.org>
69313
69314         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
69315         mode, when inttypes.h comes from gnulib.
69316         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69317
69318 2007-07-02  Simon Josefsson  <simon@josefsson.org>
69319
69320         * NEWS: Mention lgpl module name change.
69321
69322         * modules/lgpl-2.1: Renamed from lgpl.
69323
69324         * NEWS: Mention gpl module name change.
69325
69326         * modules/gpl-3.0: New file, based on gpl-2.0.
69327
69328         * modules/gpl-2.0: Renamed from gpl.
69329
69330         * modules/gpl: Fix filename, doc/gpl.texi is now found at
69331         doc/gpl-2.0.texi.
69332
69333 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
69334
69335         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
69336         #define __STDC_LIMIT_MACROS temporarily while including
69337         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
69338         Problem reported by Joel E. Denny in
69339         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
69340
69341 2007-07-01  Bruno Haible  <bruno@clisp.org>
69342
69343         * lib/unistdio.h: New file.
69344         * lib/unistdio/u-asnprintf.h: New file.
69345         * lib/unistdio/u-asprintf.h: New file.
69346         * lib/unistdio/u-printf-args.c: New file.
69347         * lib/unistdio/u-printf-args.h: New file.
69348         * lib/unistdio/u-printf-parse.h: New file.
69349         * lib/unistdio/u-snprintf.h: New file.
69350         * lib/unistdio/u-sprintf.h: New file.
69351         * lib/unistdio/u-vasprintf.h: New file.
69352         * lib/unistdio/u-vsnprintf.h: New file.
69353         * lib/unistdio/u-vsprintf.h: New file.
69354         * lib/unistdio/ulc-asnprintf.c: New file.
69355         * lib/unistdio/ulc-asprintf.c: New file.
69356         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
69357         * lib/unistdio/ulc-printf-parse.c: New file.
69358         * lib/unistdio/ulc-snprintf.c: New file.
69359         * lib/unistdio/ulc-sprintf.c: New file.
69360         * lib/unistdio/ulc-vasnprintf.c: New file.
69361         * lib/unistdio/ulc-vasprintf.c: New file.
69362         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
69363         * lib/unistdio/ulc-vsnprintf.c: New file.
69364         * lib/unistdio/ulc-vsprintf.c: New file.
69365         * lib/unistdio/u8-asnprintf.c: New file.
69366         * lib/unistdio/u8-asprintf.c: New file.
69367         * lib/unistdio/u8-printf-parse.c: New file.
69368         * lib/unistdio/u8-snprintf.c: New file.
69369         * lib/unistdio/u8-sprintf.c: New file.
69370         * lib/unistdio/u8-vasnprintf.c: New file.
69371         * lib/unistdio/u8-vasprintf.c: New file.
69372         * lib/unistdio/u8-vsnprintf.c: New file.
69373         * lib/unistdio/u8-vsprintf.c: New file.
69374         * lib/unistdio/u8-u8-asnprintf.c: New file.
69375         * lib/unistdio/u8-u8-asprintf.c: New file.
69376         * lib/unistdio/u8-u8-snprintf.c: New file.
69377         * lib/unistdio/u8-u8-sprintf.c: New file.
69378         * lib/unistdio/u8-u8-vasnprintf.c: New file.
69379         * lib/unistdio/u8-u8-vasprintf.c: New file.
69380         * lib/unistdio/u8-u8-vsnprintf.c: New file.
69381         * lib/unistdio/u8-u8-vsprintf.c: New file.
69382         * lib/unistdio/u16-asnprintf.c: New file.
69383         * lib/unistdio/u16-asprintf.c: New file.
69384         * lib/unistdio/u16-printf-parse.c: New file.
69385         * lib/unistdio/u16-snprintf.c: New file.
69386         * lib/unistdio/u16-sprintf.c: New file.
69387         * lib/unistdio/u16-vasnprintf.c: New file.
69388         * lib/unistdio/u16-vasprintf.c: New file.
69389         * lib/unistdio/u16-vsnprintf.c: New file.
69390         * lib/unistdio/u16-vsprintf.c: New file.
69391         * lib/unistdio/u16-u16-asnprintf.c: New file.
69392         * lib/unistdio/u16-u16-asprintf.c: New file.
69393         * lib/unistdio/u16-u16-snprintf.c: New file.
69394         * lib/unistdio/u16-u16-sprintf.c: New file.
69395         * lib/unistdio/u16-u16-vasnprintf.c: New file.
69396         * lib/unistdio/u16-u16-vasprintf.c: New file.
69397         * lib/unistdio/u16-u16-vsnprintf.c: New file.
69398         * lib/unistdio/u16-u16-vsprintf.c: New file.
69399         * lib/unistdio/u32-asnprintf.c: New file.
69400         * lib/unistdio/u32-asprintf.c: New file.
69401         * lib/unistdio/u32-printf-parse.c: New file.
69402         * lib/unistdio/u32-snprintf.c: New file.
69403         * lib/unistdio/u32-sprintf.c: New file.
69404         * lib/unistdio/u32-vasnprintf.c: New file.
69405         * lib/unistdio/u32-vasprintf.c: New file.
69406         * lib/unistdio/u32-vsnprintf.c: New file.
69407         * lib/unistdio/u32-vsprintf.c: New file.
69408         * lib/unistdio/u32-u32-asnprintf.c: New file.
69409         * lib/unistdio/u32-u32-asprintf.c: New file.
69410         * lib/unistdio/u32-u32-snprintf.c: New file.
69411         * lib/unistdio/u32-u32-sprintf.c: New file.
69412         * lib/unistdio/u32-u32-vasnprintf.c: New file.
69413         * lib/unistdio/u32-u32-vasprintf.c: New file.
69414         * lib/unistdio/u32-u32-vsnprintf.c: New file.
69415         * lib/unistdio/u32-u32-vsprintf.c: New file.
69416         * tests/unistdio/test-ulc-asnprintf1.c: New file.
69417         * tests/unistdio/test-ulc-asnprintf1.h: New file.
69418         * tests/unistdio/test-ulc-printf1.h: New file.
69419         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
69420         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
69421         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
69422         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
69423         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
69424         * tests/unistdio/test-ulc-vasprintf1.c: New file.
69425         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
69426         * tests/unistdio/test-ulc-vsprintf1.c: New file.
69427         * tests/unistdio/test-u8-asnprintf1.c: New file.
69428         * tests/unistdio/test-u8-asnprintf1.h: New file.
69429         * tests/unistdio/test-u8-printf1.h: New file.
69430         * tests/unistdio/test-u8-vasnprintf1.c: New file.
69431         * tests/unistdio/test-u8-vasnprintf2.c: New file.
69432         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
69433         * tests/unistdio/test-u8-vasnprintf3.c: New file.
69434         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
69435         * tests/unistdio/test-u8-vasprintf1.c: New file.
69436         * tests/unistdio/test-u8-vsnprintf1.c: New file.
69437         * tests/unistdio/test-u8-vsprintf1.c: New file.
69438         * tests/unistdio/test-u16-asnprintf1.c: New file.
69439         * tests/unistdio/test-u16-asnprintf1.h: New file.
69440         * tests/unistdio/test-u16-printf1.h: New file.
69441         * tests/unistdio/test-u16-vasnprintf1.c: New file.
69442         * tests/unistdio/test-u16-vasnprintf2.c: New file.
69443         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
69444         * tests/unistdio/test-u16-vasnprintf3.c: New file.
69445         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
69446         * tests/unistdio/test-u16-vasprintf1.c: New file.
69447         * tests/unistdio/test-u16-vsnprintf1.c: New file.
69448         * tests/unistdio/test-u16-vsprintf1.c: New file.
69449         * tests/unistdio/test-u32-asnprintf1.c: New file.
69450         * tests/unistdio/test-u32-asnprintf1.h: New file.
69451         * tests/unistdio/test-u32-printf1.h: New file.
69452         * tests/unistdio/test-u32-vasnprintf1.c: New file.
69453         * tests/unistdio/test-u32-vasnprintf2.c: New file.
69454         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
69455         * tests/unistdio/test-u32-vasnprintf3.c: New file.
69456         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
69457         * tests/unistdio/test-u32-vasprintf1.c: New file.
69458         * tests/unistdio/test-u32-vsnprintf1.c: New file.
69459         * tests/unistdio/test-u32-vsprintf1.c: New file.
69460         * modules/unistdio/base: New file.
69461         * modules/unistdio/u-printf-args: New file.
69462         * modules/unistdio/ulc-asnprintf: New file.
69463         * modules/unistdio/ulc-asprintf: New file.
69464         * modules/unistdio/ulc-fprintf: New file.
69465         * modules/unistdio/ulc-printf-parse: New file.
69466         * modules/unistdio/ulc-snprintf: New file.
69467         * modules/unistdio/ulc-sprintf: New file.
69468         * modules/unistdio/ulc-vasnprintf: New file.
69469         * modules/unistdio/ulc-vasprintf: New file.
69470         * modules/unistdio/ulc-vfprintf: New file.
69471         * modules/unistdio/ulc-vsnprintf: New file.
69472         * modules/unistdio/ulc-vsprintf: New file.
69473         * modules/unistdio/u8-asnprintf: New file.
69474         * modules/unistdio/u8-asprintf: New file.
69475         * modules/unistdio/u8-printf-parse: New file.
69476         * modules/unistdio/u8-snprintf: New file.
69477         * modules/unistdio/u8-sprintf: New file.
69478         * modules/unistdio/u8-vasnprintf: New file.
69479         * modules/unistdio/u8-vasprintf: New file.
69480         * modules/unistdio/u8-vsnprintf: New file.
69481         * modules/unistdio/u8-vsprintf: New file.
69482         * modules/unistdio/u8-u8-asnprintf: New file.
69483         * modules/unistdio/u8-u8-asprintf: New file.
69484         * modules/unistdio/u8-u8-snprintf: New file.
69485         * modules/unistdio/u8-u8-sprintf: New file.
69486         * modules/unistdio/u8-u8-vasnprintf: New file.
69487         * modules/unistdio/u8-u8-vasprintf: New file.
69488         * modules/unistdio/u8-u8-vsnprintf: New file.
69489         * modules/unistdio/u8-u8-vsprintf: New file.
69490         * modules/unistdio/u16-asnprintf: New file.
69491         * modules/unistdio/u16-asprintf: New file.
69492         * modules/unistdio/u16-printf-parse: New file.
69493         * modules/unistdio/u16-snprintf: New file.
69494         * modules/unistdio/u16-sprintf: New file.
69495         * modules/unistdio/u16-vasnprintf: New file.
69496         * modules/unistdio/u16-vasprintf: New file.
69497         * modules/unistdio/u16-vsnprintf: New file.
69498         * modules/unistdio/u16-vsprintf: New file.
69499         * modules/unistdio/u16-u16-asnprintf: New file.
69500         * modules/unistdio/u16-u16-asprintf: New file.
69501         * modules/unistdio/u16-u16-snprintf: New file.
69502         * modules/unistdio/u16-u16-sprintf: New file.
69503         * modules/unistdio/u16-u16-vasnprintf: New file.
69504         * modules/unistdio/u16-u16-vasprintf: New file.
69505         * modules/unistdio/u16-u16-vsnprintf: New file.
69506         * modules/unistdio/u16-u16-vsprintf: New file.
69507         * modules/unistdio/u32-asnprintf: New file.
69508         * modules/unistdio/u32-asprintf: New file.
69509         * modules/unistdio/u32-printf-parse: New file.
69510         * modules/unistdio/u32-snprintf: New file.
69511         * modules/unistdio/u32-sprintf: New file.
69512         * modules/unistdio/u32-vasnprintf: New file.
69513         * modules/unistdio/u32-vasprintf: New file.
69514         * modules/unistdio/u32-vsnprintf: New file.
69515         * modules/unistdio/u32-vsprintf: New file.
69516         * modules/unistdio/u32-u32-asnprintf: New file.
69517         * modules/unistdio/u32-u32-asprintf: New file.
69518         * modules/unistdio/u32-u32-snprintf: New file.
69519         * modules/unistdio/u32-u32-sprintf: New file.
69520         * modules/unistdio/u32-u32-vasnprintf: New file.
69521         * modules/unistdio/u32-u32-vasprintf: New file.
69522         * modules/unistdio/u32-u32-vsnprintf: New file.
69523         * modules/unistdio/u32-u32-vsprintf: New file.
69524         * modules/unistdio/ulc-asnprintf-tests: New file.
69525         * modules/unistdio/ulc-vasnprintf-tests: New file.
69526         * modules/unistdio/ulc-vasprintf-tests: New file.
69527         * modules/unistdio/ulc-vsnprintf-tests: New file.
69528         * modules/unistdio/ulc-vsprintf-tests: New file.
69529         * modules/unistdio/u8-asnprintf-tests: New file.
69530         * modules/unistdio/u8-vasnprintf-tests: New file.
69531         * modules/unistdio/u8-vasprintf-tests: New file.
69532         * modules/unistdio/u8-vsnprintf-tests: New file.
69533         * modules/unistdio/u8-vsprintf-tests: New file.
69534         * modules/unistdio/u16-asnprintf-tests: New file.
69535         * modules/unistdio/u16-vasnprintf-tests: New file.
69536         * modules/unistdio/u16-vasprintf-tests: New file.
69537         * modules/unistdio/u16-vsnprintf-tests: New file.
69538         * modules/unistdio/u16-vsprintf-tests: New file.
69539         * modules/unistdio/u32-asnprintf-tests: New file.
69540         * modules/unistdio/u32-vasnprintf-tests: New file.
69541         * modules/unistdio/u32-vasprintf-tests: New file.
69542         * modules/unistdio/u32-vsnprintf-tests: New file.
69543         * modules/unistdio/u32-vsprintf-tests: New file.
69544         * MODULES.html.sh (Unicode string functions): Add the new modules.
69545
69546 2007-07-01  Bruno Haible  <bruno@clisp.org>
69547
69548         * lib/sprintf.c (sprintf): Limit the available length estimation,
69549         to avoid address wraparound.
69550         * lib/vsprintf.c (vsprintf): Likewise.
69551         * modules/sprintf-posix (Dependencies): Add stdint.
69552         * modules/vsprintf-posix (Dependencies): Likewise.
69553
69554 2007-07-01  Bruno Haible  <bruno@clisp.org>
69555
69556         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
69557         Windows PATH as well. Conservative double-quoting. Comments.
69558
69559 2007-07-01  Bruno Haible  <bruno@clisp.org>
69560             Eric Blake  <ebb9@byu.net>
69561             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69562
69563         * gnulib-tool (self_abspathname): Fix algorithm to cope with
69564         empty components in $PATH, denoting '.'.
69565
69566 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69567
69568         * gnulib-tool: Fix indentation.
69569         (func_create_megatestdir): Likewise.
69570         Report by Bruno Haible.
69571
69572 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69573
69574         Sync from Automake.
69575         * build-aux/gnupload: Fix shell portability issues with for loops.
69576         Report by Karl Berry.
69577
69578 2007-06-29  Simon Josefsson  <simon@josefsson.org>
69579
69580         * build-aux/maint.mk (POURL): Use translationproject.org.
69581
69582 2007-06-27  Simon Josefsson  <simon@josefsson.org>
69583             Bruno Haible  <bruno@clisp.org>
69584
69585         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
69586         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
69587         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
69588         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
69589         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
69590
69591 2007-06-27  Bruno Haible  <bruno@clisp.org>
69592
69593         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
69594         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
69595
69596 2007-06-26  Karl Berry  <karl@gnu.org>
69597
69598         * MODULES.html.sh: remove xreadlink-with-size.
69599
69600 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69601
69602         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
69603         method that I hope also handles the double-include problem noted
69604         by Bruno Haible in
69605         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
69606
69607 2007-06-23  Bruno Haible  <bruno@clisp.org>
69608
69609         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69610         Don't let the 'mostlyclean' target fail if the last subdirectory could
69611         not be removed.
69612         Reported by Karl Berry.
69613
69614 2007-06-23  Bruno Haible  <bruno@clisp.org>
69615
69616         * gnulib-tool (echo): Add a speedier workaround for ksh.
69617         * tests/test-echo.sh: Likewise.
69618
69619 2007-06-23  Bruno Haible  <bruno@clisp.org>
69620
69621         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
69622         * tests/test-echo.sh: Likewise.
69623
69624 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69625
69626         * gnulib-tool (IFS): Initialize early, so we don't set it to
69627         empty later.
69628         (self_abspathname): Rewrite algorithm to set it, reindent.
69629         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
69630         (func_create_megatestdir): Merge some sed scripts.
69631
69632 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
69633
69634         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
69635         exposed by Sun Studio 11 cc on Solaris 8.
69636
69637 2007-06-22  Bruno Haible  <bruno@clisp.org>
69638
69639         * gnulib-tool (echo): Ensure the echo primitive does not interpret
69640         backslashes.
69641         * tests/test-echo.sh: New file.
69642
69643 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69644
69645         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
69646         simplify `sed_replace_build_aux' scripts, they are portable but
69647         echoing them with `echo' is not.
69648         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
69649
69650 2007-06-21  Karl Berry  <karl@gnu.org>
69651
69652         * config/srclist.txt: guess we can't handle the licenses via
69653         srclist at the moment.
69654
69655 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
69656
69657         * MODULES.html.sh: Add include_next.
69658         * modules/include_next: New file.
69659
69660 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
69663         INCLUDE_NEXT.
69664         (gl_CHECK_NEXT_HEADERS): New macro.
69665         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
69666         the obsolescent gl_ABSOLUTE_HEADER.
69667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
69668         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
69669         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
69670         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
69671         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
69672         * m4/math_h.m4 (gl_MATH_H): Likewise.
69673         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
69674         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
69675         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
69676         * m4/stdint.m4 (gl_STDINT_H): Likewise.
69677         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
69678         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
69679         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
69680         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
69681         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
69682         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
69683         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
69684         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
69685         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
69686         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
69687         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
69688         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69689         * m4/inttypes.m4 (gl_INTTYPES_H): Define
69690         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
69691         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
69692         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
69693         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
69694         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
69695         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
69696         * lib/float_.h: Likewise.
69697         * lib/inttypes_.h: Likewise.
69698         * lib/math_.h: Likewise.
69699         * lib/search_.h: Likewise.
69700         * lib/signal_.h: Likewise.
69701         * lib/stdint_.h: Likewise.
69702         * lib/stdio_.h: Likewise.
69703         * lib/stdlib_.h: Likewise.
69704         * lib/string_.h: Likewise.
69705         * lib/sys_stat_.h: Likewise.
69706         * lib/sys_time_.h: Likewise.
69707         * lib/time_.h: Likewise.
69708         * lib/unistd_.h: Likewise.
69709         * lib/wchar_.h: Likewise.
69710         * lib/wctype_.h: Likewise.
69711         * lib/dirent_.h: Likewise.
69712         * lib/iconv_.h: Likewise.
69713         * lib/locale_.h: Likewise.
69714         * lib/netinet_in_.h: Likewise.
69715         * lib/sys_select_.h: Likewise.
69716         * lib/sys_socket_.h: Likewise.
69717         * lib/sysexits_.h: Likewise.
69718         * modules/fcntl (Depends-on): Depend on include_next, not
69719         absolute_header.
69720         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
69721         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
69722         * modules/fchdir: Likewise.
69723         * modules/float: Likewise.
69724         * modules/iconv_open: Likewise.
69725         * modules/inttypes: Likewise.
69726         * modules/locale: Likewise.
69727         * modules/math: Likewise.
69728         * modules/netinet_in: Likewise.
69729         * modules/search: Likewise.
69730         * modules/signal: Likewise.
69731         * modules/stdint: Likewise.
69732         * modules/stdio: Likewise.
69733         * modules/stdlib: Likewise.
69734         * modules/string: Likewise.
69735         * modules/sys_select: Likewise.
69736         * modules/sys_socket: Likewise.
69737         * modules/sys_stat: Likewise.
69738         * modules/sys_time: Likewise.
69739         * modules/sysexits: Likewise.
69740         * modules/time: Likewise.
69741         * modules/unistd: Likewise.
69742         * modules/wchar: Likewise.
69743         * modules/wctype: Likewise.
69744         * modules/sys_stat: Change maintainer to "all".
69745         * modules/unistd: Likewise.
69746
69747 2007-06-20  Karl Berry  <karl@gnu.org>
69748
69749         * config/srclist.txt: track www changes in license files.
69750
69751 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
69752
69753         * build-aux/bootstrap: Remove stray dot.
69754         Make sure build_aux settings are honored when linking
69755         gnulib_extra_files.
69756
69757 2007-06-19  Eric Blake  <ebb9@byu.net>
69758
69759         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
69760         Allow compilation on cygwin.
69761
69762 2007-06-19  Jim Meyering  <jim@meyering.net>
69763
69764         xreadlink-with-size: Remove module.  No longer used.
69765         Ex-callers now use xreadlink or mreadlink-with-size.
69766         * modules/xreadlink-with-size: Remove module.
69767         * lib/xreadlink-with-size.c: Remove file.
69768         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
69769         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
69770         just before the function definition *is* accurate.
69771
69772         Eliminate one way canonicalize_filename_mode could exit.
69773         * lib/canonicalize.c (canonicalize_filename_mode):
69774         Use mreadlink_with_size, not xreadlink_with_size.
69775
69776 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         Detect porting problems to FreeBSD/arm, which has time_t wider than
69779         long int.  Original problem reported for GNU diff by Xin Li in
69780         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
69781         * modules/getdate (Depends-on): Add intprops, verify.
69782         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
69783         is an integer type no wider than long int.
69784
69785 2007-06-18  Jim Meyering  <jim@meyering.net>
69786
69787         New module: mreadlink-with-size.
69788         * MODULES.html.sh: Add mreadlink-with-size.
69789         * modules/mreadlink-with-size: New module
69790         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
69791         not xreadlink-with-size.
69792         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
69793
69794 2007-06-16  Bruno Haible  <bruno@clisp.org>
69795
69796         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
69797         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
69798         Reported by Gary V. Vaughan <gary@gnu.org>.
69799
69800 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
69801
69802         Revamp lchown so that it lives in unistd.h where it belongs.
69803         * lib/lchown.h: Remove.
69804         * lib/dirchownmod.c: Don't include lib/lchown.h.
69805         * lib/fchownat.c: Likewise.
69806         * lib/openat.c: Likewise.
69807         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
69808         does not follow symlinks.
69809         (EOPNOTSUPP): Define if not defined.
69810         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
69811         is defined to 0.
69812         (lchown): New decl.
69813         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
69814         Do not check for lchown decl.
69815         Set REPLACE_LCHOWN.
69816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
69817         REPLACE_LCHOWN.
69818         * modules/chown: Make it clear it follows symlinks.
69819         * modules/lchown: Make it clear it doesn't follow symlinks.
69820         (Files): Remove lib/lchown.h
69821         (Depends-on): Add unistd.
69822         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
69823         (Include): Include <unistd.h>, not "lchown.h".
69824         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
69825         REPLACE_LCHOWN.
69826
69827 2007-06-15  Jim Meyering  <jim@meyering.net>
69828
69829         Change license (GPL to LGPL) of fsusage and dependents.
69830         * modules/fsusage (License): Change to LGPL.
69831         * modules/full-read (License): Likewise.
69832         * modules/full-write (License): Likewise.
69833         * modules/safe-read (License): Likewise.
69834         * modules/safe-write (License): Likewise.
69835
69836 2007-06-14  Ben Pfaff  <blp@gnu.org>
69837
69838         Missing part of allocsa -> malloca transition.
69839         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
69840         gl_MALLOCA.
69841
69842 2007-06-12  Bruno Haible  <bruno@clisp.org>
69843
69844         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
69845         to ia64, x86_64, i386.
69846         Reported by Eric Blake.
69847
69848 2007-06-12  Bruno Haible  <bruno@clisp.org>
69849
69850         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
69851         cross-compiling to x86_64.
69852
69853 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
69854
69855         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
69856         glitch reported by Ralf Wildenhues in
69857         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
69858
69859         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
69860         Vin Shelton.
69861
69862 2007-06-11  Bruno Haible  <bruno@clisp.org>
69863
69864         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
69865         replacement string.
69866         Reported by Eric Blake.
69867
69868 2007-06-10  Bruno Haible  <bruno@clisp.org>
69869
69870         Prepare vasnprintf code for use with Unicode strings.
69871         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
69872         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
69873         TYPE_U32_STRING.
69874         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
69875         a_u32_string variants.
69876         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69877         * lib/printf-args.c: Don't include config.h and the specification
69878         header if PRINTF_FETCHARGS is already defined.
69879         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
69880         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
69881         TYPE_U16_STRING, TYPE_U32_STRING.
69882         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
69883         u16_directive, u16_directives, u32_directive, u32_directives): New
69884         types.
69885         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
69886         New declarations.
69887         * lib/printf-parse.c: Don't include config.h and the specification
69888         header if PRINTF_PARSE is already defined. Eliminate the set of
69889         parameters for WIDE_CHAR_VERSION; the user of this file must provide
69890         them now. Include c-ctype.h.
69891         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
69892         directive and CHAR_T_ONLY_ASCII.
69893         * lib/vasnprintf.c: Don't include config.h and the specification header
69894         if VASNPRINTF is already defined.
69895         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
69896         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
69897         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
69898         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
69899         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
69900         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
69901         code accordingly.
69902         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
69903         pad_ourselves also in this case, with the 'c' and 's' directives, and
69904         with a different notion of "width".
69905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
69906
69907 2007-06-10  Bruno Haible  <bruno@clisp.org>
69908
69909         * modules/unistr/u32-mbsnlen: New file.
69910         * lib/unistr/u32-mbsnlen.c: New file.
69911
69912         * modules/unistr/u16-mbsnlen: New file.
69913         * lib/unistr/u16-mbsnlen.c: New file.
69914
69915         * modules/unistr/u8-mbsnlen: New file.
69916         * lib/unistr/u8-mbsnlen.c: New file.
69917
69918         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
69919         declarations.
69920
69921 2007-06-10  Bruno Haible  <bruno@clisp.org>
69922
69923         * lib/string_.h (mbsnlen): New declaration.
69924         * lib/mbsnlen.c: New file.
69925         * m4/mbsnlen.m4: New file.
69926         * modules/mbsnlen: New file.
69927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
69928         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
69929         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
69930
69931 2007-06-10  Bruno Haible  <bruno@clisp.org>
69932
69933         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
69934
69935 2007-06-10  Bruno Haible  <bruno@clisp.org>
69936
69937         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
69938         * lib/mbuiter.h: Likewise.
69939
69940 2007-06-10  Bruno Haible  <bruno@clisp.org>
69941
69942         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
69943         declaration.
69944
69945 2007-06-10  Karl Berry  <karl@gnu.org>
69946
69947         * config/srclist.txt: remove gettext entries, Bruno prefers
69948         to update individually.
69949
69950 2007-06-10  Bruno Haible  <bruno@clisp.org>
69951
69952         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
69953         'maxlen'. Ensure only length + width bytes are allocated, not
69954         length + 1 + width.
69955
69956 2007-06-09  Bruno Haible  <bruno@clisp.org>
69957
69958         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
69959         (CHAR_T): Remove macro.
69960         (VASNPRINTF): Update.
69961
69962 2007-06-09  Bruno Haible  <bruno@clisp.org>
69963
69964         * MODULES.html.sh (Unicode string functions): Add the new modules.
69965
69966         * modules/uniconv/u32-conv-to-enc: New file.
69967         * lib/uniconv/u32-conv-to-enc.c: New file.
69968         * modules/uniconv/u32-conv-to-enc-tests: New file.
69969         * tests/uniconv/test-u32-conv-to-enc.c: New file.
69970
69971         * modules/uniconv/u16-conv-to-enc: New file.
69972         * lib/uniconv/u16-conv-to-enc.c: New file.
69973         * lib/uniconv/u-conv-to-enc.h: New file.
69974         * modules/uniconv/u16-conv-to-enc-tests: New file.
69975         * tests/uniconv/test-u16-conv-to-enc.c: New file.
69976
69977         * modules/uniconv/u8-conv-to-enc: New file.
69978         * lib/uniconv/u8-conv-to-enc.c: New file.
69979         * modules/uniconv/u8-conv-to-enc-tests: New file.
69980         * tests/uniconv/test-u8-conv-to-enc.c: New file.
69981
69982         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
69983         u32_conv_to_encoding): New declarations.
69984
69985 2007-06-09  Bruno Haible  <bruno@clisp.org>
69986
69987         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
69988
69989 2007-06-09  Bruno Haible  <bruno@clisp.org>
69990
69991         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
69992         * modules/malloca: Renamed from modules/allocsa, updated.
69993         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
69994         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
69995         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
69996         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
69997         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
69998         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
69999         * modules/xmalloca: Renamed from modules/xallocsa, updated.
70000         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
70001         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
70002         * modules/c-strcasestr (Depends-on): Update.
70003         * lib/c-strcasestr.c: Update.
70004         * modules/c-strstr (Depends-on): Update.
70005         * lib/c-strstr.c: Update.
70006         * modules/canonicalize-lgpl (Depends-on): Update.
70007         * lib/canonicalize-lgpl.c: Update.
70008         * modules/clean-temp (Depends-on): Update.
70009         * lib/clean-temp.c: Update.
70010         * modules/csharpcomp (Depends-on): Update.
70011         * lib/csharpcomp.c: Update.
70012         * modules/csharpexec (Depends-on): Update.
70013         * lib/csharpexec.c: Update.
70014         * modules/javacomp (Depends-on): Update.
70015         * lib/javacomp.c: Update.
70016         * modules/javaexec (Depends-on): Update.
70017         * lib/javaexec.c: Update.
70018         * modules/mbscasestr (Depends-on): Update.
70019         * lib/mbscasestr.c: Update.
70020         * modules/mbsstr (Depends-on): Update.
70021         * lib/mbsstr.c: Update.
70022         * modules/setenv (Depends-on): Update.
70023         * lib/setenv.c: Update.
70024         * modules/strcasestr (Depends-on): Update.
70025         * lib/strcasestr.c: Update.
70026         * modules/striconveha (Depends-on): Update.
70027         * lib/striconveha.c: Update.
70028         * modules/relocatable-prog-wrapper (Files): Update.
70029         * lib/relocwrapper.c: Update.
70030         * build-aux/install-reloc: Update.
70031         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
70032
70033 2007-06-08  Bruno Haible  <bruno@clisp.org>
70034
70035         Port to uClibc.
70036         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
70037         * lib/fpurge.c (fpurge): Likewise.
70038         * lib/freading.c (freading): Likewise.
70039         * lib/fseeko.c (rpl_fseeko): Likewise.
70040         * lib/fseterr.c (fseterr): Likewise.
70041         * lib/fwriting.c (fwriting): Likewise.
70042         * tests/test-fflush.c (main): Avoid a failure on uClibc.
70043
70044 2007-06-08  Bruno Haible  <bruno@clisp.org>
70045
70046         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
70047         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
70048         * modules/gettext (Files): Add m4/intlmacosx.m4.
70049
70050 2007-06-07  Bruno Haible  <bruno@clisp.org>
70051
70052         * modules/localename-tests: New file.
70053         * tests/test-localename.c: New file.
70054
70055         New module 'localename'.
70056         * lib/localename.h: New file.
70057         * lib/localename.c: New file, from GNU gettext.
70058         * m4/localename.m4: New file.
70059         * modules/localename: New file.
70060
70061 2007-06-07  Bruno Haible  <bruno@clisp.org>
70062
70063         Work around the lack of <wchar.h> on some builds of uClibc.
70064         * doc/headers/wchar.texi: Update.
70065         * lib/wchar_.h: Include <wchar.h> only if it exists.
70066         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
70067         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
70068         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
70069         doesn't exist.
70070         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
70071         * modules/mbfile (Depends-on): Add wchar.
70072         * modules/mbiter (Depends-on): Likewise.
70073         * modules/mbuiter (Depends-on): Likewise.
70074         Reported by Simon Josefsson.
70075
70076 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
70077
70078         Work around problem reported by Steven M. Schweda in
70079         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
70080         Tru64 5.1B with the Compaq compiler environment installed declares
70081         an 'isblank' function but does not define it in the C library.
70082         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
70083         * lib/regex_internal.h (isblank): Likewise.
70084         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
70085         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70086
70087 2007-06-05  Bruno Haible  <bruno@clisp.org>
70088
70089         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
70090         ia64.
70091         * modules/printf-safe: New file.
70092         * modules/fprintf-posix (Depends-on): Add printf-safe.
70093         * modules/printf-posix (Depends-on): Likewise.
70094         * modules/snprintf-posix (Depends-on): Likewise.
70095         * modules/sprintf-posix (Depends-on): Likewise.
70096         * modules/vasnprintf-posix (Depends-on): Likewise.
70097         * modules/vasprintf-posix (Depends-on): Likewise.
70098         * modules/vfprintf-posix (Depends-on): Likewise.
70099         * modules/vprintf-posix (Depends-on): Likewise.
70100         * modules/vsnprintf-posix (Depends-on): Likewise.
70101         * modules/vsprintf-posix (Depends-on): Likewise.
70102         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
70103         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
70104         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
70105         "no" on i386, x86_64, ia64.
70106         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
70107         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70108         on i386, x86_64, ia64.
70109         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
70110         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70111         on i386, x86_64, ia64.
70112         * tests/test-vasnprintf-posix.c: Include float.h.
70113         (LDBL80_WORDS): New macro.
70114         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70115         on i386, x86_64, ia64.
70116         * tests/test-vasprintf-posix.c: Include float.h.
70117         (LDBL80_WORDS): New macro.
70118         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
70119         on i386, x86_64, ia64.
70120         * tests/test-snprintf-posix.c: Include float.h.
70121         * tests/test-sprintf-posix.c: Likewise.
70122         * tests/test-vsnprintf-posix.c: Likewise.
70123         * tests/test-vsprintf-posix.c: Likewise.
70124
70125 2007-06-05  Bruno Haible  <bruno@clisp.org>
70126
70127         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
70128         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
70129         non-IEEE numbers on i386, x86_64, ia64.
70130         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
70131         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
70132         * tests/test-isnanl.h: Include float.h.
70133         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
70134
70135 2007-06-05  Bruno Haible  <bruno@clisp.org>
70136
70137         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
70138         also the %a / %A. Handle the %a / %A code before this extra handling.
70139
70140 2007-06-05  Bruno Haible  <bruno@clisp.org>
70141
70142         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
70143         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
70144
70145 2007-06-05  Bruno Haible  <bruno@clisp.org>
70146
70147         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
70148         typo in variable name.
70149
70150 2007-06-05  Eric Blake  <ebb9@byu.net>
70151
70152         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
70153         Reported by Simon Josefsson.
70154
70155 2007-06-04  Bruno Haible  <bruno@clisp.org>
70156
70157         Avoid test failures on some PowerPC platforms.
70158         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
70159         Define differently for PowerPC.
70160         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
70161         Reported by Gary V. Vaughan <gary@gnu.org>.
70162
70163 2007-06-02  Bruno Haible  <bruno@clisp.org>
70164
70165         Fix test-stdint failure on FreeBSD/ia64.
70166         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
70167         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
70168         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
70169         * doc/headers/stdint.texi: Update.
70170
70171 2007-06-01  Bruno Haible  <bruno@clisp.org>
70172
70173         * tests/test-binary-io.c (main): Pass a third argument to open().
70174         Reported by Gary V. Vaughan <gary@gnu.org>.
70175
70176 2007-06-01  Bruno Haible  <bruno@clisp.org>
70177
70178         * doc/functions/frexpl.texi: Update for mingw.
70179
70180 2007-06-01  Bruno Haible  <bruno@clisp.org>
70181
70182         * tests/test-lseek.c (main): Disable test of errno for invalid third
70183         argument.
70184         * doc/functions/lseek.texi: Update.
70185         Reported by Gary V. Vaughan <gary@gnu.org>.
70186
70187 2007-05-28  Bruno Haible  <bruno@clisp.org>
70188
70189         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
70190
70191 2007-05-31  Eric Blake  <ebb9@byu.net>
70192
70193         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
70194         cross compiling.
70195
70196 2007-05-30  Eric Blake  <ebb9@byu.net>
70197         and Bruno Haible  <bruno@clisp.org>
70198
70199         Work around mingw test failures exposed by m4-1.4.9b.
70200         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
70201         * tests/test-unistd.c: Disable uid_t and git_t tests for the
70202         moment.
70203
70204 2007-05-30  Bruno Haible  <bruno@clisp.org>
70205
70206         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
70207         assuming that they are closed. Needed on HP-UX 11.
70208
70209 2007-05-29  Bruno Haible  <bruno@clisp.org>
70210
70211         Fix a problem with #include_next.
70212         * lib/dirent_.h: Split the double-inclusion guard.
70213         * lib/fcntl_.h: Likewise.
70214         * lib/float_.h: Likewise.
70215         * lib/iconv_.h: Likewise.
70216         * lib/inttypes_.h: Likewise.
70217         * lib/locale_.h: Likewise.
70218         * lib/math_.h: Likewise.
70219         * lib/netinet_in_.h: Likewise.
70220         * lib/search_.h: Likewise.
70221         * lib/signal_.h: Likewise.
70222         * lib/stdint_.h: Likewise.
70223         * lib/stdio_.h: Likewise.
70224         * lib/stdlib_.h: Likewise.
70225         * lib/string_.h: Likewise.
70226         * lib/sys_select_.h: Likewise.
70227         * lib/sys_socket_.h: Likewise.
70228         * lib/sys_stat_.h: Likewise.
70229         * lib/sys_time_.h: Likewise.
70230         * lib/sysexits_.h: Likewise.
70231         * lib/time_.h: Likewise.
70232         * lib/unistd_.h: Likewise.
70233         * lib/wchar_.h: Likewise.
70234         * lib/wctype_.h: Likewise.
70235
70236 2007-05-29  Bruno Haible  <bruno@clisp.org>
70237
70238         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
70239         for the moment.
70240
70241 2007-05-29  Bruno Haible  <bruno@clisp.org>
70242
70243         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
70244         invocation.
70245         Reported by Eric Blake.
70246
70247 2007-05-29  Bruno Haible  <bruno@clisp.org>
70248
70249         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
70250         compiling case.
70251
70252 2007-05-29  Eric Blake  <ebb9@byu.net>
70253             Bruno Haible  <bruno@clisp.org>
70254
70255         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
70256         cross compiles.
70257
70258 2007-05-28  Eric Blake  <ebb9@byu.net>
70259
70260         * modules/closein-tests (test_closein_LDADD): Support test on
70261         cygwin with libtool.
70262
70263 2007-05-28  Bruno Haible  <bruno@clisp.org>
70264
70265         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
70266         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
70267         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
70268         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
70269         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
70270         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
70271         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
70272         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
70273         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
70274
70275 2007-05-28  Eric Blake  <ebb9@byu.net>
70276
70277         Unconditionally include <config.h> in unit tests.
70278         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
70279         * tests/test-allocsa.c, tests/test-arcfour.c,
70280         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
70281         tests/test-array_list.c, tests/test-array_oset.c,
70282         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
70283         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
70284         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
70285         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
70286         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
70287         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
70288         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
70289         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
70290         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
70291         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
70292         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
70293         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
70294         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
70295         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
70296         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
70297         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
70298         test-md5.c, test-memmem.c, test-printf-posix.c,
70299         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
70300         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
70301         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
70302         test-strcasestr.c, test-striconv.c, test-striconveh.c,
70303         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
70304         test-vasnprintf-posix2.c, test-vasnprintf.c,
70305         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
70306         test-vfprintf-posix.c, test-vprintf-posix.c,
70307         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
70308         test-xvasprintf.c: Likewise.
70309
70310 2007-05-28  Bruno Haible  <bruno@clisp.org>
70311
70312         * gnulib-tool (func_import): Remember the --with-tests command-line
70313         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
70314         Reported by Eric Blake.
70315
70316 2007-05-28  Bruno Haible  <bruno@clisp.org>
70317
70318         * modules/ftell-tests: New file.
70319         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
70320         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
70321
70322         * lib/ftell.c: New file.
70323         * modules/ftell: New file.
70324         * m4/ftell.m4: New file.
70325         * doc/functions/ftell.texi: Update.
70326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
70327         REPLACE_FTELL.
70328         * lib/stdio_.h (rpl_ftell): New declaration.
70329         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
70330         REPLACE_FTELL.
70331
70332 2007-05-28  Eric Blake  <ebb9@byu.net>
70333
70334         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
70335
70336 2007-05-28  Bruno Haible  <bruno@clisp.org>
70337
70338         * modules/fseek-tests: New file.
70339         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
70340         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
70341
70342         * lib/fseek.c: New file.
70343         * modules/fseek: New file.
70344         * m4/fseek.m4: New file.
70345         * doc/functions/fseek.texi: Update.
70346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
70347         REPLACE_FSEEK.
70348         * lib/stdio_.h (rpl_fseek): New declaration.
70349         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
70350         REPLACE_FSEEK.
70351
70352 2007-05-28  Bruno Haible  <bruno@clisp.org>
70353
70354         * lib/stdio_.h (fflush): More comments.
70355
70356 2007-05-28  Bruno Haible  <bruno@clisp.org>
70357
70358         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
70359         runtime test.
70360
70361 2007-05-28  Eric Blake  <ebb9@byu.net>
70362
70363         Improve lseek module.
70364         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
70365         * lib/unistd_.h (lseek): Scale back link warning message.
70366         * tests/test-lseek.c: Beef up test.
70367         * tests/test-lseek.sh: Exercise more facets of lseek.
70368         Reported by Bruno Haible.
70369
70370 2007-05-28  Bruno Haible  <bruno@clisp.org>
70371
70372         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
70373         to define.
70374
70375 2007-05-27  Bruno Haible  <bruno@clisp.org>
70376
70377         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
70378
70379 2007-05-27  Bruno Haible  <bruno@clisp.org>
70380
70381         * modules/openmp: New file.
70382         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
70383         Noah Misch.
70384
70385 2007-05-26  Bruno Haible  <bruno@clisp.org>
70386
70387         * modules/chdir-long (Depends-on): Add fchdir.
70388         * modules/chdir-safer (Depends-on): Likewise.
70389         * modules/fts (Depends-on): Likewise.
70390         * modules/fts-lgpl (Depends-on): Likewise.
70391         * modules/openat (Depends-on): Likewise.
70392         * modules/savewd (Depends-on): Likewise.
70393
70394 2007-05-24  Eric Blake  <ebb9@byu.net>
70395
70396         Fix lseek on mingw.
70397         * modules/lseek: New module.
70398         * m4/lseek.m4: New file.
70399         * lib/lseek.c: New file.
70400         * modules/lseek-tests: New file.
70401         * tests/test-lseek.c: New file.
70402         * tests/test-lseek.sh: New file.
70403         * MODULES.html.sh: Document lseek module.
70404         * modules/fflush (Depends-on): Add lseek, fseeko.
70405         * modules/fseeko (Depends-on): Likewise.
70406         * modules/ftello (Depends-on): Likewise.
70407         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
70408         broken.
70409         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
70410         broken.
70411         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
70412         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
70413         * lib/ftello.c (rpl_ftello): Likewise.
70414         * tests/test-fseeko.c (main): Test this.
70415         * tests/test-fseeko.sh: Likewise.
70416         * tests/test-ftello.c (main): Likewise.
70417         * tests/test-ftello.sh: Likewise.
70418         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
70419         implies replacing fseek.
70420         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
70421         HAVE_FTELLO.
70422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
70423         * modules/unistd (Makefile.am): Likewise.
70424         * lib/unistd_.h (lseek): Declare a replacement.
70425         * doc/functions/lseek.texi (lseek): Document this fix.
70426         * doc/functions/fseek.texi (fseek): Likewise.
70427         * doc/functions/ftell.texi (ftell): Likewise.
70428
70429 2007-05-24  Bruno Haible  <bruno@clisp.org>
70430
70431         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
70432         in the printed representation of a NaN.
70433         * tests/test-vasprintf-posix.c (test_function): Likewise.
70434         * tests/test-snprintf-posix.h (test_function): Likewise.
70435         * tests/test-sprintf-posix.h (test_function): Likewise.
70436         Reported by Eric Blake.
70437
70438 2007-05-23  Eric Blake  <ebb9@byu.net>
70439
70440         Fix fseeko/ftello on cygwin 1.5.24.
70441         * doc/functions/fseeko.texi (fseeko): Document the fix.
70442         * doc/functions/ftello.texi (ftello): Document the fix.
70443         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
70444         * doc/functions/stdout.text (stdout): New file.
70445         * doc/functions/stderr.text (stderr): New file.
70446         * doc/gnulib.texi (Function Substitutes): Use new files.
70447         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
70448         prior to 1.7.0.
70449         * tests/test-ftello.c (main): Likewise for ftello.
70450         * tests/test-fseeko.sh: New file.
70451         * tests/test-ftello.sh: New file.
70452         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
70453         with seekable stdin.
70454         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
70455         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
70456         (gl_REPLACE_FSEEKO): New macro.
70457         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
70458         * modules/fseeko (Files): Distribute fseeko.c.
70459         * modules/ftello (Files): Distribute ftello.c.
70460         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
70461         mode.
70462         * lib/ftello.c (rpl_ftello): New file.
70463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
70464         fseeko, ftello.
70465         (gl_STDIN_LARGE_OFFSET): New macro.
70466         * modules/stdio (Makefile.am): Perform the replacement.
70467         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
70468
70469 2007-05-23  Bruno Haible  <bruno@clisp.org>
70470
70471         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
70472         GNULIB_POSIXCHECK is defined.
70473
70474 2007-05-21  Bruno Haible  <bruno@clisp.org>
70475
70476         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
70477         Check also the output for NaN arguments. When cross-compiling, guess
70478         no on IRIX.
70479         * lib/vasnprintf.c: Update comments.
70480         * tests/test-vasnprintf-posix.c (strisnan): New function.
70481         (test_function): Use it.
70482         * tests/test-vasprintf-posix.c (strisnan): New function.
70483         (test_function): Use it.
70484         * tests/test-snprintf-posix.h (strisnan): New function.
70485         (test_function): Use it.
70486         * tests/test-sprintf-posix.h (strisnan): New function.
70487         (test_function): Use it.
70488         Reported by Eric Blake.
70489
70490 2007-05-20  Bruno Haible  <bruno@clisp.org>
70491
70492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
70493         numbers that fails on BeOS.
70494         * doc/functions/frexpl.texi: Update.
70495
70496 2007-05-20  Jim Meyering  <jim@meyering.net>
70497
70498         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
70499         forced upon us by glibc-2.6.
70500
70501 2007-05-20  Bruno Haible  <bruno@clisp.org>
70502
70503         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
70504         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
70505         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
70506         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
70507         NEED_PRINTF_INFINITE.
70508         (is_infinitel): New function.
70509         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
70510         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
70511         gl_PREREQ_VASNPRINTF_INFINITE.
70512         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
70513         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70514         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
70515         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
70516         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
70517         gl_PREREQ_VASNPRINTF_INFINITE.
70518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70519         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70520         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70521         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70522         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70523         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70524         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70525         * doc/functions/fprintf.texi: Update.
70526         * doc/functions/printf.texi: Update.
70527         * doc/functions/snprintf.texi: Update.
70528         * doc/functions/sprintf.texi: Update.
70529         * doc/functions/vfprintf.texi: Update.
70530         * doc/functions/vprintf.texi: Update.
70531         * doc/functions/vsnprintf.texi: Update.
70532         * doc/functions/vsprintf.texi: Update.
70533
70534 2007-05-20  Bruno Haible  <bruno@clisp.org>
70535
70536         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
70537         was not found in libc.
70538         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
70539
70540 2007-05-20  Bruno Haible  <bruno@clisp.org>
70541
70542         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70543         printed as "-nan" instead of "nan".
70544         * tests/test-vasprintf-posix.c (test_function): Likewise.
70545         * tests/test-snprintf-posix.h (test_function): Likewise.
70546         * tests/test-sprintf-posix.h (test_function): Likewise.
70547         Needed for HP-UX 11.
70548
70549 2007-05-20  Jim Meyering  <jim@meyering.net>
70550
70551         Fix buggy test for the fchownat-deref bug.
70552         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
70553         symlink required for the run-test.  Without it, this test would
70554         always declare that fchownat doesn't work, and client code would
70555         unnecessarily use the replacement function with fixed libc.
70556         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
70557         Reported by Greg Schafer.
70558
70559 2007-05-19  Bruno Haible  <bruno@clisp.org>
70560
70561         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
70562         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
70563         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
70564         Needed for IRIX 6.5 and Solaris 2.5.1.
70565
70566 2007-05-19  Bruno Haible  <bruno@clisp.org>
70567
70568         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
70569         (test_function): Skip tests involving -0.0 on platforms where
70570         -0.0 = 0.0.
70571         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
70572         (test_function): Skip tests involving -0.0 on platforms where
70573         -0.0 = 0.0.
70574         * tests/test-snprintf-posix.h (have_minus_zero): New function.
70575         (test_function): Skip tests involving -0.0 on platforms where
70576         -0.0 = 0.0.
70577         * tests/test-sprintf-posix.h (have_minus_zero): New function.
70578         (test_function): Skip tests involving -0.0 on platforms where
70579         -0.0 = 0.0.
70580         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
70581         tests.
70582         * tests/test-printf-posix.h (test_function): Likewise.
70583         * tests/test-printf-posix.output: Remove all -0.0 related results.
70584         Needed for IRIX 6.5.
70585
70586 2007-05-19  Bruno Haible  <bruno@clisp.org>
70587
70588         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
70589         printed as "nan0x7fffffff" instead of "nan".
70590         * tests/test-vasprintf-posix.c (test_function): Likewise.
70591         * tests/test-snprintf-posix.h (test_function): Likewise.
70592         * tests/test-sprintf-posix.h (test_function): Likewise.
70593         * tests/test-fprintf-posix.h (NaN): Remove macro.
70594         (test_function): Remove all NaN related tests.
70595         * tests/test-printf-posix.h (NaN): Remove macro.
70596         (test_function): Remove all NaN related tests.
70597         * tests/test-printf-posix.output: Remove all NaN related results.
70598         Needed for IRIX 6.5.
70599
70600 2007-05-19  Bruno Haible  <bruno@clisp.org>
70601
70602         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
70603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
70604
70605 2007-05-19  Bruno Haible  <bruno@clisp.org>
70606
70607         * lib/float_.h: New file.
70608         * m4/float_h.m4: New file.
70609         * modules/float: New file.
70610         * modules/isnanl (Dependencies): Add float.
70611         * modules/isnanl-nolibm (Dependencies): Likewise.
70612         * modules/mathl (Dependencies): Likewise.
70613         * modules/printf-frexpl (Dependencies): Likewise.
70614         * modules/signbit (Dependencies): Likewise.
70615         * modules/vasnprintf (Dependencies): Likewise.
70616         * doc/headers/float.texi: Update.
70617
70618 2007-05-19  Jim Meyering  <jim@meyering.net>
70619
70620         * lib/utimens.c (gl_futimens): Rename from futimens,
70621         now that glibc-2.6 declares futimens.
70622         * lib/utimens.h: Likewise.
70623
70624 2007-05-19  Bruno Haible  <bruno@clisp.org>
70625
70626         Avoid test failures on mingw.
70627         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
70628         * tests/test-printf-posix.sh: Likewise.
70629         * tests/test-vfprintf-posix.sh: Likewise.
70630         * tests/test-vprintf-posix.sh: Likewise.
70631
70632 2007-05-19  Bruno Haible  <bruno@clisp.org>
70633
70634         Fix *printf result for NaN, Inf, -0.0 on mingw.
70635         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
70636         * lib/vasnprintf.c: Include math.h and isnan.h.
70637         (is_infinite_or_zero): New function.
70638         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
70639         values in the %f, %F, %e, %E, %g, %G directives.
70640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
70641         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70642         gl_PRINTF_INFINITE and test its result. Invoke
70643         gl_PREREQ_VASNPRINTF_INFINITE.
70644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70645         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70646         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70647         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70648         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70649         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70650         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70651         * doc/functions/fprintf.texi: Update.
70652         * doc/functions/printf.texi: Update.
70653         * doc/functions/snprintf.texi: Update.
70654         * doc/functions/sprintf.texi: Update.
70655         * doc/functions/vfprintf.texi: Update.
70656         * doc/functions/vprintf.texi: Update.
70657         * doc/functions/vsnprintf.texi: Update.
70658         * doc/functions/vsprintf.texi: Update.
70659
70660 2007-05-19  Bruno Haible  <bruno@clisp.org>
70661
70662         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
70663         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
70664         Instead of multiplying with 10^k, set extra_zeroes to k.
70665         (scale10_round_long_double): Remove function.
70666
70667 2007-05-18  Bruno Haible  <bruno@clisp.org>
70668
70669         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
70670         introduced on 2007-05-06.
70671
70672 2007-05-18  Bruno Haible  <bruno@clisp.org>
70673
70674         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
70675         %g directives.
70676         * tests/test-vasprintf-posix.c (test_function): Likewise.
70677         * tests/test-snprintf-posix.h (test_function): Likewise.
70678         * tests/test-sprintf-posix.h (test_function): Likewise.
70679
70680 2007-05-18  Bruno Haible  <bruno@clisp.org>
70681
70682         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
70683         (strmatch): New function.
70684         (test_function): Test the %f directive on numbers of various exponents.
70685         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
70686         (strmatch): New function.
70687         (test_function): Test the %f directive on numbers of various exponents.
70688         * tests/test-snprintf-posix.h (strmatch): New function.
70689         (test_function): Test the %f directive on numbers of various exponents.
70690         * tests/test-sprintf-posix.h (strmatch): New function.
70691         (test_function): Test the %f directive on numbers of various exponents.
70692         * tests/test-snprintf-posix.c (SIZEOF): New macro.
70693         * tests/test-sprintf-posix.c (SIZEOF): New macro.
70694         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
70695         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
70696
70697 2007-05-18  Bruno Haible  <bruno@clisp.org>
70698
70699         Add support for 'long double' number output.
70700         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
70701         * lib/vasnprintf.c: Include math.h and float+.h.
70702         (mp_limb_t): New type.
70703         (GMP_LIMB_BITS): New macro.
70704         (mp_twolimb_t): New type.
70705         (GMP_TWOLIMB_BITS): New macro.
70706         (mpn_t): New type.
70707         (multiply, divide, convert_to_decimal, decode_long_double,
70708         scale10_round_long_double, scale10_round_decimal_long_double,
70709         floorlog10l): New functions.
70710         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
70711         for the %f, %F, %e, %E, %g, %G directives.
70712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
70713         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70714         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
70715         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
70716         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70717         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70718         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70719         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70720         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70721         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70722         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70723         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
70724         * modules/snprintf-posix (Depends-on): Likewise.
70725         * modules/sprintf-posix (Depends-on): Likewise.
70726         * modules/vasnprintf-posix (Depends-on): Likewise.
70727         * modules/vasprintf-posix (Depends-on): Likewise.
70728         * modules/vfprintf-posix (Depends-on): Likewise.
70729         * modules/vsnprintf-posix (Depends-on): Likewise.
70730         * modules/vsprintf-posix (Depends-on): Likewise.
70731         * modules/vasnprintf (Files): Add lib/float+.h.
70732         * doc/functions/fprintf.texi: Update.
70733         * doc/functions/printf.texi: Update.
70734         * doc/functions/snprintf.texi: Update.
70735         * doc/functions/sprintf.texi: Update.
70736         * doc/functions/vfprintf.texi: Update.
70737         * doc/functions/vprintf.texi: Update.
70738         * doc/functions/vsnprintf.texi: Update.
70739         * doc/functions/vsprintf.texi: Update.
70740
70741 2007-05-18  Bruno Haible  <bruno@clisp.org>
70742
70743         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
70744
70745 2007-05-18  Bruno Haible  <bruno@clisp.org>
70746
70747         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
70748         for printing 64-bit integers. Needed for mingw.
70749
70750 2007-05-18  Bruno Haible  <bruno@clisp.org>
70751
70752         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70753         gl_FUNC_FREXPL_WORKS.
70754         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
70755
70756 2007-05-18  Bruno Haible  <bruno@clisp.org>
70757
70758         * modules/frexpl-nolibm-tests: New file.
70759
70760         * modules/frexpl-nolibm: New file.
70761         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
70762
70763 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
70766         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70767         GCC 4.2, which otherwise issues a lot of warnings.
70768         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
70769         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
70770         Likewise.
70771         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
70772         * modules/iconv_open (iconv.h): Likewise.
70773         * modules/locale (locale.h): Likewise.
70774         * modules/netinet_in (netinet/in.h): Likewise.
70775         * modules/sys_select (sys_select.h): Likewise.
70776         * modules/sys_socket (sys/socket.h): Likewise.
70777         * modules/sys_stat (sys/stat.h): Likewise.
70778         * modules/sysexits (sysexits.h): Likewise.
70779         * modules/unistd (unistd.h): Likewise.
70780
70781 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70782
70783         * modules/closein-tests (Makefile.am): Distribute
70784         `test-closein.sh'.
70785
70786 2007-05-17  Bruno Haible  <bruno@clisp.org>
70787
70788         * tests/test-printf-posix.output: Renamed from
70789         tests/test-fprintf-posix.out.
70790         * modules/fprintf-posix-tests: Update.
70791         * modules/printf-posix-tests: Update.
70792         * modules/vfprintf-posix-tests: Update.
70793         * modules/vprintf-posix-tests: Update.
70794         * tests/test-fprintf-posix.sh: Update.
70795         * tests/test-printf-posix.sh: Update.
70796         * tests/test-vfprintf-posix.sh: Update.
70797         * tests/test-vprintf-posix.sh: Update.
70798         Reported by Ralf Wildenhues.
70799
70800 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
70801
70802         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
70803         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
70804         GCC 4.2, which otherwise issues a lot of warnings.
70805         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
70806         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
70807         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
70808         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
70809         it should no longer be needed.
70810         * lib/string_.h: Likewise.
70811         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
70812         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
70813         * modules/inttypes (inttypes.h): Likewise.
70814         * modules/math (math.h): Likewise.
70815         * modules/search (search.h): Likewise.
70816         * modules/signal (signal.h): Likewise.
70817         * modules/stdint (stdint.h): Likewise.
70818         * modules/stdio (stdio.h): Likewise.
70819         * modules/stdlib (stdlib.h): Likewise.
70820         * modules/string (string.h): Likewise.
70821         * modules/sys_time (sys/time.h): Likewise.
70822         * modules/time (time.h): Likewise.
70823         * modules/wchar (wchar.h): Likewise.
70824         * modules/wctype (wtype.h): Likewise.
70825
70826 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
70827
70828         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
70829
70830 2007-05-13  Bruno Haible  <bruno@clisp.org>
70831
70832         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
70833         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70834         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
70835         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70836         (gl_PREREQ_STRTOK_R): Don't require it here.
70837
70838 2007-05-13  Bruno Haible  <bruno@clisp.org>
70839
70840         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
70841         when used in C++ mode.
70842
70843 2007-05-12  Bruno Haible  <bruno@clisp.org>
70844
70845         * lib/linebuffer.h: Tweak doc.
70846         * lib/linebuffer.c: Likewise.
70847
70848 2007-05-12  James Youngman  <jay@gnu.org>
70849
70850         * lib/linebuffer.c (readlinebuffer_delim): New function,
70851         like readlinebuffer, but use a caller-specified delimiter.
70852         (readlinebuffer): Just call readlinebuffer_delim with '\n'
70853         as the delimiter.
70854         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
70855
70856 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70857
70858         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
70859         * modules/openat (Files): Remove openat-die.c.
70860         (Depends-on): Add openat-die.
70861         * modules/openat-die: New module.
70862
70863 2007-05-06  Bruno Haible  <bruno@clisp.org>
70864
70865         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
70866         Update with info about Cygwin.
70867         * doc/functions/fprintf.texi: Update.
70868         * doc/functions/printf.texi: Update.
70869         * doc/functions/snprintf.texi: Update.
70870         * doc/functions/sprintf.texi: Update.
70871         * doc/functions/vfprintf.texi: Update.
70872         * doc/functions/vprintf.texi: Update.
70873         * doc/functions/vsnprintf.texi: Update.
70874         * doc/functions/vsprintf.texi: Update.
70875         Reported by Eric Blake.
70876
70877 2007-05-06  Bruno Haible  <bruno@clisp.org>
70878
70879         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
70880         padding ourselves for the floating-point directives.
70881         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
70882         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
70883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70884         gl_PRINTF_FLAG_ZERO and test its result. Invoke
70885         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
70886         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70887         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70889         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70890         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70891         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70892         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70893         * tests/test-snprintf-posix.h (test_function): Also check the width
70894         and some flags in the %f directive.
70895         * tests/test-sprintf-posix.h (test_function): Likewise.
70896         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70897         * tests/test-vasprintf-posix.c (test_function): Likewise.
70898         * doc/functions/fprintf.texi: Update.
70899         * doc/functions/printf.texi: Update.
70900         * doc/functions/snprintf.texi: Update.
70901         * doc/functions/sprintf.texi: Update.
70902         * doc/functions/vfprintf.texi: Update.
70903         * doc/functions/vprintf.texi: Update.
70904         * doc/functions/vsnprintf.texi: Update.
70905         * doc/functions/vsprintf.texi: Update.
70906
70907 2007-05-06  Bruno Haible  <bruno@clisp.org>
70908
70909         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
70910         pass the ' flag character to sprintf or snprintf.
70911         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
70912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
70913         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
70914         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
70915         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
70916         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70917         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
70918         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70919         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70920         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70921         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70922         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70923         * tests/test-snprintf-posix.h (test_function): Also check the grouping
70924         flag.
70925         * tests/test-sprintf-posix.h (test_function): Likewise.
70926         * tests/test-vasnprintf-posix.c (test_function): Likewise.
70927         * tests/test-vasprintf-posix.c (test_function): Likewise.
70928         * doc/functions/fprintf.texi: Update.
70929         * doc/functions/printf.texi: Update.
70930         * doc/functions/snprintf.texi: Update.
70931         * doc/functions/sprintf.texi: Update.
70932         * doc/functions/vfprintf.texi: Update.
70933         * doc/functions/vprintf.texi: Update.
70934         * doc/functions/vsnprintf.texi: Update.
70935         * doc/functions/vsprintf.texi: Update.
70936
70937 2007-05-01  Bruno Haible  <bruno@clisp.org>
70938
70939         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
70940
70941 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
70942
70943         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
70944         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
70945
70946 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
70947
70948         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
70949         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
70950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
70951
70952 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
70953
70954         * lib/argp-help.c (struct hol_entry): New member `ord'.
70955         (HOL_ENTRY_PTRCMP): Use ord for comparison
70956         (hol_sort): Initialize ord.
70957
70958 2007-05-01  Bruno Haible  <bruno@clisp.org>
70959
70960         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
70961         Reported by Eric Blake.
70962         * doc/gnulib.texi (Function Substitutes): Update.
70963
70964 2007-05-01  Bruno Haible  <bruno@clisp.org>
70965
70966         * doc/functions.texi: Remove file, now redundant through
70967         doc/functions/*.texi.
70968
70969 2007-05-01  Bruno Haible  <bruno@clisp.org>
70970
70971         * modules/argp (Depends-on): Add sleep.
70972
70973 2007-05-01  Bruno Haible  <bruno@clisp.org>
70974
70975         * modules/sleep-tests: New file.
70976         * tests/test-sleep.c: New file.
70977
70978         * modules/sleep: New file.
70979         * lib/sleep.c: New file.
70980         * m4/sleep.m4: New file.
70981         * lib/unistd_.h (sleep): New declaration.
70982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
70983         HAVE_SLEEP.
70984         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
70985         * doc/functions/sleep.texi: Document the sleep module.
70986
70987 2007-05-01  Bruno Haible  <bruno@clisp.org>
70988
70989         * lib/sigprocmask.h: Remove file.
70990         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
70991         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
70992         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
70993         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
70994         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
70995         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
70996         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
70997         HAVE_SIGSET_T as a shell variable.
70998         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
70999         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
71000         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
71001         (Depends-on): Add signal. Remove verify.
71002         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
71003         (Include): Mention <signal.h> instead of sigprocmask.h.
71004         * NEWS: Mention the change.
71005         * lib/fatal-signal.c: Don't include sigprocmask.h.
71006
71007 2007-05-01  Bruno Haible  <bruno@clisp.org>
71008
71009         * modules/signal: New file.
71010         * lib/signal_.h: New file.
71011         * m4/signal_h.m4: New file.
71012
71013 2007-05-01  Bruno Haible  <bruno@clisp.org>
71014
71015         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
71016         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
71017         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
71018         HAVE_WCTYPE_CTMP_BUG into wctype.h.
71019
71020 2007-05-01  Bruno Haible  <bruno@clisp.org>
71021
71022         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
71023         configure time.
71024         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
71025         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
71026         * modules/sys_stat (Makefile.am): Substitute their values into
71027         sys/stat.h.
71028
71029 2007-05-01  Bruno Haible  <bruno@clisp.org>
71030
71031         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
71032         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
71033         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
71034
71035 2007-05-01  Bruno Haible  <bruno@clisp.org>
71036
71037         * doc/header/assert.texi: Undo last change: don't mention the gnulib
71038         'assert' module here.
71039
71040 2007-05-01  Bruno Haible  <bruno@clisp.org>
71041
71042         * doc/functions/*.texi: New files.
71043         * doc/functions/google-ranking.txt: New file.
71044         * doc/gnulib.texi (Function Substitutes): New chapter.
71045         (ctime, inet_ntoa): Remove sections.
71046         * doc/ctime.texi: Remove file.
71047         * doc/inet_ntoa.texi: Remove file.
71048         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
71049         dependencies.
71050         (%.info): New rule, specifying a --reference-limit.
71051
71052 2007-05-01  Bruno Haible  <bruno@clisp.org>
71053
71054         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
71055
71056 2007-05-01  Bruno Haible  <bruno@clisp.org>
71057
71058         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
71059         the portability of 'mkdir' to mingw systems.
71060
71061 2007-05-01  Bruno Haible  <bruno@clisp.org>
71062
71063         * doc/headers/google-ranking.txt: New file.
71064
71065 2007-04-30  Eric Blake  <ebb9@byu.net>
71066
71067         Prefer fseeko to fseek.
71068         * modules/getpass (Depends-on): Add fseeko.
71069         * lib/getpass.c (getpass): Use fseeko, not fseek.
71070
71071 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
71072
71073         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
71074         assumes the sorting is stable, while most qsort implementations
71075         are not.  Use argument addresses to ensure they never compare as
71076         equal.
71077
71078         * tests/test-argp-2.sh (usage-indent test): Fix output
71079         (func_compare): Restore diff options
71080         * tests/test-argp.c: Restore #include "progname.h"
71081
71082 2007-04-29  Bruno Haible  <bruno@clisp.org>
71083
71084         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
71085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71086         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
71087         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71088         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
71089         (configure.ac): Define CHECK_SNPRINTF_POSIX.
71090         (TESTS, check_PROGRAMS): Add test-snprintf.
71091         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
71092         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
71093         (TESTS, check_PROGRAMS): Add test-vsnprintf.
71094         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
71095         assertions that fail on HP-UX, OSF/1, or IRIX.
71096         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
71097
71098 2007-04-29  Bruno Haible  <bruno@clisp.org>
71099
71100         * MODULES.html.sh (posix_functions): Remove 'contents'.
71101
71102 2007-04-29  Karl Berry  <karl@gnu.org>
71103
71104         * config/srclist.txt (gendocs_template_min): new entry.
71105
71106 2007-04-29  Bruno Haible  <bruno@clisp.org>
71107
71108         Work around fpurge bug on BSD systems.
71109         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
71110         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
71111         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
71112         fpurge to rpl_fpurge if the system already has this function.
71113         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
71114         the case where the system already has this function. Correct invariants
71115         on BSD systems.
71116         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
71117         BSD systems.
71118
71119 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
71120
71121         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
71122         proposed by Sven Verdoolaege.
71123
71124         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
71125         options.
71126         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
71127         (usage and help tests): Update
71128
71129 2007-04-29  Bruno Haible  <bruno@clisp.org>
71130
71131         * tests/test-fflush.c (main): Use a file of size 17, not 10.
71132         Print more information in case of failure. Disable a test on BeOS.
71133
71134 2007-04-29  Bruno Haible  <bruno@clisp.org>
71135
71136         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
71137         This helps debugging on systems on which no gdb is available.
71138
71139 2007-04-29  Bruno Haible  <bruno@clisp.org>
71140
71141         * lib/freading.h: Improve comments.
71142         * lib/fwriting.h: Likewise.
71143         * tests/test-freading.c (main): Don't check freading immediately after
71144         repositioning. Needed for glibc.
71145
71146 2007-04-29  Bruno Haible  <bruno@clisp.org>
71147
71148         * lib/freading.c (freading): Trivial simplification.
71149
71150 2007-04-28  Bruno Haible  <bruno@clisp.org>
71151
71152         * tests/test-fwriting.c (main): Also test the interaction between
71153         fflush and fwriting.
71154         * modules/fwriting-tests (Depends-on): Add fflush.
71155
71156         * tests/test-freading.c (main): Also test the interaction between
71157         fflush and freading.
71158         * modules/freading-tests (Depends-on): Add fflush.
71159
71160 2007-04-28  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
71163         fseeko and ftello.
71164         Suggested by Eric Blake.
71165
71166 2007-04-28  Jim Meyering  <jim@meyering.net>
71167
71168         Avoid false-negative in gl_STDINT_H's C99 conformance test.
71169         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
71170         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
71171
71172 2007-04-27  Eric Blake  <ebb9@byu.net>
71173
71174         * doc/headers/assert.texi (assert.h): Document assert module use.
71175
71176 2007-04-27  Bruno Haible  <bruno@clisp.org>
71177
71178         * doc/headers/*.texi: New files.
71179         * doc/gnulib.texi (Header File Substitutes): New chapter.
71180         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
71181         dependencies.
71182         (standards.info ,standards.html, standards.dvi): Update dependencies.
71183         (mostlyclean, clean): New targets.
71184
71185 2007-04-27  Bruno Haible  <bruno@clisp.org>
71186
71187         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
71188         * modules/sysexits (Files, Makefile.am): Update.
71189
71190         * lib/sys_socket_.h: Renamed from lib/socket_.h.
71191         * modules/sys_socket (Files, Makefile.am): Update.
71192
71193         * lib/sys_stat_.h: Renamed from lib/stat_.h.
71194         * modules/sys_stat (Files, Makefile.am): Update.
71195
71196 2007-04-27  Eric Blake  <ebb9@byu.net>
71197
71198         * lib/freading.h: Improve comments.
71199         * lib/fwriting.h: Likewise.
71200         * lib/fflush.c: Likewise.
71201
71202         Fix closein for mingw.
71203         * modules/closein-tests: Add tests for closein.
71204         * tests/test-closein.c: New file.
71205         * tests/test-closein.sh: Likewise.
71206         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
71207         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
71208
71209 2007-04-27  Bruno Haible  <bruno@clisp.org>
71210
71211         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
71212         version is < 6.
71213         * lib/math_.h [__DECC]: Likewise.
71214         * lib/stdio_.h [__DECC]: Likewise.
71215         * lib/stdlib_.h [__DECC]: Likewise.
71216         * lib/string_.h [__DECC]: Likewise.
71217         * lib/time_.h [__DECC]: Likewise.
71218         * lib/wchar_.h [__DECC]: Likewise.
71219         * lib/wctype_.h [__DECC]: Likewise.
71220
71221 2007-04-27  Bruno Haible  <bruno@clisp.org>
71222
71223         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
71224
71225 2007-04-27  Bruno Haible  <bruno@clisp.org>
71226
71227         * lib/fflush.c: Add comments.
71228         * modules/fpurge-tests (Depends-on): Add fflush.
71229         * modules/freadable-tests (Depends-on): Likewise.
71230         * modules/fwritable-tests (Depends-on): Likewise.
71231
71232 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
71233
71234         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
71235         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
71236         Report by Bruno Haible <bruno@clisp.org>.
71237
71238 2007-04-26  Eric Blake  <ebb9@byu.net>
71239
71240         Fix fflush on mingw.
71241         * modules/fflush (Depends-on): Add freading.
71242         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
71243         but unread data.
71244
71245 2007-04-26  Eric Blake  <ebb9@byu.net>
71246         and Bruno Haible  <bruno@clisp.org>
71247
71248         Implement freading and fwriting.
71249         * lib/freading.c: New file.
71250         * lib/freading.h: Likewise.
71251         * m4/freading.m4: Likewise.
71252         * modules/freading: Likewise.
71253         * modules/freading-tests: Likewise.
71254         * tests/test-freading.c: Likewise.
71255         * lib/fwriting.c: New file.
71256         * lib/fwriting.h: Likewise.
71257         * m4/fwriting.m4: Likewise.
71258         * modules/fwriting: Likewise.
71259         * modules/fwriting-tests: Likewise.
71260         * tests/test-fwriting.c: Likewise.
71261         * MODULES.html.sh (File stream based Input/Output): Mention them.
71262
71263 2007-04-26  Bruno Haible  <bruno@clisp.org>
71264
71265         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
71266         'long' when we assume it.
71267         Suggested by Eric Blake.
71268
71269 2007-04-26  Bruno Haible  <bruno@clisp.org>
71270
71271         Ensure fseeko, ftello are declared on glibc systems.
71272         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
71273         * modules/fseeko (configure.ac-early): Likewise.
71274         * modules/ftello (configure.ac-early): Likewise.
71275         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
71276         AC_FUNC_FSEEKO for this.
71277         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
71278         (gl_CHECK_FSEEKO): Remove macro.
71279
71280 2007-04-26  Bruno Haible  <bruno@clisp.org>
71281
71282         * tests/test-fflush.c (main): Also check the ftell result after
71283         fflush and fseek/fseeko.
71284         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
71285         file descriptor position cache in the stream.
71286         * lib/fseeko.c (rpl_fseeko): Likewise.
71287
71288 2007-04-26  Bruno Haible  <bruno@clisp.org>
71289
71290         * modules/fflush-tests (Depends-on): Add fseeko.
71291
71292 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
71293             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71294
71295         * lib/argz_.h: ensure error_t definition is obtained in same
71296         mechanism system argz.h would have.
71297         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
71298         argz facilities are known bad.  Err on the side of caution if
71299         cross-compiling.
71300
71301 2007-04-25  Eric Blake  <ebb9@byu.net>
71302
71303         * lib/fpurge.c (includes): Use stdlib.h for free.
71304         * tests/test-fflush.c (main): Also test fflush-fseeko.
71305
71306 2007-04-25  Bruno Haible  <bruno@clisp.org>
71307
71308         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
71309         * lib/fseeko.c: New file.
71310         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
71311         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
71312         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
71313         gl_FUNC_FSEEKO.
71314         (gl_FUNC_FSEEKO): Invoke it.
71315         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
71316         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
71317         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
71318
71319 2007-04-25  Bruno Haible  <bruno@clisp.org>
71320
71321         * modules/fflush (Depends-on): Add ftello.
71322
71323 2007-04-25  Bruno Haible  <bruno@clisp.org>
71324
71325         * modules/ftello-tests: New file.
71326         * tests/test-ftello.c: New file.
71327
71328         * modules/ftello: New file.
71329         * m4/ftello.m4: New file.
71330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
71331         HAVE_FTELLO.
71332         * lib/stdio_.h (ftello): New declaration.
71333         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
71334         HAVE_FTELLO.
71335
71336 2007-04-25  Bruno Haible  <bruno@clisp.org>
71337
71338         * modules/fseeko-tests: New file.
71339         * tests/test-fseeko.c: New file.
71340
71341         * modules/fseeko: New file.
71342         * m4/fseeko.m4: New file.
71343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
71344         HAVE_FSEEKO.
71345         * lib/stdio_.h (fseeko): New declaration.
71346         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
71347         HAVE_FSEEKO.
71348
71349 2007-04-25  Bruno Haible  <bruno@clisp.org>
71350
71351         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
71352
71353 2007-04-25  Bruno Haible  <bruno@clisp.org>
71354
71355         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
71356         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
71357         * tests/test-unistd.c: Likewise.
71358         * tests/test-fcntl.c: Likewise.
71359
71360 2007-04-23  Eric Blake  <ebb9@byu.net>
71361
71362         * lib/fflush.c: Fix missing include.
71363         Reported by Bruno Haible.
71364
71365 2007-04-23  Bruno Haible  <bruno@clisp.org>
71366
71367         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
71368         Reported by Eric Blake.
71369
71370 2007-04-23  Bruno Haible  <bruno@clisp.org>
71371
71372         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
71373
71374 2007-04-23  Bruno Haible  <bruno@clisp.org>
71375
71376         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
71377
71378 2007-04-23  Bruno Haible  <bruno@clisp.org>
71379
71380         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
71381         Needed on HP-UX 11.
71382
71383 2007-04-16  Eric Blake  <ebb9@byu.net>
71384
71385         Make fflush rely on fpurge.
71386         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
71387         open coding all variants.
71388         * modules/fflush (Depends-on): Add fpurge and unistd.
71389         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
71390         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
71391
71392         Fix --with-tests compilation on cygwin.
71393         * modules/argmatch-tests (Makefile.am): List gnulib library first
71394         in LDADD.
71395         * modules/argp-tests (Makefile.am): Likewise.
71396         * modules/array-list-tests (Makefile.am): Likewise.
71397         * modules/array-oset-tests (Makefile.am): Likewise.
71398         * modules/avltree-list-tests (Makefile.am): Likewise.
71399         * modules/avltree-oset-tests (Makefile.am): Likewise.
71400         * modules/avltreehash-list-tests (Makefile.am): Likewise.
71401         * modules/carray-list-tests (Makefile.am): Likewise.
71402         * modules/dirname-tests (Makefile.am): Likewise.
71403         * modules/frexp-tests (Makefile.am): Likewise.
71404         * modules/isnanl-tests (Makefile.am): Likewise.
71405         * modules/linked-list-tests (Makefile.am): Likewise.
71406         * modules/linkedhash-list-tests (Makefile.am): Likewise.
71407         * modules/lock-tests (Makefile.am): Likewise.
71408         * modules/rbtree-list-tests (Makefile.am): Likewise.
71409         * modules/rbtree-oset-tests (Makefile.am): Likewise.
71410         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
71411         * modules/tls-tests (Makefile.am): Likewise.
71412         * modules/tsearch-tests (Makefile.am): Likewise.
71413         * modules/xvasprintf-tests (Makefile.am): Likewise.
71414
71415         Fix fpurge for cygwin.
71416         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
71417         value.
71418         * modules/fpurge-tests (Depends-on): Clean up trash.
71419
71420 2007-04-16  Simon Josefsson  <simon@josefsson.org>
71421
71422         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
71423
71424         * m4/autobuild.m4: Re-indent.
71425
71426 2007-04-13  Bruno Haible  <bruno@clisp.org>
71427
71428         * modules/fpurge-tests: New file.
71429         * tests/test-fpurge.c: New file.
71430
71431         * modules/fpurge: New file.
71432         * lib/fpurge.h: New file.
71433         * lib/fpurge.c: New file.
71434         * m4/fpurge.m4: New file.
71435
71436 2007-04-13  Bruno Haible  <bruno@clisp.org>
71437
71438         * modules/fbufmode-tests: New file.
71439         * tests/test-fbufmode.c: New file.
71440
71441         * modules/fbufmode: New file.
71442         * lib/fbufmode.h: New file.
71443         * lib/fbufmode.c: New file.
71444         * m4/fbufmode.m4: New file.
71445
71446 2007-04-13  Bruno Haible  <bruno@clisp.org>
71447
71448         * modules/fwritable-tests: New file.
71449         * tests/test-fwritable.c: New file.
71450
71451         * modules/fwritable: New file.
71452         * lib/fwritable.h: New file.
71453         * lib/fwritable.c: New file.
71454         * m4/fwritable.m4: New file.
71455
71456 2007-04-13  Bruno Haible  <bruno@clisp.org>
71457
71458         * modules/freadable-tests: New file.
71459         * tests/test-freadable.c: New file.
71460
71461         * modules/freadable: New file.
71462         * lib/freadable.h: New file.
71463         * lib/freadable.c: New file.
71464         * m4/freadable.m4: New file.
71465
71466 2007-04-13  Bruno Haible  <bruno@clisp.org>
71467
71468         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
71469         MOSTLYCLEANFILES.
71470
71471 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
71474         gzip bootstrap.conf to avoid dragging in i18n machinery.
71475         (gnulib_tool_option): Use it.
71476
71477 2007-04-13  Bruno Haible  <bruno@clisp.org>
71478
71479         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
71480         %F directives.
71481         * tests/test-vasprintf-posix.c (test_function): Likewise.
71482         * tests/test-snprintf-posix.h (test_function): Likewise.
71483         * tests/test-sprintf-posix.h (test_function): Likewise.
71484         * tests/test-fprintf-posix.h (test_function): Likewise.
71485         * tests/test-printf-posix.h (test_function): Likewise.
71486         * tests/test-fprintf-posix.out: Likewise.
71487
71488 2007-04-13  Bruno Haible  <bruno@clisp.org>
71489
71490         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
71491         * modules/tls-tests (configure.ac): Likewise.
71492         Reported by Arto C. Nirkko <anirkko@insel.ch>.
71493
71494 2007-04-13  Bruno Haible  <bruno@clisp.org>
71495
71496         * lib/tls.c (glthread_tls_get): Fix return type.
71497         Patch by Arto C. Nirkko <anirkko@insel.ch>.
71498
71499 2007-04-12  Eric Blake  <ebb9@byu.net>
71500
71501         * modules/gettime (Depends-on): Remove gettime.
71502         Reported by Dmitry V. Levin.
71503
71504 2007-04-12  Bruno Haible  <bruno@clisp.org>
71505
71506         * modules/fflush (Include): Mention <stdio.h>.
71507         * modules/strtoimax (Include): Mention <inttypes.h>.
71508         * modules/strtoumax (Include): Likewise.
71509
71510 2007-04-12  Eric Blake  <ebb9@byu.net>
71511
71512         * .cvsignore: New file.
71513         * .gitignore: Likewise.
71514
71515 2007-04-12  Bruno Haible  <bruno@clisp.org>
71516
71517         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
71518         not before, since $(LDADD) often contains libgnu.a.
71519         * modules/striconv-tests (test_striconv_LDADD): Likewise.
71520         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
71521         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
71522         Needed on Cygwin.
71523
71524 2007-04-12  Eric Blake  <ebb9@byu.net>
71525
71526         Work around glibc's failure to flush stdin on fclose.
71527         * lib/closein.c (close_stdin): Flush stdin before closing.
71528
71529         Work around glibc's failure to reset seekable stdin on exit.
71530         * modules/closein: New module.
71531         * lib/closein.c: New file.
71532         * lib/closein.h: Likewise.
71533         * m4/closein.m4: Likewise.
71534         * MODULES.html.sh (File stream based Input/Output): Document it.
71535
71536 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71537
71538         * gnulib-tool: Rename generated 'autobuild' script to
71539         'do-autobuild' in --create-megatestdir output.
71540
71541         * doc/gnulib.texi (Build robot for gnulib): Fix.
71542
71543 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71544
71545         * modules/sysexits (Depends-on): Add absolute-header.
71546
71547 2007-04-12  Eric Blake  <ebb9@byu.net>
71548
71549         No need to preserve errno on success.
71550         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
71551         Reported by Bruno Haible.
71552
71553 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71554
71555         * MODULES.html.sh (Support for maintaining and releasing
71556         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
71557
71558 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71559
71560         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
71561
71562 2007-04-12  Simon Josefsson  <simon@josefsson.org>
71563
71564         * modules/autobuild: New module.
71565
71566         * m4/autobuild.m4: New file.
71567
71568 2007-04-11  Bruno Haible  <bruno@clisp.org>
71569
71570         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
71571         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
71572         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
71573         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
71574         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
71575         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71576         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71577         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
71578         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71579         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71580         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
71581         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71582         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71583         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
71584         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71585         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71586         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
71587         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71588         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71589         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
71590         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71591         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71592         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
71593         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71594         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71595         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
71596         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
71597         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
71598         Reported by Eric Blake.
71599
71600 2007-04-11  Bruno Haible  <bruno@clisp.org>
71601
71602         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
71603
71604 2007-04-10  Bruno Haible  <bruno@clisp.org>
71605
71606         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
71607         for NaN and Infinity. Needed on FreeBSD 6.1.
71608         * tests/test-vasnprintf-posix.c (test_function): Undo last change
71609         regarding results for "%010a" of Infinity and NaN.
71610         * tests/test-vasprintf-posix.c (test_function): Likewise.
71611         * tests/test-snprintf-posix.h (test_function): Likewise.
71612         * tests/test-sprintf-posix.h (test_function): Likewise.
71613         * tests/test-fprintf-posix.h (test_function): Likewise.
71614         * tests/test-printf-posix.h (test_function): Likewise.
71615         * tests/test-fprintf-posix.out: Likewise.
71616
71617 2007-04-10  Bruno Haible  <bruno@clisp.org>
71618
71619         * modules/locale-tests: New file.
71620         * tests/test-locale.c: New file.
71621
71622         * modules/locale: New file.
71623         * lib/locale_.h: New file.
71624         * m4/locale_h.m4: New file.
71625
71626 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
71627             Bruno Haible  <bruno@clisp.org>
71628
71629         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
71630         be determined, test for availability of the copysignf, copysign,
71631         copysignl functions.
71632         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
71633         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
71634         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
71635
71636 2007-04-09  Eric Blake  <ebb9@byu.net>
71637
71638         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
71639         * modules/stdio (Makefile.am): Support fflush.
71640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
71641         * modules/fflush: New file.
71642         * lib/fflush.c: Likewise.
71643         * m4/fflush.m4: Likewise.
71644         * modules/fflush-tests: New test.
71645         * tests/test-fflush.c: Likewise.
71646         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
71647
71648 2007-04-06  Bruno Haible  <bruno@clisp.org>
71649
71650         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
71651         (VASNPRINTF): Use signbit for faster determination whether to print a
71652         minus sign.
71653         * modules/vasnprintf (Files): Remove lib/float+.h.
71654         * modules/fprintf-posix (Depends-on): Add signbit.
71655         * modules/snprintf-posix (Depends-on): Likewise.
71656         * modules/sprintf-posix (Depends-on): Likewise.
71657         * modules/vasnprintf-posix (Depends-on): Likewise.
71658         * modules/vasprintf-posix (Depends-on): Likewise.
71659         * modules/vfprintf-posix (Depends-on): Likewise.
71660         * modules/vsnprintf-posix (Depends-on): Likewise.
71661         * modules/vsprintf-posix (Depends-on): Likewise.
71662
71663 2007-04-06  Bruno Haible  <bruno@clisp.org>
71664
71665         * tests/test-frexp.c (main): Test also the sign bit of zero results.
71666         * tests/test-frexpl.c (main): Likewise.
71667         * tests/test-ldexpl.c (main): Likewise.
71668         * modules/frexp-tests (Depends-on): Add signbit.
71669         * modules/frexpl-tests (Depdends-on): Likewise.
71670         * modules/ldexpl-tests (Depdends-on): Likewise.
71671
71672 2007-04-06  Bruno Haible  <bruno@clisp.org>
71673
71674         * modules/signbit-tests: New file.
71675         * tests/test-signbit.c: New file.
71676
71677         * modules/signbit: New file.
71678         * lib/signbitf.c: New file.
71679         * lib/signbitd.c: New file.
71680         * lib/signbitl.c: New file.
71681         * m4/signbit.m4: New file.
71682         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
71683         (signbit): New macro.
71684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
71685         REPLACE_SIGNBIT.
71686         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
71687         REPLACE_FREXPL into math.h.
71688
71689 2007-04-06  Bruno Haible  <bruno@clisp.org>
71690
71691         * modules/isnanf-nolibm-tests: New file.
71692         * tests/test-isnanf.c: New file.
71693
71694         * modules/isnanf-nolibm: New file.
71695         * lib/isnanf.h: New file.
71696         * lib/isnanf.c: New file.
71697         * lib/isnan.c: Consider the USE_FLOAT macro.
71698         * m4/isnanf.m4: New file.
71699
71700 2007-04-06  Bruno Haible  <bruno@clisp.org>
71701
71702         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
71703         (Link): New section.
71704
71705         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
71706
71707 2007-04-06  Bruno Haible  <bruno@clisp.org>
71708
71709         Assume the 'long double' type.
71710         * m4/longdouble.m4: Remove file.
71711         * config/srclist.txt: Don't mention longdouble.m4.
71712         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
71713         * lib/float+.h: Likewise.
71714         * lib/frexp.c: Likewise.
71715         * lib/printf-args.h: Likewise.
71716         * lib/printf-args.c: Likewise.
71717         * lib/printf-frexp.c: Likewise.
71718         * lib/printf-parse.c: Likewise.
71719         * lib/vasnprintf.c: Likewise.
71720         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
71721         * m4/intl.m4: Likewise.
71722         * m4/isnanl.m4: Likewise.
71723         * m4/printf.m4: Likewise.
71724         * m4/printf-frexpl.m4: Likewise.
71725         * m4/vasnprintf.m4: Likewise.
71726         * modules/allocsa (Files): Remove m4/longdouble.m4.
71727         * modules/gettext (Files): Likewise.
71728         * modules/relocatable-prog-wrapper (Files): Likewise.
71729         * modules/vasnprintf (Files): Likewise.
71730         * modules/isnanl (Files): Likewise.
71731         (Include): Simplify.
71732         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
71733         (Include): Simplify.
71734         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
71735         (Include): Simplify.
71736         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
71737         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71738         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
71739         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71740         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71741         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71742         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
71743         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71744         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
71745         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71746         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
71747         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
71748         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
71749         * tests/test-isnanl.c: Likewise.
71750         * tests/test-snprintf-posix.h: Likewise.
71751         * tests/test-sprintf-posix.h: Likewise.
71752         * tests/test-vasnprintf-posix.c: Likewise.
71753         * tests/test-vasnprintf-posix2.c: Likewise.
71754         * tests/test-vasprintf-posix.c: Likewise.
71755
71756 2007-04-06  Bruno Haible  <bruno@clisp.org>
71757
71758         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
71759         * lib/math_.h [__DECC]: Include the overridden include file through
71760         #include_next, outside the double-inclusion guard.
71761         * lib/stdio_.h [__DECC]: Likewise.
71762         * lib/stdlib_.h [__DECC]: Likewise.
71763         * lib/string_.h [__DECC]: Likewise.
71764         * lib/time_.h [__DECC]: Likewise.
71765         * lib/wchar_.h [__DECC]: Likewise.
71766         * lib/wctype_.h [__DECC]: Likewise.
71767         * lib/inttypes_.h [__DECC]: Likewise.
71768         Reported by Albert Chin <china@thewrittenword.com> in
71769         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
71770
71771 2007-04-04  Eric Blake  <ebb9@byu.net>
71772
71773         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
71774         1.5.x.
71775
71776 2007-04-04  Bruno Haible  <bruno@clisp.org>
71777
71778         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
71779         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
71780
71781 2007-04-04  Bruno Haible  <bruno@clisp.org>
71782
71783         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
71784         results for "%010a" of Infinity and NaN.
71785         * tests/test-vasprintf-posix.c (test_function): Likewise.
71786         * tests/test-snprintf-posix.h (test_function): Likewise.
71787         * tests/test-sprintf-posix.h (test_function): Likewise.
71788         * tests/test-fprintf-posix.h (test_function): Remove these tests.
71789         * tests/test-printf-posix.h (test_function): Likewise.
71790         * tests/test-fprintf-posix.out: Update.
71791         Needed for FreeBSD 6.1.
71792
71793 2007-04-04  Bruno Haible  <bruno@clisp.org>
71794
71795         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
71796         directly used by the gnulib modules nor by gnulib-tool.
71797
71798 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
71799
71800         * DEPENDENCIES: Give overall description of version dependency
71801         desirability.  Use more-typical names for apps.
71802         Add shell, coreutils, diffutils, grep, tar, gzip.
71803
71804 2007-04-04  Simon Josefsson  <simon@josefsson.org>
71805
71806         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
71807
71808 2007-04-04  Karl Berry  <karl@gnu.org>
71809
71810         * MODULES.html.sh (func_module): missing '.
71811
71812 2007-04-03  Bruno Haible  <bruno@clisp.org>
71813
71814         * modules/argmatch-tests (Makefile.am): New variable
71815         test_argmatch_LDADD.
71816         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
71817         * modules/array-list-tests (Makefile.am): New variable
71818         test_array_list_LDADD.
71819         * modules/array-oset-tests (Makefile.am): New variable
71820         test_array_oset_LDADD.
71821         * modules/avltree-list-tests (Makefile.am): New variable
71822         test_avltree_list_LDADD.
71823         * modules/avltree-oset-tests (Makefile.am): New variable
71824         test_avltree_oset_LDADD.
71825         * modules/avltreehash-list-tests (Makefile.am): New variable
71826         test_avltreehash_list_LDADD.
71827         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
71828         test_canonicalize_lgpl_LDADD.
71829         * modules/carray-list-tests (Makefile.am): New variable
71830         test_carray_list_LDADD.
71831         * modules/dirname-tests (Makefile.am): New variable
71832         test_dirname_LDADD.
71833         * modules/linked-list-tests (Makefile.am): New variable
71834         test_linked_list_LDADD.
71835         * modules/linkedhash-list-tests (Makefile.am): New variable
71836         test_linkedhash_list_LDADD.
71837         * modules/rbtree-list-tests (Makefile.am): New variable
71838         test_rbtree_list_LDADD.
71839         * modules/rbtree-oset-tests (Makefile.am): New variable
71840         test_rbtree_oset_LDADD.
71841         * modules/rbtreehash-list-tests (Makefile.am): New variable
71842         test_rbtreehash_list_LDADD.
71843         * modules/xvasprintf-tests (Makefile.am): New variable
71844         test_xvasprintf_LDADD.
71845         Reported by Eric Blake.
71846
71847 2007-04-03  Eric Blake  <ebb9@byu.net>
71848
71849         * DEPENDENCIES: Weaken m4 requirements.
71850
71851 2007-04-03  Bruno Haible  <bruno@clisp.org>
71852
71853         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
71854         * modules/isnanl-tests (configure.ac): Likewise.
71855
71856 2007-04-03  Ben Pfaff  <blp@gnu.org>
71857
71858         * modules/iconv_open: Add $(srcdir)/ to source directory
71859         references in Makefile fragments that call gperf, to fix VPATH
71860         builds.
71861
71862 2007-04-03  Bruno Haible  <bruno@clisp.org>
71863
71864         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
71865         * lib/ldexpl.c: Undo last change.
71866
71867 2007-04-03  Bruno Haible  <bruno@clisp.org>
71868
71869         * modules/printf-frexpl (Depends-on): Undo last change.
71870         (Files): Add m4/ldexpl.m4.
71871
71872 2007-04-03  Bruno Haible  <bruno@clisp.org>
71873
71874         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
71875         * modules/isnanl (Link): New section.
71876
71877         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
71878         * modules/frexp (Link): New section.
71879
71880         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
71881         * modules/frexpl (Link): New section.
71882
71883         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
71884         * modules/ldexpl (Link): New section.
71885
71886 2007-04-03  Bruno Haible  <bruno@clisp.org>
71887
71888         * modules/TEMPLATE-EXTENDED: New file.
71889         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
71890
71891 2007-04-03  Bruno Haible  <bruno@clisp.org>
71892
71893         * DEPENDENCIES: New file.
71894         Suggested by Simon Josefsson.
71895
71896 2007-04-03  Bruno Haible  <bruno@clisp.org>
71897
71898         * doc/gnulib.texi: Escape @.
71899
71900 2007-04-03  James Youngman  <jay@gnu.org>
71901         and Paul Eggert  <eggert@cs.ucla.edu>
71902
71903         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
71904         birthtime on all systems that have birthtime, not just those which
71905         use st_birthtimensec rather than st_birthtim.  Putting zero in
71906         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
71907         that the birth time is not available for files on an NFS mount.
71908
71909 2007-04-03  Simon Josefsson  <simon@josefsson.org>
71910
71911         * modules/memxor: Move back from crypto/, suggested by Bruno.
71912         * modules/crypto/hmac-sha1: Fix memxor dependency.
71913
71914         * modules/crypto/gc: Moved from ../.
71915
71916 2007-04-02  Eric Blake  <ebb9@byu.net>
71917
71918         * lib/ldexpl.c (includes): Avoid libm.
71919
71920         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
71921
71922 2007-04-02  Bruno Haible  <bruno@clisp.org>
71923
71924         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
71925         on IRIX.
71926
71927 2007-04-02  Bruno Haible  <bruno@clisp.org>
71928
71929         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
71930         x86 or x86_64 platforms running MacOS X.
71931         Reported by Ryan Schmidt <@ryandesign.com>.
71932
71933 2007-04-02  Bruno Haible  <bruno@clisp.org>
71934
71935         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
71936         i386.
71937
71938 2007-04-01  Simon Josefsson  <simon@josefsson.org>
71939
71940         * modules/crypto/arcfour: Moved from ../.
71941         * modules/crypto/arcfour-tests: Moved from ../.
71942         * modules/crypto/arctwo: Moved from ../.
71943         * modules/crypto/arctwo-tests: Moved from ../.
71944         * modules/crypto/des: Moved from ../.
71945         * modules/crypto/des-tests: Moved from ../.
71946         * modules/crypto/gc-arcfour: Moved from ../.
71947         * modules/crypto/gc-arcfour-tests: Moved from ../.
71948         * modules/crypto/gc-arctwo: Moved from ../.
71949         * modules/crypto/gc-arctwo-tests: Moved from ../.
71950         * modules/crypto/gc-des: Moved from ../.
71951         * modules/crypto/gc-des-tests: Moved from ../.
71952         * modules/crypto/gc-hmac-md5: Moved from ../.
71953         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
71954         * modules/crypto/gc-hmac-sha1: Moved from ../.
71955         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
71956         * modules/crypto/gc-md2: Moved from ../.
71957         * modules/crypto/gc-md2-tests: Moved from ../.
71958         * modules/crypto/gc-md4: Moved from ../.
71959         * modules/crypto/gc-md4-tests: Moved from ../.
71960         * modules/crypto/gc-md5: Moved from ../.
71961         * modules/crypto/gc-md5-tests: Moved from ../.
71962         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
71963         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
71964         * modules/crypto/gc-random: Moved from ../.
71965         * modules/crypto/gc-rijndael: Moved from ../.
71966         * modules/crypto/gc-rijndael-tests: Moved from ../.
71967         * modules/crypto/gc-sha1: Moved from ../.
71968         * modules/crypto/gc-sha1-tests: Moved from ../.
71969         * modules/crypto/gc-tests: Moved from ../.
71970         * modules/crypto/hmac-md5: Moved from ../.
71971         * modules/crypto/hmac-md5-tests: Moved from ../.
71972         * modules/crypto/hmac-sha1: Moved from ../.
71973         * modules/crypto/hmac-sha1-tests: Moved from ../.
71974         * modules/crypto/md2: Moved from ../.
71975         * modules/crypto/md2-tests: Moved from ../.
71976         * modules/crypto/md4: Moved from ../.
71977         * modules/crypto/md4-tests: Moved from ../.
71978         * modules/crypto/md5: Moved from ../.
71979         * modules/crypto/md5-tests: Moved from ../.
71980         * modules/crypto/memxor: Moved from ../.
71981         * modules/crypto/rijndael: Moved from ../.
71982         * modules/crypto/rijndael-tests: Moved from ../.
71983         * modules/crypto/sha1: Moved from ../.
71984
71985 2007-03-30  James Youngman  <jay@gnu.org>
71986
71987         * tests/test-stat-time.c (prepare_test): use chmod() rather than
71988         rename() to change the ctime of a file (because ctime is unaffected
71989         by rename on jfs2 on AIX 5.1).
71990         (main): Start by doing cleanup, in case a previous run failed leaving
71991         test files behind.
71992
71993 2007-03-31  Bruno Haible  <bruno@clisp.org>
71994
71995         Support old proprietary implementations of iconv.
71996         * modules/iconv_open: New file.
71997         * lib/iconv_.h: New file.
71998         * m4/iconv_h.m4: New file.
71999         * lib/iconv_open.c: New file.
72000         * lib/iconv_open-aix.gperf: New file.
72001         * lib/iconv_open-hpux.gperf: New file.
72002         * lib/iconv_open-irix.gperf: New file.
72003         * lib/iconv_open-osf.gperf: New file.
72004         * m4/iconv_open.m4: New file.
72005         * modules/linebreak (Depends-on): Add iconv_open.
72006         * modules/striconv (Depends-on): Likewise.
72007         * modules/striconveh (Depends-on): Likewise.
72008         * modules/unicodeio (Depends-on): Likewise.
72009         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
72010         (iconv_t)(-1).
72011         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
72012         conversion if cd is (iconv_t)(-1).
72013         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
72014         is not possible.
72015
72016 2007-03-31  Bruno Haible  <bruno@clisp.org>
72017
72018         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
72019         work on Solaris either. Protect also second use of "autodetect_jp".
72020
72021 2007-03-31  Bruno Haible  <bruno@clisp.org>
72022
72023         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
72024         the function is not present.
72025
72026 2007-03-31  Bruno Haible  <bruno@clisp.org>
72027
72028         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
72029         the function is not present.
72030
72031 2007-03-31  Bruno Haible  <bruno@clisp.org>
72032
72033         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
72034         a bug in HP-UX iconv_open().
72035
72036 2007-03-31  Bruno Haible  <bruno@clisp.org>
72037
72038         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
72039         (Mathematics <math.h>): New section, add fpieee.
72040         (Input/output <stdio.h>): Add fseterr.
72041         (Mathematics <math.h>): New section, add printf-frexp.
72042         (Container data structures): Add sublist.
72043         (Core language properties): Add fpucw, inline.
72044         (Functions for greatest-width integer types <inttypes.h>): Add
72045         imaxabs, imaxdiv, inttypes.
72046         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
72047         isnanl-nolibm, ldexp.
72048         (Mathematics <math.h>): New section, add printf-frexpl.
72049         (Support for systems lacking POSIX:2001): Add fprintf-posix,
72050         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
72051         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
72052         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
72053         (Unicode string functions): Add unistr/u*-mbtoucr.
72054         (Java): Add javacomp-script, javaexec-script.
72055         (C#): Add csharpcomp-script, csharpexec-script.
72056         (Support for building libraries and executables): Add havelib,
72057         relocatable-*.
72058         (Support for maintaining and releasing projects): Renamed from
72059         'Support for maintaining and release projects'. Add announce-gen.
72060
72061 2007-03-31  Bruno Haible  <bruno@clisp.org>
72062
72063         * README: Talk primarily about git.
72064         (git and CVS): Renamed from CVS.
72065         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
72066         gnulib is available through git.
72067         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
72068
72069 2007-03-30  Bruno Haible  <bruno@clisp.org>
72070
72071         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
72072         * lib/poll_.h: Likewise.
72073         * lib/stat_.h: Likewise.
72074         * lib/sys_time_.h: Likewise.
72075         * lib/sysexit_.h: Likewise.
72076         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
72077         * lib/stdbool_.h: Likewise.
72078         * lib/byteswap_.h: Add double-inclusion guard.
72079
72080 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
72081
72082         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
72083
72084 2007-03-30  Karl Berry  <karl@gnu.org>
72085
72086         * config/srclist-update: double space after USA in the license
72087         substitution, since that's how it's usually (?) written.
72088
72089 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
72090
72091         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
72092         reported by Bruno Haible.
72093
72094 2007-03-29  Bruno Haible  <bruno@clisp.org>
72095
72096         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
72097         a bug in AIX iconv().
72098
72099 2007-03-29  Bruno Haible  <bruno@clisp.org>
72100
72101         * modules/ldexpl-tests: New file.
72102         * tests/test-ldexpl.c: New file.
72103
72104 2007-03-29  Bruno Haible  <bruno@clisp.org>
72105
72106         * lib/ldexpl.c: Include fpucw.h.
72107         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
72108         multiplication.
72109         * modules/ldexpl (Depends-on): Add fpucw.
72110
72111 2007-03-29  Bruno Haible  <bruno@clisp.org>
72112
72113         * modules/ldexpl: New file.
72114         * m4/ldexpl.m4: New file.
72115         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
72116         set.
72117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
72118         REPLACE_LDEXPL.
72119         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
72120         REPLACE_LDEXPL.
72121         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
72122         gl_FUNC_LDEXPL_WORKS.
72123         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
72124         * modules/mathl (Files): Remove lib/ldexpl.c.
72125         (Depends-on): Add ldexpl.
72126
72127 2007-03-29  Bruno Haible  <bruno@clisp.org>
72128
72129         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
72130
72131 2007-03-29  Bruno Haible  <bruno@clisp.org>
72132
72133         * tests/test-striconveh.c (main): Don't assume that a direct conversion
72134         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
72135         and possibly also HP-UX.
72136         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
72137         work on AIX, IRIX, HP-UX, OSF/1.
72138         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
72139         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
72140         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
72141         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
72142         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
72143         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
72144
72145 2007-03-29  Bruno Haible  <bruno@clisp.org>
72146
72147         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
72148
72149 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72150
72151         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
72152         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
72153
72154 2007-03-29  Eric Blake  <ebb9@byu.net>
72155
72156         * lib/acl-internal.h: Remove redundant include.
72157         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
72158         Cygwin when a file is locked.
72159
72160 2007-03-29  Bruno Haible  <bruno@clisp.org>
72161
72162         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
72163         file.
72164         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
72165
72166 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
72167
72168         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
72169         try to remove a parent directory if the child couldn't be removed
72170         (except for the first rmdir, which could fail because the child
72171         doesn't exist).  Problem reported by Jeff Blaine in
72172         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
72173
72174 2007-03-28  Bruno Haible  <bruno@clisp.org>
72175
72176         * lib/striconveh.c (utf8conv_carefully): New function.
72177         (mem_cd_iconveh_internal): Invoke it.
72178
72179 2007-03-28  Bruno Haible  <bruno@clisp.org>
72180
72181         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
72182         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
72183         input.
72184         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
72185         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
72186         unistr/u8-uctomb.
72187
72188 2007-03-28  Bruno Haible  <bruno@clisp.org>
72189
72190         * modules/unistr/u8-mbtoucr: New file.
72191         * lib/unistr/u8-mbtoucr.c: New file.
72192         * modules/unistr/u16-mbtoucr: New file.
72193         * lib/unistr/u16-mbtoucr.c: New file.
72194         * modules/unistr/u16-mbtoucr: New file.
72195         * lib/unistr/u16-mbtoucr.c: New file.
72196         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
72197
72198 2007-03-27  Simon Josefsson  <simon@josefsson.org>
72199             Bruno Haible  <bruno@clisp.org>
72200
72201         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
72202         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
72203         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
72204
72205         * m4/stdio_h.m4: Add stubs for vasprintf too.
72206
72207         * modules/stdio: Support vasprintf in sed command.
72208
72209         * modules/vasprintf: Depend on stdio for prototypes.  Remove
72210         vasprintf.h.  Add stdio module indicator.
72211
72212         * lib/stdio_.h: Declare asprintf and vasprintf, based on
72213         vasprintf.h.
72214
72215         * lib/vasprintf.h: File removed.
72216
72217         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
72218         * lib/vasprintf.c: Ditto.
72219         * lib/xvasprintf.c: Ditto.
72220         * tests/test-vasprintf-posix.c: Ditto.
72221         * tests/test-vasprintf.c: Ditto.
72222
72223 2007-03-27  Bruno Haible  <bruno@clisp.org>
72224
72225         Make vasnprintf multithread-safe.
72226         * lib/vasnprintf.c (decimal_point_char): New function.
72227         (VASNPRINTF): Use it.
72228         Suggested by Simon Josefsson.
72229
72230 2007-03-27  Eric Blake  <ebb9@byu.net>
72231
72232         Support sub-second birthtime on cygwin.
72233         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
72234         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
72235         (get_stat_birthtime): Also work with st_birthtim.
72236
72237 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
72238
72239         * lib/stat-time.h (USE_BIRTHTIME): Remove.
72240         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
72241         (get_stat_birthtime_ns): Do not try to use "spare" fields.
72242         (get_stat_birthtime_ns): Simplify compile-time tests.
72243         (get_stat_birthtime): Change the API to look like
72244         get_stat_mtime etc., except return a negative tv_nsec on error.
72245         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
72246         Don't check for "spare" fields.
72247         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
72248         or for struct stat.st_birthtime, as these tests aren't used.
72249         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
72250
72251 2007-03-27  Bruno Haible  <bruno@clisp.org>
72252
72253         * lib/stat-time.h: Include <sys/stat.h>.
72254
72255 2007-03-27  James Youngman  <jay@gnu.org>
72256
72257         * lib/stat-time.h (get_stat_birthtime): New function for
72258           retrieving st_birthtime as provided by UFS2 (hence *BSD).
72259         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
72260           and its variants.
72261         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
72262         * modules/stat-time-test: New file.
72263         * tests/test-stat-time.c: New test, devised by Bruno Haible.
72264
72265 2007-03-26  Bruno Haible  <bruno@clisp.org>
72266
72267         Better support of signalling NaNs.
72268         * lib/atanl.c: Include isnanl.h.
72269         (atanl): Perform test for NaN at the beginning of the function and
72270         through a call to isnanl.
72271         * lib/cosl.c: Include isnanl.h.
72272         (cosl): Perform test for NaN at the beginning of the function and
72273         through a call to isnanl.
72274         * lib/ldexpl.c: Include isnanl.h.
72275         (ldexpl): Perform test for NaN through a call to isnanl.
72276         * lib/logl.c: Include isnanl.h.
72277         (logl): Perform test for NaN at the beginning of the function and
72278         through a call to isnanl.
72279         * lib/sinl.c: Include isnanl.h.
72280         (sinl): Perform test for NaN at the beginning of the function and
72281         through a call to isnanl.
72282         * lib/sqrtl.c: Include isnanl.h.
72283         (sqrtl): Perform test for NaN at the beginning of the function and
72284         through a call to isnanl.
72285         * lib/tanl.c: Include isnanl.h.
72286         (tanl): Perform test for NaN at the beginning of the function and
72287         through a call to isnanl.
72288         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
72289         * modules/mathl (Depends-on): Add isnanl.
72290
72291 2007-03-26  Eric Blake  <ebb9@byu.net>
72292
72293         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
72294         regression in logic sense of previous patch.
72295
72296 2007-03-26  Bruno Haible  <bruno@clisp.org>
72297
72298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
72299         unportable shell command "if ! ...".
72300         Reported by Ralf Wildenhues.
72301
72302 2007-03-25  Bruno Haible  <bruno@clisp.org>
72303
72304         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
72305         <sysexits.h> file, and only add EX_CONFIG.
72306         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
72307         absolute file name and whether it is sufficient. Substitute also
72308         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
72309         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
72310         ABSOLUTE_SYSEXITS_H into sysexits.h.
72311
72312 2007-03-25  Bruno Haible  <bruno@clisp.org>
72313
72314         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
72315         hints is NULL.
72316
72317 2007-03-25  Bruno Haible  <bruno@clisp.org>
72318
72319         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
72320         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
72321
72322 2007-03-25  Bruno Haible  <bruno@clisp.org>
72323
72324         * lib/vasnprintf.c: Include langinfo.h.
72325         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
72326         multithread-safe.
72327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
72328         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
72329         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
72330         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
72331         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
72332         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
72333         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
72334         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
72335         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
72336         Reported by Simon Josefsson.
72337
72338 2007-03-25  Bruno Haible  <bruno@clisp.org>
72339
72340         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
72341         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
72342         * modules/vasnprintf (Depends-on): Add stdint.
72343
72344 2007-03-25  Bruno Haible  <bruno@clisp.org>
72345
72346         * modules/fpieee: New file.
72347         * m4/fpieee.m4: New file.
72348         * modules/isnan-nolibm (Depends-on): Add fpieee.
72349         * modules/isnanl-nolibm (Depends-on): Add fpieee.
72350         * modules/isnanl (Depends-on): Add fpieee.
72351
72352 2007-03-25  Bruno Haible  <bruno@clisp.org>
72353
72354         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
72355
72356 2007-03-25  Bruno Haible  <bruno@clisp.org>
72357
72358         Avoid test failures on IRIX 6.5.
72359         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
72360         (main): Use it.
72361         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
72362         macros.
72363         (main): Use them.
72364
72365 2007-03-25  Bruno Haible  <bruno@clisp.org>
72366
72367         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
72368         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
72369         exists but doesn't work.
72370         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
72371         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
72372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
72373         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
72374         math.h.
72375
72376 2007-03-25  Bruno Haible  <bruno@clisp.org>
72377
72378         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
72379         returns inf. Needed on IRIX 6.5.
72380
72381 2007-03-25  Bruno Haible  <bruno@clisp.org>
72382
72383         * tests/test-frexpl.c: Include isnanl-nolibm.h.
72384         (main): Use isnanl instead of x != x idiom.
72385         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
72386
72387         * tests/test-frexp.c: Include isnan.h.
72388         (main): Use isnan instead of x != x idiom.
72389         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
72390
72391 2007-03-25  Bruno Haible  <bruno@clisp.org>
72392
72393         * tests/test-frexp.c (NaN): New function/macro.
72394         (main): Use it instead of 0.0 / 0.0.
72395         * tests/test-isnan.c (NaN): New function/macro.
72396         (main): Use it instead of 0.0 / 0.0.
72397         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
72398         (test_function): Use it instead of 0.0 / 0.0.
72399         * tests/test-vasprintf-posix.c (NaN): New function/macro.
72400         (test_function): Use it instead of 0.0 / 0.0.
72401         * tests/test-snprintf-posix.h (NaN): New function/macro.
72402         (test_function): Use it instead of 0.0 / 0.0.
72403         * tests/test-sprintf-posix.h (NaN): New function/macro.
72404         (test_function): Use it instead of 0.0 / 0.0.
72405         * tests/test-fprintf-posix.h (NaN): New function/macro.
72406         (test_function): Use it instead of 0.0 / 0.0.
72407         * tests/test-printf-posix.h (NaN): New function/macro.
72408         (test_function): Use it instead of 0.0 / 0.0.
72409
72410         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
72411
72412 2007-03-25  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
72415
72416 2007-03-25  Bruno Haible  <bruno@clisp.org>
72417
72418         * lib/regexec.c (merge_state_with_log): Make static.
72419
72420 2007-03-25  Bruno Haible  <bruno@clisp.org>
72421
72422         * lib/trigl.c (kernel_rem_pio2): Make static.
72423
72424 2007-03-25  Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/sincosl.c (sincosl_table): Make static.
72427
72428 2007-03-25  Bruno Haible  <bruno@clisp.org>
72429
72430         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
72431         if the compiler does not support C99.
72432
72433 2007-03-25  Bruno Haible  <bruno@clisp.org>
72434
72435         * modules/time (Makefile.am): Ensure all rule action lines start with a
72436         tab.
72437
72438 2007-03-24  Bruno Haible  <bruno@clisp.org>
72439
72440         * modules/tsearch-tests: New file.
72441         * tests/test-tsearch.sh: New file.
72442         * tests/test-tsearch.c: New file, mostly copied from glibc.
72443
72444         * modules/search-tests: New file.
72445         * tests/test-search.c: New file.
72446
72447         * modules/search: New file.
72448         * lib/search_.h: New file, incorporating lib/tsearch.h.
72449         * m4/search_h.m4: New file.
72450         * lib/tsearch.h: Remove file.
72451         * lib/tsearch.c: Include search.h instead of tsearch.h.
72452         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
72453         HAVE_TSEARCH.
72454         * modules/tsearch (Files): Remove lib/tsearch.h.
72455         (Depends-on): Add search.
72456         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
72457         (Include): Change tsearch.h into search.h.
72458
72459 2007-03-24  Bruno Haible  <bruno@clisp.org>
72460
72461         * modules/fpucw: New file.
72462         * lib/fpucw.h: New file.
72463         * lib/frexp.c: Include fpucw.h.
72464         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72465         (FUNC): Use them.
72466         * lib/printf-frexp.c: Include fpucw.h.
72467         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
72468         (FUNC): Use them.
72469         * lib/vasnprintf.c: Include fpucw.h.
72470         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
72471         'long double' calculations.
72472         * tests/test-frexpl.c: Include fpucw.h.
72473         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72474         * tests/test-printf-frexpl.c: Include fpucw.h.
72475         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
72476         * modules/frexpl (Depends-on): Add fpucw.
72477         * modules/printf-frexpl (Depends-on): Likewise.
72478         * modules/fprintf-posix (Depends-on): Likewise.
72479         * modules/snprintf-posix (Depends-on): Likewise.
72480         * modules/sprintf-posix (Depends-on): Likewise.
72481         * modules/vasnprintf-posix (Depends-on): Likewise.
72482         * modules/vasprintf-posix (Depends-on): Likewise.
72483         * modules/vfprintf-posix (Depends-on): Likewise.
72484         * modules/vsnprintf-posix (Depends-on): Likewise.
72485         * modules/vsprintf-posix (Depends-on): Likewise.
72486         * modules/frexpl-tests (Depends-on): Likewise.
72487         * modules/printf-frexpl-tests (Depends-on): Likewise.
72488
72489 2007-03-24  Bruno Haible  <bruno@clisp.org>
72490
72491         * lib/float+.h: New file.
72492         * lib/isnan.c: Include float+.h.
72493         (SIZE): New macro.
72494         (FUNC): Compare only SIZE bytes of the value.
72495         * lib/vasnprintf.c: Include float+.h.
72496         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
72497         SIZEOF_LDBL or SIZEOF_DBL bytes.
72498         * modules/isnan-nolibm (Files): Add lib/float+.h.
72499         * modules/isnanl-nolibm (Files): Add lib/float+.h.
72500         * modules/isnanl (Files): Add lib/float+.h.
72501         * modules/vasnprintf (Files): Add lib/float+.h.
72502
72503 2007-03-24  Bruno Haible  <bruno@clisp.org>
72504
72505         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
72506         include isnanl-nolibm.h.
72507
72508 2007-03-24  Bruno Haible  <bruno@clisp.org>
72509
72510         * tests/test-read-file.c (main): Don't produce spurious output for
72511         expected situations. Make the test fail if it encountered unexpected
72512         results.
72513
72514 2007-03-24  Bruno Haible  <bruno@clisp.org>
72515
72516         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
72517         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
72518
72519 2007-03-24  Bruno Haible  <bruno@clisp.org>
72520
72521         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
72522
72523 2007-03-24  Bruno Haible  <bruno@clisp.org>
72524
72525         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
72526         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
72527
72528         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
72529         * modules/utf8-ucs4: Turn into a symbolic link to module
72530         unistr/u8-mbtouc.
72531
72532         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
72533         utf8-ucs4-unsafe.
72534         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
72535         unistr/u8-mbtouc-unsafe.
72536
72537         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
72538         * modules/utf16-ucs4: Turn into a symbolic link to module
72539         unistr/u16-mbtouc.
72540
72541         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
72542         utf16-ucs4-unsafe.
72543         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
72544         unistr/u16-mbtouc-unsafe.
72545
72546         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
72547         * modules/ucs4-utf8: Turn into a symbolic link to module
72548         unistr/u8-ubtomb.
72549
72550         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
72551         * modules/ucs4-utf16: Turn into a symbolic link to module
72552         unistr/u16-ubtomb.
72553
72554 2007-03-24  Bruno Haible  <bruno@clisp.org>
72555
72556         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
72557         Enable the function only if HAVE_INLINE.
72558         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
72559         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72560         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
72561         Enable the function only if HAVE_INLINE.
72562         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
72563         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
72564         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
72565         Enable the function only if HAVE_INLINE.
72566         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
72567         Enable the function only if HAVE_INLINE.
72568         * modules/utf8-ucs4: Update.
72569         * modules/utf8-ucs4-unsafe: Update.
72570         * modules/utf16-ucs4: Update.
72571         * modules/utf16-ucs4-unsafe: Update.
72572         * modules/ucs4-utf8: Update.
72573         * modules/ucs4-utf16: Update.
72574
72575 2007-03-24  Bruno Haible  <bruno@clisp.org>
72576
72577         * lib/utf8-ucs4.h: Remove file.
72578         * lib/utf8-ucs4-unsafe.h: Remove file.
72579         * lib/utf16-ucs4.h: Remove file.
72580         * lib/utf16-ucs4-unsafe.h: Remove file.
72581         * lib/ucs4-utf8.h: Remove file.
72582         * lib/ucs4-utf16.h: Remove file.
72583         * lib/unistr.h: Include their previous contents.
72584         * m4/utf-ucs4.m4: Remove file.
72585         * m4/ucs4-utf.m4: Remove file.
72586         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
72587         (Depends-on): Add unistr/base.
72588         (configure.ac): Remove gl_UTF_UCS4.
72589         (Makefile.am): Update.
72590         (Include): Change to unistr.h.
72591         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
72592         (Depends-on): Add unistr/base.
72593         (configure.ac): Remove gl_UTF_UCS4.
72594         (Makefile.am): Update.
72595         (Include): Change to unistr.h.
72596         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
72597         (Depends-on): Add unistr/base.
72598         (configure.ac): Remove gl_UTF_UCS4.
72599         (Makefile.am): Update.
72600         (Include): Change to unistr.h.
72601         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
72602         (Depends-on): Add unistr/base.
72603         (configure.ac): Remove gl_UTF_UCS4.
72604         (Makefile.am): Update.
72605         (Include): Change to unistr.h.
72606         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
72607         (Depends-on): Add unistr/base.
72608         (configure.ac): Remove gl_UCS4_UTF.
72609         (Makefile.am): Update.
72610         (Include): Change to unistr.h.
72611         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
72612         (Depends-on): Add unistr/base.
72613         (configure.ac): Remove gl_UCS4_UTF.
72614         (Makefile.am): Update.
72615         (Include): Change to unistr.h.
72616         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
72617         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
72618         utf8-ucs4-unsafe.h.
72619         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
72620         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
72621         utf16-ucs4-unsafe.h.
72622         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
72623         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
72624         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
72625         * lib/unistr/u8-strchr.c: Likewise.
72626         * lib/unistr/u8-strrchr.c: Likewise.
72627         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
72628         * lib/unistr/u16-strchr.c: Likewise.
72629         * lib/unistr/u16-strrchr.c: Likewise.
72630         * lib/striconveh.c: Update.
72631         * lib/linebreak.c: Update.
72632
72633 2007-03-24  Bruno Haible  <bruno@clisp.org>
72634
72635         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
72636         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
72637
72638 2007-03-22  Bruno Haible  <bruno@clisp.org>
72639
72640         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
72641
72642 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
72643
72644         * MODULES.html.sh (File system functions): New module write-any-file.
72645         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
72646         * m4/write-any-file.m4: New files.
72647
72648 2007-03-23  Eric Blake  <ebb9@byu.net>
72649
72650         * gnulib-tool: Rearrange space-tab sequences, since some editors
72651         like to eat them.
72652
72653 2007-03-23  Eric Blake  <ebb9@byu.net>
72654
72655         * lib/version-etc.c (version_etc_va): Update license wording to
72656         be more concise.  Recommended by Richard Stallman.
72657
72658 2007-03-22  Bruno Haible  <bruno@clisp.org>
72659
72660         * lib/poll.c (MSG_PEEK): New fallback definition.
72661
72662 2007-03-22  Bruno Haible  <bruno@clisp.org>
72663
72664         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
72665         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
72666         (main): Update.
72667         Fixes a compilation error on BeOS.
72668
72669 2007-03-22  Bruno Haible  <bruno@clisp.org>
72670
72671         * modules/frexpl-tests: New file.
72672         * tests/test-frexpl.c: New file.
72673
72674         * modules/frexpl: New file.
72675         * m4/frexpl.m4: New file.
72676         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
72677         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
72678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
72679         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
72680         (Depends-on): Add frexpl. Remove isnanl-nolibm.
72681         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
72682
72683 2007-03-22  Bruno Haible  <bruno@clisp.org>
72684
72685         * lib/frexpl.c: Share code with lib/frexp.c.
72686         * modules/mathl (Files): Add lib/frexp.c.
72687         (Depends-on): Add isnanl-nolibm.
72688
72689 2007-03-22  Bruno Haible  <bruno@clisp.org>
72690
72691         * modules/printf-frexp (Files): Add m4/frexp.m4.
72692         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
72693         only if the found frexp function actually works.
72694
72695 2007-03-22  Bruno Haible  <bruno@clisp.org>
72696
72697         * lib/frexp.c: Remove older implementation that uses divisions.
72698
72699 2007-03-21  Bruno Haible  <bruno@clisp.org>
72700
72701         * modules/frexp-tests: New file.
72702         * tests/test-frexp.c: New file.
72703
72704         * modules/frexp: New file.
72705         * lib/frexp.c: New file.
72706         * m4/frexp.m4: New file.
72707         * lib/math_.h (frexp): New declaration.
72708         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
72709         REPLACE_FREXP.
72710         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
72711
72712 2007-03-21  Bruno Haible  <bruno@clisp.org>
72713
72714         * modules/isnanl-tests: New file.
72715         * tests/test-isnanl.c: New file.
72716
72717         * modules/isnanl: New file.
72718         * lib/isnanl.h: New file.
72719         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
72720         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
72721         gl_FUNC_ISNANL_WORKS.
72722         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
72723         New macros.
72724
72725 2007-03-21  Bruno Haible  <bruno@clisp.org>
72726
72727         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
72728         lib/isnanl.h.
72729         (Include): Update.
72730         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
72731         * lib/vasnprintf.c: Update.
72732         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
72733         tests/test-isnanl.h, remove tests/test-isnanl.c.
72734         (Makefile.am): Update.
72735         * tests/test-isnanl-nolibm.c: New file.
72736         * tests/test-isnanl.h: New file.
72737         * tests/test-isnanl.c: Remove file.
72738
72739 2007-03-21  Jim Meyering  <jim@meyering.net>
72740
72741         When trying to open ".", treat ESTALE like EACCES.
72742         * lib/savewd.c (savewd_save): Resort to forking not just upon
72743         failure with EACCES, but also when errno is ESTALE.
72744
72745 2007-03-20  Bruno Haible  <bruno@clisp.org>
72746
72747         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
72748         Needed on AIX 5.1. Reported by Matthew Woehlke.
72749
72750 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72751
72752         Suggestions by Bruno Haible:
72753         * lib/acl-internal.h: Include "gettext.h" rather than rolling
72754         our own.
72755         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
72756         * modules/acl (Depends-on): Add gettext.
72757
72758 2007-03-19  Bruno Haible  <bruno@clisp.org>
72759
72760         * modules/iconvme: Remove file.
72761         * lib/iconvme.h: Remove file.
72762         * lib/iconvme.c: Remove file.
72763         * m4/iconvme.m4: Remove file.
72764
72765 2007-03-19  Bruno Haible  <bruno@clisp.org>
72766
72767         * doc/relocatable-maint.texi: Break long shell script line.
72768         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72769
72770 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
72773         handle file_has_acl.
72774         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
72775         * lib/acl.c: Move header inclusions and related macro defns into
72776         lib/acl-internal.h.
72777         (S_ISLNK): Remove defn, since that's now done for us.
72778         (file_has_acl): Move to lib/file-has-acl.c.
72779         Call acl_trivial if available.  This is the crucial part of the fix.
72780         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
72781         shared within the library.  Rewrite a bit, partly to make it compatible
72782         with the GNU coding style.
72783         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
72784         Remove unnecessary double-quotes.
72785         Don't test for acl_to_text; the build will catch that.
72786         Replace acl_entries if it doesn't exist and it is needed.
72787         Check for -lsec and acl_trivial (as used on Solaris 10).
72788         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
72789         lib/file-has-acl.c.
72790         (Depends-on): Add sys_stat, for S_ISLNK.
72791
72792 2007-03-19  Ben Pfaff  <blp@gnu.org>
72793
72794         * doc/gnulib.texi: Fix typos.
72795         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
72796
72797 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
72798
72799         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
72800         If size is zero here, buf must be zero.
72801
72802 2007-03-19  Simon Josefsson  <simon@josefsson.org>
72803
72804         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
72805         <bruno@clisp.org>.
72806
72807 2007-03-18  Bruno Haible  <bruno@clisp.org>
72808
72809         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
72810         Suggested by Eric Blake.
72811
72812 2007-03-18  Ben Pfaff  <blp@gnu.org>
72813
72814         * doc/relocatable.texi: Recommend using as prefix a directory
72815         that does not exist and will never be created.  Based on
72816         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
72817         and others.
72818
72819 2007-03-17  Bruno Haible  <bruno@clisp.org>
72820
72821         * lib/fchownat.c: Include lchown.h.
72822
72823 2007-03-17  Bruno Haible  <bruno@clisp.org>
72824
72825         Fix endless loop when the given allocated size was > INT_MAX.
72826         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
72827         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
72828         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
72829         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
72830         * lib/sprintf.c (sprintf): Likewise.
72831
72832 2007-03-17  Bruno Haible  <bruno@clisp.org>
72833
72834         * tests/test-argp-2.sh (func_compare): Output a context diff.
72835
72836 2007-03-17  Bruno Haible  <bruno@clisp.org>
72837
72838         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
72839         locale's decimal-point character.
72840
72841 2007-03-17  Bruno Haible  <bruno@clisp.org>
72842
72843         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
72844         before comparing it. Needed because on some platforms (e.g. x86) a
72845         'long double' occupies less bytes than sizeof (long double).
72846
72847 2007-03-17  Bruno Haible  <bruno@clisp.org>
72848
72849         * tests/test-crc.c (main): Make printf statements 64-bit clean.
72850         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
72851         * tests/test-getaddrinfo.c (simple): Likewise.
72852         * tests/test-read-file.c (main): Likewise.
72853
72854 2007-03-17  Bruno Haible  <bruno@clisp.org>
72855
72856         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
72857
72858 2007-03-17  Bruno Haible  <bruno@clisp.org>
72859
72860         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
72861         unused variable.
72862
72863 2007-03-17  Bruno Haible  <bruno@clisp.org>
72864
72865         * tests/test-c-strcasecmp.c: Include c-strcase.h.
72866         * tests/test-c-strncasecmp.c: Likewise.
72867
72868 2007-03-17  Bruno Haible  <bruno@clisp.org>
72869
72870         * modules/stdlib (Depends-on): Add unistd.
72871         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
72872         Needed for MacOS X 10.3.
72873
72874 2007-03-17  Bruno Haible  <bruno@clisp.org>
72875
72876         * lib/unistr/u-strdup.h: Include <stdlib.h>.
72877
72878 2007-03-17  Bruno Haible  <bruno@clisp.org>
72879
72880         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
72881
72882 2007-03-17  Bruno Haible  <bruno@clisp.org>
72883
72884         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
72885         to reflect files copied from gnulib (with or without modifications).
72886         Suggested by Jim Meyering.
72887
72888 2007-03-17  Eric Blake  <ebb9@byu.net>
72889
72890         * NEWS: Document stdlib change from 2007-02-18.
72891
72892 2007-03-17  Jim Meyering  <jim@meyering.net>
72893
72894         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
72895         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
72896         someone uses a name containing shell meta-characters.
72897         Reported by Alfred M. Szmidt.
72898
72899         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
72900
72901 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72902
72903         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
72904         and copy gettext configuration files only if configure.ac contains
72905         a use of AM_GNU_GETTEXT_VERSION.
72906
72907 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
72908
72909         * build-aux/bootstrap (gnulib_name): New variable.
72910         (gnulib_tool_options): Use it.
72911
72912 2007-03-13  Simon Josefsson  <simon@josefsson.org>
72913
72914         * tests/test-des.c: Use new namespace.
72915
72916 2007-03-15  Bruno Haible  <bruno@clisp.org>
72917
72918         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
72919         Reported by James Youngman <jay@gnu.org>.
72920
72921 2007-03-15  Bruno Haible  <bruno@clisp.org>
72922
72923         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
72924         declared prototype. Needed with cc on OSF/1 5.1.
72925
72926 2007-03-15  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
72929         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
72930         (struct gl_list_implementation): Add dispose_fn argument to the
72931         'create_empty', 'create' methods.
72932         (struct gl_list_impl_base): Add field 'dispose_fn'.
72933         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
72934         argument.
72935         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
72936         dispose_fn argument.
72937         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
72938         dispose_fn on the dropped values.
72939         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
72940         dispose_fn argument.
72941         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
72942         dropped values.
72943         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
72944         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72945         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
72946         (gl_tree_remove_node): Call dispose_fn on the dropped value.
72947         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
72948         argument.
72949         (gl_tree_list_free): Call dispose_fn on the dropped values.
72950         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
72951         the dropped values.
72952         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72953         Add dispose_fn argument.
72954         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
72955         Call dispose_fn on the dropped values.
72956         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
72957         Add dispose_fn argument.
72958         (gl_sublist_create): Initialize the 'dispose_fn' field.
72959         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
72960         * tests/test-array_list.c (main): Update.
72961         * tests/test-carray_list.c (main): Update.
72962         * tests/test-avltree_list.c (main): Update.
72963         * tests/test-rbtree_list.c (main): Update.
72964         * tests/test-avltreehash_list.c (main): Update.
72965         * tests/test-rbtreehash_list.c (main): Update.
72966         * tests/test-linked_list.c (main): Update.
72967         * tests/test-linkedhash_list.c (main): Update.
72968         * tests/test-array_oset.c (main): Update.
72969
72970 2007-03-15  Bruno Haible  <bruno@clisp.org>
72971
72972         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
72973         (gl_oset_create_empty): Add dispose_fn argument.
72974         (struct gl_oset_implementation): Add dispose_fn argument to
72975         'create_empty' method.
72976         (struct gl_oset_impl_base): Add dispose_fn field.
72977         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
72978         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
72979         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
72980         values.
72981         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
72982         (gl_tree_oset_free): Call dispose_fn on the dropped values.
72983         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72984         dropped value.
72985         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
72986         dropped value.
72987         * tests/test-array_oset.c (main): Update.
72988         * tests/test-avltree_oset.c (main): Update.
72989         * tests/test-rbtree_oset.c (main): Update.
72990         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
72991
72992 2007-03-13  Bruno Haible  <bruno@clisp.org>
72993
72994         * tests/test-stdbool.c (i): Update after last patch.
72995
72996 2007-03-12  Bruno Haible  <bruno@clisp.org>
72997
72998         * lib/quotearg.c: Include <wctype.h> early, before the definition of
72999         the iswprint macro. Needed on Solaris 2.5.1.
73000
73001 2007-03-12  Bruno Haible  <bruno@clisp.org>
73002
73003         * tests/test-printf-frexp.c (main): Declare x as volatile.
73004
73005 2007-03-12  Simon Josefsson  <simon@josefsson.org>
73006
73007         * doc/gnulib.texi (Build robot for gnulib): New section.
73008
73009 2007-03-12  Jim Meyering  <jim@meyering.net>
73010
73011         * build-aux/bootstrap: New file.
73012         * build-aux/bootstrap.conf: New file, from coreutils.
73013
73014 2007-03-11  Bruno Haible  <bruno@clisp.org>
73015
73016         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
73017
73018 2007-03-12  Simon Josefsson  <simon@josefsson.org>
73019
73020         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
73021         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
73022         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
73023
73024 2007-03-11  Bruno Haible  <bruno@clisp.org>
73025
73026         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
73027         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
73028
73029 2007-03-11  Bruno Haible  <bruno@clisp.org>
73030
73031         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
73032         formula. Needed for SunPRO C 5.0.
73033
73034 2007-03-11  Bruno Haible  <bruno@clisp.org>
73035
73036         * modules/long-options (Depends-on): Add getopt.
73037
73038 2007-03-11  Bruno Haible  <bruno@clisp.org>
73039
73040         * modules/modechange (Depends-on): Add stdbool.
73041
73042 2007-03-11  Bruno Haible  <bruno@clisp.org>
73043
73044         * modules/i-ring (Depends-on): Add stdbool.
73045
73046 2007-03-11  Bruno Haible  <bruno@clisp.org>
73047
73048         * modules/gc-des (Depends-on): Add stdbool.
73049
73050 2007-03-11  Bruno Haible  <bruno@clisp.org>
73051
73052         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
73053
73054 2007-03-11  Bruno Haible  <bruno@clisp.org>
73055
73056         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
73057
73058 2007-03-11  Bruno Haible  <bruno@clisp.org>
73059
73060         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
73061
73062 2007-03-11  Bruno Haible  <bruno@clisp.org>
73063
73064         * lib/vasnprintf.c (sprintf): Undefine.
73065
73066 2007-03-11  Bruno Haible  <bruno@clisp.org>
73067
73068         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
73069         initializers in SunPRO C and Compaq C compilers.
73070
73071 2007-03-11  Bruno Haible  <bruno@clisp.org>
73072
73073         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
73074         decrementing code ANSI C compliant.
73075
73076 2007-03-11  Bruno Haible  <bruno@clisp.org>
73077
73078         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
73079         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
73080
73081 2007-03-11  Bruno Haible  <bruno@clisp.org>
73082
73083         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
73084         <stdbool.h> substitute doesn't pass.
73085
73086 2007-03-11  Bruno Haible  <bruno@clisp.org>
73087
73088         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
73089
73090 2007-03-11  Bruno Haible  <bruno@clisp.org>
73091
73092         * gnulib-tool (func_create_megatestdir): Create also an autobuild
73093         script, for submission to autobuild.josefsson.org.
73094
73095 2007-03-10  Bruno Haible  <bruno@clisp.org>
73096
73097         * modules/canonicalize-lgpl-tests: New file.
73098         * tests/test-canonicalize-lgpl.sh: New file.
73099         * tests/test-canonicalize-lgpl.c: New file.
73100
73101         * modules/c-strcase-tests: New file.
73102         * tests/test-c-strcase.sh: New file.
73103         * tests/test-c-strcasecmp.c: New file.
73104         * tests/test-c-strncasecmp.c: New file.
73105
73106         * modules/atexit-tests: New file.
73107         * tests/test-atexit.sh: New file.
73108         * tests/test-atexit.c: New file.
73109
73110 2007-03-10  Bruno Haible  <bruno@clisp.org>
73111
73112         * tests/test-binary-io.sh: Use temporary filenames that are not so
73113         likely to clash with those of other tests (in a parallel make).
73114         * tests/test-binary-io.c: Likewise.
73115
73116 2007-03-10  Bruno Haible  <bruno@clisp.org>
73117
73118         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
73119         fallback; use #error instead.
73120         Suggested by Simon Josefsson.
73121
73122 2007-03-10  Bruno Haible  <bruno@clisp.org>
73123
73124         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
73125         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
73126         first and the last.
73127
73128 2007-03-10  Bruno Haible  <bruno@clisp.org>
73129
73130         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
73131
73132 2007-03-10  Bruno Haible  <bruno@clisp.org>
73133
73134         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
73135         "make distcheck".
73136         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
73137         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
73138         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
73139
73140 2007-03-10  Bruno Haible  <bruno@clisp.org>
73141
73142         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
73143         variable.
73144         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
73145         variable.
73146
73147 2007-03-09  Eric Blake  <ebb9@byu.net>
73148         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
73149
73150         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
73151         types are not being provided by gnulib.
73152         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
73153         types are supported.
73154
73155 2007-03-10  Bruno Haible  <bruno@clisp.org>
73156
73157         * lib/stdio_.h (__attribute__): New macro.
73158         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
73159         vsprintf): Specify __attribute__ __format__ for GCC.
73160         Suggested by Eric Blake.
73161
73162 2007-03-09  Bruno Haible  <bruno@clisp.org>
73163
73164         * modules/printf-posix-tests: New file.
73165         * tests/test-printf-posix.sh: New file.
73166         * tests/test-printf-posix.c: New file.
73167
73168         * modules/printf-posix: New file.
73169         * lib/printf.c: New file.
73170         * m4/printf-posix-rpl.m4: New file.
73171         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
73172         REPLACE_PRINTF.
73173         * lib/stdio_.h (printf): New declaration.
73174         (format, __format__, ____printf____, ____scanf____, ____strftime____,
73175         ____strfmon____): New macros.
73176         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
73177         REPLACE_PRINTF.
73178
73179 2007-03-09  Bruno Haible  <bruno@clisp.org>
73180
73181         * tests/test-vasnprintf-posix2.sh: New file.
73182         * tests/test-vasnprintf-posix2.c: New file.
73183         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
73184         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
73185         (Makefile.am): Activate test-vasnprintf-posix2.sh.
73186
73187         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
73188         a locale dependent decimal point, rather than always '.'.
73189
73190 2007-03-09  Eric Blake  <ebb9@byu.net>
73191
73192         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
73193         spite of platforms like Tandem/NSK that define it to -1.
73194
73195 2007-03-08  Bruno Haible  <bruno@clisp.org>
73196
73197         * modules/vprintf-posix-tests: New file.
73198         * tests/test-vprintf-posix.sh: New file.
73199         * tests/test-vprintf-posix.c: New file.
73200         * tests/test-printf-posix.h: New file.
73201
73202         * modules/vprintf-posix: New file.
73203         * lib/vprintf.c: New file.
73204         * m4/vprintf-posix.m4: New file.
73205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
73206         REPLACE_VPRINTF.
73207         * lib/stdio_.h (vprintf): New declaration.
73208         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
73209         REPLACE_VPRINTF.
73210
73211 2007-03-08  Bruno Haible  <bruno@clisp.org>
73212
73213         * modules/fprintf-posix-tests: New file.
73214         * tests/test-fprintf-posix.sh: New file.
73215         * tests/test-fprintf-posix.c: New file.
73216
73217         * modules/fprintf-posix: New file.
73218         * lib/fprintf.c: New file.
73219         * m4/fprintf-posix.m4: New file.
73220         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
73221         REPLACE_FPRINTF.
73222         * lib/stdio_.h (fprintf): New declaration.
73223         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
73224         REPLACE_FPRINTF.
73225
73226 2007-03-08  Bruno Haible  <bruno@clisp.org>
73227
73228         * modules/vfprintf-posix-tests: New file.
73229         * tests/test-vfprintf-posix.sh: New file.
73230         * tests/test-vfprintf-posix.c: New file.
73231         * tests/test-fprintf-posix.h: New file.
73232         * tests/test-fprintf-posix.out: New file.
73233
73234         * modules/vfprintf-posix: New file.
73235         * lib/vfprintf.c: New file.
73236         * m4/vfprintf-posix.m4: New file.
73237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
73238         REPLACE_VFPRINTF.
73239         * lib/stdio_.h (vfprintf): New declaration.
73240         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
73241         REPLACE_VFPRINTF.
73242
73243 2007-03-08  Bruno Haible  <bruno@clisp.org>
73244
73245         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
73246
73247 2007-03-08  Bruno Haible  <bruno@clisp.org>
73248
73249         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
73250         instead of 'expr' invocations.
73251         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
73252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
73253         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
73254         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
73255         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
73256         Suggested by Paul Eggert.
73257
73258 2007-03-08  Bruno Haible  <bruno@clisp.org>
73259
73260         * modules/fseterr-tests: New file.
73261         * tests/test-fseterr.c: New file.
73262
73263         * modules/fseterr: New file.
73264         * lib/fseterr.h: New file.
73265         * lib/fseterr.c: New file.
73266
73267 2007-03-08  Bruno Haible  <bruno@clisp.org>
73268
73269         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
73270         * lib/getopt_.h: Likewise.
73271         * lib/mbswidth.h: Likewise.
73272         * lib/setenv.h: Likewise.
73273         * lib/vasnprintf.h: Likewise.
73274         * lib/vasprintf.h: Likewise.
73275         * lib/verror.h: Likewise.
73276         * lib/xsetenv.h: Likewise.
73277         * lib/xvasprintf.h: Likewise.
73278
73279 2007-03-08  Jim Meyering  <jim@meyering.net>
73280
73281         * users.txt: Add parted.
73282
73283         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
73284
73285 2007-03-07  Bruno Haible  <bruno@clisp.org>
73286
73287         * m4/printf.m4: Make the shell script snippets copy&pastable.
73288
73289 2007-03-02  Bruno Haible  <bruno@clisp.org>
73290
73291         * lib/netinet_in_.h: New file.
73292         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
73293         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
73294         * modules/netinet_in (Files): Add lib/netinet_in_.h.
73295         (Depends-on): Add absolute-header.
73296         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
73297         into netinet/in.h.
73298
73299 2007-03-03  Bruno Haible  <bruno@clisp.org>
73300
73301         * lib/sys_select_.h: New file.
73302         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
73303         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
73304         * modules/sys_select (Files): Add lib/sys_select_.h.
73305         (Depends-on): Add absolute-header.
73306         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
73307         into sys/select.h.
73308
73309 2007-03-02  Bruno Haible  <bruno@clisp.org>
73310
73311         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
73312         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
73313         values.
73314         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
73315         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
73316         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
73317         * modules/sys_socket (Depends-on): Add absolute-header.
73318         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
73319         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
73320         (Include): Remove requirement of inclusion of <sys/types.h>.
73321
73322 2007-03-02  Bruno Haible  <bruno@clisp.org>
73323
73324         * lib/byteswap_.h (bswap_32): Fix formula.
73325
73326 2007-03-06  Bruno Haible  <bruno@clisp.org>
73327
73328         * modules/sprintf-posix-tests: New file.
73329         * tests/test-sprintf-posix.c: New file.
73330
73331         * modules/sprintf-posix: New file.
73332         * lib/sprintf.c: New file.
73333         * m4/sprintf-posix.m4: New file.
73334         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
73335         REPLACE_SPRINTF.
73336         * lib/stdio_.h (sprintf): New declaration.
73337         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
73338         REPLACE_SPRINTF.
73339
73340 2007-03-06  Bruno Haible  <bruno@clisp.org>
73341
73342         * modules/vsprintf-posix-tests: New file.
73343         * tests/test-vsprintf-posix.c: New file.
73344         * tests/test-sprintf-posix.h: New file.
73345
73346         * modules/vsprintf-posix: New file.
73347         * lib/vsprintf.c: New file.
73348         * m4/vsprintf-posix.m4: New file.
73349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
73350         REPLACE_VSPRINTF.
73351         * lib/stdio_.h (vsprintf): New declaration.
73352         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
73353         REPLACE_VSPRINTF.
73354
73355 2007-03-06  Bruno Haible  <bruno@clisp.org>
73356
73357         * modules/vsnprintf (Depend-on): Remove minmax.
73358
73359 2007-03-06  Bruno Haible  <bruno@clisp.org>
73360
73361         * modules/snprintf-posix-tests: New file.
73362         * tests/test-snprintf-posix.c: New file.
73363
73364         * modules/snprintf-posix: New file.
73365         * m4/snprintf-posix.m4: New file.
73366         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
73367         gl_FUNC_SNPRINTF.
73368         (gl_FUNC_SNPRINTF): Invoke it.
73369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
73370         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
73371         is set.
73372         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
73373
73374 2007-03-06  Bruno Haible  <bruno@clisp.org>
73375
73376         * modules/vsnprintf-posix-tests: New file.
73377         * tests/test-vsnprintf-posix.c: New file.
73378         * tests/test-snprintf-posix.h: New file.
73379
73380         * modules/vsnprintf-posix: New file.
73381         * m4/vsnprintf-posix.m4: New file.
73382         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
73383         gl_FUNC_VSNPRINTF.
73384         (gl_FUNC_VSNPRINTF): Invoke it.
73385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
73386         * lib/stdio_.h (vsnprintf): Define as a replacement if
73387         REPLACE_VSNPRINTF is set.
73388         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
73389
73390 2007-03-06  Bruno Haible  <bruno@clisp.org>
73391
73392         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
73393         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
73394
73395 2007-03-06  Bruno Haible  <bruno@clisp.org>
73396
73397         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
73398         (asinl): Declare also if HAVE_DECL_ASINL is set.
73399         (atanl): Declare also if HAVE_DECL_ATANL is set.
73400         (ceill): Declare also if HAVE_DECL_CEILL is set.
73401         (cosl): Declare also if HAVE_DECL_COSL is set.
73402         (expl): Declare also if HAVE_DECL_EXPL is set.
73403         (floorl): Declare also if HAVE_DECL_FLOORL is set.
73404         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
73405         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
73406         (logl): Declare also if HAVE_DECL_LOGL is set.
73407         (sinl): Declare also if HAVE_DECL_SINL is set.
73408         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
73409         (tanl): Declare also if HAVE_DECL_TANL is set.
73410         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
73411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
73412         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
73413         declaration of frexpl, ldexpl.
73414         * modules/printf-frexpl (Depends-on): Add math.
73415         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
73416
73417 2007-03-05  Bruno Haible  <bruno@clisp.org>
73418
73419         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
73420         frexpl and ldexpl are declared.
73421         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
73422
73423 2007-03-05  Bruno Haible  <bruno@clisp.org>
73424
73425         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
73426         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
73427
73428 2007-03-05  Bruno Haible  <bruno@clisp.org>
73429
73430         * lib/stdio_.h: Include <stddef.h>.
73431
73432 2007-03-05  Bruno Haible  <bruno@clisp.org>
73433
73434         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
73435
73436 2007-03-05  Bruno Haible  <bruno@clisp.org>
73437
73438         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
73439         NetBSD 4, from Ralf Wildenhues.
73440
73441 2007-03-04  Bruno Haible  <bruno@clisp.org>
73442
73443         * lib/vasprintf.h: Update #if logic for the case when the functions
73444         exist but are overridden.
73445
73446 2007-03-04  Bruno Haible  <bruno@clisp.org>
73447
73448         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
73449         implementations: glibc-2.4 and MacOS X 10.3.
73450         * tests/test-vasnprintf-posix.c (test_function): Test also the case
73451         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
73452         * tests/test-vasprintf-posix.c (test_function): Likewise.
73453
73454 2007-03-04  Bruno Haible  <bruno@clisp.org>
73455
73456         * modules/vasprintf-posix-tests: New file.
73457         * tests/test-vasprintf-posix.c: New file.
73458
73459         * modules/vasprintf-posix: New file.
73460         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
73461         defined.
73462         * m4/vasprintf-posix.m4: New file.
73463         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
73464         gl_FUNC_VASPRINTF.
73465         (gl_FUNC_VASPRINTF): Invoke it.
73466         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
73467         here.
73468         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
73469
73470 2007-03-04  Bruno Haible  <bruno@clisp.org>
73471
73472         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
73473         REPLACE_GETTIMEOFDAY.
73474         * modules/sys_time (Makefile.am): Likewise.
73475         * m4/sys_time_h.m4: Likewise.
73476         * m4/gettimeofday.m4: Likewise.
73477
73478 2007-03-04  Bruno Haible  <bruno@clisp.org>
73479
73480         * modules/vasnprintf-posix-tests: New file.
73481         * tests/test-vasnprintf-posix.c: New file.
73482
73483         * modules/vasnprintf-posix: New file.
73484         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
73485         printf-frexpl.h.
73486         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
73487         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
73488         REPLACE_VASNPRINTF is defined.
73489         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
73490         gl_FUNC_VASNPRINTF.
73491         (gl_FUNC_VASNPRINTF): Invoke it.
73492         * m4/vasnprintf-posix.m4: New file.
73493         * m4/printf.m4: New file.
73494
73495 2007-03-04  Bruno Haible  <bruno@clisp.org>
73496
73497         Compile progreloc.c only if --enable-relocatable is specified.
73498         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
73499         if --enable-relocatable was specified.
73500         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
73501         lib_SOURCES.
73502
73503 2007-03-04  Jim Meyering  <jim@meyering.net>
73504
73505         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
73506         Use it consistently, rather than enumerating errno constants.
73507
73508 2007-03-04  Bruno Haible  <bruno@clisp.org>
73509
73510         * modules/xvasprintf-tests: New file.
73511         * tests/test-xvasprintf.c: New file.
73512
73513         * modules/vasprintf-tests: New file.
73514         * tests/test-vasprintf.c: New file.
73515
73516         * modules/vasnprintf-tests: New file.
73517         * tests/test-vasnprintf.c: New file.
73518
73519         * modules/vsnprintf-tests: New file.
73520         * tests/test-vsnprintf.c: New file.
73521
73522         * modules/snprintf-tests: New file.
73523         * tests/test-snprintf.c: New file.
73524
73525 2007-03-04  Bruno Haible  <bruno@clisp.org>
73526
73527         Compile relocatable.c only if --enable-relocatable is specified.
73528         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
73529         gl_RELOCATABLE_LIBRARY.
73530         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
73531         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
73532         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
73533         gl_RELOCATABLE_LIBRARY.
73534         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
73535         (Makefile.am): Remove lib_SOURCES.
73536         * modules/relocatable-lib-lgpl (configure.ac): Invoke
73537         gl_RELOCATABLE_LIBRARY.
73538         (Makefile.am): Remove lib_SOURCES.
73539         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
73540         always.
73541         * modules/relocatable-prog-wrapper (configure.ac): Invoke
73542         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
73543
73544 2007-03-04  Bruno Haible  <bruno@clisp.org>
73545
73546         * modules/argmatch-tests: New file.
73547         * tests/test-argmatch.c: New file.
73548
73549         * tests/test-allocsa.c (main): Halve the number of loop runs.
73550
73551         * modules/alloca-opt-tests: New file.
73552         * tests/test-alloca-opt.c: New file.
73553
73554 2007-03-04  Jim Meyering  <jim@meyering.net>
73555
73556         Work around difference between Linux ACLs and Solaris 10 ZFS.
73557         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
73558         for EINVAL.
73559
73560 2007-03-03  Bruno Haible  <bruno@clisp.org>
73561
73562         * modules/relocatable-prog (Depends-on): Add back progreloc's
73563         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
73564
73565 2007-03-03  Bruno Haible  <bruno@clisp.org>
73566
73567         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
73568         * modules/relocatable-lib: New file.
73569
73570 2007-03-03  Bruno Haible  <bruno@clisp.org>
73571
73572         * modules/relocatable-prog: Renamed from modules/relocatable.
73573         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
73574
73575 2007-03-03  Bruno Haible  <bruno@clisp.org>
73576
73577         * modules/relocatable-script (Files): Add doc/relocatable.texi,
73578         m4/relocatable-lib.m4.
73579         (Depends-on): Remove 'relocatable'.
73580         (configure.ac): Add gl_RELOCATABLE_NOP.
73581
73582 2007-03-03  Bruno Haible  <bruno@clisp.org>
73583
73584         * modules/relocatable-prog-wrapper: New file.
73585         * modules/relocatable (Depends-on): Add it. Remove all other
73586         dependencies except progname.
73587         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
73588
73589         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
73590         (gl_FUNC_STRERROR): Nop.
73591         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
73592
73593         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
73594         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
73595
73596         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
73597         (gl_FUNC_READLINK): Update.
73598
73599         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
73600
73601 2007-03-03  Bruno Haible  <bruno@clisp.org>
73602
73603         * lib/xreadlink.c: Include <unistd.h> unconditionally.
73604         * modules/xreadlink (Depends-on): Add unistd.
73605         * modules/xreadlink-with-size (Depends-on): Likewise.
73606
73607 2007-03-03  Bruno Haible  <bruno@clisp.org>
73608
73609         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
73610         extracted from gt_FUNC_SETENV.
73611         (gt_FUNC_SETENV): Remove macro.
73612         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
73613         remove gt_FUNC_SETENV.
73614
73615 2007-03-03  Bruno Haible  <bruno@clisp.org>
73616
73617         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
73618         ENABLE_RELOCATABLE here.
73619         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
73620
73621 2007-03-03  Bruno Haible  <bruno@clisp.org>
73622
73623         * modules/rbtreehash-list-tests (Depends-on): Add progname.
73624         * tests/test-rbtreehash_list.c: Include progname.h.
73625         (main): Call set_program_name.
73626
73627         * modules/rbtree-oset-tests (Depends-on): Add progname.
73628         * tests/test-rbtree_oset.c: Include progname.h.
73629         (main): Call set_program_name.
73630
73631         * modules/rbtree-list-tests (Depends-on): Add progname.
73632         * tests/test-rbtree_list.c: Include progname.h.
73633         (main): Call set_program_name.
73634
73635         * modules/linked-list-tests (Depends-on): Add progname.
73636         * tests/test-linked_list.c: Include progname.h.
73637         (main): Call set_program_name.
73638
73639 2007-03-03  Bruno Haible  <bruno@clisp.org>
73640
73641         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
73642         All uses of __restrict changed to _Restrict_.
73643         * lib/glob_.h (__restrict): Remove macro.
73644
73645 2007-03-02  Bruno Haible  <bruno@clisp.org>
73646
73647         * modules/gettext (configure.ac): Require gettext infrastructure
73648         from version 0.16.1.
73649
73650 2007-03-02  Bruno Haible  <bruno@clisp.org>
73651
73652         * modules/linkedhash-list-tests (Depends-on): Add progname.
73653         * tests/test-linkedhash_list.c: Include progname.h.
73654         (main): Call set_program_name.
73655
73656         * modules/carray-list-tests (Depends-on): Add progname.
73657         * tests/test-carray_list.c: Include progname.h.
73658         (main): Call set_program_name.
73659
73660         * modules/avltreehash-list-tests (Depends-on): Add progname.
73661         * tests/test-avltreehash_list.c: Include progname.h.
73662         (main): Call set_program_name.
73663
73664         * modules/avltree-oset-tests (Depends-on): Add progname.
73665         * tests/test-avltree_oset.c: Include progname.h.
73666         (main): Call set_program_name.
73667
73668         * modules/avltree-list-tests (Depends-on): Add progname.
73669         * tests/test-avltree_list.c: Include progname.h.
73670         (main): Call set_program_name.
73671
73672         * modules/array-oset-tests (Depends-on): Add progname.
73673         * tests/test-array_oset.c: Include progname.h.
73674         (main): Call set_program_name.
73675
73676         * modules/array-list-tests (Depends-on): Add progname.
73677         * tests/test-array_list.c: Include progname.h.
73678         (main): Call set_program_name.
73679
73680         * modules/argp-tests (Depends-on): Add progname.
73681         * tests/test-argp.c: Include argp.h first. Include progname.h.
73682         (main): Call set_program_name.
73683
73684 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
73685
73686         * doc/gnulib-tool.texi (Initial import): Reword description of
73687         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
73688         limited effect even if defined after the first system include.
73689
73690 2007-03-01  Bruno Haible  <bruno@clisp.org>
73691
73692         * build-aux/config.libpath: Update to libtool-1.5.22.
73693         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73694
73695 2007-03-01  Bruno Haible  <bruno@clisp.org>
73696
73697         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
73698         foo_CFLAGS.
73699         Reported by Ralf Wildenhues.
73700
73701 2007-03-01  Bruno Haible  <bruno@clisp.org>
73702
73703         * build-aux/install-reloc: Remove object files left over by some
73704         compilers.
73705         Reported by Ralf Wildenhues.
73706
73707 2007-03-01  Bruno Haible  <bruno@clisp.org>
73708
73709         * build-aux/install-reloc: Break long lines.
73710
73711 2007-03-01  Bruno Haible  <bruno@clisp.org>
73712
73713         * doc/relocatable.texi: Document that it may not work on OpenBSD.
73714         Reported by Ralf Wildenhues.
73715
73716 2007-03-01  Bruno Haible  <bruno@clisp.org>
73717
73718         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
73719         include ordering constraints.
73720
73721 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
73724         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
73725         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
73726         as another example.
73727         * lib/time_.h: Fix misspelling.
73728         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73729         Require gl_HEADER_TIME_H_DEFAULTS.
73730         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
73731         * m4/time_r.m4 (gl_TIME_R): Likewise.
73732         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
73733
73734 2007-03-01  Bruno Haible  <bruno@clisp.org>
73735
73736         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
73737         * m4/utimens.m4 (gl_UTIMENS): Likewise.
73738
73739 2007-03-01  Jim Meyering  <jim@meyering.net>
73740
73741         * modules/xreadlink (Maintainer): Add my name.
73742         * modules/xreadlink-with-size (Depends-on): Alphabetize.
73743
73744 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
73745             Bruno Haible  <bruno@clisp.org>
73746
73747         * build-aux/install-reloc: Compile also c-ctype.c.
73748         * build-aux/relocatable.sh.in: New file.
73749         * doc/relocatable.texi: New file.
73750         * doc/relocatable-maint.texi: New file.
73751         * doc/gnulib.texi: Include relocatable-maint.texi.
73752         * lib/progreloc.c: Include unistd.h unconditionally.
73753         * lib/relocwrapper.c: Include unistd.h unconditionally.
73754         Include c-ctype.h.
73755         (add_dotbin): Use c_tolower.
73756         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
73757         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
73758         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
73759         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
73760         to m4/relocatable-lib.m4.
73761         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
73762         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
73763         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
73764         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
73765         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
73766         * modules/relocatable: New file.
73767         * modules/relocatable-lib: New file.
73768         * modules/relocatable-script: New file.
73769
73770 2007-02-28  Bruno Haible  <bruno@clisp.org>
73771
73772         Import --enable-relocatable infrastructure.
73773         * build-aux/config.libpath: New file, from GNU gettext.
73774         * build-aux/install-reloc: New file, from GNU gettext.
73775         * build-aux/reloc-ldflags: New file, from GNU gettext.
73776         * lib/relocatable.h: New file, from GNU gettext.
73777         * lib/relocatable.c: New file, from GNU gettext.
73778         * lib/relocwrapper.c: New file, from GNU gettext.
73779         * m4/relocatable.m4: New file, from GNU gettext.
73780
73781 2007-02-28  Bruno Haible  <bruno@clisp.org>
73782
73783         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
73784
73785         * modules/xreadlink: New file, from GNU gettext with modifications.
73786         * lib/xreadlink.c: New file, from GNU gettext.
73787         * lib/xreadlink.h: Add comments.
73788         (xreadlink): New declaration.
73789
73790         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
73791         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
73792         lib/xreadlink-with-size.c.
73793         (configure.ac): Remove gl_XREADLINK invocation.
73794         (Makefile.am): Augment lib_SOURCES.
73795         * m4/xreadlink.m4: Remove file.
73796         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
73797         (xreadlink_with_size): Renamed from xreadink.
73798         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
73799         * modules/canonicalize (Depends-on): Replace xreadlink with
73800         xreadlink-with-size.
73801         * lib/canonicalize.c (canonicalize_filename_mode): Update.
73802
73803 2007-02-25  Jim Meyering  <jim@meyering.net>
73804
73805         * build-aux/announce-gen: When complaining about excess arguments,
73806         list them.
73807
73808 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73809
73810         * README: Document signed integer overflow situation more
73811         accurately.
73812
73813 2007-02-25  Bruno Haible  <bruno@clisp.org>
73814
73815         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
73816         'a' or 'A' conversion.
73817
73818 2007-02-25  Bruno Haible  <bruno@clisp.org>
73819
73820         * modules/filename: Renamed from modules/pathname.
73821         (Files): Replace lib/pathname.h with lib/filename.h. Replace
73822         lib/concatpath.c with lib/concat-filename.c.
73823         (Makefile.am): Update.
73824         (Include): Replace pathname.h with filename.h.
73825         * lib/filename.h: Renamed from lib/pathname.h.
73826         (concatenated_filename): Renamed from concatenated_pathname.
73827         * lib/concat-filename.c: Renamed from lib/concatpath.c.
73828         (concatenated_filename): Renamed from concatenated_pathname.
73829         * lib/findprog.c: Include filename.h instead of pathname.h.
73830         (find_in_path): Update.
73831         * lib/javacomp.c: Include filename.h instead of pathname.h.
73832         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
73833         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
73834         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
73835         is_oldgcj_14_13_usable, is_javac_usable): Update.
73836         * lib/javaexec.c: Include filename.h instead of pathname.h.
73837         (execute_java_class): Update.
73838         * modules/findprog: Update.
73839         * modules/javacomp: Update.
73840         * modules/javaexec: Update.
73841         * MODULES.html.sh (File system functions): Add 'filename', remove
73842         'pathname'.
73843
73844 2007-02-25  Bruno Haible  <bruno@clisp.org>
73845
73846         * modules/printf-frexpl-tests: New file.
73847         * tests/test-printf-frexpl.c: New file.
73848
73849         * modules/printf-frexpl: New file.
73850         * lib/printf-frexpl.h: New file.
73851         * lib/printf-frexpl.c: New file.
73852         * m4/printf-frexpl.m4: New file.
73853
73854 2007-02-25  Bruno Haible  <bruno@clisp.org>
73855
73856         * modules/printf-frexp-tests: New file.
73857         * tests/test-printf-frexp.c: New file.
73858
73859         * modules/printf-frexp: New file.
73860         * lib/printf-frexp.h: New file.
73861         * lib/printf-frexp.c: New file.
73862         * m4/printf-frexp.m4: New file.
73863
73864 2007-02-25  Bruno Haible  <bruno@clisp.org>
73865
73866         Assume automake >= 1.10 for the tests.
73867         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
73868         * modules/arctwo-tests: Likewise.
73869         * modules/argp-tests: Likewise.
73870         * modules/avltree-list-tests: Likewise.
73871         * modules/avltree-oset-tests: Likewise.
73872         * modules/avltreehash-list-tests: Likewise.
73873         * modules/carray-list-tests: Likewise.
73874         * modules/crc-tests: Likewise.
73875         * modules/des-tests: Likewise.
73876         * modules/gc-arcfour-tests: Likewise.
73877         * modules/gc-arctwo-tests: Likewise.
73878         * modules/gc-des-tests: Likewise.
73879         * modules/gc-hmac-md5-tests: Likewise.
73880         * modules/gc-hmac-sha1-tests: Likewise.
73881         * modules/gc-md2-tests: Likewise.
73882         * modules/gc-md4-tests: Likewise.
73883         * modules/gc-md5-tests: Likewise.
73884         * modules/gc-pbkdf2-sha1-tests: Likewise.
73885         * modules/gc-rijndael-tests: Likewise.
73886         * modules/gc-sha1-tests: Likewise.
73887         * modules/gc-tests: Likewise.
73888         * modules/getaddrinfo-tests: Likewise.
73889         * modules/hmac-md5-tests: Likewise.
73890         * modules/hmac-sha1-tests: Likewise.
73891         * modules/linked-list-tests: Likewise.
73892         * modules/linkedhash-list-tests: Likewise.
73893         * modules/lock-tests: Likewise.
73894         * modules/md2-tests: Likewise.
73895         * modules/md4-tests: Likewise.
73896         * modules/md5-tests: Likewise.
73897         * modules/rbtree-list-tests: Likewise.
73898         * modules/rbtree-oset-tests: Likewise.
73899         * modules/rbtreehash-list-tests: Likewise.
73900         * modules/read-file-tests: Likewise.
73901         * modules/rijndael-tests: Likewise.
73902         * modules/stdint-tests: Likewise.
73903         * modules/tls-tests: Likewise.
73904
73905 2007-02-24  Bruno Haible  <bruno@clisp.org>
73906
73907         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
73908         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
73909         function; instead check whether isnan with a double argument links.
73910         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
73911         function; instead check whether isnan with a 'long double' argument
73912         links.
73913         Reported by Eric Blake <ebb9@byu.net>.
73914
73915 2007-02-24  Bruno Haible  <bruno@clisp.org>
73916
73917         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
73918         defined.
73919         * lib/isnanl.c: Remove all code. Just include isnan.c.
73920         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
73921
73922 2007-02-25  Jim Meyering  <jim@meyering.net>
73923
73924         Avoid conflicting types for 'unsetenv' on FreeBSD.
73925         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
73926         conflicting with FreeBSD's (5.0 and 6.1) function declaration
73927         in stdlib.h.
73928
73929 2007-02-24  Bruno Haible  <bruno@clisp.org>
73930
73931         * modules/isnanl-nolibm-tests: New file.
73932         * tests/test-isnanl.c: New file.
73933
73934         * modules/isnanl-nolibm: New file.
73935         * lib/isnanl.h: New file.
73936         * lib/isnanl.c: New file.
73937         * m4/isnanl.m4: New file.
73938
73939 2007-02-24  Bruno Haible  <bruno@clisp.org>
73940
73941         * modules/isnan-nolibm-tests: New file.
73942         * tests/test-isnan.c: New file.
73943
73944         * modules/isnan-nolibm: New file.
73945         * lib/isnan.h: New file.
73946         * lib/isnan.c: New file.
73947         * m4/isnan.m4: New file.
73948
73949 2007-02-24  Bruno Haible  <bruno@clisp.org>
73950
73951         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
73952         assume that an exponent fits in 20 bits.
73953
73954 2007-02-24  Jim Meyering  <jim@meyering.net>
73955
73956         * m4/regex.m4: Update the description of the configure-time option,
73957         --without-included-regex, to state accurately what the defaults are,
73958         and perhaps to give people an idea why using this option is risky.
73959
73960 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73961
73962         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
73963         loops on small arguments.  This attempts to avoid the problem
73964         Bruno Haible reported for AIX 4.3.2 in
73965         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
73966
73967 2007-02-23  Bruno Haible  <bruno@clisp.org>
73968
73969         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
73970         Needed for help2man.
73971
73972 2007-02-23  Karl Berry  <karl@gnu.org>
73973
73974         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
73975         exists, foo.h should be cvs-ignored, not committed.
73976
73977 2007-02-23  Eric Blake  <ebb9@byu.net>
73978
73979         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
73980         * lib/stat-time.h (includes): Likewise.
73981         * lib/utimecmp.c (includes): Likewise.
73982         * lib/utimens.h (includes): Likewise.
73983         * lib/getdate.y (includes): Also include "timespec.h" for use
73984         internal to the module.
73985         * modules/utimens (Depends-on): Revert yesterday's patch.
73986         * modules/nanosleep (Depends-on): Add missing dependency.
73987
73988 2007-02-22  Bruno Haible  <bruno@clisp.org>
73989
73990         * lib/glob.c: Don't include getlogin_r.h.
73991
73992 2007-02-22  Jim Meyering  <jim@meyering.net>
73993
73994         * modules/utimens (Depends-on): Add timespec, required for
73995         utimens.h's inclusion of timespec.h.
73996
73997 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
73998
73999         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
74000         long unreadable paths in GNU/Linux.  Problem reported by Andreas
74001         Schwab in
74002         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
74003         I'll try to think of a better way to fix the Solaris problem.
74004
74005         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
74006         like glibc; on Solaris 10, it fails with errno == EINVAL.
74007         POSIX says the behavior is unspecified if the first argument is NULL,
74008         so play it safe and never pass NULL to the system getcwd.
74009
74010 2007-02-21  Jim Meyering  <jim@meyering.net>
74011
74012         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
74013         of gettimeofday.  It would conflict with the one now always
74014         provided via sys_time_.h.  Reported by Matthew Woehlke, as
74015         an IRIX 6.5 build failure.
74016
74017 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74018
74019         Minor fixups to port to Solaris 10 with Sun C 5.8.
74020         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
74021         * modules/getcwd (Depends-on): Add dirfd.
74022         * lib/putenv.c (putenv): #undef it.
74023         (rpl_putenv): New decl.
74024         (malloc, free): Include <stdlib.h> rather than prototyping separately.
74025
74026 2007-02-20  Bruno Haible  <bruno@clisp.org>
74027
74028         * modules/stdio-tests: New file.
74029         * tests/test-stdio.c: New file.
74030
74031         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
74032         (Depends-on): Add stdio.
74033         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
74034         (Include): Use <stdio.h> instead of vsnprintf.h.
74035         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
74036         HAVE_DECL_VSNPRINTF.
74037         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
74038
74039         * modules/snprintf (Files): Remove lib/snprintf.h.
74040         (Depends-on): Add stdio.
74041         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
74042         (Include): Use <stdio.h> instead of snprintf.h.
74043         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
74044         HAVE_DECL_SNPRINTF.
74045         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
74046         * lib/getaddrinfo.c: Likewise.
74047
74048         * modules/stdio: New file.
74049         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
74050         * lib/snprintf.h: Remove file.
74051         * lib/vsnprintf.h: Remove file.
74052         * lib/.cppi-disable: Remove snprintf.h.
74053         * m4/stdio_h.m4: New file.
74054         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
74055
74056 2007-02-20  Jim Meyering  <jim@meyering.net>
74057
74058         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
74059         used by e.g., mingw.  From Bruno Haible.
74060
74061 2007-02-19  Bruno Haible  <bruno@clisp.org>
74062
74063         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
74064         warnings.
74065         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74066
74067 2007-02-19  Bruno Haible  <bruno@clisp.org>
74068
74069         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
74070         from mingw users.
74071
74072 2007-02-19  Bruno Haible  <bruno@clisp.org>
74073
74074         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
74075         warnings.
74076         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
74077
74078 2007-02-19  Jim Meyering  <jim@meyering.net>
74079
74080         Don't use FD after a successful "fdopendir (fd)".
74081         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
74082         Reset it by calling dirfd on the just-obtained DIR*.
74083
74084         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
74085         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
74086
74087 2007-02-18  Bruno Haible  <bruno@clisp.org>
74088
74089         * lib/readlink.c: Include <unistd.h>.
74090         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
74091         HAVE_READLINK.
74092         * modules/readlink (Depends-on): Add unistd.
74093         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74094         (Include): Add <unistd.h>.
74095
74096         * lib/getlogin_r.h: Remove file.
74097         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
74098         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
74099         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
74100         HAVE_DECL_GETLOGIN_R.
74101         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
74102         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74103         (Include): Use <unistd.h> instead of getlogin_r.h.
74104
74105         * lib/getcwd.h: Remove file.
74106         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
74107         * lib/xgetcwd.c: Likewise.
74108         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
74109         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
74110         * modules/getcwd (Files): Remove lib/getcwd.h.
74111         (Depends-on): Add unistd.
74112         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74113         (Include): Use <unistd.h> instad of getcwd.h.
74114
74115         * lib/ftruncate.c: Include <unistd.h> first.
74116         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
74117         Set HAVE_FTRUNCATE.
74118         * modules/ftruncate (Depends-on): Add unistd.
74119         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74120
74121         * lib/fchdir.c: Include <unistd.h> first.
74122         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
74123         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
74124         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
74125         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74126         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
74127
74128         * lib/dup2.c: Include <unistd.h> first.
74129         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
74130         HAVE_DUP2.
74131         * modules/dup2 (Depends-on): Add unistd.
74132         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74133
74134         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
74135         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
74136         REPLACE_CHOWN. Don't define chown as a macro here.
74137         * modules/chown (Depends-on): Add unistd.
74138         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74139
74140         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
74141         Add definition for GL_LINK_WARNING.
74142         (chown, dup2): New declarations.
74143         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
74144         link warning.
74145         (ftruncate): New declaration.
74146         (getcwd): New declaration, taken from old getcwd.h.
74147         (getlogin_r): New declaration, taken from old getlogin_r.h.
74148         (readlink): New declaration.
74149         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
74150         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
74151         (gl_PREREQ_UNISTD): Remove macro.
74152         (gl_UNISTD_MODULE_INDICATOR): New macro.
74153         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
74154         many new variables. Don't set UNISTD_H.
74155         * modules/unistd (Description): Change.
74156         (Depends-on): Add link-warning.
74157         (configure.ac): Update.
74158         (Makefile.am): Create unistd.h always. Substitute many new variables
74159         into it.
74160
74161 2007-02-18  Bruno Haible  <bruno@clisp.org>
74162
74163         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
74164         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
74165         HAVE_GETSUBOPT.
74166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
74167         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
74168         * lib/getsubopt.h: Remove file.
74169         * modules/getsubopt (Files): Remove lib/getsubopt.h.
74170         (Depends-on): Add stdlib.
74171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74172         (Includes): Use <stdlib.h> instead of getsubopt.h.
74173         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
74174         Set HAVE_GETSUBOPT.
74175         * lib/getsubopt.c: Don't include getsubopt.h.
74176
74177 2007-02-18  Bruno Haible  <bruno@clisp.org>
74178
74179         * modules/fchdir (Depends-on): Add dup2.
74180
74181 2007-02-18  Bruno Haible  <bruno@clisp.org>
74182
74183         * lib/stdlib_.h: Handle glibc's special invocation convention
74184         specially.
74185
74186 2007-02-18  Bruno Haible  <bruno@clisp.org>
74187
74188         * modules/stdlib-tests: New file.
74189         * tests/test-stdlib.c: New file.
74190
74191         * modules/mkstemp (Files): Remove lib/mkstemp.h.
74192         (Depends-on): Add stdlib.
74193         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74194         (Includes): Use <stdlib.h> instead of mkstemp.h.
74195         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74196         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
74197         * lib/mkstemp.c: Don't include mkstemp.h.
74198         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
74199         * lib/stdlib--.h: Don't include mkstemp.h.
74200
74201         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
74202         (Depends-on): Add stdlib.
74203         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74204         (Includes): Use <stdlib.h> instead of mkdtemp.h.
74205         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
74206         HAVE_MKDTEMP.
74207         * lib/mkdtemp.c: Don't include mkdtemp.h.
74208         * lib/clean-temp.c: Don't include mkdtemp.h.
74209
74210         * modules/exit (Files): Remove lib/exit.h.
74211         (Depends-on): Add stdlib.
74212         (Makefile.am): Remove lib_SOURCES.
74213         (Include): Use <stdlib.h> instead of exit.h.
74214         * lib/argmatch.c: Don't include exit.h.
74215         * lib/execute.c: Likewise.
74216         * lib/pagealign_alloc.c: Likewise.
74217         * lib/pipe.c: Likewise.
74218         * lib/wait-process.c: Likewise.
74219         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
74220         * lib/exitfail.c: Likewise.
74221         * lib/savewd.c: Likewise.
74222         * lib/xsetenv.c: Likewise.
74223
74224         * modules/stdlib: New file.
74225         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
74226         and extra comments about mkstemp().
74227         * lib/exit.h: Remove file.
74228         * lib/mkdtemp.h: Remove file.
74229         * lib/mkstemp.h: Remove file.
74230         * m4/stdlib_h.m4: New file.
74231         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
74232
74233 2007-02-18  Bruno Haible  <bruno@clisp.org>
74234
74235         * modules/math-tests: New file.
74236         * tests/test-math.c: New file.
74237
74238         * modules/math: New file.
74239         * modules/mathl (Files): Remove lib/mathl.h.
74240         (Depends-on): Add math.
74241         (Makefile.am): Don't mention mathl.h.
74242         (Include): Use <math.h> instead of mathl.h.
74243         * lib/math_.h: New file.
74244         * lib/mathl.h: Remove file.
74245         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
74246         mathl.h.
74247         * lib/asinl.c: Likewise.
74248         * lib/atanl.c: Likewise.
74249         * lib/ceill.c: Likewise.
74250         * lib/cosl.c: Likewise.
74251         * lib/expl.c: Likewise.
74252         * lib/floorl.c: Likewise.
74253         * lib/frexpl.c: Likewise.
74254         * lib/ldexpl.c: Likewise.
74255         * lib/logl.c: Likewise.
74256         * lib/sincosl.c: Likewise.
74257         * lib/sinl.c: Likewise.
74258         * lib/sqrtl.c: Likewise.
74259         * lib/tanl.c: Likewise.
74260         * lib/trigl.c: Likewise.
74261         * m4/math_h.m4: New file.
74262         * MODULES.html.sh (Mathematics): Add math.
74263
74264 2007-02-17  Bruno Haible  <bruno@clisp.org>
74265
74266         * modules/wctype-tests: New file.
74267         * tests/test-wctype.c: New file.
74268
74269         * modules/wchar-tests: New file.
74270         * tests/test-wchar.c: New file.
74271
74272         * modules/unistd-tests: New file.
74273         * tests/test-unistd.c: New file.
74274
74275         * modules/time-tests: New file.
74276         * tests/test-time.c: New file.
74277
74278         * modules/sysexits-tests: New file.
74279         * tests/test-sysexits.c: New file.
74280
74281         * modules/sys_time-tests: New file.
74282         * tests/test-sys_time.c: New file.
74283
74284         * modules/sys_stat-tests: New file.
74285         * tests/test-sys_stat.c: New file.
74286
74287         * modules/sys_socket-tests: New file.
74288         * tests/test-sys_socket.c: New file.
74289
74290         * modules/sys_select-tests: New file.
74291         * tests/test-sys_select.c: New file.
74292
74293         * modules/string-tests: New file.
74294         * tests/test-string.c: New file.
74295
74296         * modules/stdbool-tests: New file.
74297         * tests/test-stdbool.c: New file.
74298
74299         * modules/netinet_in-tests: New file.
74300         * tests/test-netinet_in.c: New file.
74301
74302         * modules/inttypes-tests: New file.
74303         * tests/test-inttypes.c: New file.
74304
74305         * modules/fcntl-tests: New file.
74306         * tests/test-fcntl.c: New file.
74307
74308         * modules/byteswap-tests: New file.
74309         * tests/test-byteswap.c: New file.
74310
74311         * modules/arpa_inet-tests: New file.
74312         * tests/test-arpa_inet.c: New file.
74313
74314 2007-02-17  Bruno Haible  <bruno@clisp.org>
74315
74316         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
74317         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
74318         if the corresponding module is not enabled. Emit link warnings if
74319         the function is used nevertheless.
74320         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
74321         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
74322         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
74323         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
74324         * modules/inttypes (Depends-on): Add link-warning.
74325         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74326         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
74327         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
74328         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
74329         * modules/imaxdiv (configure.ac): Likewise.
74330         * modules/strtoimax (configure.ac): Likewise.
74331         * modules/strtoumax (configure.ac): Likewise.
74332
74333 2007-02-17  Bruno Haible  <bruno@clisp.org>
74334
74335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
74336         gl_STRING_MODULE_INDICATOR_DEFAULTS.
74337         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
74338         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
74339
74340 2007-02-17  Bruno Haible  <bruno@clisp.org>
74341
74342         * modules/link-warning: New file.
74343         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
74344         * lib/string_.h (GL_LINK_WARNING): Remove definition.
74345         * modules/string (Depends-on): Add link-warning.
74346         (Makefile.am): Copy the contents of build-aux/link-warning.h into
74347         string.h.
74348         * MODULES.html.sh (Support for building libraries and executables): Add
74349         link-warning.
74350
74351 2007-02-17  Bruno Haible  <bruno@clisp.org>
74352
74353         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
74354         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
74355         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
74356         long lines.
74357
74358 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
74359             Bruno Haible  <bruno@clisp.org>
74360
74361         * modules/tmpfile: New file.
74362         * lib/tmpfile.c: New file.
74363         * m4/tmpfile.m4: New file.
74364         * MODULES.html.sh (func_all_modules): New section "Input/output".
74365
74366 2007-02-15  Bruno Haible  <bruno@clisp.org>
74367
74368         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
74369         (supports_delete_on_close): New function.
74370         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
74371
74372 2007-02-14  Bruno Haible  <bruno@clisp.org>
74373
74374         * modules/mbspcasecmp-tests: New file.
74375         * tests/test-mbspcasecmp.sh: New file.
74376         * tests/test-mbspcasecmp.c: New file.
74377
74378         New module mbspcasecmp.
74379         * modules/mbspcasecmp: New file.
74380         * lib/mbspcasecmp.c: New file.
74381         * lib/string_.h (strncasecmp): Change warning message.
74382         (mbspcasecmp): New declaration.
74383         * m4/mbspcasecmp.m4: New file.
74384         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74385         GNULIB_MBSPCASECMP.
74386         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
74387         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
74388
74389 2007-02-14  Bruno Haible  <bruno@clisp.org>
74390
74391         * modules/mbsncasecmp-tests: New file.
74392         * tests/test-mbsncasecmp.sh: New file.
74393         * tests/test-mbsncasecmp.c: New file.
74394
74395         New module mbsncasecmp.
74396         * modules/mbsncasecmp: New file.
74397         * lib/mbsncasecmp.c: New file.
74398         * lib/string_.h (mbsncasecmp): New declaration.
74399         * m4/mbsncasecmp.m4: New file.
74400         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74401         GNULIB_MBSNCASECMP.
74402         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
74403         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
74404
74405 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
74408         Verify that it doesn't overlap with our flags.
74409         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
74410         do not have the desired effect in multibyte locales; instead, use
74411         mbscasecmp.
74412         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
74413         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
74414         we don't require GNU fnmatch ourselves (if our users require it, they
74415         should do so explicitly).
74416
74417         Fix regex code so it doesn't rely on strcasecmp.
74418         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
74419         Otherwise, include gnulib's langinfo.h.
74420         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
74421         undesirable behavior in non-C locales.  Instead, rely on localecharset.
74422         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
74423         * modules/regex (FILES): Remove m4/codeset.m4.
74424         (Depends-on): Add localcharset.  Remove strcase.
74425
74426 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74427
74428         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
74429         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
74430
74431 2007-02-13  Bruno Haible  <bruno@clisp.org>
74432
74433         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
74434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74435
74436 2007-02-12  Bruno Haible  <bruno@clisp.org>
74437
74438         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74439         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
74440         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
74441         time warning rather than a link error.
74442
74443 2007-02-12  Bruno Haible  <bruno@clisp.org>
74444
74445         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
74446         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
74447         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74448
74449 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74450
74451         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
74452         args, not 2.
74453
74454 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
74455
74456         New module 'time', so that apps can include <time.h> as per
74457         POSIX and GNU instead of separate include files like time_r.h
74458         and timegm.h.  This implementation tries out a simpler approach
74459         for replacing decls in standard include files (as compared to
74460         the string module), somewhat as an experiment.
74461
74462         * config/srclist.txt: Comment out mktime.c for now.
74463         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
74464         since it doesn't apply any more.  Use generic wording instead.
74465         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
74466         'time'.
74467         * lib/time_.h, m4/time_h.m4, modules/time: New files.
74468         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
74469         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
74470         Don't include <sys/types.h>; no longer needed since we assume C89.
74471         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
74472         * lib/strftime.c: Likewise.
74473         * lib/time_r.c: Likewise.
74474         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
74475         * lib/nanosleep.c: Include <time.h> first, to check interface.
74476         * lib/strptime.c: Likewise.
74477         * lib/time_r.c: Likewise.
74478         * lib/timegm.c: Likewise.
74479         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
74480         needed.
74481         * lib/timegm.c: Don't include timegm.h; no longer needed.
74482         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
74483         time.h now handles any problems in that area.
74484         (struct timespec, nanosleep): Remove; time.h now arranges for these.
74485         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
74486         that time.h defines struct timespec.
74487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
74488         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
74489         handles that.
74490         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
74491         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
74492         needed.  Set REPLACE_LOCALTIME.
74493         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
74494         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
74495         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
74496         nanosleep; time_h.m4 now does that.  Don't require
74497         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
74498         module handles this now.
74499         * modules/getdate (Depends-on): Remove timespec.  Add time.
74500         * modules/nanosleep (Depends-on): Likewise.
74501         * modules/stat-time (Depends-on): Likewise.
74502         * modules/nanosleep (Include): Include time.h, not timespec.h.
74503         * modules/strptime (Files): Remove lib/strptime.h.
74504         (Depends-on): Add extensions, time.
74505         (Include): Include time.h, not strptime.h.
74506         * modules/time_r (Files): Remove lib/time_r.h.
74507         (Depends-on): Add time.
74508         (Include): Include time.h, not time_r.h.
74509         * modules/timegm: Likewise.
74510         * modules/timespec (Description): Now does timespec-related decls
74511         of our own, instead of struct timespec itself.
74512         (Depends-on): Add time; remove extensions.
74513         (Maintainer): Add self.
74514         * modules/utimecmp (Depends-on): Add time; remove timespec.
74515         * modules/utimens (Depends-on): Likewise.
74516         * modules/xnanosleep (Depends-on): Likewise.
74517
74518 2007-02-11  Bruno Haible  <bruno@clisp.org>
74519
74520         * lib/c-strstr.c: Include allocsa.h.
74521         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74522         * lib/c-strcasestr.c: Include allocsa.h.
74523         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74524         * lib/strcasestr.c: Include allocsa.h.
74525         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
74526         * lib/mbsstr.c: Include allocsa.h.
74527         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74528         allocsa/freesa instead of malloc/free.
74529         * lib/mbscasestr.c: Include allocsa.h.
74530         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
74531         allocsa/freesa instead of malloc/free.
74532         * modules/c-strstr (Depends-on): Add allocsa.
74533         * modules/c-strcasestr (Depends-on): Likewise.
74534         * modules/strcasestr (Depends-on): Likewise.
74535         * modules/mbsstr (Depends-on): Likewise.
74536         * modules/mbscasestr (Depends-on): Likewise.
74537
74538 2007-02-11  Bruno Haible  <bruno@clisp.org>
74539
74540         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
74541
74542         * modules/mbsspn-tests: New file.
74543         * tests/test-mbsspn.sh: New file.
74544         * tests/test-mbsspn.c: New file.
74545
74546 2007-02-11  Bruno Haible  <bruno@clisp.org>
74547
74548         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
74549
74550         * modules/mbspbrk-tests: New file.
74551         * tests/test-mbspbrk.sh: New file.
74552         * tests/test-mbspbrk.c: New file.
74553
74554 2007-02-11  Bruno Haible  <bruno@clisp.org>
74555
74556         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
74557         unneeded cast.
74558
74559         * modules/mbscspn-tests: New file.
74560         * tests/test-mbscspn.sh: New file.
74561         * tests/test-mbscspn.c: New file.
74562
74563 2007-02-11  Bruno Haible  <bruno@clisp.org>
74564
74565         * modules/mbscasecmp-tests: New file.
74566         * tests/test-mbscasecmp.sh: New file.
74567         * tests/test-mbscasecmp.c: New file.
74568
74569 2007-02-11  Bruno Haible  <bruno@clisp.org>
74570
74571         Ensure O(n) worst-case complexity of mbscasestr.
74572         * lib/mbscasestr.c: Include stdbool.h.
74573         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74574         functions.
74575         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
74576         the bookkeeping indicates that it's worth it.
74577         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
74578
74579         * modules/mbscasestr-tests: New file.
74580         * tests/test-mbscasestr1.c: New file.
74581         * tests/test-mbscasestr2.sh: New file.
74582         * tests/test-mbscasestr2.c: New file.
74583         * tests/test-mbscasestr3.sh: New file.
74584         * tests/test-mbscasestr3.c: New file.
74585         * tests/test-mbscasestr4.sh: New file.
74586         * tests/test-mbscasestr4.c: New file.
74587         * m4/locale-tr.m4: New file.
74588
74589 2007-02-11  Bruno Haible  <bruno@clisp.org>
74590
74591         Ensure O(n) worst-case complexity of mbsstr.
74592         * lib/mbsstr.c: Include stdbool.h.
74593         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
74594         functions.
74595         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
74596         bookkeeping indicates that it's worth it.
74597         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
74598
74599         * modules/mbsstr-tests: New file.
74600         * tests/test-mbsstr1.c: New file.
74601         * tests/test-mbsstr2.sh: New file.
74602         * tests/test-mbsstr2.c: New file.
74603         * tests/test-mbsstr3.sh: New file.
74604         * tests/test-mbsstr3.c: New file.
74605         * m4/locale-fr.m4: New file.
74606
74607 2007-02-11  Bruno Haible  <bruno@clisp.org>
74608
74609         * lib/mbsrchr.c (mbsrchr): Fix bug.
74610
74611         * modules/mbsrchr-tests: New file.
74612         * tests/test-mbsrchr.sh: New file.
74613         * tests/test-mbsrchr.c: New file.
74614
74615 2007-02-11  Bruno Haible  <bruno@clisp.org>
74616
74617         * lib/mbschr.c (mbschr): Fix bug.
74618
74619         * modules/mbschr-tests: New file.
74620         * tests/test-mbschr.sh: New file.
74621         * tests/test-mbschr.c: New file.
74622         * m4/locale-zh.m4: New file.
74623
74624 2007-02-11  Bruno Haible  <bruno@clisp.org>
74625
74626         Support for copying multibyte string iterators.
74627         * lib/mbiter.h: Include <string.h>.
74628         (mbiter_multi_copy): New function.
74629         (mbi_copy): New macro.
74630         * lib/mbuiter.h: Include <string.h>.
74631         (mbuiter_multi_copy): New function.
74632         (mbui_copy): New macro.
74633
74634 2007-02-11  Bruno Haible  <bruno@clisp.org>
74635
74636         New module mbslen.
74637         * modules/mbslen: New file.
74638         * lib/mbslen.c: New file.
74639         * lib/string_.h (mbslen): New declaration.
74640         * m4/mbslen.m4: New file.
74641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74642         GNULIB_MBSLEN.
74643         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
74644         * MODULES.html.sh (Internationalization functions): Add mbslen.
74645
74646 2007-02-11  Bruno Haible  <bruno@clisp.org>
74647
74648         Ensure O(n) worst-case complexity of strcasestr substitute.
74649         * lib/strcasestr.c: Include stdbool.h.
74650         (knuth_morris_pratt): New function.
74651         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74652         bookkeeping indicates that it's worth it.
74653         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
74654
74655         * modules/strcasestr-tests: New file.
74656         * tests/test-strcasestr.c: New file.
74657
74658 2007-02-11  Bruno Haible  <bruno@clisp.org>
74659
74660         Ensure O(n) worst-case complexity of c_strcasestr.
74661         * lib/c-strcasestr.c: Include stdbool.h, string.h.
74662         (knuth_morris_pratt): New function.
74663         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
74664         the bookkeeping indicates that it's worth it.
74665         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
74666
74667         * modules/c-strcasestr-tests: New file.
74668         * tests/test-c-strcasestr.c: New file.
74669
74670 2007-02-11  Bruno Haible  <bruno@clisp.org>
74671
74672         Ensure O(n) worst-case complexity of c_strstr.
74673         * lib/c-strstr.c: Include stdbool.h, string.h.
74674         (knuth_morris_pratt): New function.
74675         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
74676         bookkeeping indicates that it's worth it.
74677         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
74678
74679         * lib/c-strstr.c: Complete rewrite for maintainability.
74680
74681         * modules/c-strstr-tests: New file.
74682         * tests/test-c-strstr.c: New file.
74683
74684 2007-02-11  Bruno Haible  <bruno@clisp.org>
74685
74686         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
74687         5.2.1 and earlier, whereby \055 was treated just like the range
74688         delimiter '-'.
74689         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
74690
74691 2007-02-08  Bruno Haible  <bruno@clisp.org>
74692
74693         * modules/regex (Depends-on): Add stdbool.
74694         Reported by Dalibor Topic <robilad@kaffe.org>.
74695
74696 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74697
74698         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
74699         Prefer returning from main to exiting from it.
74700         Remove unnecessary parens after sizeof.
74701
74702 2007-02-05  Bruno Haible  <bruno@clisp.org>
74703
74704         New module mbssep.
74705         * modules/mbssep: New file.
74706         * lib/mbssep.c: New file.
74707         * lib/string_.h (strsep): Add a conditional link warning.
74708         (mbssep): New declaration.
74709         * m4/mbssep.m4: New file.
74710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74711         GNULIB_MBSSEP.
74712         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
74713         * MODULES.html.sh (Internationalization functions): Add mbssep.
74714
74715 2007-02-05  Bruno Haible  <bruno@clisp.org>
74716
74717         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
74718         Optimize search in case of 1 delimiter.
74719
74720 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74721
74722         * lib/acl.h: Include sys/types.h before sys/acl.h.
74723
74724 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
74725
74726         Merge upstream fix for glibc bugzilla #3957:
74727
74728         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
74729
74730         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
74731         bit for RE_HAT_LISTS_NOT_NEWLINE.
74732         (build_charclass_op): Remove bogus comment.
74733
74734 2007-02-05  Simon Josefsson  <simon@josefsson.org>
74735
74736         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
74737
74738 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74739
74740         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
74741         * lib/memmem.c [!defined _LIBC]: Include config.h.
74742
74743 2007-02-04  Bruno Haible  <bruno@clisp.org>
74744
74745         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
74746         warning message.
74747
74748 2007-02-04  Bruno Haible  <bruno@clisp.org>
74749
74750         New module mbstok_r.
74751         * modules/mbstok_r: New file.
74752         * lib/mbstok_r.c: New file.
74753         * lib/string_.h (strtok_r): Change argument names to match the
74754         comments. Add a conditional link warning.
74755         (mbstok_r): New declaration.
74756         * m4/mbstok_r.m4: New file.
74757         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74758         GNULIB_MBSTOK_R.
74759         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
74760         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
74761
74762 2007-02-04  Bruno Haible  <bruno@clisp.org>
74763
74764         New module mbsspn.
74765         * modules/mbsspn: New file.
74766         * lib/mbsspn.c: New file.
74767         * lib/string_.h (strspn): Add a conditional link warning.
74768         (mbsspn): New declaration.
74769         * m4/mbsspn.m4: New file.
74770         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74771         GNULIB_MBSSPN.
74772         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
74773         * MODULES.html.sh (Internationalization functions): Add mbsspn.
74774
74775 2007-02-04  Bruno Haible  <bruno@clisp.org>
74776
74777         New module mbspbrk.
74778         * modules/mbspbrk: New file.
74779         * lib/mbspbrk.c: New file.
74780         * lib/string_.h (strpbrk): Add a conditional link warning.
74781         (mbspbrk): New declaration.
74782         * m4/mbspbrk.m4: New file.
74783         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74784         GNULIB_MBSPBRK.
74785         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
74786         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
74787
74788 2007-02-04  Bruno Haible  <bruno@clisp.org>
74789
74790         New module mbscspn.
74791         * modules/mbscspn: New file.
74792         * lib/mbscspn.c: New file.
74793         * lib/string_.h (strcspn): Add a conditional link warning.
74794         (mbscspn): New declaration.
74795         * m4/mbscspn.m4: New file.
74796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74797         GNULIB_MBSCSPN.
74798         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
74799         * MODULES.html.sh (Internationalization functions): Add mbscspn.
74800
74801 2007-02-04  Bruno Haible  <bruno@clisp.org>
74802
74803         New module mbscasestr, reduced goal of strcasestr.
74804         * modules/mbscasestr: New file.
74805         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
74806         (mbscasestr): Renamed from strcasestr.
74807         * lib/strcasestr.c: Don't include mbuiter.h.
74808         (strcasestr): Remove support for multibyte locales.
74809         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
74810         Change the conditional link warning.
74811         (mbscasestr): New declaration.
74812         * m4/mbscasestr.m4: New file.
74813         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
74814         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
74815         REPLACE_STRCASESTR.
74816         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
74817         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74818         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74819         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
74820         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
74821         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
74822         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
74823         (Depends-on): Remove mbuiter.
74824         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
74825
74826 2007-02-04  Bruno Haible  <bruno@clisp.org>
74827
74828         Simplify handling of strncasecmp.
74829         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
74830         the conditional link warning.
74831         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
74832         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
74833         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
74834         * modules/strcase (configure.ac): Don't invoke
74835         gl_STRING_MODULE_INDICATOR.
74836         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
74837
74838 2007-02-04  Bruno Haible  <bruno@clisp.org>
74839
74840         New module mbscasecmp, reduced goal of strcasecmp.
74841         * modules/mbscasecmp: New file.
74842         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
74843         (mbscasecmp): Renamed from strcasecmp.
74844         * lib/strcasecmp.c: Don't include mbuiter.h.
74845         (strcasecmp): Remove support for multibyte locales.
74846         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
74847         Change the conditional link warning.
74848         (mbscasecmp): New declaration.
74849         * m4/mbscasecmp.m4: New file.
74850         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
74851         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
74852         REPLACE_STRCASECMP.
74853         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
74854         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74855         GNULIB_MBSCASECMP.
74856         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
74857         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
74858         * modules/strcase (Files): Remove m4/mbrtowc.m4.
74859         (Depends-on): Remove mbuiter.
74860         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
74861
74862 2007-02-04  Bruno Haible  <bruno@clisp.org>
74863
74864         New module mbsstr. Remove module strstr.
74865         * modules/mbsstr: New file.
74866         * modules/strstr: Remove file.
74867         * lib/mbsstr.c: Renamed from lib/strstr.c.
74868         (mbsstr): Renamed from strstr.
74869         * lib/string_.h (strstr): Remove declaration. Change the conditional
74870         link warning.
74871         (mbsstr): New declaration.
74872         * m4/mbsstr.m4: New file.
74873         * m4/strstr.m4: Remove file.
74874         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
74875         REPLACE_STRSTR.
74876         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
74877         Don't initialize GNULIB_STRSTR.
74878         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
74879         substitute GNULIB_STRSTR and REPLACE_STRSTR.
74880         * MODULES.html.sh (Internationalization functions): Add mbsstr.
74881         (Support for systems lacking ANSI C 89): Remove strstr.
74882
74883 2007-02-04  Bruno Haible  <bruno@clisp.org>
74884
74885         New module mbsrchr.
74886         * modules/mbsrchr: New file.
74887         * lib/mbsrchr.c: New file.
74888         * lib/string_.h (strrchr): Add a conditional link warning.
74889         (mbsrchr): New declaration.
74890         * m4/mbsrchr.m4: New file.
74891         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74892         GNULIB_MBSRCHR.
74893         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
74894         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
74895
74896 2007-02-04  Bruno Haible  <bruno@clisp.org>
74897
74898         New module mbschr.
74899         * modules/mbschr: New file.
74900         * lib/mbschr.c: New file.
74901         * lib/string_.h (strchr): Add a conditional link warning.
74902         (mbschr): New declaration.
74903         * m4/mbschr.m4: New file.
74904         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
74905         GNULIB_MBSCHR.
74906         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
74907         * MODULES.html.sh (Internationalization functions): Add mbschr.
74908
74909 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
74910
74911         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
74912
74913         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
74914
74915 2007-02-04  Bruno Haible  <bruno@clisp.org>
74916
74917         New module description section 'configure.ac-early'.
74918         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
74919         (func_get_autoconf_early_snippet): New function.
74920         (func_import, func_create_testdir): Use it. Remove special cases for
74921         modules 'extensions' and 'lock'.
74922         * modules/extensions (configure.ac-early): Require
74923         gl_USE_SYSTEM_EXTENSIONS.
74924         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
74925
74926 2007-02-04  Bruno Haible  <bruno@clisp.org>
74927
74928         Make use of gcj-4.3's -fsource and -ftarget option.
74929         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
74930         and if so try the options -fsource and -ftarget.
74931         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
74932         source_version, ftarget_option, target_version arguments.
74933         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
74934         (is_envjavac_oldgcj_14_14_usable): Renamed from
74935         is_envjavac_gcj_14_14_usable.
74936         (is_envjavac_oldgcj_14_13_usable): Renamed from
74937         is_envjavac_gcj_14_13_usable.
74938         (is_gcj_present): Update.
74939         (is_gcj_43, is_gcj43_usable): New functions.
74940         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
74941         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
74942         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
74943         try the options -fsource and -ftarget.
74944
74945 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74946
74947         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
74948         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
74949         larger value.
74950
74951 2007-02-03  Jim Meyering  <jim@meyering.net>
74952
74953         Give tools a better chance to allocate space for very large buffers.
74954         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
74955
74956         Make pwd and readlink work also when run with an unreadable parent dir
74957         on systems with openat support.
74958         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
74959         provided getcwd function, even when we have openat support.
74960         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
74961
74962 2007-02-02  Bruno Haible  <bruno@clisp.org>
74963
74964         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
74965         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
74966         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
74967         portability problems if one of these functions is only used on specific
74968         platforms.
74969         Reported by Paul Eggert.
74970
74971 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
74972
74973         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
74974         is causing more trouble than it's curing.
74975         * lib/regex_internal.h (__mempcpy): Remove.
74976         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
74977         (and make the code a tad smaller to boot).
74978         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
74979
74980 2007-02-02  Jim Meyering  <jim@meyering.net>
74981
74982         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
74983         section, not in the Makefile.am: one.
74984
74985 2007-02-02  Eric Blake  <ebb9@byu.net>
74986
74987         * lib/strchrnul.c: Always include config.h first.
74988
74989         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
74990         gnulib strstr is not necessary here.
74991
74992 2007-02-02  Simon Josefsson  <simon@josefsson.org>
74993
74994         * m4/socklen.m4: Fix typo.
74995
74996 2007-02-02  Eric Blake  <ebb9@byu.net>
74997
74998         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
74999         * modules/netinet_in (Makefile.am): Likewise.
75000
75001 2007-02-01  Bruno Haible  <bruno@clisp.org>
75002
75003         * lib/string_.h (GL_LINK_WARNING): New macro.
75004         (strcasecmp, strstr, strcasestr): If provided by the system,
75005         conditionally define as a macro that leads to a warning instead of to
75006         an error.
75007         (strncasecmp): Conditionally define as a macro that leads to a warning.
75008
75009 2007-02-01  Karl Berry  <karl@gnu.org>
75010
75011         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
75012
75013 2007-02-01  Bruno Haible  <bruno@clisp.org>
75014
75015         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
75016         renamings.
75017
75018 2007-02-01  Eric Blake  <ebb9@byu.net>
75019
75020         * modules/regex (Depends-on): Revert dependence on mempcpy.
75021         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
75022         module's definition of mempcpy.
75023         Reported by Paul Eggert.
75024
75025 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * lib/string_.h: If the gnulib module XYZ is not present, undefine
75028         the symbol XYZ before redefining it.  This fixes a problem with
75029         programs that don't use XYZ, when compiled on systems that define
75030         XYZ to something else.
75031
75032 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
75033
75034         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
75035         occurs when "mkdir -m foo" creates a setgid directory that is (1)
75036         writeable to group or other and (2) is intended to have a special
75037         mode bit that is set or cleared.  In such a case, the directory
75038         should be neither group- nor other-writeable until the special
75039         mode bits are right.
75040
75041 2007-01-31  Eric Blake  <ebb9@byu.net>
75042
75043         * modules/mountlist (Depends-on): Add strstr.
75044
75045         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
75046         bug.
75047         * modules/string (Makefile.am): Remove redundant replacement.
75048         * modules/regex (Depends-on): Add mempcpy.
75049
75050 2007-01-31  Bruno Haible  <bruno@clisp.org>
75051
75052         New module description field 'Link'.
75053         * gnulib-tool (func_usage): Document --extract-link-directive.
75054         (sed_extract_prog): Recognize 'Link' directive.
75055         (func_get_link_directive): New function.
75056         (func_import): Show summary of link directives.
75057         Handle --extract-link-directive option.
75058         * modules/acl (Link): New section.
75059         * modules/clock-time (Link): New section.
75060         * modules/euidaccess (Link): New section.
75061         * modules/gettext (Link): New section.
75062         * modules/iconv (Link): New section.
75063         * modules/lock (Link): New section.
75064         * modules/nanosleep (Link): New section.
75065         * modules/readline (Link): New section.
75066
75067 2007-01-27  Bruno Haible  <bruno@clisp.org>
75068
75069         Enforce the use of gnulib modules for unportable <string.h> functions.
75070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
75071         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
75072         (gl_HEADER_STRING_H_BODY): Require it.
75073         * lib/string_.h: If the gnulib module XYZ is not present, redefine
75074         the symbol XYZ to one that gives a link error.
75075         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
75076         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
75077         * modules/mempcpy (configure.ac): Likewise.
75078         * modules/memrchr (configure.ac): Likewise.
75079         * modules/stpcpy (configure.ac): Likewise.
75080         * modules/stpncpy (configure.ac): Likewise.
75081         * modules/strcase (configure.ac): Likewise.
75082         * modules/strcasestr (configure.ac): Likewise.
75083         * modules/strchrnul (configure.ac): Likewise.
75084         * modules/strdup (configure.ac): Likewise.
75085         * modules/strndup (configure.ac): Likewise.
75086         * modules/strnlen (configure.ac): Likewise.
75087         * modules/strpbrk (configure.ac): Likewise.
75088         * modules/strsep (configure.ac): Likewise.
75089         * modules/strstr (configure.ac): Likewise.
75090         * modules/strtok_r (configure.ac): Likewise.
75091
75092 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
75093
75094         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
75095
75096 2007-01-30  Jim Meyering  <jim@meyering.net>
75097
75098         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
75099
75100 2007-01-29  Bruno Haible  <bruno@clisp.org>
75101
75102         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
75103         * lib/execute.c: Likewise.
75104         * lib/pipe.c: Likewise.
75105         * lib/printf-args.h: Likewise.
75106         * lib/printf-args.c: Likewise.
75107         * lib/printf-parse.c: Likewise.
75108         * lib/vasnprintf.c: Likewise.
75109
75110 2007-01-29  Eric Blake  <ebb9@byu.net>
75111
75112         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
75113         declaration.
75114
75115 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * lib/strptime.h (strptime): Use 'restrict' for args where
75118         POSIX requires this.
75119         * lib/strptime.c (strptime): Likewise.
75120         Change license notice from LGPL to GPL, since gnulib-tool will
75121         change this as needed.
75122         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
75123         defined.
75124         Include "strptime.h" first, to check interface.
75125         Do not #undef _LIBC and _NL_CURRENT.
75126         Do not include <stdlib.h>; no longer needed.
75127         Include "time_r.h" and declare ptime_locale_status
75128         only if _LIBC is not defined.
75129         (__P): Remove unused macro.
75130         (match_string): Bring back glibc version, but use it only if _LIBC
75131         is defined.
75132         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
75133         Remove unnecessary assertion and abort() call.
75134         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
75135         * m4/strptime.m4: Fix serial number comment.
75136         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
75137         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
75138         (Depends-on): Add time_r.
75139
75140 2007-01-29  Bruno Haible  <bruno@clisp.org>
75141
75142         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75143         strptime.
75144         * modules/strptime (Depends-on): Add stdbool.
75145         * lib/strptime.h: Include <time.h> always. Add comments.
75146
75147 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75148
75149         * modules/strptime: New file.
75150         * lib/strptime.h: New file.
75151         * lib/strptime.c: New file.
75152         * m4/strptime.m4: New file.
75153
75154 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
75155
75156         * MODULES.html.sh: New module mpsort.
75157         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
75158
75159         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
75160         a circularity problem with HP-UX ia64 reported by Bob Proulx in
75161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
75162         All uses changed.
75163         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
75164         All uses changed.
75165         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
75166         to _Restrict_.
75167         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
75168         the parameter matches the prototype.
75169
75170 2007-01-28  Jim Meyering  <jim@meyering.net>
75171
75172         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
75173         sys/time.h here, reverting that part of the previous patch:
75174         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
75175
75176 2007-01-28  Bruno Haible  <bruno@clisp.org>
75177
75178         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
75179         value of $(SYS_TIME_H).
75180         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
75181         remove it conditionally, too. [added by Jim Meyering]
75182         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
75183         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75184         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
75185         GETTIMEOFDAY_REPLACEMENT to 1.
75186
75187 2007-01-28  Bruno Haible  <bruno@clisp.org>
75188
75189         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
75190         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
75191         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
75192         Set UNISTD_H instead of UNISTD_H2.
75193         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
75194
75195 2007-01-28  Bruno Haible  <bruno@clisp.org>
75196
75197         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
75198         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
75199
75200 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75201
75202         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
75203         (func_create_testdir): Ensure C locale for `grep' and `tr'
75204         character ranges.
75205         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
75206         ACLOCAL_AMFLAGS parsing state machine.
75207
75208 2007-01-27  Bruno Haible  <bruno@clisp.org>
75209
75210         * modules/unistr/base: Update.
75211
75212 2007-01-27  Bruno Haible  <bruno@clisp.org>
75213
75214         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
75215         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
75216         * modules/unistr/u32-mbtouc-unsafe: Renamed from
75217         modules/unistr/u32-mbtouc.
75218         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
75219         * lib/unistr.h: Update.
75220         * lib/linebreak.c: Update.
75221         * modules/unistr/u32-mbtouc: Renamed from
75222         modules/unistr/u32-mbtouc-safe.
75223         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
75224         * lib/unistr.h: Update.
75225         * lib/unistr/u32-to-u8.c: Update.
75226         * lib/unistr/u32-to-u16.c: Update.
75227
75228 2007-01-27  Bruno Haible  <bruno@clisp.org>
75229
75230         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
75231         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
75232         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
75233         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
75234         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
75235         * modules/unistr/u16-mbtouc-unsafe: Renamed from
75236         modules/unistr/u16-mbtouc.
75237         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
75238         * lib/unistr.h: Update.
75239         * lib/linebreak.c: Update.
75240         * modules/linebreak: Update.
75241         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
75242         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
75243         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
75244         * modules/unistr/u16-mbtouc: Renamed from
75245         modules/unistr/u16-mbtouc-safe.
75246         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
75247         * lib/unistr.h: Update.
75248         * lib/unistr/u16-to-u8.c: Update.
75249         * modules/unistr/u16-to-u8: Update.
75250         * lib/unistr/u16-to-u32.c: Update.
75251         * modules/unistr/u16-to-u32: Update.
75252
75253 2007-01-27  Bruno Haible  <bruno@clisp.org>
75254
75255         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
75256         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
75257         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
75258         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
75259         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
75260         * modules/unistr/u8-mbtouc-unsafe: Renamed from
75261         modules/unistr/u8-mbtouc.
75262         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
75263         * lib/unistr.h: Update.
75264         * lib/striconveh.c: Update.
75265         * modules/striconveh: Update.
75266         * lib/linebreak.c: Update.
75267         * modules/linebreak: Update.
75268         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
75269         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
75270         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
75271         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
75272         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
75273         * lib/unistr.h: Update.
75274         * lib/striconveh.c: Update.
75275         * modules/striconveh: Update.
75276         * lib/unistr/u8-to-u16.c: Update.
75277         * modules/unistr/u8-to-u16: Update.
75278         * lib/unistr/u8-to-u32.c: Update.
75279         * modules/unistr/u8-to-u32: Update.
75280
75281 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75282
75283         Sync from Libtool.
75284         * lib/argz.c: Do not include strings.h nor memory.h, include
75285         string.h unconditionally.  Patch by Simon Josefsson.
75286
75287 2007-01-27  Bruno Haible  <bruno@clisp.org>
75288
75289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
75290         from gl_HEADER_STRING_H_BODY.
75291         (gl_HEADER_STRING_H_BODY): Require it.
75292         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
75293         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
75294         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
75295         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
75296         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
75297         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
75298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
75299         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
75300         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
75301         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
75302         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
75303         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
75304         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
75305         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
75306         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75307
75308 2007-01-27  Bruno Haible  <bruno@clisp.org>
75309
75310         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
75311         check_PROGRAMS into noinst_PROGRAMS.
75312         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
75313         check_PROGRAMS in this case.
75314         (func_import): Set for_test to false.
75315         (func_create_testdir): Set for_test to true.
75316
75317 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
75318             Bruno Haible  <bruno@clisp.org>
75319
75320         * modules/strcasestr (Files): Remove lib/strcasestr.h.
75321         (Depends-on): Add string.
75322         (Includes): Use <string.h> instead of strcasestr.h.
75323         * modules/string (Makefile.am): Also substitute the value of
75324         REPLACE_STRCASESTR.
75325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
75326         assume strcasestr is declared in <string.h> not <strings.h>. Also
75327         set REPLACE_STRCASESTR.
75328         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
75329         REPLACE_STRCASESTR.
75330         * lib/strcasestr.h: Remove file.
75331         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
75332         * lib/string_.h (strcasestr): New declaration.
75333
75334 2007-01-27  Bruno Haible  <bruno@clisp.org>
75335
75336         * lib/string_.h: Use 'extern'.
75337
75338 2007-01-27  Jim Meyering  <jim@meyering.net>
75339
75340         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
75341         of set-but-not-used local, "q".
75342
75343         * lib/mempcpy.c: Include <config.h> before <string.h>.
75344         This fixes a compilation error on HP-UX, due to the system's
75345         "restrict"-using mempcpy prototype.
75346
75347 2007-01-26  Bruno Haible  <bruno@clisp.org>
75348
75349         Small optimization.
75350         * lib/javacomp.c: Include c-strstr.h.
75351          (is_envjavac_gcj): Use c_strstr instead of strstr.
75352         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
75353
75354 2007-01-26  Bruno Haible  <bruno@clisp.org>
75355
75356         * MODULES.html.sh (Unicode string functions): Add the new modules.
75357
75358         * modules/uniconv/u32-strconv-to-locale: New file.
75359         * lib/uniconv/u32-strconv-to-locale.c: New file.
75360
75361         * modules/uniconv/u16-strconv-to-locale: New file.
75362         * lib/uniconv/u16-strconv-to-locale.c: New file.
75363
75364         * modules/uniconv/u8-strconv-to-locale: New file.
75365         * lib/uniconv/u8-strconv-to-locale.c: New file.
75366
75367         * modules/uniconv/u32-strconv-from-locale: New file.
75368         * lib/uniconv/u32-strconv-from-locale.c: New file.
75369
75370         * modules/uniconv/u16-strconv-from-locale: New file.
75371         * lib/uniconv/u16-strconv-from-locale.c: New file.
75372
75373         * modules/uniconv/u8-strconv-from-locale: New file.
75374         * lib/uniconv/u8-strconv-from-locale.c: New file.
75375
75376         * modules/uniconv/u32-strconv-to-enc: New file.
75377         * lib/uniconv/u32-strconv-to-enc.c: New file.
75378         * modules/uniconv/u32-strconv-to-enc-tests: New file.
75379         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
75380
75381         * modules/uniconv/u16-strconv-to-enc: New file.
75382         * lib/uniconv/u16-strconv-to-enc.c: New file.
75383         * lib/uniconv/u-strconv-to-enc.h: New file.
75384         * modules/uniconv/u16-strconv-to-enc-tests: New file.
75385         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
75386
75387         * modules/uniconv/u8-strconv-to-enc: New file.
75388         * lib/uniconv/u8-strconv-to-enc.c: New file.
75389         * modules/uniconv/u8-strconv-to-enc-tests: New file.
75390         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
75391
75392         * modules/uniconv/u32-strconv-from-enc: New file.
75393         * lib/uniconv/u32-strconv-from-enc.c: New file.
75394         * modules/uniconv/u32-strconv-from-enc-tests: New file.
75395         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
75396
75397         * modules/uniconv/u16-strconv-from-enc: New file.
75398         * lib/uniconv/u16-strconv-from-enc.c: New file.
75399         * modules/uniconv/u16-strconv-from-enc-tests: New file.
75400         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
75401
75402         * modules/uniconv/u8-strconv-from-enc: New file.
75403         * lib/uniconv/u8-strconv-from-enc.c: New file.
75404         * lib/uniconv/u-strconv-from-enc.h: New file.
75405         * modules/uniconv/u8-strconv-from-enc-tests: New file.
75406         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
75407
75408         * modules/uniconv/u32-conv-from-enc: New file.
75409         * lib/uniconv/u32-conv-from-enc.c: New file.
75410         * modules/uniconv/u32-conv-from-enc-tests: New file.
75411         * tests/uniconv/test-u32-conv-from-enc.c: New file.
75412
75413         * modules/uniconv/u16-conv-from-enc: New file.
75414         * lib/uniconv/u16-conv-from-enc.c: New file.
75415         * lib/uniconv/u-conv-from-enc.h: New file.
75416         * modules/uniconv/u16-conv-from-enc-tests: New file.
75417         * tests/uniconv/test-u16-conv-from-enc.c: New file.
75418
75419         * modules/uniconv/u8-conv-from-enc: New file.
75420         * lib/uniconv/u8-conv-from-enc.c: New file.
75421         * modules/uniconv/u8-conv-from-enc-tests: New file.
75422         * tests/uniconv/test-u8-conv-from-enc.c: New file.
75423
75424         * modules/uniconv/base: New file.
75425         * lib/uniconv.h: New file.
75426
75427 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75428
75429         * doc/gnulib-tool.texi (Initial import): Update to match current
75430         behavior with strdup module.
75431         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
75432         * lib/memmem.h: Remove; all uses removed.  This is now done
75433         by <string.h>.
75434         * lib/mempcpy.h: Likewise.
75435         * lib/memrchr.h: Likewise.
75436         * lib/stpcpy.h: Likewise.
75437         * lib/stpncpy.h: Likewise.
75438         * lib/strcase.h: Likewise.
75439         * lib/strchrnul.h: Likewise.
75440         * lib/strdup.h: Likewise.
75441         * lib/strndup.h: Likewise.
75442         * lib/strnlen.h: Likewise.
75443         * lib/strpbrk.h: Likewise.
75444         * lib/strsep.h: Likewise.
75445         * lib/strstr.h: Likewise.
75446         * lib/strtok_r.h: Likewise.
75447         * lib/string_.h: New file.
75448         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
75449         Rely on <string.h> instead.
75450         * lib/canon-host.c: Likewise.
75451         * lib/chdir-long.c: Likewise.
75452         * lib/concatpath.c: Likewise.
75453         * lib/exclude.c: Likewise.
75454         * lib/fchdir.c: Likewise.
75455         * lib/getaddrinfo.c: Likewise.
75456         * lib/getcwd.c: Likewise.
75457         * lib/getsubopt.c: Likewise.
75458         * lib/glob.c: Likewise.
75459         * lib/hard-locale.c: Likewise.
75460         * lib/iconvme.c: Likewise.
75461         * lib/javacomp.c: Likewise.
75462         * lib/mempcpy.c: Likewise.
75463         * lib/memrchr.c: Likewise.
75464         * lib/regex_internal.h: Likewise.
75465         * lib/stpncpy.c: Likewise.
75466         * lib/strcasecmp.c: Likewise.
75467         * lib/strchrnul.c: Likewise.
75468         * lib/strdup.c: Likewise.
75469         * lib/striconv.c: Likewise.
75470         * lib/striconveh.c: Likewise.
75471         * lib/striconveha.c: Likewise.
75472         * lib/strncasecmp.c: Likewise.
75473         * lib/strndup.c: Likewise.
75474         * lib/strnlen.c: Likewise.
75475         * lib/strsep.c: Likewise.
75476         * lib/strstr.c: Likewise.
75477         * lib/strtok_r.c: Likewise.
75478         * lib/userspec.c: Likewise.
75479         * lib/w32spawn.h: Likewise.
75480         * lib/xstrndup.c: Likewise.
75481         * lib/mountlist.c (strstr): Remove decl.
75482         * m4/string_h.m4: New file.
75483         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
75484         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
75485         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
75486         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
75487         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
75488         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
75489         Set REPLACE_STRCASECMP if necessary.
75490         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
75491         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
75492         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
75493         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
75494         HAVE_DECL_STRDUP if necessary.
75495         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
75496         since gl_FUNC_STRNDUP does that now.
75497         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
75498         Check for decl here...
75499         (gl_PREREQ_STRNLEN): ... not here.
75500         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
75501         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
75502         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
75503         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
75504         necessary.
75505         * modules/string: New file.
75506         * modules/memmem (Files): Remove special-purpose include file.
75507         (Depends-on): Add string.
75508         (Include): Include <string.h>, not the removed file.
75509         * modules/mempcpy: Likewise.
75510         * modules/memrchr: Likewise.
75511         * modules/stpcpy: Likewise.
75512         * modules/stpncpy: Likewise.
75513         * modules/strcase: Likewise.
75514         * modules/strchrnul: Likewise.
75515         * modules/strdup: Likewise.
75516         * modules/strndup: Likewise.
75517         * modules/strnlen: Likewise.
75518         * modules/strpbrk: Likewise.
75519         * modules/strsep: Likewise.
75520         * modules/strstr: Likewise.
75521         * modules/strtok_r: Likewise.
75522         * tests/test-dirname.c: Don't include "strdup.h", since
75523         <string.h> now suffices.
75524         * tests/test-memmem.c: Don't include "memmem.h", since
75525         <string.h> now suffices.
75526
75527 2007-01-25  Bruno Haible  <bruno@clisp.org>
75528
75529         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
75530         *resultp is 0.
75531
75532         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
75533         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
75534         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
75535         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
75536
75537         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
75538         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
75539         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
75540         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
75541         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
75542         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
75543
75544 2007-01-24  Bruno Haible  <bruno@clisp.org>
75545
75546         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
75547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
75548         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
75549         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
75550         gl_FUNC_FTS_CORE.
75551         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
75552         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
75553         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
75554         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
75555         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
75556         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
75557         gl_FUNC_FCHOWNAT.
75558         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
75559         gl_FUNC_STRFTIME.
75560         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
75561         Reported by Ralf Wildenhues.
75562
75563 2007-01-24  Bruno Haible  <bruno@clisp.org>
75564
75565         Drop AC_REQUIRE calls that are redundant with the module dependencies.
75566         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
75567         gl_GETADDRINFO.
75568         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
75569         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
75570         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
75571
75572 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
75575         Don't use 'exit'; just return from 'main'.
75576         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
75577
75578         * lib/fnmatch_.h: Readjust white space and comments to match
75579         glibc, to avoid spurious diffs.
75580
75581 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
75584         2004-12-01 change by Jakub Jelinek, since this code won't compile
75585         if !LIBC.  Problem reported by Bob Proulx.
75586
75587 2007-01-23  Bruno Haible  <bruno@clisp.org>
75588
75589         * lib/striconveh.c: Include c-strcaseeq.h.
75590         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
75591         * modules/striconveh (Depends-on): Add c-strcaseeq.
75592
75593 2007-01-23  Bruno Haible  <bruno@clisp.org>
75594
75595         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
75596
75597         * modules/c-strcaseeq: New file.
75598         * lib/c-strcaseeq.h: New file.
75599
75600         * modules/streq: New file.
75601         * lib/streq.h: New file.
75602
75603 2007-01-23  Bruno Haible  <bruno@clisp.org>
75604
75605         * modules/striconveha-tests: New file.
75606         * tests/test-striconveha.c: New file.
75607
75608         * lib/striconveha.h: Include <stdbool.h>.
75609         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
75610         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
75611         (mem_iconveha_notranslit): Renamed from mem_iconveha.
75612         (mem_iconveha): New function.
75613         (str_iconveha_notranslit): Renamed from str_iconveha.
75614         (str_iconveha): New function.
75615         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
75616         c-strcase.
75617
75618 2007-01-23  Bruno Haible  <bruno@clisp.org>
75619
75620         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
75621         encodings without forgiving before trying any encoding with handler.
75622         (str_iconveha): Try all encodings without forgiving before trying any
75623         encoding with handler.
75624
75625 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         Import the following changes from libc.
75628
75629         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
75630
75631         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
75632
75633         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75634
75635         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
75636         normal_bracket label.
75637
75638         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
75639
75640         [BZ #361]
75641         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
75642         to normal_bracket after fetching the next character.
75643
75644 2007-01-22  Bruno Haible  <bruno@clisp.org>
75645
75646         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
75647         argument.
75648         * lib/striconveh.c (iconv_carefully_1): New function.
75649         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
75650         argument.
75651         (str_cd_iconveh): Update.
75652         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
75653         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
75654         * tests/test-striconveh.c (MAGIC): New macro.
75655         (new_offsets): New function.
75656         (main): Test call with and without offsets.
75657
75658 2007-01-22  Bruno Haible  <bruno@clisp.org>
75659
75660         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
75661         * modules/sys_select (Makefile.am): Likewise.
75662         * modules/sys_socket (Makefile.am): Likewise.
75663         * modules/sys_time (Makefile.am): Likewise.
75664
75665 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75666
75667         * modules/gettimeofday (License): Change from GPL to LGPL, since
75668         gettimeofday is a library function.
75669
75670 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75671
75672         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
75673
75674 2007-01-21  Bruno Haible  <bruno@clisp.org>
75675
75676         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
75677
75678 2007-01-21  Bruno Haible  <bruno@clisp.org>
75679
75680         * modules/striconveha: New file.
75681         * lib/striconveha.h: New file.
75682         * lib/striconveha.c: New file.
75683         * MODULES.html.sh (Internationalization functions): Add striconveha.
75684         * lib/striconv.c (str_iconv): Optimize the case of an empty input
75685         string.
75686         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
75687
75688 2007-01-21  Bruno Haible  <bruno@clisp.org>
75689
75690         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
75691         * lib/striconveh.c (str_iconveh): Likewise.
75692
75693 2007-01-21  Bruno Haible  <bruno@clisp.org>
75694
75695         * lib/striconveh.h (mem_iconveh): New declaration.
75696         * lib/striconveh.c (mem_iconveh): New function.
75697         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
75698
75699 2007-01-21  Bruno Haible  <bruno@clisp.org>
75700
75701         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
75702
75703         * lib/striconveh.h (mem_cd_iconveh): Change specification.
75704         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
75705         original result buffer.
75706         (str_cd_iconveh): Update.
75707         * tests/test-striconveh.c (main): Update.
75708
75709         * lib/striconv.h (mem_cd_iconv): Change specification.
75710         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
75711         result buffer.
75712         (str_cd_iconv): Update.
75713         * tests/test-striconv.c (main): Update.
75714
75715 2007-01-21  Bruno Haible  <bruno@clisp.org>
75716
75717         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
75718
75719 2007-01-20  Jim Meyering  <jim@meyering.net>
75720
75721         * lib/userspec.c (parse_with_separator): If a user or group string
75722         starts with "+", skip the corresponding name-to-ID look-up, since
75723         such a look-up must fail: user and group names may not include "+".
75724
75725 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         * lib/poll.c: Include sys/time.h and time.h unconditionally,
75728         since we now assume the sys_time module.
75729         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
75730         check for sys/time.h; no longer needed.
75731         * modules/poll (Depends-on): Depend on sys_time.
75732
75733 2007-01-18  Bruno Haible  <bruno@clisp.org>
75734
75735         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
75736         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75737
75738         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
75739         gettimeofday.
75740
75741         * tests/test-gettimeofday.c: Include <time.h>.
75742         (dummy): Remove variable.
75743
75744         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
75745         gl_HEADER_SYS_TIME_H.
75746         (gl_HEADER_SYS_TIME_H): New macro.
75747
75748         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
75749         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
75751         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
75752         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75753         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
75754         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
75755         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75756         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
75757         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
75758         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75759
75760         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
75761         last change; it caused a compilation error when cross-compiling to
75762         Cygwin.
75763
75764 2007-01-18  Jim Meyering  <jim@meyering.net>
75765
75766         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
75767         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
75768         than the race-prone "test -d sys || mkdir sys".
75769         (configure.ac): Use AC_PROG_MKDIR_P.
75770         * modules/sys_select: Likewise.
75771         * modules/sys_socket: Likewise.
75772         * modules/sys_time: Likewise.
75773
75774 2007-01-18  Eric Blake  <ebb9@byu.net>
75775
75776         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
75777         replace gettimeofday.
75778         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
75779         name, to avoid infinite recursion.
75780
75781 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
75782
75783         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
75784         module sys_time.
75785         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
75786         assume timespec.h defines struct timeval.
75787         * lib/settime.c: Likewise.
75788         * lib/utimens.c: Likewise.
75789         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
75790         since we now assume the gettimeofday module.
75791         * lib/tempname.c (__gen_tempname): Likewise.
75792         * lib/gettimeofday.h: Remove.
75793         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
75794         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
75795         Include <time.h>, for 'time()'.
75796         (localtime_buffer_addr): Also use this workaround if
75797         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
75798         to simplify the uses.  All uses changed.
75799         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
75800         that #undef is inside {}, and 'const' follows type name consistently.
75801         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
75802         (gettimeofday): Do not use the maximum possible value for
75803         tv->tv_usec, since that might break usages other than ls.c.
75804         Instead, we'll leave ls.c alone.  This undoes today's patch
75805         by Bruno.  Add a compile-time warning for 1s-clock resolution;
75806         we've never observed the problem but might as well keep the
75807         canary.
75808         * lib/nanosleep.c: Include timespec.h first, for interface check.
75809         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
75810         now assume the sys_time module.
75811         * lib/tempname.c: Likewise.
75812         * lib/timespec.h: Likewise.
75813         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
75814         needed.
75815         * lib/strftime.c: Likewise.
75816         * lib/timespec.h: Likewise.
75817         * lib/posixtm.c: Include posixtm.h first, for interface check.
75818         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
75819         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
75820         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
75821         * lib/sys_time_.h: New file.
75822         * lib/timespec.h (struct timespec): Use long int, not long.
75823         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
75824         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
75825         Remove obsolescent call to AC_HEADER_TIME.
75826         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
75827         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
75828         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
75829         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
75830         Likewise.
75831         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
75832         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
75833         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
75834         into the sys_time module.  Check for gettimeofday just once.
75835         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
75836         for gettimeofday signature to just check the signature.  Merely
75837         compile it, since linking doesn't test signature.  Improve test for
75838         whether gettimeofday.o is actually needed.
75839         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
75840         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
75841         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
75842         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75843         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
75844         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
75845         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
75846         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
75847         than worrying about sys/time.h.
75848         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75849         Don't bother worrying about TIME_WITH_SYS_TIME.
75850         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
75851         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
75852         * m4/sys_time_h.m4: New file.
75853         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
75854         Don't include sys/time.h.  Return from main rather than exiting.
75855         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
75856         all uses changed.
75857         * modules/gethrxtime (Depends-on): Add sys_time.
75858         * modules/gettime (Depends-on): Likewise.
75859         * modules/gettimeofday (Depends-on): Likewise.
75860         * modules/nanosleep (Depends-on): Likewise.
75861         * modules/settime (Depends-on): Likewise.
75862         * modules/tempname (Depends-on): Likewise.
75863         * modules/utimens (Depends-on): Likewise.
75864         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
75865         (Include): Change back to <sys/time.h>.
75866         (Maintainer): Add self.
75867         * modules/sys_time: New file.
75868         * modules/tempname (Depends-on): Add gettimeofday.
75869         * tests/test-gettimeofday.c: Include <sys/time.h>
75870         rather than gettimeofday.h.
75871
75872 2007-01-17  Bruno Haible  <bruno@clisp.org>
75873
75874         * gnulib-tool (func_get_license): Revert last patch. Instead, let
75875         the license default to GPL.
75876         (func_create_testdir): Don't complain if a module is LGPL and its
75877         tests module depends on GPLed modules.
75878
75879 2007-01-17  Bruno Haible  <bruno@clisp.org>
75880
75881         * lib/gettimeofday.c (gettimeofday): Add code for the case
75882         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
75883         maximum possible value for tv->tv_usec, rather than the minimum one.
75884
75885 2005-10-08  Martin Lambers  <marlam@marlam.de>
75886 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75887 2007-01-16  Bruno Haible  <bruno@clisp.org>
75888
75889         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
75890         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
75891         gl_FUNC_GETTIMEOFDAY.
75892         (Include): Add gettimeofday.h.
75893         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
75894         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
75895         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
75896         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
75897         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
75898         * lib/gettimeofday.h: New file.
75899         * lib/gettimeofday.c: Include <sys/timeb.h>.
75900         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
75901         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
75902         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
75903         fall back on time().
75904
75905         * tests/test-gettimeofday.c: New file.
75906         * modules/gettimeofday-tests: New file.
75907
75908 2007-01-16  Eric Blake  <ebb9@byu.net>
75909
75910         * modules/fnmatch (Depends-on): Depend on wchar.
75911         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
75912         * m4/fnmatch.m4: Likewise.
75913         * modules/mbchar (Makefile.am): Assume <wchar.h>.
75914         * m4/mbchar.m4: Likewise.
75915         * modules/mbswidth (Depends-on): Depend on wchar.
75916         * lib/mbswidth.c: Assume <wchar.h>.
75917         * m4/mbswidth.m4: Likewise.
75918         * modules/quotearg (Depends-on): Depend on wchar.
75919         * lib/quotearg.c: Assume <wchar.h>.
75920         * m4/quotearg.m4: Likewise.
75921         * modules/regex (Depends-on): Depend on wchar.
75922         * lib/regex_internal.h: Assume <wchar.h>.
75923         * m4/regex.m4: Likewise.
75924         * modules/stdint (Depends-on): Depend on wchar.
75925         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
75926         * m4/stdint.m4: Likewise.
75927         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
75928         * modules/strftime (Depends-on): Depend on wchar.
75929         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
75930         * modules/strtol (Depends-on): Depend on wchar.
75931         * lib/strtol.c: Assume <wchar.h>.
75932         * modules/wcwidth (Depends-on): Depend on wchar.
75933         * lib/wcwidth.h: Assume <wchar.h>.
75934         * m4/wcwidth.m4: Likewise.
75935
75936 2007-01-16  Bruno Haible  <bruno@clisp.org>
75937
75938         * modules/csharpexec-script: New, created from...
75939         * modules/csharpexec: ... this.
75940
75941 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
75942
75943         * modules/javaexec-script: New, created from...
75944         * modules/javaexec: ... this.
75945
75946 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75947
75948         * modules/poll (Dependencies): Add sys_select.
75949
75950 2007-01-15  Jim Meyering  <jim@meyering.net>
75951
75952         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
75953         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
75954         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
75955         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
75956
75957 2007-01-15  Bruno Haible  <bruno@clisp.org>
75958
75959         * modules/striconveh: New file.
75960         * lib/striconveh.h: New file.
75961         * lib/striconveh.c: New file.
75962         * MODULES.html.sh (Internationalization functions): Add striconveh.
75963
75964         * modules/striconveh-tests: New file.
75965         * tests/test-striconveh.c: New file.
75966
75967 2007-01-15  Bruno Haible  <bruno@clisp.org>
75968
75969         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
75970         not from GNU libiconv or GNU libc.
75971
75972 2007-01-15  Bruno Haible  <bruno@clisp.org>
75973
75974         * doc/gnulib-intro.texi (Copyright): Explain the different license
75975         terms for module descriptions, autoconf macros, tests, documentation.
75976
75977 2007-01-14  Bruno Haible  <bruno@clisp.org>
75978
75979         * modules/striconv-tests: New file.
75980         * tests/test-striconv.c: New file.
75981
75982 2007-01-14  Bruno Haible  <bruno@clisp.org>
75983
75984         * modules/iconv-tests: New file.
75985         * tests/test-iconv.c: New file.
75986
75987 2007-01-14  Bruno Haible  <bruno@clisp.org>
75988
75989         * gnulib-tool (func_get_license): For test modules, use the license of
75990         the main module.
75991
75992 2007-01-14  Bruno Haible  <bruno@clisp.org>
75993
75994         * modules/iconv (Include): Clarify that <iconv.h> can only be included
75995         if iconv is found to exist.
75996
75997 2007-01-14  Bruno Haible  <bruno@clisp.org>
75998
75999         * modules/c-ctype-tests: New file.
76000         * tests/test-c-ctype.c: New file.
76001
76002 2007-01-14  Bruno Haible  <bruno@clisp.org>
76003
76004         * modules/binary-io-tests: New file.
76005         * tests/test-binary-io.sh: New file.
76006         * tests/test-binary-io.c: New file.
76007
76008 2007-01-14  Bruno Haible  <bruno@clisp.org>
76009
76010         * modules/array-oset-tests: New file.
76011         * tests/test-array_oset.c: New file.
76012
76013 2007-01-14  Bruno Haible  <bruno@clisp.org>
76014
76015         * modules/array-list-tests: New file.
76016         * tests/test-array_list.c: New file.
76017
76018 2007-01-14  Bruno Haible  <bruno@clisp.org>
76019
76020         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
76021         and make.
76022         Reported by Simon Josefsson in
76023         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
76024
76025 2007-01-14  Bruno Haible  <bruno@clisp.org>
76026
76027         * modules/allocsa-tests: New file.
76028         * tests/test-allocsa.c: New file.
76029
76030 2007-01-14  Bruno Haible  <bruno@clisp.org>
76031
76032         * modules/fchdir (Depends-on): Add absolute-header.
76033         * modules/unistd (Depends-on): Likewise.
76034
76035 2006-12-30  Bruno Haible  <bruno@clisp.org>
76036
76037         * modules/fchdir: New file.
76038         * modules/unistd (Files): Add lib/unistd_.h.
76039         (Makefile.am): Generate unistd.h from unistd_.h.
76040         * lib/fchdir.c: New file.
76041         * lib/dirent_.h: New file.
76042         * lib/unistd_.h: New file.
76043         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
76044         * m4/fchdir.m4: New file.
76045         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
76046         (gl_HEADER_UNISTD): Invoke it.
76047         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
76048         function.
76049         * lib/backupfile.c (opendir, closedir): Undefine.
76050         * lib/chown.c (open, close): Undefine.
76051         * lib/clean-temp.c (open, close): Undefine.
76052         * lib/copy-file.c (open, close): Undefine.
76053         * lib/execute.c (open, close): Undefine.
76054         * lib/fsusage.c (open, close): Undefine.
76055         * lib/gc-gnulib.c (open, close): Undefine.
76056         * lib/getcwd.c (opendir, closedir): Undefine.
76057         * lib/glob.c (opendir, closedir): Undefine.
76058         * lib/javacomp.c (open, close): Undefine.
76059         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
76060         * lib/openat-proc.c (open, close): Undefine.
76061         * lib/pagealign_alloc.c (open, close): Undefine.
76062         * lib/pipe.c (open, close): Undefine.
76063         * lib/progreloc.c (open, close): Undefine.
76064         * lib/savedir.c (opendir, closedir): Undefine.
76065         * lib/utime.c (open, close): Undefine.
76066         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
76067
76068 2007-01-10  Bruno Haible  <bruno@clisp.org>
76069
76070         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
76071
76072 2007-01-12  Eric Blake  <ebb9@byu.net>
76073
76074         Provide a robust <wchar.h>.  Further simplifications are now
76075         possible in other modules, but not included here.
76076         * modules/wchar: New module.
76077         * m4/wchar.m4: New file.
76078         * lib/wchar_.h: Likewise.
76079         * modules/mbchar (Depends-on): Depend on wchar, as the first use
76080         of the new module.
76081         * MODULES.html.sh (Extended multibyte and wide character utilities):
76082         New section.
76083
76084 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
76085
76086         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
76087         to a reasonable default for memory allocation.
76088         (xreadlink): Don't allocate a huge buffer, to work around a buggy
76089         file system that reports garbage st_size values for symlinks.
76090         Problem reported by Liyang Hu.
76091
76092 2007-01-11  Simon Josefsson  <simon@josefsson.org>
76093
76094         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
76095         Emacs .#* auto-save files).
76096
76097 2007-01-11  Bruno Haible  <bruno@clisp.org>
76098
76099         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
76100         directory.
76101
76102 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         Use @...@ consistently in lib/wctype_.h.
76105         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
76106         on it being set to 1 or 0.
76107         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
76108         go back to AC_SUBSTing it.
76109         * modules/wctype (Makefile.am): Undo previous change.
76110
76111 2007-01-10  Eric Blake  <ebb9@byu.net>
76112
76113         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
76114         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
76115         * modules/wctype (Makefile.am): Likewise.
76116         Reported by Chris McGuire.
76117
76118 2007-01-10  Jim Meyering  <jim@meyering.net>
76119
76120         fts.c: a small readability/maintainability improvement
76121         * lib/fts.c (fts_read): Make this code slightly more readable and
76122         maintainable by hoisting the "sp->fts_cur = p" assignments to
76123         immediately follow the statements that set P.  Derived from
76124         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
76125
76126 2007-01-10  Eric Blake  <ebb9@byu.net>
76127
76128         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
76129         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
76130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76131         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
76132         Reported by Chris McGuire.
76133
76134 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76135
76136         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
76137         in sed script.
76138
76139 2007-01-09  Bruno Haible  <bruno@clisp.org>
76140
76141         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
76142         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
76143         variables.
76144         (func_module): Use them.
76145
76146 2007-01-09  Bruno Haible  <bruno@clisp.org>
76147
76148         * modules/unistr/base: New file.
76149         * lib/unistr.h: New file.
76150
76151         * modules/unistr/u8-to-u16: New file.
76152         * lib/unistr/u8-to-u16.c: New file.
76153
76154         * modules/unistr/u8-to-u32: New file.
76155         * lib/unistr/u8-to-u32.c: New file.
76156
76157         * modules/unistr/u16-to-u8: New file.
76158         * lib/unistr/u16-to-u8.c: New file.
76159
76160         * modules/unistr/u16-to-u32: New file.
76161         * lib/unistr/u16-to-u32.c: New file.
76162
76163         * modules/unistr/u32-to-u8: New file.
76164         * lib/unistr/u32-to-u8.c: New file.
76165
76166         * modules/unistr/u32-to-u16: New file.
76167         * lib/unistr/u32-to-u16.c: New file.
76168
76169         * modules/unistr/u8-check: New file.
76170         * modules/unistr/u16-check: New file.
76171         * modules/unistr/u32-check: New file.
76172         * lib/unistr/u8-check.c: New file.
76173         * lib/unistr/u16-check.c: New file.
76174         * lib/unistr/u32-check.c: New file.
76175
76176         * modules/unistr/u8-chr: New file.
76177         * modules/unistr/u16-chr: New file.
76178         * modules/unistr/u32-chr: New file.
76179         * lib/unistr/u8-chr.c: New file.
76180         * lib/unistr/u16-chr.c: New file.
76181         * lib/unistr/u32-chr.c: New file.
76182
76183         * modules/unistr/u8-cmp: New file.
76184         * modules/unistr/u16-cmp: New file.
76185         * modules/unistr/u32-cmp: New file.
76186         * lib/unistr/u8-cmp.c: New file.
76187         * lib/unistr/u16-cmp.c: New file.
76188         * lib/unistr/u32-cmp.c: New file.
76189
76190         * modules/unistr/u8-cpy: New file.
76191         * modules/unistr/u16-cpy: New file.
76192         * modules/unistr/u32-cpy: New file.
76193         * lib/unistr/u8-cpy.c: New file.
76194         * lib/unistr/u16-cpy.c: New file.
76195         * lib/unistr/u32-cpy.c: New file.
76196         * lib/unistr/u-cpy.h: New file.
76197
76198         * modules/unistr/u8-cpy-alloc: New file.
76199         * modules/unistr/u16-cpy-alloc: New file.
76200         * modules/unistr/u32-cpy-alloc: New file.
76201         * lib/unistr/u8-cpy-alloc.c: New file.
76202         * lib/unistr/u16-cpy-alloc.c: New file.
76203         * lib/unistr/u32-cpy-alloc.c: New file.
76204         * lib/unistr/u-cpy-alloc.h: New file.
76205
76206         * modules/unistr/u8-endswith: New file.
76207         * modules/unistr/u16-endswith: New file.
76208         * modules/unistr/u32-endswith: New file.
76209         * lib/unistr/u8-endswith.c: New file.
76210         * lib/unistr/u16-endswith.c: New file.
76211         * lib/unistr/u32-endswith.c: New file.
76212         * lib/unistr/u-endswith.h: New file.
76213
76214         * modules/unistr/u8-mblen: New file.
76215         * modules/unistr/u16-mblen: New file.
76216         * modules/unistr/u32-mblen: New file.
76217         * lib/unistr/u8-mblen.c: New file.
76218         * lib/unistr/u16-mblen.c: New file.
76219         * lib/unistr/u32-mblen.c: New file.
76220
76221         * modules/unistr/u8-mbtouc: New file.
76222         * modules/unistr/u16-mbtouc: New file.
76223         * modules/unistr/u32-mbtouc: New file.
76224         * lib/unistr/u8-mbtouc.c: New file.
76225         * lib/unistr/u16-mbtouc.c: New file.
76226         * lib/unistr/u32-mbtouc.c: New file.
76227
76228         * modules/unistr/u8-mbtouc-safe: New file.
76229         * modules/unistr/u16-mbtouc-safe: New file.
76230         * modules/unistr/u32-mbtouc-safe: New file.
76231         * lib/unistr/u8-mbtouc-safe.c: New file.
76232         * lib/unistr/u16-mbtouc-safe.c: New file.
76233         * lib/unistr/u32-mbtouc-safe.c: New file.
76234
76235         * modules/unistr/u8-move: New file.
76236         * modules/unistr/u16-move: New file.
76237         * modules/unistr/u32-move: New file.
76238         * lib/unistr/u8-move.c: New file.
76239         * lib/unistr/u16-move.c: New file.
76240         * lib/unistr/u32-move.c: New file.
76241         * lib/unistr/u-move.h: New file.
76242
76243         * modules/unistr/u8-next: New file.
76244         * modules/unistr/u16-next: New file.
76245         * modules/unistr/u32-next: New file.
76246         * lib/unistr/u8-next.c: New file.
76247         * lib/unistr/u16-next.c: New file.
76248         * lib/unistr/u32-next.c: New file.
76249
76250         * modules/unistr/u8-prev: New file.
76251         * modules/unistr/u16-prev: New file.
76252         * modules/unistr/u32-prev: New file.
76253         * lib/unistr/u8-prev.c: New file.
76254         * lib/unistr/u16-prev.c: New file.
76255         * lib/unistr/u32-prev.c: New file.
76256
76257         * modules/unistr/u8-set: New file.
76258         * modules/unistr/u16-set: New file.
76259         * modules/unistr/u32-set: New file.
76260         * lib/unistr/u8-set.c: New file.
76261         * lib/unistr/u16-set.c: New file.
76262         * lib/unistr/u32-set.c: New file.
76263         * lib/unistr/u-set.h: New file.
76264
76265         * modules/unistr/u8-startswith: New file.
76266         * modules/unistr/u16-startswith: New file.
76267         * modules/unistr/u32-startswith: New file.
76268         * lib/unistr/u8-startswith.c: New file.
76269         * lib/unistr/u16-startswith.c: New file.
76270         * lib/unistr/u32-startswith.c: New file.
76271         * lib/unistr/u-startswith.h: New file.
76272
76273         * modules/unistr/u8-stpcpy: New file.
76274         * modules/unistr/u16-stpcpy: New file.
76275         * modules/unistr/u32-stpcpy: New file.
76276         * lib/unistr/u8-stpcpy.c: New file.
76277         * lib/unistr/u16-stpcpy.c: New file.
76278         * lib/unistr/u32-stpcpy.c: New file.
76279         * lib/unistr/u-stpcpy.h: New file.
76280
76281         * modules/unistr/u8-stpncpy: New file.
76282         * modules/unistr/u16-stpncpy: New file.
76283         * modules/unistr/u32-stpncpy: New file.
76284         * lib/unistr/u8-stpncpy.c: New file.
76285         * lib/unistr/u16-stpncpy.c: New file.
76286         * lib/unistr/u32-stpncpy.c: New file.
76287         * lib/unistr/u-stpncpy.h: New file.
76288
76289         * modules/unistr/u8-strcat: New file.
76290         * modules/unistr/u16-strcat: New file.
76291         * modules/unistr/u32-strcat: New file.
76292         * lib/unistr/u8-strcat.c: New file.
76293         * lib/unistr/u16-strcat.c: New file.
76294         * lib/unistr/u32-strcat.c: New file.
76295         * lib/unistr/u-strcat.h: New file.
76296
76297         * modules/unistr/u8-strchr: New file.
76298         * modules/unistr/u16-strchr: New file.
76299         * modules/unistr/u32-strchr: New file.
76300         * lib/unistr/u8-strchr.c: New file.
76301         * lib/unistr/u16-strchr.c: New file.
76302         * lib/unistr/u32-strchr.c: New file.
76303
76304         * modules/unistr/u8-strcmp: New file.
76305         * modules/unistr/u16-strcmp: New file.
76306         * modules/unistr/u32-strcmp: New file.
76307         * lib/unistr/u8-strcmp.c: New file.
76308         * lib/unistr/u16-strcmp.c: New file.
76309         * lib/unistr/u32-strcmp.c: New file.
76310
76311         * modules/unistr/u8-strcpy: New file.
76312         * modules/unistr/u16-strcpy: New file.
76313         * modules/unistr/u32-strcpy: New file.
76314         * lib/unistr/u8-strcpy.c: New file.
76315         * lib/unistr/u16-strcpy.c: New file.
76316         * lib/unistr/u32-strcpy.c: New file.
76317         * lib/unistr/u-strcpy.h: New file.
76318
76319         * modules/unistr/u8-strcspn: New file.
76320         * modules/unistr/u16-strcspn: New file.
76321         * modules/unistr/u32-strcspn: New file.
76322         * lib/unistr/u8-strcspn.c: New file.
76323         * lib/unistr/u16-strcspn.c: New file.
76324         * lib/unistr/u32-strcspn.c: New file.
76325         * lib/unistr/u-strcspn.h: New file.
76326
76327         * modules/unistr/u8-strdup: New file.
76328         * modules/unistr/u16-strdup: New file.
76329         * modules/unistr/u32-strdup: New file.
76330         * lib/unistr/u8-strdup.c: New file.
76331         * lib/unistr/u16-strdup.c: New file.
76332         * lib/unistr/u32-strdup.c: New file.
76333         * lib/unistr/u-strdup.h: New file.
76334
76335         * modules/unistr/u8-strlen: New file.
76336         * modules/unistr/u16-strlen: New file.
76337         * modules/unistr/u32-strlen: New file.
76338         * lib/unistr/u8-strlen.c: New file.
76339         * lib/unistr/u16-strlen.c: New file.
76340         * lib/unistr/u32-strlen.c: New file.
76341         * lib/unistr/u-strlen.h: New file.
76342
76343         * modules/unistr/u8-strmblen: New file.
76344         * modules/unistr/u16-strmblen: New file.
76345         * modules/unistr/u32-strmblen: New file.
76346         * lib/unistr/u8-strmblen.c: New file.
76347         * lib/unistr/u16-strmblen.c: New file.
76348         * lib/unistr/u32-strmblen.c: New file.
76349
76350         * modules/unistr/u8-strmbtouc: New file.
76351         * modules/unistr/u16-strmbtouc: New file.
76352         * modules/unistr/u32-strmbtouc: New file.
76353         * lib/unistr/u8-strmbtouc.c: New file.
76354         * lib/unistr/u16-strmbtouc.c: New file.
76355         * lib/unistr/u32-strmbtouc.c: New file.
76356
76357         * modules/unistr/u8-strncat: New file.
76358         * modules/unistr/u16-strncat: New file.
76359         * modules/unistr/u32-strncat: New file.
76360         * lib/unistr/u8-strncat.c: New file.
76361         * lib/unistr/u16-strncat.c: New file.
76362         * lib/unistr/u32-strncat.c: New file.
76363         * lib/unistr/u-strncat.h: New file.
76364
76365         * modules/unistr/u8-strncmp: New file.
76366         * modules/unistr/u16-strncmp: New file.
76367         * modules/unistr/u32-strncmp: New file.
76368         * lib/unistr/u8-strncmp.c: New file.
76369         * lib/unistr/u16-strncmp.c: New file.
76370         * lib/unistr/u32-strncmp.c: New file.
76371
76372         * modules/unistr/u8-strncpy: New file.
76373         * modules/unistr/u16-strncpy: New file.
76374         * modules/unistr/u32-strncpy: New file.
76375         * lib/unistr/u8-strncpy.c: New file.
76376         * lib/unistr/u16-strncpy.c: New file.
76377         * lib/unistr/u32-strncpy.c: New file.
76378         * lib/unistr/u-strncpy.h: New file.
76379
76380         * modules/unistr/u8-strnlen: New file.
76381         * modules/unistr/u16-strnlen: New file.
76382         * modules/unistr/u32-strnlen: New file.
76383         * lib/unistr/u8-strnlen.c: New file.
76384         * lib/unistr/u16-strnlen.c: New file.
76385         * lib/unistr/u32-strnlen.c: New file.
76386         * lib/unistr/u-strnlen.h: New file.
76387
76388         * modules/unistr/u8-strpbrk: New file.
76389         * modules/unistr/u16-strpbrk: New file.
76390         * modules/unistr/u32-strpbrk: New file.
76391         * lib/unistr/u8-strpbrk.c: New file.
76392         * lib/unistr/u16-strpbrk.c: New file.
76393         * lib/unistr/u32-strpbrk.c: New file.
76394         * lib/unistr/u-strpbrk.h: New file.
76395
76396         * modules/unistr/u8-strrchr: New file.
76397         * modules/unistr/u16-strrchr: New file.
76398         * modules/unistr/u32-strrchr: New file.
76399         * lib/unistr/u8-strrchr.c: New file.
76400         * lib/unistr/u16-strrchr.c: New file.
76401         * lib/unistr/u32-strrchr.c: New file.
76402
76403         * modules/unistr/u8-strspn: New file.
76404         * modules/unistr/u16-strspn: New file.
76405         * modules/unistr/u32-strspn: New file.
76406         * lib/unistr/u8-strspn.c: New file.
76407         * lib/unistr/u16-strspn.c: New file.
76408         * lib/unistr/u32-strspn.c: New file.
76409         * lib/unistr/u-strspn.h: New file.
76410
76411         * modules/unistr/u8-strstr: New file.
76412         * modules/unistr/u16-strstr: New file.
76413         * modules/unistr/u32-strstr: New file.
76414         * lib/unistr/u8-strstr.c: New file.
76415         * lib/unistr/u16-strstr.c: New file.
76416         * lib/unistr/u32-strstr.c: New file.
76417         * lib/unistr/u-strstr.h: New file.
76418
76419         * modules/unistr/u8-strtok: New file.
76420         * modules/unistr/u16-strtok: New file.
76421         * modules/unistr/u32-strtok: New file.
76422         * lib/unistr/u8-strtok.c: New file.
76423         * lib/unistr/u16-strtok.c: New file.
76424         * lib/unistr/u32-strtok.c: New file.
76425         * lib/unistr/u-strtok.h: New file.
76426
76427         * modules/unistr/u8-uctomb: New file.
76428         * modules/unistr/u16-uctomb: New file.
76429         * modules/unistr/u32-uctomb: New file.
76430         * lib/unistr/u8-uctomb.c: New file.
76431         * lib/unistr/u16-uctomb.c: New file.
76432         * lib/unistr/u32-uctomb.c: New file.
76433
76434         * MODULES.html.sh (Unicode string functions): Add the new modules.
76435
76436 2007-01-08  Bruno Haible  <bruno@clisp.org>
76437
76438         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
76439         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
76440         subdirectories.
76441
76442 2007-01-08  Karl Berry  <karl@gnu.org>
76443
76444         * doc/error.texi: mention that main() fns must set program_name
76445         when progname is used.
76446
76447 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
76448
76449         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
76450         WCTYPE_H is empty, for the benefit of builds from non-distclean
76451         directories.  Problem reported by Eric Blake in
76452         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
76453
76454 2007-01-08  Bruno Haible  <bruno@clisp.org>
76455
76456         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
76457         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
76458         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
76459         PROVIDE_CANONICALIZE_FILENAME_MODE.
76460         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
76461
76462 2007-01-08  Bruno Haible  <bruno@clisp.org>
76463
76464         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
76465         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
76466         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
76467         * lib/fts.c: Likewise.
76468         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
76469
76470 2006-12-25  Bruno Haible  <bruno@clisp.org>
76471
76472         * modules/utf8-ucs4-safe: New file.
76473         * lib/utf8-ucs4-safe.h: New file.
76474         * lib/unistr/utf8-ucs4-safe.c: New file.
76475
76476         * modules/utf16-ucs4-safe: New file.
76477         * lib/utf16-ucs4-safe.h: New file.
76478         * lib/unistr/utf16-ucs4-safe.c: New file.
76479
76480         * MODULES.html.sh (Unicode string functions): Add the new modules.
76481
76482 2007-01-08  Bruno Haible  <bruno@clisp.org>
76483
76484         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
76485         (Depends-on): Add unitypes.
76486         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76487         (u8_mbtouc_aux): Move out to separate file.
76488         (u8_mbtouc): Use ucs4_t, uint8_t types.
76489         * lib/unistr/utf8-ucs4.c: New file.
76490
76491         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
76492         (Depends-on): Add unitypes.
76493         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
76494         (u16_mbtouc_aux): Move out to separate file.
76495         (u16_mbtouc): Use ucs4_t, uint16_t types.
76496         * lib/unistr/utf16-ucs4.c: New file.
76497
76498         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
76499         (Depends-on): Add unitypes.
76500         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
76501         (u8_uctomb_aux): Move out to separate file.
76502         (u8_uctomb): Use ucs4_t, uint8_t types.
76503         * lib/unistr/ucs4-utf8.c: New file.
76504
76505         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
76506         (Depends-on): Add unitypes.
76507         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
76508         (u16_uctomb_aux): Move out to separate file.
76509         (u16_uctomb): Use ucs4_t, uint16_t types.
76510         * lib/unistr/ucs4-utf16.c: New file.
76511
76512 2006-12-25  Bruno Haible  <bruno@clisp.org>
76513
76514         * modules/unitypes: New file.
76515         * lib/unitypes.h: New file.
76516         * MODULES.html.sh (func_all_modules): New section "Unicode string
76517         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
76518         this section. Add unitypes.
76519
76520 2007-01-08  Bruno Haible  <bruno@clisp.org>
76521
76522         Avoid variable names that conflict with those from libtool.
76523         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
76524         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
76525         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
76526         library_names_spec to acl_library_names_spec, hardcode_* to
76527         acl_hardcode_*.
76528         Reported by Ralf Wildenhues.
76529
76530 2007-01-08  Bruno Haible  <bruno@clisp.org>
76531
76532         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
76533         definition.
76534         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
76535         definition.
76536         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
76537         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
76538         definition.
76539         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
76540         definition.
76541         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
76542         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
76543         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
76544         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
76545         definition.
76546         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
76547         definition.
76548         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
76549         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
76550         GC_USE_<algorithm>.
76551         * lib/gc-libgcrypt.c: Likewise.
76552         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
76553         * modules/gc-arctwo (configure.ac): Likewise.
76554         * modules/gc-des (configure.ac): Likewise.
76555         * modules/gc-hmac-md5 (configure.ac): Likewise.
76556         * modules/gc-hmac-sha1 (configure.ac): Likewise.
76557         * modules/gc-md2 (configure.ac): Likewise.
76558         * modules/gc-md4 (configure.ac): Likewise.
76559         * modules/gc-md5 (configure.ac): Likewise.
76560         * modules/gc-random (configure.ac): Likewise.
76561         * modules/gc-rijndael (configure.ac): Likewise.
76562         * modules/gc-sha1 (configure.ac): Likewise.
76563
76564 2007-01-08  Bruno Haible  <bruno@clisp.org>
76565
76566         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
76567         macro definition.
76568         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
76569         definition.
76570         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
76571         definition.
76572         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
76573         * modules/fcntl-safer (configure.ac): Likewise.
76574         * modules/fopen-safer (configure.ac): Likewise.
76575         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
76576         GNULIB_FWRITEERROR macro definition.
76577
76578 2007-01-08  Bruno Haible  <bruno@clisp.org>
76579
76580         * m4/gnulib-common.m4: New file.
76581         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
76582         (func_get_filelist): Add m4/gnulib-common.m4.
76583
76584 2007-01-08  Bruno Haible  <bruno@clisp.org>
76585
76586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
76587         command.
76588
76589 2007-01-08  Jim Meyering  <jim@meyering.net>
76590
76591         Use a more robust test for a "can't happen" condition.
76592         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
76593         narrowed the st_size value.  Presuming the "can't happen" condition
76594         is true, that narrowing could conceivably convert an invalid st_size
76595         value into a valid one.  Instead, use a change based on Matthew
76596         Woehlke's original patch.
76597
76598         Slight readability improvement: use an assert-like macro
76599         in place of literal "abort ()" uses.
76600         * lib/fts.c (fts_assert): Define.
76601         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
76602         Use this macro instead of a bare 'abort'.
76603
76604 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
76605
76606         Don't worry about using IRIX 5.3's wctype.h broken definitions;
76607         simply work around them.
76608         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
76609         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
76610         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
76611         declaring.
76612         Don't bother to define as macros, since the standard doesn't require it.
76613         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
76614         longer worry about IRIX 5.3.
76615         (HAVE_WCTYPE_CTMP_BUG): Remove.
76616
76617 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
76618
76619         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
76620         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
76621         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
76622         Problems reported by Georg Schwarz for IRIX 5.3.
76623
76624         * gnulib-tool (autoconf_minversion): Take the maximum version number
76625         found, not the minimum.  Problem reported by James Youngman.
76626
76627 2007-01-03  Karl Berry  <karl@gnu.org>
76628
76629         * doc/error.texi: new file, explaining interaction with progname.
76630         * doc/gnulib.texi: include it.  Update copyright.
76631
76632 2007-01-03  Simon Josefsson  <simon@josefsson.org>
76633
76634         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
76635         AC_CANONICAL_HOST, to improve autobuild outputs.
76636
76637 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
76638             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
76639
76640         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
76641         sockets, server sockets, and other file descriptors.  Count errors
76642         to compute the return value.  Reorder the code a bit to be easier
76643         to follow.  Don't set event bits that were not requested (except
76644         POLLERR and POLLHUP).
76645
76646 2007-01-01  Bruno Haible  <bruno@clisp.org>
76647
76648         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
76649
76650 2007-01-03  Jim Meyering  <jim@meyering.net>
76651
76652         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
76653
76654 2007-01-02  Bruno Haible  <bruno@clisp.org>
76655
76656         * modules/settime (Include): Require timespec.h.
76657         * modules/nanosleep (Include): Likewise.
76658
76659 2007-01-01  Bruno Haible  <bruno@clisp.org>
76660
76661         * gnulib-tool (func_emit_copyright_notice): Bump year.
76662         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
76663
76664 2007-01-01  Bruno Haible  <bruno@clisp.org>
76665
76666         Improve support for OpenBSD.
76667         * build-aux/config.rpath (libname_spec): Export.
76668         (library_names_spec): New variable. Export.
76669         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
76670         library_names_spec from the config.rpath output. Locate shared library
76671         through the name pattern in library_names_spec.
76672
76673 2007-01-01  Eric Blake  <ebb9@byu.net>
76674
76675         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
76676
76677 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
76678
76679         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
76680         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
76681         assume the C locale, and avoid an "eval" that could cause trouble.
76682         Problem with SORT reported by Bob Proulx.
76683
76684         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
76685         Define.  Trivial patch from Henning Nielsen Lund, originally
76686         sent to bug-grep@gnu.org today.
76687
76688 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
76689
76690         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
76691         struct stat.  Problem reported by Henning Nielsen Lund.
76692         * lib/acl.c: Include acl.h first, to check interface.  Don't
76693         bother to include sys/types.h and sys/stat.h again.
76694
76695 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
76696
76697         Import the following change from libc; problem reported by
76698         Sven Verdoolaege.
76699
76700         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
76701
76702         [BZ #1373]
76703         * lib/argp.h: Remove __NTH for __argp_usage inline function.
76704
76705 2006-12-28  Jim Meyering  <jim@meyering.net>
76706
76707         * build-aux/announce-gen: Do not assume that the package
76708         builds any of tar.gz, tar.bz2, and .xdelta files.
76709         Suggestion from Simon Josefsson.
76710
76711 2006-12-28  Simon Josefsson  <simon@josefsson.org>
76712
76713         * modules/announce-gen: New file.
76714
76715 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
76716
76717         * lib/mbchar.h: Just include <wctype.h>; the wctype module
76718         handles its gotchas now.
76719         * lib/mbswidth.c: Likewise.
76720         * lib/wcwidth.h: Likewise.
76721         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
76722         and iswcntrl; the wctype module does this stuff now.
76723         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
76725         * modules/mbchar (Depends-on): Add wctype.
76726         * modules/mbswidth (Depends-on): Likewise.
76727         * modules/wcwidth (Depends-on): Likewise.
76728
76729 2006-12-27  Eric Blake  <ebb9@byu.net>
76730
76731         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
76732         module uses more than what <wctype.h> is required to provide.
76733
76734 2006-12-26  Eric Blake  <ebb9@byu.net>
76735
76736         * gnulib-tool (sed_extract_prog): Avoid space-tab.
76737
76738 2006-12-26  Eric Blake  <ebb9@byu.net>
76739
76740         * modules/absolute-header: New module.
76741         * modules/fcntl (Depends-on): Depend on it.
76742         * modules/inttypes (Depends-on): Likewise.
76743         * modules/stdint (Depends-on): Likewise.
76744         * modules/sys_stat (Depends-on): Likewise.
76745         * modules/wctype (Depends-on): Likewise.
76746         * MODULES.html.sh (Support for building libraries and
76747         executables): Document it.
76748
76749 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
76750
76751         * gnulib-tool (SED): Remove, undoing previous change.
76752         The problem was that it broke coreutils on Solaris, because
76753         "sed --posix" leaked into a makefile.
76754         (sed): New alias, if 'alias' and GNU sed.
76755
76756 2006-12-24  Jim Meyering  <jim@meyering.net>
76757
76758         Work around an fchownat bug in glibc-2.4:
76759         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
76760         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
76761         in spite of the -P option.
76762         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
76763         New macros.
76764         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
76765         * modules/openat (Files): Add lib/fchownat.c.
76766         * lib/openat.c (fchownat): Don't define here.  Move to...
76767         * lib/fchownat.c: ...this new file.
76768
76769 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
76770
76771         Fix bug reported by Bruno Haible in
76772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
76773         where quotearg.c didn't compile on Mac OS X 10.2 because it
76774         lacks <wchar.h> and wint_t.
76775         * lib/wctype_.h (__wctype_wint_t): New type.
76776         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
76777         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
76778         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
76779         Arg is now of type __wctype_wint_t, not wint_t.
76780         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
76781         substitute HAVE_WINT_T.
76782         * modules/wctype (Files): Add m4/wint_t.m4.
76783         (wctype.h): Substitute HAVE_WINT_T.
76784
76785 2006-12-23  Bruno Haible  <bruno@clisp.org>
76786
76787         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
76788
76789 2006-12-23  Bruno Haible  <bruno@clisp.org>
76790
76791         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
76792         S_ISLNK.
76793         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
76794         mingw.
76795
76796 2006-12-22  Bruno Haible  <bruno@clisp.org>
76797
76798         * lib/copy-file.c: Include acl.h.
76799         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
76800         Close the file descriptors only after being done with copy_acl.
76801         * modules/copy-file (Depends-on): Add acl.
76802
76803 2006-12-22  Bruno Haible  <bruno@clisp.org>
76804
76805         * gnulib-tool (SED): New variable.
76806         Use $SED instead of sed everywhere.
76807
76808 2006-12-22  Bruno Haible  <bruno@clisp.org>
76809
76810         * modules/no-c++: New file.
76811         * m4/no-c++.m4: New file.
76812         * MODULES.html.sh (Support for building libraries and executables):
76813         Add no-c++.
76814
76815 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
76816
76817         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76818         Include <limits.h>, and use its INT_MAX to rewrite the
76819         j loop so that it does not overflow 'int'.  Problem reported by
76820         Ralf Wildenhues in
76821         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
76822         Play it safe by shifting left by 1 rather than multiplying by 2,
76823         as GCC is less likely to optimize this away when the value
76824         is signed (when it assumes overflow leads to undefined behavior).
76825         Also, don't assume time_t uses two's complement.
76826
76827 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
76828
76829         * MODULES.html.sh: New module wctype.
76830         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
76831         * lib/fnmatch.c: Don't bother to include <wchar.h> before
76832         <wctype.h>, since the new wctype module should fix this.
76833         * lib/quotearg.c: Include <wctype.h> unconditionally, since
76834         the wctype module should arrange for it.
76835         * lib/regex_internal.h: Likewise.
76836         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
76837         since the wctype module should handle this now.
76838         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
76839         * modules/fnmatch (Depends-on): Add wctype.
76840         * modules/quotearg (Depends-on): Likewise.
76841         * modules/regex (Depends-on): Likewise.
76842
76843 2006-12-19  Bruno Haible  <bruno@clisp.org>
76844
76845         * lib/strdup.h [C++]: Wrap definitions in extern "C".
76846         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
76847
76848 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76849
76850         * modules/savewd (Depends-on): Fix dependency on fcntl.
76851
76852 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
76855         conforms to C99, rather than relying on the user's environment
76856         setting of STDINT_H.
76857
76858 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
76859         and Eric Blake  <ebb9@byu.net>
76860
76861         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
76862         This is more consistent with the other defines here.
76863         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
76864         Port to z/OS.  Problem reported by Paul Gilmartin.
76865         Change local vars to use gl_ prefix rather than ac_.
76866         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
76867         with other defines.
76868         * modules/double-slash-root: New module.
76869         * modules/dirname (Files): Remove m4/double-slash-root.m4.
76870         (Depends-on): Add double-slash-root.
76871         * MODULES.html.sh (File system functions): Mention new module.
76872
76873 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
76874
76875         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
76876         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
76877         This is for the benefit of gzip, which doesn't do i18n.
76878
76879 2006-12-12  Jim Meyering  <jim@meyering.net>
76880
76881         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
76882         Reported by Andreas Schwab <schwab@suse.de>.
76883
76884 2006-12-12  Bruno Haible  <bruno@clisp.org>
76885
76886         Merge these changes.
76887         2006-09-05  Bruno Haible  <bruno@clisp.org>
76888         * lib/iconvme.c (iconv_string): No need to save and restore errno when
76889         iconv_alloc succeeded.
76890         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
76891         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
76892         test for " && dest " at the end - dest is always != NULL there. Call
76893         iconv with 4xNULL arguments initially, to reset the state. Call iconv
76894         with 2xNULL arguments, also to flush the state storage. Handle the
76895         IRIX iconv behaviour. Realloc the final result, to throw away unused
76896         memory.
76897
76898 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
76901         and fchmodat unconditionally, since glibc 2.4 has them.
76902         Problem reported by Arkadiusz Miskiewicz.
76903
76904 2006-12-10  Bruno Haible  <bruno@clisp.org>
76905
76906         * gnulib-tool (func_import): Show the include files only for those
76907         modules that are copied and specified.
76908         Reported by Karl Berry.
76909
76910 2006-12-08  Jim Meyering  <jim@meyering.net>
76911
76912         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
76913         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
76914
76915         * build-aux/announce-gen: Add two new options, both optional:
76916         --bootstrap-tools=TOOL_LIST
76917               a comma-separated list of tools, e.g.,
76918               autoconf,automake,bison,gnulib
76919         --gnulib-snapshot-date=DATE
76920               if gnulib is in the bootstrap tool list,
76921               then report this as the snapshot date.
76922               If not specified, use the current date/time.
76923               If you specify a date here, be sure it's UTC.
76924
76925 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76926
76927         * tests/test-argp-2.sh: Fix test to match actual output.
76928         (func_compare): Fix sed script to be portable.
76929
76930 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
76933         workaround for this case.  It is not autoconfigured now; offhand
76934         it's hard to see how to autoconfigure it.
76935
76936 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
76937
76938         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
76939         a directory that is about to be chowned.  Such a directory's
76940         initial file permissions should permit the owner only and this
76941         should not be changed until after the chown, since the group and
76942         other bits would be incorrect if they granted permission before
76943         the chown.
76944
76945         Fix porting problem for iswctype reported by Georg Schwarz in:
76946         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
76947         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
76948         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
76949         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
76950         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
76951
76952 2006-12-03  Jim Meyering  <jim@meyering.net>
76953
76954         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
76955         p->fts_statp may not yet be defined.
76956         (fts_read): Instead, set it in the caller, once p->fts_statp is
76957         sure to be defined, and corresponds to a top-level directory.
76958         This bug made du -x fail.  Here's the coreutils test case:
76959         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
76960         Reported by Mike Frysinger.
76961
76962 2006-12-01  Jim Meyering  <jim@meyering.net>
76963
76964         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
76965         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
76966         Reported by Simon Josefsson.
76967
76968 2006-11-30  Jim Meyering  <jim@meyering.net>
76969
76970         * m4/warning.m4: Use the all-permissive copyright notice
76971         recommended by RMS (rather than LGPL).
76972         * m4/vararrays.m4: Likewise.
76973         * m4/flexmember.m4: Likewise.
76974
76975 2006-11-29  Bruno Haible  <bruno@clisp.org>
76976
76977         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76978         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
76979         using +=.
76980         Reported by Simon Josefsson <simon@josefsson.org>.
76981
76982 2006-11-28  James Youngman <jay@gnu.org>
76983
76984         * README: Advise users that they might find the bug-gnulib@gnu.org
76985         and autotools-announce@gnu.org mailing lists useful.
76986
76987 2006-11-28  Bruno Haible  <bruno@clisp.org>
76988
76989         * m4/ptrdiff_max.m4: Remove file.
76990
76991 2006-11-21  Bruno Haible  <bruno@clisp.org>
76992
76993         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
76994         _AC_COMPUTE_INT.
76995         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76996         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
76997         _AC_COMPUTE_INT.
76998         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
76999         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
77000         _AC_COMPUTE_INT.
77001         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
77002
77003 2006-11-28  Jim Meyering  <jim@meyering.net>
77004
77005         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
77006         warning from "gcc -Wshadow" about shadowing the builtin.
77007
77008 2006-11-27  Bruno Haible  <bruno@clisp.org>
77009
77010         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
77011         _AC_COMPUTE_INT.
77012         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
77013
77014 2006-11-27  Bruno Haible  <bruno@clisp.org>
77015             Paul Eggert  <eggert@cs.ucla.edu>
77016
77017         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
77018
77019 2006-11-26  Bruno Haible  <bruno@clisp.org>
77020
77021         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77022         noinst_LTLIBRARIES.
77023
77024 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
77025             Bruno Haible  <bruno@clisp.org>
77026
77027         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
77028         if compiling with "gcc -ansi".
77029
77030 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
77031
77032         Fix some incompatibilities with gcc -ansi -pedantic.
77033         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
77034         if compiling pedantically with GCC, unless it's C99 or later.
77035         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
77036         it mishandles gcc -ansi -pedantic as well.
77037         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
77038         if gcc -pedantic.
77039         * lib/regexec.c (check_node_accept_bytes): Don't use auto
77040         initializers for struct if -pedantic, unless it's C99 or later.
77041
77042 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
77043
77044         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
77045         Don't close an fd more than once. Identical atimes indicate
77046         success, not failure.
77047
77048 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
77049
77050         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
77051
77052 2006-11-23  Jim Meyering  <jim@meyering.net>
77053
77054         * build-aux/announce-gen: New file.  From coreutils.
77055
77056 2006-11-22  Jim Meyering  <jim@meyering.net>
77057
77058         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
77059         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
77060         (fts_read): Use a temporary to narrow the overused st_size member
77061         before using it in a switch statement.  Reported by Matthew Woehlke.
77062
77063         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
77064         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
77065
77066 2006-11-20  Bruno Haible  <bruno@clisp.org>
77067
77068         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
77069         changequote instead of pairs of brackets.
77070         Reported by Andreas Schwab <schwab@suse.de>.
77071
77072 2006-11-21  Jim Meyering  <jim@meyering.net>
77073
77074         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
77075         so as to remain compatible with older compilers.
77076         Patch from Michael Deutschmann.
77077
77078 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77079
77080         * MODULES.html.sh (File system functions): Add openat.
77081
77082         * lib/openat.h (rpl_fstatat): New macro, if
77083         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
77084         (fstatat): Define to rpl_fstatat under the same conditions,
77085         unless COMPILING_FSTATAT.
77086         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
77087         seems to have the bug.
77088         * lib/fstatat.c: New file.
77089         * modules/openat (Files): Add it.
77090
77091 2006-11-20  Bruno Haible  <bruno@clisp.org>
77092
77093         * Makefile: New file.
77094
77095 2006-11-20  Jim Meyering  <jim@meyering.net>
77096
77097         The beginnings of syntax-related checks for gnulib.
77098         * lib/Makefile: New file.
77099         * lib/t-idcache: New script.  Ensure that the two halves of
77100         idcache.c stay in sync.
77101
77102         * lib/idcache.c: Adjust comments in user- and group- portions to
77103         be more accurate, and to be consistent with one another.
77104
77105 2006-11-20  Jim Meyering  <jim@meyering.net>
77106
77107         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
77108         continue using the flexible array member (thus, this module performs
77109         half as many malloc calls), with the addition that...
77110         (getgroup, getuser): Consistently record a non-match via an empty
77111         "name" string, and map an empty string match to a NULL return value.
77112         * modules/idcache (Depends-on): Re-add flexmember.
77113
77114         * lib/idcache.c (getuser): Remove all uses of the register keyword.
77115         (getuidbyname, getgroup, getgidbyname): Likewise.
77116
77117         Use cleaner syntax: NULL rather than 0.
77118         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
77119
77120 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
77121
77122         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
77123         It mishandled the case where the group was missing.
77124         Problem reported by Greg Schafer.
77125         * modules/idcache: Likewise.
77126
77127 2006-11-18  Jim Meyering  <jim@meyering.net>
77128
77129         * check-module (%exempt_header): Add exception for some
77130         conditionally-included headers.
77131
77132         * modules/i-ring (Depends-on): Add verify.
77133         (License): Change to LGPL.
77134
77135 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
77138         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
77139         and inttostr.h.  Use snprintf rather than uinttostr, so that
77140         LGPLed code doesn't depend on GPLed.
77141
77142 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
77143
77144         * modules/inline (License): Change from GPL to LGPL.
77145
77146 2006-11-17  Jim Meyering  <jim@meyering.net>
77147
77148         * modules/d-type (License): Switch to LGPL.
77149
77150 2006-11-15  Bruno Haible  <bruno@clisp.org>
77151
77152         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
77153
77154 2006-11-15  Eric Blake  <ebb9@byu.net>
77155
77156         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
77157         the module dependency.
77158
77159 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77160             Bruno Haible  <bruno@clisp.org>
77161
77162         * gnulib-tool (func_create_testdir): Add license consistency check.
77163
77164 2006-11-15  Eric Blake  <ebb9@byu.net>
77165
77166         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
77167         random "(cached)" in configure output.
77168
77169 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77170
77171         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
77172         test for conforming inttypes.h is both announced and cached.
77173
77174         * MODULES.html.sh (seen_modules, seen_files): New variables.
77175         (func_module): Rewrite to use a few less gnulib-tool and sed
77176         invocations.  Avoid a couple of quadratic algorithms for ...
77177         (missed_modules, missed_files): ... these, with ...
77178         (func_append, func_tmpdir): ... these new functions, from
77179         gnulib-tool.  Analogously, install traps for cleanup.
77180
77181         * tests/test-gc.c (main): Remove unused variables.
77182         * tests/test-read-file.c: Include stdlib.h, for 'free'.
77183
77184 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
77185
77186         * modules/inttostr (License): Change to LGPL.
77187
77188 2006-11-14  Eric Blake  <ebb9@byu.net>
77189
77190         * modules/tempname (License): Change to LGPL.
77191
77192 2006-11-14  Eric Blake  <ebb9@byu.net>
77193
77194         * doc/functions.texi (Function Portability): *printf functions on
77195         Cygwin now understand all POSIX size specifiers.
77196
77197 2006-11-14  Bruno Haible  <bruno@clisp.org>
77198
77199         * modules/c-ctype (License): Change to LGPL.
77200
77201 2006-11-12  Bruno Haible  <bruno@clisp.org>
77202
77203         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
77204         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
77205         for GNOME libraries, for which the include files are installed in
77206         subdirectories of $prefix/include.
77207
77208 2006-11-12  Bruno Haible  <bruno@clisp.org>
77209
77210         * m4/lib-link.m4: Require at least autoconf-2.54.
77211         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
77212         name to underscores for the --with option.
77213
77214 2006-11-13  Bruno Haible  <bruno@clisp.org>
77215
77216         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
77217         the tests directory.
77218         Reported by Ralf Wildenhues.
77219
77220 2006-11-13  Bruno Haible  <bruno@clisp.org>
77221
77222         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
77223         (func_emit_initmacro_end): Undo the override here.
77224         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
77225         Works around the famous automake error in coreutils.
77226
77227 2006-11-13  Eric Blake  <ebb9@byu.net>
77228
77229         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
77230         element, not its node.
77231
77232 2006-11-12  Bruno Haible  <bruno@clisp.org>
77233
77234         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
77235         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
77236
77237 2006-11-12  Bruno Haible  <bruno@clisp.org>
77238
77239         * gnulib-tool: New option --local-symlink.
77240         (func_usage): Document it.
77241         (lsymbolic): New variable.
77242         (func_import, func_create_testdir): If --symlink was not specified,
77243         test whether --local-symlink was specified and the file comes from
77244         the local_gnulib_dir.
77245
77246 2006-11-12  Bruno Haible  <bruno@clisp.org>
77247
77248         * gnulib-tool (func_ln): New function.
77249         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
77250
77251 2006-11-12  Bruno Haible  <bruno@clisp.org>
77252
77253         Finish support for source files in subdirectories.
77254         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
77255         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
77256         AUTOMAKE_OPTIONS.
77257         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
77258
77259 2006-11-12  Bruno Haible  <bruno@clisp.org>
77260
77261         * gnulib-tool (func_get_automake_snippet): Synthesize also an
77262         EXTRA_lib_SOURCES augmentation.
77263         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
77264
77265 2006-11-12  Jim Meyering  <jim@meyering.net>
77266
77267         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
77268         file descriptors.  This also averts a failure on systems with
77269         native openat support when a traversed directory lacks "x" access.
77270         * lib/fts_.h: Include "i-ring.h"
77271         (struct FTS) [fts_fd_ring]: New member.
77272         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
77273         (FCHDIR): Add parentheses.
77274         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
77275         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
77276         When descending, rather than simply closing the previous
77277         fts_cwd_fd value, push that file descriptor onto the ring.
77278         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
77279         (fts_open): Initialize the new fd_ring member.
77280         (fts_close): Clear the ring.
77281         (fts_safe_changedir): When possible, use our new fd_ring to skip
77282         the diropen and fstat and dev/ino comparison that would normally
77283         accompany a virtual `chdir ("..")'.
77284
77285         * modules/fts (Depends-on): Add i-ring.
77286         * modules/i-ring: New module.
77287         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
77288         * m4/i-ring.m4: New file.
77289
77290 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77291
77292         * gnulib-tool (func_create_testdir): Fix replacement of
77293         `build-aux' in configure.ac.  Run autotools in gltests
77294         subdirectory.
77295         (func_create_testdir, func_create_megatestdir, test): There is
77296         no need for '--force' in most autotool invocations in a new
77297         tree.  Actually fail the whole test if any of the tools, or the
77298         configure or make stages fail.
77299
77300         Sync from Automake.
77301         * build-aux/gnupload: Revert last change.  Add pointer to upload
77302         instructions of the GNU Maintenance Instructions.
77303         Suggestion by Karl Berry.
77304
77305 2006-11-10  Jim Meyering  <jim@meyering.net>
77306
77307         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
77308
77309 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77310
77311         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
77312         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
77313         (bind_textdomain_codeset) [! ENABLE_NLS]:
77314         Evaluate all the arguments.  That way, callers get compatible behavior
77315         if the arguments have side effects.  Also, it avoids some GCC
77316         diagnostics in some cases; Joel E. Denny reported problems when Bison
77317         was configured with --enable-gcc-warnigs.
77318
77319 2006-11-10  Jim Meyering  <jim@meyering.net>
77320
77321         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
77322         relevant options in CFLAGS (like -O, -fno-inline) are taken into
77323         account.
77324
77325 2006-11-10  Jim Meyering  <jim@meyering.net>
77326
77327         * modules/inline: New file/module.
77328         * modules/xalloc (Files): Remove m4/inline.m4.
77329         (Depends-on): Add inline, instead.
77330         * modules/oset: Likewise.
77331         * modules/list: Likewise.
77332
77333 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
77334
77335         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
77336         Problem reported by Matthew Woehlke.
77337
77338 2006-11-09  Bruno Haible  <bruno@clisp.org>
77339
77340         * lib/tempname.c (gen_tempname): Remove variant that invokes
77341         __gen_tempname.
77342         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
77343         __gen_tempname.
77344
77345 2006-11-08  Bruno Haible  <bruno@clisp.org>
77346
77347         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
77348         to 'yes' instead of 'cross-compiling'.
77349
77350 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
77351
77352         * lib/quotearg.h (quotearg_free): New decl.
77353         * lib/quotearg.c (quotearg_free): New function.
77354         (slot0, nslots, slotvec0, slotvec):
77355         Now file-scope so that quotearg_free can get at them.
77356
77357 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77358
77359         Sync from Automake.
77360         * build-aux/gnupload: Add missing 'gnu' to example URL.
77361         Report by Karl Berry.
77362
77363 2006-11-08  Bruno Haible  <bruno@clisp.org>
77364
77365         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
77366         Suggested by Paul Eggert.
77367
77368 2006-11-08  Jim Meyering  <jim@meyering.net>
77369
77370         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
77371         It's already included if !_LIBC.
77372         (fts_safe_changedir): Add a comment.
77373
77374 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77375
77376         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
77377         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
77378         Matthew Woehlke.
77379
77380         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
77381         definitions up, to avoid colliding with change below.
77382         (static_inline) [HAVE_INLINE]: New macro.
77383         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
77384         Provide extern decls when !HAVE_INLINE.  Do not define unless
77385         static_inline is defined, either by us or by xmalloc.c.  Use
77386         static_inline rather than static inline.
77387         (XCALLOC): Optimize sizeof(T) = 1 case.
77388         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
77389
77390 2006-11-07  Bruno Haible  <bruno@clisp.org>
77391
77392         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
77393         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
77394         AC_C_INLINE.
77395         * modules/xalloc (Files): Add m4/inline.m4.
77396
77397 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77398
77399         * README: Fix typo.
77400         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
77401         (Miscellanous Notes): ...from this.
77402
77403 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
77406         Mention that offsetof should be used instead of sizeof.
77407         From Bruno Haible.
77408
77409 2006-11-07  Bruno Haible  <bruno@clisp.org>
77410
77411         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
77412
77413 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77414
77415         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77416         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
77417         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77418         (gl_tree_add_before, gl_tree_add_after):
77419         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
77420         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
77421         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
77422         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
77423         (gl_linked_add_after, gl_linked_add_at): Likewise.
77424         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
77425         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
77426         (gl_tree_add_before, gl_tree_add_after): Likewise.
77427         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
77428         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
77429         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77430
77431 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77432
77433         * lib/gl_oset.h: Use C comment style, not C++ comment style.
77434
77435 2006-11-06  Bruno Haible  <bruno@clisp.org>
77436
77437         * m4/inline.m4: New file.
77438         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
77439         * modules/list (Files): Add m4/inline.m4.
77440         * modules/oset (Files): Likewise.
77441
77442 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
77443
77444         * lib/idcache.c: Include <stddef.h>, for offsetof.
77445         (struct userid.name): Change from char * to a flexible array member.
77446         All uses changed.
77447         * modules/idcache (Depends-on): Add flexmember.
77448
77449         * MODULES.html.sh (Core language properties): New module flexmember.
77450         * modules/flexmember, m4/flexmember.m4: New files.
77451
77452         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
77453         inline functions that are identical with the old xnmalloc_inline,
77454         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
77455         that we can avoid some unnecessary integer multiplications and
77456         divisions in the common case where the element size is known at
77457         compile time.
77458         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
77459         needed.
77460         (xnboundedmalloc): Remove.
77461         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
77462         arguments, for consistency with rest of this header.
77463         (xcharalloc): Rewrite using XNMALLOC.
77464         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
77465         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
77466         versions have been moved to lib/xalloc.h and renamed to be the
77467         non-*_inline versions.
77468         (xmalloc, xrealloc): Implement without reference to the xnmalloc
77469         and xnrealloc functions, since those functions are now inline and
77470         now call us.
77471         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
77472         renaming described above.
77473         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
77474         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
77475         captures the dependency in AC_C_INLINE.
77476
77477         New module canonicalize-lgpl, proposed by Charles Wilson in
77478         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
77479         with a few small changes afterwards.
77480         * MODULES.html.sh (File system functions): New module
77481         canonicalize-lgpl.
77482         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
77483         and canonicalize_file_name.
77484         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
77485         * modules/canonicalize-lgpl: New files.
77486
77487 2006-11-05  Bruno Haible  <bruno@clisp.org>
77488
77489         * gnulib-tool (func_import, func_create_testdir): Create directories
77490         also for files in subdirectories of lib/.
77491
77492 2006-11-05  Bruno Haible  <bruno@clisp.org>
77493
77494         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
77495         ANSI C compliant.
77496
77497 2006-11-03  Bruno Haible  <bruno@clisp.org>
77498
77499         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
77500         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
77501         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
77502         (xnboundedmalloc): New inline function.
77503         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
77504         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
77505         xmalloc.
77506         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
77507         xmalloc.
77508         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
77509         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
77510         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
77511         xmalloc.
77512         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77513         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
77514         xmalloc.
77515         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
77516         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77517         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
77518         xmalloc.
77519         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
77520         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
77521         gl_tree_add_after): Use XMALLOC instead of xmalloc.
77522         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
77523         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
77524         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
77525         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
77526
77527 2006-11-03  Bruno Haible  <bruno@clisp.org>
77528
77529         * lib/c-ctype.h [C++]: Define functions without name mangling.
77530         * lib/fwriteerror.h [C++]: Likewise.
77531         * lib/gcd.h [C++]: Likewise.
77532         * lib/linebreak.h [C++]: Likewise.
77533
77534 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
77535
77536         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
77537         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
77538         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
77539         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77540         Check for functions and headers just once.
77541         Check for declaration of canonicalize_file_name.
77542         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
77543
77544 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77545
77546         * gnulib-tool (func_import): Fix typo in actioncmd.
77547
77548 2006-11-02  Bruno Haible  <bruno@clisp.org>
77549
77550         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
77551         newline sequence in the Makefile.am snippet as a space, like "make"
77552         does.
77553         Reported by Roger Persson <perrog@gmail.com>.
77554
77555 2006-11-01  Bruno Haible  <bruno@clisp.org>
77556
77557         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
77558         already declared in <string.h>.
77559         * lib/strcase.h (strncasecmp): Don't declare it if yes.
77560
77561 2006-11-01  Bruno Haible  <bruno@clisp.org>
77562
77563         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
77564         * lib/strcase.h: Include <string.h>.
77565         (strcasecmp): Define to rpl_strcasecmp here.
77566
77567 2006-11-01  Bruno Haible  <bruno@clisp.org>
77568
77569         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
77570
77571 2006-11-01  Eric Blake  <ebb9@byu.net>
77572
77573         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
77574
77575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
77576
77577 2006-10-29  Bruno Haible  <bruno@clisp.org>
77578
77579         Make it compile in C++ mode.
77580         * lib/full-write.c (full_rw): Add a cast.
77581
77582 2006-11-01  Bruno Haible  <bruno@clisp.org>
77583
77584         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
77585         be POSIX compliant.
77586         Reported by Roger Persson <perrog@gmail.com>.
77587
77588 2006-11-01  Eric Blake  <ebb9@byu.net>
77589
77590         * lib/getopt_.h: Fix comments.
77591
77592 2006-10-31  Eric Blake  <ebb9@byu.net>
77593
77594         * modules/tmpdir (Depends-on): Add sys_stat.
77595         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
77596         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
77597         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
77598         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
77599         tempname.
77600
77601 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
77602
77603         Avoid some C++ diagnostics reported by Bruno Haible.
77604         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
77605         xmalloc.
77606         (quotearg_alloc): Use xcharalloc rather than xmalloc.
77607         (struct slotvec): Move to top level.
77608         (quotearg_n_options): Rewrite to avoid xmalloc.
77609         * lib/xalloc.h (xcharalloc): New function.
77610         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
77611         [defined __cplusplus]: Add function template that provides result
77612         type propagation.  This part of the change is from Bruno Haible.
77613
77614 2006-10-29  Bruno Haible  <bruno@clisp.org>
77615
77616         Make it compile in C++ mode.
77617         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
77618         * lib/strnlen1.c (strnlen1): Cast memchr result.
77619         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
77620         * lib/clean-temp.c (string_equals, string_hash): Add casts.
77621         (create_temp_dir): Rename local variable 'template'.
77622         (compile_csharp_using_sscli): Add cast.
77623         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
77624         * lib/findprog.c (find_in_path): Likewise.
77625         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
77626         * lib/wait-process.c (register_slave_subprocess): Likewise.
77627
77628 2006-10-22  Bruno Haible  <bruno@clisp.org>
77629
77630         * modules/tsearch: New file.
77631         * lib/tsearch.h: New file.
77632         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
77633         * m4/tsearch.m4: New file.
77634         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
77635
77636 2006-10-29  Eric Blake  <ebb9@byu.net>
77637
77638         * lib/arcfour.c: Assume config.h.
77639         * lib/arctwo.c: Likewise.
77640         * lib/base64.c: Likewise.
77641         * lib/check-version.c: Likewise.
77642         * lib/crc.c: Likewise.
77643         * lib/des.c: Likewise.
77644         * lib/gc-gnulib.c: Likewise.
77645         * lib/gc-libgcrypt.c: Likewise.
77646         * lib/gc-pbkdf2-sha1.c: Likewise.
77647         * lib/getaddrinfo.c: Likewise.
77648         * lib/getdelim.c: Likewise.
77649         * lib/getline.c: Likewise.
77650         * lib/hmac-md5.c: Likewise.
77651         * lib/hmac-sha1.c: Likewise.
77652         * lib/iconvme.c: Likewise.
77653         * lib/md2.c: Likewise.
77654         * lib/md4.c: Likewise.
77655         * lib/memxor.c: Likewise.
77656         * lib/read-file.c: Likewise.
77657         * lib/readline.c: Likewise.
77658         * lib/rijndael-alg-fst.c: Likewise.
77659         * lib/rijndael-api-fst.c: Likewise.
77660         * lib/xgetdomainname.c: Likewise.
77661
77662 2006-10-28  Eric Blake  <ebb9@byu.net>
77663
77664         * lib/xstrndup.c: Assume config.h.
77665
77666 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
77669         stat-macros.h is now for our own macros, whereas stat_h is for
77670         macros in the <sys/stat.h> name space.
77671         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
77672         (STAT_MACROS_H): Remove.
77673         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
77674         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
77675         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
77676         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
77677         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
77678         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
77679         Move these macros to ...
77680         * lib/stat_.h: here.  Don't include stat-macros.h.
77681         * lib/canonicalize.c: Don't include stat-macros.h.
77682         * lib/chown.c: Likewise.
77683         * lib/euidaccess.c: Likewise.
77684         * lib/file-type.c: Likewise.
77685         * lib/filemode.c: Likewise.
77686         * lib/glob.c: Likewise.
77687         * lib/isapipe.c: Likewise.
77688         * lib/lchown.c: Likewise.
77689         * lib/lstat.c: Likewise.
77690         * lib/mkdir-p.c: Likewise.
77691         * lib/rmdir.c: Likewise.
77692         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
77693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
77694         unless mkdir isn't declared, to speed up 'configure'.
77695         Always create sys/stat.h, since it's unlikely any real sys/stat.h
77696         would define all the S_* symbols.
77697         * modules/canonicalize (Depends-on):
77698         Depend on sys_stat, not stat-macros.
77699         * modules/chown: Likewise.
77700         * modules/euidaccess: Likewise.
77701         * modules/filemode: Likewise.
77702         * modules/file-type: Likewise.
77703         * modules/glob: Likewise.
77704         * modules/isapipe: Likewise.
77705         * modules/lchown: Likewise.
77706         * modules/lstat: Likewise.
77707         * modules/mkancesdirs: Likewise.
77708         * modules/rmdir: Likewise.
77709         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
77710         * modules/modechange: Likewise.
77711         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
77712         (configure.ac): Remove gl_STAT_MACROS.
77713         * modules/sys_stat (Depends-on): Remove stat-macros.
77714
77715 2006-10-27  Bruno Haible  <bruno@clisp.org>
77716
77717         * m4/signed.m4: Remove file.
77718         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
77719         invocation.
77720         * modules/vasnprintf (Files): Remove m4/signed.m4.
77721
77722 2006-10-27  Bruno Haible  <bruno@clisp.org>
77723
77724         Update to GNU gettext 0.16.
77725         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
77726         m4/inttypes-h.m4, m4/signed.m4.
77727         * m4/gettext.m4: Update to GNU gettext 0.16.
77728         * m4/intl.m4: New file, from GNU gettext.
77729         * m4/intldir.m4: New file, from GNU gettext.
77730         * config/srclist.txt: Update
77731
77732 2006-10-27  Eric Blake  <ebb9@byu.net>
77733
77734         * MODULES.html.sh: Document tempname.
77735         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
77736         dependencies.
77737         (Files): Move lib/tempname.c...
77738         * modules/tempname: ...to this new module.
77739         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
77740         (gl_PREREQ_TEMPNAME): Move...
77741         * m4/tempname.m4: ...to this new file.
77742         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
77743         * modules/sys_stat (Depends-on): Add stat-macros.
77744         * lib/stat_.h (includes): Pick up stat macros.
77745         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
77746         if stat macros are broken.
77747         * lib/tempname.c (includes): No need to include "stat-macros.h".
77748         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
77749         (direxists, __path_search) [!_LIBC]: Don't compile these in
77750         gnulib; the tmpdir module covers that.
77751         * lib/tempname.h: New file.
77752
77753 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
77754
77755         * COPYING: Explain how gnulib-tool converts licence headers.
77756         Almost all wording by Eric Blake.
77757
77758 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * lib/mbchar.h (is_basic_table): Make read-only.
77761         * lib/mbchar.c (is_basic_table): Likewise.
77762         Reported by John Darrington.
77763
77764 2006-10-25  Bruno Haible  <bruno@clisp.org>
77765
77766         * lib/progname.h (set_program_name): Undefine before defining.
77767
77768 2006-10-25  Bruno Haible  <bruno@clisp.org>
77769
77770         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
77771         false for non-gcc C++ compilers.
77772         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
77773
77774 2006-10-24  Bruno Haible  <bruno@clisp.org>
77775
77776         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
77777         iconv implementations like Irix iconv.
77778
77779 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77780
77781         * modules/vararrays: New file.
77782         * m4/vararrays.m4: New file, taken from diffutils.
77783         * MODULES.html.sh: New module vararrays.
77784
77785 2006-10-24  Karl Berry  <karl@gnu.org>
77786
77787         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
77788         Don't call GNU Unix.
77789
77790 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77791
77792         * users.txt: Add Libtool.
77793
77794         Sync from Libtool:
77795
77796         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
77799         to gnulib's policy of including config.h unconditionally.
77800
77801 2006-10-24  Bruno Haible  <bruno@clisp.org>
77802
77803         * modules/wcwidth (Files): Add m4/wint_t.m4.
77804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
77805         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
77806
77807 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
77808
77809         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
77810         to pacify GCC with some -W flags enabled.  Problem reported by
77811         Bruno Haible.
77812
77813 2006-10-24  Jim Meyering  <jim@meyering.net>
77814
77815         * MODULES.html.sh: Remove uinttostr.  It's not a module.
77816         Reported by Karl Berry.
77817
77818 2006-10-23  Bruno Haible  <bruno@clisp.org>
77819
77820         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
77821
77822 2006-10-24  Bruno Haible  <bruno@clisp.org>
77823
77824         * lib/gl_list.h: Use C comment style, not C++ comment style.
77825
77826 2006-10-23  Eric Blake  <ebb9@byu.net>
77827
77828         * lib/getaddrinfo.c (includes): Add missing include.
77829
77830 2006-10-23  Bruno Haible  <bruno@clisp.org>
77831             Paul Eggert  <eggert@cs.ucla.edu>
77832
77833         Ability to rename obstack_free.
77834         * lib/obstack.h (__obstack_free): New macro. Declare instead of
77835         obstack_free.
77836         (obstack_free): Invoke the __obstack_free macro.
77837         * lib/obstack.c (obstack_free): Use __obstack_free macro.
77838
77839 2006-10-23  Bruno Haible  <bruno@clisp.org>
77840             Paul Eggert  <eggert@cs.ucla.edu>
77841
77842         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
77843         __argc, __argv from the declaration. (They are defined as macros on
77844         mingw.)
77845
77846 2006-10-22  Bruno Haible  <bruno@clisp.org>
77847
77848         * doc/gnulib-intro.texi: New file.
77849         * doc/gnulib.texi: Include it.
77850
77851 2006-10-21  Bruno Haible  <bruno@clisp.org>
77852
77853         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
77854         "Introduction", "Miscellanous Notes", "Particular Modules".
77855
77856 2006-10-21  Bruno Haible  <bruno@clisp.org>
77857
77858         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77859         Change mostlyclean-local rule to avoid sh syntax error from bash
77860         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
77861
77862 2006-10-23  Jim Meyering  <jim@meyering.net>
77863
77864         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
77865         in place of snprintf.
77866
77867         * modules/inttostr (Files): Add lib/uinttostr.c.
77868         * lib/uinttostr.c (inttostr): New file/function.
77869         * lib/inttostr.h (uinttostr): Declare.
77870         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
77871         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77872         Add uinttostr.
77873         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
77874
77875 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77876
77877         * lib/canonicalize.c (ELOOP): Define if not already defined.
77878         Problem reported by Bruno Haible in
77879         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
77880
77881 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
77882
77883         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
77884         Problem reported by Perry Smith and Ville Laurikari.
77885
77886         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
77887         uses.
77888
77889 2006-10-19  Bruno Haible  <bruno@clisp.org>
77890
77891         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
77892         for mingw.
77893
77894 2006-10-19  Bruno Haible  <bruno@clisp.org>
77895
77896         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
77897         Needed for mingw.
77898
77899 2006-10-19  Bruno Haible  <bruno@clisp.org>
77900
77901         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
77902
77903 2006-10-19  Bruno Haible  <bruno@clisp.org>
77904
77905         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
77906         it.
77907
77908 2006-10-19  Bruno Haible  <bruno@clisp.org>
77909
77910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
77911         invocation.
77912
77913 2006-10-19  Bruno Haible  <bruno@clisp.org>
77914
77915         * gnulib-tool (func_create_testdir): Don't include ftruncate and
77916         mountlist by default.
77917
77918 2006-10-16  Bruno Haible  <bruno@clisp.org>
77919
77920         * lib/c-strstr.c: Include c-strstr.h.
77921
77922 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77923
77924         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
77925         in a slash.
77926
77927 2006-10-18  Bruno Haible  <bruno@clisp.org>
77928
77929         * lib/lock.h [C++]: Wrap definitions in extern "C".
77930
77931 2006-10-18  Bruno Haible  <bruno@clisp.org>
77932
77933         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
77934         gl_LIBOBJS list.
77935
77936 2006-10-18  Bruno Haible  <bruno@clisp.org>
77937
77938         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
77939
77940 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
77941
77942         * lib/xstrtol.h: Include gettext.h.
77943         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
77944         Problem reported by Eric Blake.
77945         * modules/xstrtol (Depends-on): Add gettext-h.
77946
77947 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
77948
77949         * lib/strftime.c (advance): New macro.
77950         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
77951         incomplete type, so you can't add 0 to it.  Problem and patch
77952         reported by Eelco Dolstra for dietlibc.
77953
77954 2006-10-18  Jim Meyering  <jim@meyering.net>
77955
77956         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
77957         type for a local, and rename it: s/up/user_proc/.
77958
77959 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
77960
77961         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
77962         READ_UTMP_USER_PROCESS.
77963         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
77964
77965 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
77966
77967         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
77968         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
77969
77970 2006-10-17  Eric Blake  <ebb9@byu.net>
77971
77972         * lib/sigprocmask.c (sigprocmask): Fix typo.
77973
77974         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
77975
77976         * modules/clean-temp (Makefile.am): Don't add to make output...
77977         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
77978         config.h.
77979
77980 2006-10-17  Bruno Haible  <bruno@clisp.org>
77981
77982         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
77983         differently if DEFAULT_TEXT_DOMAIN is set.
77984
77985 2006-10-16  Bruno Haible  <bruno@clisp.org>
77986
77987         * lib/clean-temp.c: Include fwriteerror.h.
77988
77989 2006-10-16  Bruno Haible  <bruno@clisp.org>
77990
77991         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
77992
77993 2006-10-16  Bruno Haible  <bruno@clisp.org>
77994
77995         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
77996         * lib/sigprocmask.h: Include <sys/types.h>.
77997         (sigset_t): Use the system's definition if present.
77998
77999 2006-10-17  Eric Blake  <ebb9@byu.net>
78000
78001         * lib/xvasprintf.c (includes): Assume config.h.
78002         * lib/xasprintf.c (includes): Likewise.
78003
78004 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
78005
78006         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
78007         at least as wide as intmax_t.
78008
78009 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
78010
78011         (Imported from Automake.)
78012         * build-aux/gnupload: Update to version 1.1 of directive file.
78013
78014 2006-10-16  Eric Blake  <ebb9@byu.net>
78015
78016         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
78017         match Automake 1.10a.
78018
78019 2006-10-14  Bruno Haible  <bruno@clisp.org>
78020
78021         * modules/sigprocmask: New file.
78022         * lib/sigprocmask.h: New file.
78023         * lib/sigprocmask.c: New file.
78024         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
78025         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
78026         request sigprocmask.o.
78027         (gl_PREREQ_SIGPROCMASK): New macro.
78028         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
78029         (Depends-on): Add sigprocmask.
78030         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
78031         gt_SIGNALBLOCKING. Test for 'raise' only once.
78032         * lib/fatal-signal.c: Include sigprocmask.h.
78033         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
78034         unblock_fatal_signals): Define always.
78035         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78036         sigprocmask.
78037
78038 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         Sync from Automake.
78041         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
78042         which incorrectly sets the mode of an existing destination
78043         directory.  In some cases the unpatched install-sh could do the
78044         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
78045         system.  We hope this is rare in practice, but it's clearly worth
78046         fixing.  Problem reported by Alex Unleashed in
78047         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
78048         Also, don't bother to check for -m bugs unless we're using -m;
78049         suggested by Stepan Kasal.
78050
78051 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78052
78053         Sync from Automake.
78054         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
78055         `-c' flag, so they appear at the same position as in %FASTDEP%
78056         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
78057         which ignores unknown options only after the first non-option.
78058         Bug report against M4 by Nelson H. F. Beebe.
78059
78060 2006-10-13  Jim Meyering  <jim@meyering.net>
78061
78062         Fix a bug in yesterday's change.
78063         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
78064         p->fts_statp->st_dev would be used uninitialized.
78065         Ensures that we always call fts_stat on the very first entry.
78066         Miklos Szeredi reported that find -xdev stopped working.
78067
78068 2006-10-12  Bruno Haible  <bruno@clisp.org>
78069
78070         * gnulib-tool (func_get_automake_snippet): Append an automatically
78071         computed EXTRA_DIST augmentation.
78072         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
78073         * modules/alloca-opt (Makefile.am): Likewise.
78074         * modules/allocsa (Makefile.am): Likewise.
78075         * modules/arcfour (Makefile.am): Likewise.
78076         * modules/arctwo (Makefile.am): Likewise.
78077         * modules/argmatch (Makefile.am): Likewise.
78078         * modules/argz (Makefile.am): Likewise.
78079         * modules/atexit (Makefile.am): Likewise.
78080         * modules/backupfile (Makefile.am): Likewise.
78081         * modules/byteswap (Makefile.am): Likewise.
78082         * modules/c-strtod (Makefile.am): Likewise.
78083         * modules/c-strtold (Makefile.am): Likewise.
78084         * modules/calloc (Makefile.am): Likewise.
78085         * modules/canon-host (Makefile.am): Likewise.
78086         * modules/canonicalize (Makefile.am): Likewise.
78087         * modules/chdir-long (Makefile.am): Likewise.
78088         * modules/chdir-safer (Makefile.am): Likewise.
78089         * modules/check-version (Makefile.am): Likewise.
78090         * modules/chown (Makefile.am): Likewise.
78091         * modules/cloexec (Makefile.am): Likewise.
78092         * modules/close-stream (Makefile.am): Likewise.
78093         * modules/closeout (Makefile.am): Likewise.
78094         * modules/crc (Makefile.am): Likewise.
78095         * modules/csharpexec (Makefile.am): Likewise.
78096         * modules/cycle-check (Makefile.am): Likewise.
78097         * modules/des (Makefile.am): Likewise.
78098         * modules/dev-ino (Makefile.am): Likewise.
78099         * modules/dirfd (Makefile.am): Likewise.
78100         * modules/dirname (Makefile.am): Likewise.
78101         * modules/dup2 (Makefile.am): Likewise.
78102         * modules/eealloc (Makefile.am): Likewise.
78103         * modules/error (Makefile.am): Likewise.
78104         * modules/euidaccess (Makefile.am): Likewise.
78105         * modules/exclude (Makefile.am): Likewise.
78106         * modules/exitfail (Makefile.am): Likewise.
78107         * modules/fcntl-safer (Makefile.am): Likewise.
78108         * modules/fcntl (Makefile.am): Likewise.
78109         * modules/file-type (Makefile.am): Likewise.
78110         * modules/fileblocks (Makefile.am): Likewise.
78111         * modules/filemode (Makefile.am): Likewise.
78112         * modules/filenamecat (Makefile.am): Likewise.
78113         * modules/fnmatch (Makefile.am): Likewise.
78114         * modules/fopen-safer (Makefile.am): Likewise.
78115         * modules/fpending (Makefile.am): Likewise.
78116         * modules/fprintftime (Makefile.am): Likewise.
78117         * modules/free (Makefile.am): Likewise.
78118         * modules/fsusage (Makefile.am): Likewise.
78119         * modules/ftruncate (Makefile.am): Likewise.
78120         * modules/fts (Makefile.am): Likewise.
78121         * modules/gc-arcfour (Makefile.am): Likewise.
78122         * modules/gc-des (Makefile.am): Likewise.
78123         * modules/gc-hmac-md5 (Makefile.am): Likewise.
78124         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
78125         * modules/gc-md4 (Makefile.am): Likewise.
78126         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78127         * modules/gc-sha1 (Makefile.am): Likewise.
78128         * modules/gc (Makefile.am): Likewise.
78129         * modules/getaddrinfo (Makefile.am): Likewise.
78130         * modules/getcwd (Makefile.am): Likewise.
78131         * modules/getdelim (Makefile.am): Likewise.
78132         * modules/getdomainname (Makefile.am): Likewise.
78133         * modules/getgroups (Makefile.am): Likewise.
78134         * modules/gethostname (Makefile.am): Likewise.
78135         * modules/gethrxtime (Makefile.am): Likewise.
78136         * modules/getline (Makefile.am): Likewise.
78137         * modules/getloadavg (Makefile.am): Likewise.
78138         * modules/getlogin_r (Makefile.am): Likewise.
78139         * modules/getndelim2 (Makefile.am): Likewise.
78140         * modules/getopt (Makefile.am): Likewise.
78141         * modules/getpagesize (Makefile.am): Likewise.
78142         * modules/getpass-gnu (Makefile.am): Likewise.
78143         * modules/getpass (Makefile.am): Likewise.
78144         * modules/getsubopt (Makefile.am): Likewise.
78145         * modules/gettime (Makefile.am): Likewise.
78146         * modules/gettimeofday (Makefile.am): Likewise.
78147         * modules/getugroups (Makefile.am): Likewise.
78148         * modules/getusershell (Makefile.am): Likewise.
78149         * modules/glob (Makefile.am): Likewise.
78150         * modules/group-member (Makefile.am): Likewise.
78151         * modules/hard-locale (Makefile.am): Likewise.
78152         * modules/hash (Makefile.am): Likewise.
78153         * modules/hmac-md5 (Makefile.am): Likewise.
78154         * modules/hmac-sha1 (Makefile.am): Likewise.
78155         * modules/human (Makefile.am): Likewise.
78156         * modules/idcache (Makefile.am): Likewise.
78157         * modules/imaxabs (Makefile.am): Likewise.
78158         * modules/imaxdiv (Makefile.am): Likewise.
78159         * modules/inet_ntop (Makefile.am): Likewise.
78160         * modules/inet_pton (Makefile.am): Likewise.
78161         * modules/intprops (Makefile.am): Likewise.
78162         * modules/inttostr (Makefile.am): Likewise.
78163         * modules/inttypes (Makefile.am): Likewise.
78164         * modules/isapipe (Makefile.am): Likewise.
78165         * modules/javaversion (Makefile.am): Likewise.
78166         * modules/lchmod (Makefile.am): Likewise.
78167         * modules/lchown (Makefile.am): Likewise.
78168         * modules/localcharset (Makefile.am): Likewise.
78169         * modules/long-options (Makefile.am): Likewise.
78170         * modules/lstat (Makefile.am): Likewise.
78171         * modules/malloc (Makefile.am): Likewise.
78172         * modules/mathl (Makefile.am): Likewise.
78173         * modules/mbchar (Makefile.am): Likewise.
78174         * modules/md2 (Makefile.am): Likewise.
78175         * modules/md4 (Makefile.am): Likewise.
78176         * modules/md5 (Makefile.am): Likewise.
78177         * modules/memcasecmp (Makefile.am): Likewise.
78178         * modules/memchr (Makefile.am): Likewise.
78179         * modules/memcmp (Makefile.am): Likewise.
78180         * modules/memcoll (Makefile.am): Likewise.
78181         * modules/memcpy (Makefile.am): Likewise.
78182         * modules/memmem (Makefile.am): Likewise.
78183         * modules/memmove (Makefile.am): Likewise.
78184         * modules/mempcpy (Makefile.am): Likewise.
78185         * modules/memrchr (Makefile.am): Likewise.
78186         * modules/memset (Makefile.am): Likewise.
78187         * modules/memxor (Makefile.am): Likewise.
78188         * modules/mkancesdirs (Makefile.am): Likewise.
78189         * modules/mkdir-p (Makefile.am): Likewise.
78190         * modules/mkdir (Makefile.am): Likewise.
78191         * modules/mkdtemp (Makefile.am): Likewise.
78192         * modules/mkstemp (Makefile.am): Likewise.
78193         * modules/mktime (Makefile.am): Likewise.
78194         * modules/modechange (Makefile.am): Likewise.
78195         * modules/mountlist (Makefile.am): Likewise.
78196         * modules/nanosleep (Makefile.am): Likewise.
78197         * modules/obstack (Makefile.am): Likewise.
78198         * modules/openat (Makefile.am): Likewise.
78199         * modules/pagealign_alloc (Makefile.am): Likewise.
78200         * modules/pathmax (Makefile.am): Likewise.
78201         * modules/physmem (Makefile.am): Likewise.
78202         * modules/poll (Makefile.am): Likewise.
78203         * modules/posixtm (Makefile.am): Likewise.
78204         * modules/posixver (Makefile.am): Likewise.
78205         * modules/putenv (Makefile.am): Likewise.
78206         * modules/quote (Makefile.am): Likewise.
78207         * modules/quotearg (Makefile.am): Likewise.
78208         * modules/raise (Makefile.am): Likewise.
78209         * modules/read-file (Makefile.am): Likewise.
78210         * modules/readline (Makefile.am): Likewise.
78211         * modules/readlink (Makefile.am): Likewise.
78212         * modules/readtokens (Makefile.am): Likewise.
78213         * modules/readutmp (Makefile.am): Likewise.
78214         * modules/realloc (Makefile.am): Likewise.
78215         * modules/regex (Makefile.am): Likewise.
78216         * modules/rename-dest-slash (Makefile.am): Likewise.
78217         * modules/rename (Makefile.am): Likewise.
78218         * modules/rijndael (Makefile.am): Likewise.
78219         * modules/rmdir (Makefile.am): Likewise.
78220         * modules/rpmatch (Makefile.am): Likewise.
78221         * modules/safe-read (Makefile.am): Likewise.
78222         * modules/safe-write (Makefile.am): Likewise.
78223         * modules/same-inode (Makefile.am): Likewise.
78224         * modules/same (Makefile.am): Likewise.
78225         * modules/save-cwd (Makefile.am): Likewise.
78226         * modules/savedir (Makefile.am): Likewise.
78227         * modules/setenv (Makefile.am): Likewise.
78228         * modules/settime (Makefile.am): Likewise.
78229         * modules/sha1 (Makefile.am): Likewise.
78230         * modules/sig2str (Makefile.am): Likewise.
78231         * modules/snprintf (Makefile.am): Likewise.
78232         * modules/stat-macros (Makefile.am): Likewise.
78233         * modules/stat-time (Makefile.am): Likewise.
78234         * modules/stdbool (Makefile.am): Likewise.
78235         * modules/stdint (Makefile.am): Likewise.
78236         * modules/stdlib-safer (Makefile.am): Likewise.
78237         * modules/stpcpy (Makefile.am): Likewise.
78238         * modules/stpncpy (Makefile.am): Likewise.
78239         * modules/strcase (Makefile.am): Likewise.
78240         * modules/strcasestr (Makefile.am): Likewise.
78241         * modules/strchrnul (Makefile.am): Likewise.
78242         * modules/strcspn (Makefile.am): Likewise.
78243         * modules/strdup (Makefile.am): Likewise.
78244         * modules/strerror (Makefile.am): Likewise.
78245         * modules/strftime (Makefile.am): Likewise.
78246         * modules/strndup (Makefile.am): Likewise.
78247         * modules/strnlen (Makefile.am): Likewise.
78248         * modules/strpbrk (Makefile.am): Likewise.
78249         * modules/strsep (Makefile.am): Likewise.
78250         * modules/strstr (Makefile.am): Likewise.
78251         * modules/strtod (Makefile.am): Likewise.
78252         * modules/strtoimax (Makefile.am): Likewise.
78253         * modules/strtok_r (Makefile.am): Likewise.
78254         * modules/strtol (Makefile.am): Likewise.
78255         * modules/strtoll (Makefile.am): Likewise.
78256         * modules/strtoul (Makefile.am): Likewise.
78257         * modules/strtoull (Makefile.am): Likewise.
78258         * modules/strtoumax (Makefile.am): Likewise.
78259         * modules/strverscmp (Makefile.am): Likewise.
78260         * modules/sys_socket (Makefile.am): Likewise.
78261         * modules/sys_stat (Makefile.am): Likewise.
78262         * modules/sysexits (Makefile.am): Likewise.
78263         * modules/time_r (Makefile.am): Likewise.
78264         * modules/timegm (Makefile.am): Likewise.
78265         * modules/timespec (Makefile.am): Likewise.
78266         * modules/tmpfile-safer (Makefile.am): Likewise.
78267         * modules/trim (Makefile.am): Likewise.
78268         * modules/unistd-safer (Makefile.am): Likewise.
78269         * modules/unlinkdir (Makefile.am): Likewise.
78270         * modules/unlocked-io (Makefile.am): Likewise.
78271         * modules/userspec (Makefile.am): Likewise.
78272         * modules/utime (Makefile.am): Likewise.
78273         * modules/utimecmp (Makefile.am): Likewise.
78274         * modules/utimens (Makefile.am): Likewise.
78275         * modules/vasnprintf (Makefile.am): Likewise.
78276         * modules/vasprintf (Makefile.am): Likewise.
78277         * modules/vsnprintf (Makefile.am): Likewise.
78278         * modules/xalloc (Makefile.am): Likewise.
78279         * modules/xgetcwd (Makefile.am): Likewise.
78280         * modules/xnanosleep (Makefile.am): Likewise.
78281         * modules/xreadlink (Makefile.am): Likewise.
78282         * modules/xstrtod (Makefile.am): Likewise.
78283         * modules/xstrtol (Makefile.am): Likewise.
78284         * modules/xstrtold (Makefile.am): Likewise.
78285         * modules/yesno (Makefile.am): Likewise.
78286         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
78287
78288 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78289
78290         * modules/error (Makefile.am): Distribute files through
78291         EXTRA_DIST, not lib_SOURCES.
78292
78293 2006-10-12  Eric Blake  <ebb9@byu.net>
78294
78295         * modules/error (Makefile.am): Distribute files in /lib.
78296         * modules/obstack (Makefile.am): Likewise.
78297
78298 2006-10-12  Bruno Haible  <bruno@clisp.org>
78299
78300         * modules/acl (Makefile.am): Distribute all files in lib/ through
78301         EXTRA_DIST.
78302         * modules/arcfour (Makefile.am): Likewise.
78303         * modules/arctwo (Makefile.am): Likewise.
78304         * modules/argmatch (Makefile.am): Likewise.
78305         * modules/argz (Makefile.am): Likewise.
78306         * modules/atexit (Makefile.am): Likewise.
78307         * modules/backupfile (Makefile.am): Likewise.
78308         * modules/c-strtod (Makefile.am): Likewise.
78309         * modules/c-strtold (Makefile.am): Likewise.
78310         * modules/calloc (Makefile.am): Likewise.
78311         * modules/canon-host (Makefile.am): Likewise.
78312         * modules/canonicalize (Makefile.am): Likewise.
78313         * modules/chdir-long (Makefile.am): Likewise.
78314         * modules/chdir-safer (Makefile.am): Likewise.
78315         * modules/check-version (Makefile.am): Likewise.
78316         * modules/chown (Makefile.am): Likewise.
78317         * modules/cloexec (Makefile.am): Likewise.
78318         * modules/close-stream (Makefile.am): Likewise.
78319         * modules/closeout (Makefile.am): Likewise.
78320         * modules/crc (Makefile.am): Likewise.
78321         * modules/cycle-check (Makefile.am): Likewise.
78322         * modules/des (Makefile.am): Likewise.
78323         * modules/dirfd (Makefile.am): Likewise.
78324         * modules/dirname (Makefile.am): Likewise.
78325         * modules/dup2 (Makefile.am): Likewise.
78326         * modules/euidaccess (Makefile.am): Likewise.
78327         * modules/exclude (Makefile.am): Likewise.
78328         * modules/exitfail (Makefile.am): Likewise.
78329         * modules/fcntl-safer (Makefile.am): Likewise.
78330         * modules/file-type (Makefile.am): Likewise.
78331         * modules/fileblocks (Makefile.am): Likewise.
78332         * modules/filemode (Makefile.am): Likewise.
78333         * modules/filenamecat (Makefile.am): Likewise.
78334         * modules/fnmatch (Makefile.am): Likewise.
78335         * modules/fopen-safer (Makefile.am): Likewise.
78336         * modules/fpending (Makefile.am): Likewise.
78337         * modules/fprintftime (Makefile.am): Likewise.
78338         * modules/free (Makefile.am): Likewise.
78339         * modules/fsusage (Makefile.am): Likewise.
78340         * modules/ftruncate (Makefile.am): Likewise.
78341         * modules/fts (Makefile.am): Likewise.
78342         * modules/gc (Makefile.am): Likewise.
78343         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
78344         * modules/getaddrinfo (Makefile.am): Likewise.
78345         * modules/getcwd (Makefile.am): Likewise.
78346         * modules/getdelim (Makefile.am): Likewise.
78347         * modules/getdomainname (Makefile.am): Likewise.
78348         * modules/getgroups (Makefile.am): Likewise.
78349         * modules/gethostname (Makefile.am): Likewise.
78350         * modules/gethrxtime (Makefile.am): Likewise.
78351         * modules/getline (Makefile.am): Likewise.
78352         * modules/getloadavg (Makefile.am): Likewise.
78353         * modules/getlogin_r (Makefile.am): Likewise.
78354         * modules/getopt (Makefile.am): Likewise.
78355         * modules/getpass (Makefile.am): Likewise.
78356         * modules/getpass-gnu (Makefile.am): Likewise.
78357         * modules/getsubopt (Makefile.am): Likewise.
78358         * modules/gettime (Makefile.am): Likewise.
78359         * modules/gettimeofday (Makefile.am): Likewise.
78360         * modules/getugroups (Makefile.am): Likewise.
78361         * modules/getusershell (Makefile.am): Likewise.
78362         * modules/glob (Makefile.am): Likewise.
78363         * modules/group-member (Makefile.am): Likewise.
78364         * modules/hard-locale (Makefile.am): Likewise.
78365         * modules/hash (Makefile.am): Likewise.
78366         * modules/hmac-md5 (Makefile.am): Likewise.
78367         * modules/hmac-sha1 (Makefile.am): Likewise.
78368         * modules/human (Makefile.am): Likewise.
78369         * modules/idcache (Makefile.am): Likewise.
78370         * modules/imaxabs (Makefile.am): Likewise.
78371         * modules/imaxdiv (Makefile.am): Likewise.
78372         * modules/inet_ntop (Makefile.am): Likewise.
78373         * modules/inet_pton (Makefile.am): Likewise.
78374         * modules/inttostr (Makefile.am): Likewise.
78375         * modules/isapipe (Makefile.am): Likewise.
78376         * modules/lchown (Makefile.am): Likewise.
78377         * modules/long-options (Makefile.am): Likewise.
78378         * modules/lstat (Makefile.am): Likewise.
78379         * modules/malloc (Makefile.am): Likewise.
78380         * modules/mathl (Makefile.am): Likewise.
78381         * modules/mbchar (Makefile.am): Likewise.
78382         * modules/md2 (Makefile.am): Likewise.
78383         * modules/md4 (Makefile.am): Likewise.
78384         * modules/md5 (Makefile.am): Likewise.
78385         * modules/memcasecmp (Makefile.am): Likewise.
78386         * modules/memchr (Makefile.am): Likewise.
78387         * modules/memcmp (Makefile.am): Likewise.
78388         * modules/memcoll (Makefile.am): Likewise.
78389         * modules/memcpy (Makefile.am): Likewise.
78390         * modules/memmem (Makefile.am): Likewise.
78391         * modules/memmove (Makefile.am): Likewise.
78392         * modules/mempcpy (Makefile.am): Likewise.
78393         * modules/memrchr (Makefile.am): Likewise.
78394         * modules/memset (Makefile.am): Likewise.
78395         * modules/memxor (Makefile.am): Likewise.
78396         * modules/mkancesdirs (Makefile.am): Likewise.
78397         * modules/mkdir (Makefile.am): Likewise.
78398         * modules/mkdir-p (Makefile.am): Likewise.
78399         * modules/mkdtemp (Makefile.am): Likewise.
78400         * modules/mkstemp (Makefile.am): Likewise.
78401         * modules/mktime (Makefile.am): Likewise.
78402         * modules/modechange (Makefile.am): Likewise.
78403         * modules/mountlist (Makefile.am): Likewise.
78404         * modules/nanosleep (Makefile.am): Likewise.
78405         * modules/openat (Makefile.am): Likewise.
78406         * modules/pagealign_alloc (Makefile.am): Likewise.
78407         * modules/physmem (Makefile.am): Likewise.
78408         * modules/poll (Makefile.am): Likewise.
78409         * modules/posixtm (Makefile.am): Likewise.
78410         * modules/posixver (Makefile.am): Likewise.
78411         * modules/putenv (Makefile.am): Likewise.
78412         * modules/quote (Makefile.am): Likewise.
78413         * modules/quotearg (Makefile.am): Likewise.
78414         * modules/raise (Makefile.am): Likewise.
78415         * modules/read-file (Makefile.am): Likewise.
78416         * modules/readline (Makefile.am): Likewise.
78417         * modules/readlink (Makefile.am): Likewise.
78418         * modules/readtokens (Makefile.am): Likewise.
78419         * modules/readutmp (Makefile.am): Likewise.
78420         * modules/realloc (Makefile.am): Likewise.
78421         * modules/regex (Makefile.am): Likewise.
78422         * modules/rename (Makefile.am): Likewise.
78423         * modules/rename-dest-slash (Makefile.am): Likewise.
78424         * modules/rijndael (Makefile.am): Likewise.
78425         * modules/rmdir (Makefile.am): Likewise.
78426         * modules/rpmatch (Makefile.am): Likewise.
78427         * modules/safe-read (Makefile.am): Likewise.
78428         * modules/safe-write (Makefile.am): Likewise.
78429         * modules/same (Makefile.am): Likewise.
78430         * modules/save-cwd (Makefile.am): Likewise.
78431         * modules/savedir (Makefile.am): Likewise.
78432         * modules/setenv (Makefile.am): Likewise.
78433         * modules/settime (Makefile.am): Likewise.
78434         * modules/sha1 (Makefile.am): Likewise.
78435         * modules/sig2str (Makefile.am): Likewise.
78436         * modules/snprintf (Makefile.am): Likewise.
78437         * modules/stdlib-safer (Makefile.am): Likewise.
78438         * modules/stpcpy (Makefile.am): Likewise.
78439         * modules/stpncpy (Makefile.am): Likewise.
78440         * modules/strcase (Makefile.am): Likewise.
78441         * modules/strcasestr (Makefile.am): Likewise.
78442         * modules/strchrnul (Makefile.am): Likewise.
78443         * modules/strcspn (Makefile.am): Likewise.
78444         * modules/strdup (Makefile.am): Likewise.
78445         * modules/strerror (Makefile.am): Likewise.
78446         * modules/strftime (Makefile.am): Likewise.
78447         * modules/strndup (Makefile.am): Likewise.
78448         * modules/strnlen (Makefile.am): Likewise.
78449         * modules/strpbrk (Makefile.am): Likewise.
78450         * modules/strsep (Makefile.am): Likewise.
78451         * modules/strstr (Makefile.am): Likewise.
78452         * modules/strtod (Makefile.am): Likewise.
78453         * modules/strtoimax (Makefile.am): Likewise.
78454         * modules/strtok_r (Makefile.am): Likewise.
78455         * modules/strtol (Makefile.am): Likewise.
78456         * modules/strtoll (Makefile.am): Likewise.
78457         * modules/strtoul (Makefile.am): Likewise.
78458         * modules/strtoull (Makefile.am): Likewise.
78459         * modules/strtoumax (Makefile.am): Likewise.
78460         * modules/strverscmp (Makefile.am): Likewise.
78461         * modules/time_r (Makefile.am): Likewise.
78462         * modules/timegm (Makefile.am): Likewise.
78463         * modules/tmpfile-safer (Makefile.am): Likewise.
78464         * modules/unistd-safer (Makefile.am): Likewise.
78465         * modules/unlinkdir (Makefile.am): Likewise.
78466         * modules/userspec (Makefile.am): Likewise.
78467         * modules/utime (Makefile.am): Likewise.
78468         * modules/utimecmp (Makefile.am): Likewise.
78469         * modules/utimens (Makefile.am): Likewise.
78470         * modules/vasnprintf (Makefile.am): Likewise.
78471         * modules/vasprintf (Makefile.am): Likewise.
78472         * modules/vsnprintf (Makefile.am): Likewise.
78473         * modules/xalloc (Makefile.am): Likewise.
78474         * modules/xgetcwd (Makefile.am): Likewise.
78475         * modules/xnanosleep (Makefile.am): Likewise.
78476         * modules/xreadlink (Makefile.am): Likewise.
78477         * modules/xstrtod (Makefile.am): Likewise.
78478         * modules/xstrtol (Makefile.am): Likewise.
78479         * modules/xstrtold (Makefile.am): Likewise.
78480         * modules/yesno (Makefile.am): Likewise.
78481
78482 2006-10-12  Jim Meyering  <jim@meyering.net>
78483
78484         * m4/getloadavg.m4: Revert the change below.
78485
78486         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
78487         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
78488         fail with a symlink, which is what coreutils' ./bootstrap now
78489         creates by default.
78490
78491 2006-10-12  Bruno Haible  <bruno@clisp.org>
78492
78493         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
78494         mingw.
78495         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
78496         MSVC and mingw explicitly.
78497
78498 2006-10-11  Simon Josefsson  <jas@extundo.com>
78499             Bruno Haible  <bruno@clisp.org>
78500
78501         Add support for multiple gnulib-tool invocations in the scope of a
78502         single configure.ac file.
78503         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
78504         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
78505         with the same contents as the _LIBADD variable.
78506         (func_emit_initmacro_start, func_emit_initmacro_end,
78507         func_emit_initmacro_done): New functions.
78508         (func_import, func_create_testdir): Invoke them. Allow the identifiers
78509         gl_LIBOBJS and gl_LTLIBOBJS.
78510
78511 2006-10-11  Bruno Haible  <bruno@clisp.org>
78512
78513         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
78514         (func_create_testdir): Don't create po/Makefile.am, don't invoke
78515         autoreconf. Instead, invoke autopoint explicitly but move back the
78516         *.m4 files from gnulib.
78517
78518 2006-10-11  Bruno Haible  <bruno@clisp.org>
78519
78520         * gnulib-tool (func_usage): Make module names after --create-testdir
78521         optional.
78522         (func_create_testdir): If no module was specified, use nearly all
78523         modules.
78524
78525 2006-10-12  Jim Meyering  <jim@meyering.net>
78526
78527         Big performance improvement for fts-based tools that use FTS_NOSTAT.
78528         Avoid spurious inode-mismatch problems on non-POSIX file systems.
78529         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
78530         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
78531         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
78532         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
78533         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
78534         (fts_set_stat_required): New function.
78535         (fts_open): Defer the calls to fts_stat, if possible or requested.
78536         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
78537         into fts_stat itself.
78538         (fts_read): Perform any required (deferred) fts_stat call.
78539         (fts_build): Likewise, for the directory we're about to open and read.
78540         In the readdir loop, carefully decide whether each entry will require
78541         an eventual call to fts_stat, using dirent.d_type info if available.
78542         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
78543         a command line argument into this function.  Update all callers.
78544         Map a return value of FTS_DOT to FTS_D for a command line argument.
78545         * modules/fts (Depends-on): Add d-type.  Alphabetize.
78546         Thanks to Miklos Szeredi for his tenacity and for the initial
78547         bug report about "find" failing on a FUSE-based file system.
78548
78549         * lib/fts.c (fts_open): Use consistent indentation.
78550
78551 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
78552
78553         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
78554         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
78555         reported by Jim Meyering.  All uses of cache variables renamed
78556         to match Autoconf's.
78557         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
78558         the other one.
78559
78560         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
78561         Fix misspelling in diagnostic.
78562
78563 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78564
78565         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
78566         defined.  Problem reported by Matthew Woehlke.
78567
78568         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
78569         Add support for Tandem NonStop R series.
78570         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
78571         Use new macro.
78572
78573         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
78574         (has_trailing_slash): Omit size arg; all callers changed.
78575         Omit 'inline', since it doesn't help performance and we'd
78576         need to configure it.
78577         Don't count //, ///, etc. as having a trailing slash.
78578         As a side effect, this removes a C99ism reported by Matthew Woehlke.
78579         (rpl_rename_dest_slash): On failure, use rename's errno rather
78580         than (in some cases) an incorrect or junk errno.
78581         Simplify code by removing need to compute length; this does
78582         cause it to make two passes instead of one over the file name,
78583         but it's worth it.
78584
78585         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
78586         change, since Autoconf's version may no longer be appropriate now
78587         that we are using CVS Autoconf's version.  Add support for Tandem.
78588
78589 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
78590             Bruno Haible  <bruno@clisp.org>
78591
78592         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
78593         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
78594         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
78595         gl_AC_TYPE_LONG_LONG.
78596
78597         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
78598         instead of HAVE_LONG_LONG.
78599         * lib/printf-args.c (printf_fetchargs): Likewise.
78600         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
78601         * lib/vasnprintf.c (VASNPRINTF): Likewise.
78602         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
78603         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
78604         gl_AC_TYPE_LONG_LONG.
78605
78606 2006-10-11  Bruno Haible  <bruno@clisp.org>
78607
78608         * m4/longlong.m4: Add comments.
78609         * m4/ulonglong.m4: Likewise.
78610
78611 2006-10-10  Bruno Haible  <bruno@clisp.org>
78612
78613         Make it possible to #define stpcpy, strdup to aliases.
78614         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
78615         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
78616
78617 2006-10-10  Bruno Haible  <bruno@clisp.org>
78618
78619         Make it possible to #define gcd to an alias.
78620         * lib/gcd.c: Include config.h.
78621
78622 2006-10-10  Bruno Haible  <bruno@clisp.org>
78623
78624         Make it possible to #define c_isascii to an alias.
78625         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
78626         defined. Undefine the macros before defining them, to avoid gcc
78627         warnings.
78628         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
78629         define NO_C_CTYPE_MACROS early.
78630
78631 2006-10-10  Bruno Haible  <bruno@clisp.org>
78632
78633         Make it possible to #define set_program_name to an alias.
78634         * lib/progname.c: Don't undefine set_program_name; instead, undefine
78635         ENABLE_RELOCATABLE early.
78636
78637 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         Port to Tandem NSK OSS, which has 64-bit signed int but at most
78640         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
78641         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
78642         More generally, don't assume that 64-bit signed int is available
78643         if unsigned int is, and vice versa.
78644         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
78645         unsigned symbols, not on their signed counterparts.
78646         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
78647         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
78648         (UINT64_C, UINTMAX_C):
78649         Likewise.
78650         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
78651         unsigned counterparts.
78652         (Have_long_long, Unsigned): New macros.
78653         (Int): Renamed from INT.
78654         (strtoimax): Use the new macros.
78655         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
78656         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
78657         * modules/inttypes (inttypes.h): Substitute
78658         HAVE_UNSIGNED_LONG_LONG_INT.
78659         * modules/stdint (stdint.h): Likewise.
78660         (Files): Add m4/ulonglong.m4.
78661
78662 2006-10-10  Bruno Haible  <bruno@clisp.org>
78663
78664         Fix a gcc -Wshadow warning.
78665         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
78666         to 'bucket'.
78667         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
78668         gl_linked_indexof_from_to): Likewise.
78669         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
78670         Likewise.
78671         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
78672         Likewise.
78673         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
78674         Reported by Eric Blake.
78675
78676 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
78677
78678         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
78679         for NetBSD.  Problem reported by Bruno Haible.
78680
78681 2006-10-09  Jim Meyering  <jim@meyering.net>
78682
78683         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
78684         Patch from Bruno Haible.
78685
78686 2006-10-09  Jim Meyering  <jim@meyering.net>
78687
78688         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
78689         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
78690         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
78691
78692 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         Don't include <config.h> twice; this doesn't work in some cases,
78695         e.g., when config.h has "#define intmax_t long long int" and
78696         we include <config.h>, <inttypes.h>, <config.h> in that order.
78697         Problem reported by Matthew Woehlke in:
78698         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
78699         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
78700         * lib/fts-cycle.c: Don't include config.h.
78701         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
78702         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
78703         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
78704         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
78705         inttypes.h.
78706         * lib/xstrtoumax.c: Likewise.
78707         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
78708         __strtol and the like, so that this module is more like its siblings.
78709         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
78710         Remove; no longer needed now that we assume gnulib inttypes.h.
78711
78712 2006-10-08  Bruno Haible  <bruno@clisp.org>
78713
78714         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
78715         option.
78716
78717 2006-10-07  Jim Meyering  <jim@meyering.net>
78718
78719         * modules/inttypes (inttypes.h): Revert what seems to have been
78720         an inadvertent part of today's change: use "|", not "/" in the
78721         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
78722
78723 2006-10-07  Bruno Haible  <bruno@clisp.org>
78724
78725         * modules/sublist: New file.
78726
78727 2006-10-07  Bruno Haible  <bruno@clisp.org>
78728
78729         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
78730         * modules/argz (argz.h): Likewise.
78731         * modules/arpa_inet (arpa/inet.h): Likewise.
78732         * modules/byteswap (byteswap.h): Likewise.
78733         * modules/configmake (configmake.h): Likewise.
78734         * modules/fcntl (fcntl.h): Likewise.
78735         * modules/fnmatch (fnmatch.h): Likewise.
78736         * modules/getopt (getopt.h): Likewise.
78737         * modules/glob (glob.h): Likewise.
78738         * modules/inttypes (inttypes.h): Likewise.
78739         * modules/netinet_in (netinet/in.h): Likewise.
78740         * modules/poll (poll.h): Likewise.
78741         * modules/stdbool (stdbool.h): Likewise.
78742         * modules/stdint (stdint.h): Likewise.
78743         * modules/sys_select (sys/select.h): Likewise.
78744         * modules/sys_socket (sys/socket.h): Likewise.
78745         * modules/sys_stat (sys/stat.h): Likewise.
78746         * modules/sysexits (sysexits.h): Likewise.
78747         * modules/unistd (unistd.h): Likewise.
78748         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78749         Add a "DO NOT EDIT" comment to the generated file.
78750         (func_import): Likewise for gnulib-comp.m4.
78751
78752 2006-10-07  Bruno Haible  <bruno@clisp.org>
78753
78754         * lib/gl_sublist.h: New file.
78755         * lib/gl_sublist.c: New file.
78756
78757 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
78760         name (relative to the original working directory) and the file
78761         name component (relative to the temporary working directory).  All
78762         callers changed.
78763         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
78764         * lib/mkdir-p.c (make_dir_parents): Likewise.
78765         * lib/mkdir-p.h (make_dir_parents): Likewise.
78766
78767 2006-10-06  Eric Blake  <ebb9@byu.net>
78768
78769         Define several macros for use by the clean-temp module.
78770         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
78771         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
78772         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
78773
78774         * lib/clean-temp.h (close_stream_temp): New declaration.
78775         * lib/clean-temp.c (includes): Pull in headers according to what
78776         other modules are in use.
78777         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
78778
78779 2006-10-06  Bruno Haible  <bruno@clisp.org>
78780
78781         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
78782         instead of fopen, fwriteerror.
78783
78784 2006-10-06  Bruno Haible  <bruno@clisp.org>
78785
78786         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
78787         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
78788         int.
78789         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
78790         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
78791         Return an error indicator.
78792         Suggested by Eric Blake.
78793
78794 2006-10-06  Bruno Haible  <bruno@clisp.org>
78795
78796         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
78797         Reported by Eric Blake.
78798
78799 2006-10-06  Bruno Haible  <bruno@clisp.org>
78800
78801         * modules/closeout (Description): Mention stderr too.
78802
78803 2006-10-06  Bruno Haible  <bruno@clisp.org>
78804         and Paul Eggert  <eggert@cs.ucla.edu>
78805
78806         * lib/closeout.c (close_stdout): Also close stderr.
78807         * lib/closeout.h: Update comment.
78808
78809 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
78812         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
78813         * lib/dirchownmod.c: Include lchown.h.
78814         * lib/lchown.c: Don't include files that lchown.h now includes.
78815         Don't declare chown, since lchown.h now does that.
78816         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
78817         (lchown): Define to rpl_chown if lchown is declared but
78818         does not exist.  Declare using a prototype if lchown is not
78819         declared.  Add a copyright notice.
78820         * lib/mkstemp.h: Include <unistd.h>.
78821         * lib/openat.c: Include lchown.h.
78822
78823         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
78824         we now test for that separately.
78825         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
78826         rather than O_NOFOLLOW, when testing whether it's possible to
78827         avoid a race condition reliably.
78828         * lib/savewd.c (savewd_chdir): Likewise.
78829
78830         Remove macros that are no longer needed now that stdint.h is
78831         reliable.
78832         * lib/fsusage.c (UINTMAX_MAX): Remove.
78833         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
78834         * lib/utimecmp.c (SIZE_MAX): Remove.
78835
78836         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
78837
78838         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
78839         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
78840         O_NOATIME works.
78841
78842 2006-10-05  Bruno Haible  <bruno@clisp.org>
78843
78844         * lib/gl_list.h (gl_sortedlist_search_from_to,
78845         gl_sortedlist_indexof_from_to): New declarations.
78846         (gl_list_implementation): New fields sortedlist_search_from_to,
78847         sortedlist_indexof_from_to.
78848         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
78849         inline functions.
78850         * lib/gl_list.c (gl_sortedlist_search_from_to,
78851         gl_sortedlist_indexof_from_to): New functions.
78852         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
78853         function.
78854         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
78855         (gl_array_sortedlist_search_from_to): New function.
78856         (gl_array_list_implementation): Update.
78857         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
78858         function.
78859         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
78860         (gl_carray_sortedlist_search_from_to): New function.
78861         (gl_carray_list_implementation): Update.
78862         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
78863         gl_linked_sortedlist_indexof_from_to): New functions.
78864         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78865         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78866         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
78867         gl_tree_sortedlist_indexof_from_to): New functions.
78868         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78869         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78870         Update.
78871         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78872         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
78873         Update.
78874
78875 2006-10-05  Bruno Haible  <bruno@clisp.org>
78876
78877         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
78878         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
78879         (struct gl_list_implementation): Add fields search_from_to,
78880         indexof_from_to. Remove fields search, indexof.
78881         (gl_list_search): Use the search_from_to method.
78882         (gl_list_search_from, gl_list_search_from_to): New functions.
78883         (gl_list_indexof): Use the indexof_from_to method.
78884         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78885         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
78886         (gl_list_search_from, gl_list_search_from_to): New functions.
78887         (gl_list_indexof): Use the indexof_from_to method.
78888         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
78889         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
78890         gl_array_indexof. Add start_index, end_index arguments.
78891         (gl_array_search_from_to): Renamed from gl_array_search. Add
78892         start_index, end_index arguments.
78893         (gl_array_remove, gl_array_list_implementation): Update.
78894         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
78895         gl_carray_indexof. Add start_index, end_index arguments.
78896         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
78897         start_index, end_index arguments.
78898         (gl_carray_remove, gl_carray_list_implementation): Update.
78899         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
78900         gl_linked_search. Add start_index, end_index arguments.
78901         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
78902         start_index, end_index arguments.
78903         (gl_linked_remove): Update.
78904         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
78905         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
78906         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
78907         field to 'size_t'.
78908         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
78909         gl_tree_search. Add start_index, end_index arguments.
78910         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78911         start_index, end_index arguments.
78912         (gl_tree_remove): Update.
78913         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
78914         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
78915         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
78916         function.
78917         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
78918         gl_tree_search. Add start_index, end_index arguments.
78919         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
78920         start_index, end_index arguments.
78921         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
78922         Update.
78923         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
78924
78925 2006-10-05  Bruno Haible  <bruno@clisp.org>
78926
78927         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
78928
78929         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
78930         fwriteerror_temp): New declarations.
78931         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
78932         (descriptors): New variable.
78933         (cleanup): First, close the descriptors.
78934         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
78935         fclose_temp, fwriteerror_temp): New functions.
78936
78937 2006-10-04  Jim Meyering  <jim@meyering.net>
78938
78939         * lib/fts.c (fts_open): Tiny comment change.
78940
78941 2006-10-04  Bruno Haible  <bruno@clisp.org>
78942
78943         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
78944         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
78945         gl_LOCK_BODY.
78946         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
78947         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
78948         gl_LOCK_EARLY_BODY.
78949         (gl_LOCK): Require gl_LOCK_BODY.
78950
78951 2006-10-04  Bruno Haible  <bruno@clisp.org>
78952
78953         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
78954         (gl_oset_search_atleast): New declaration.
78955         (struct gl_oset_implementation): Add field 'search_atleast'.
78956         (gl_oset_search_atleast): New inline function.
78957         * lib/gl_oset.c (gl_oset_search_atleast): New function.
78958         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
78959         (gl_array_oset_implementation): Update.
78960         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
78961         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
78962         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
78963
78964 2006-10-04  Bruno Haible  <bruno@clisp.org>
78965
78966         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
78967
78968 2006-10-03  Bruno Haible  <bruno@clisp.org>
78969
78970         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
78971         from gl_avltreehash_list_implementation.
78972
78973 2006-10-03  Bruno Haible  <bruno@clisp.org>
78974
78975         * lib/gl_oset.c (gl_oset_add): Fix return type.
78976
78977 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
78978
78979         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
78980
78981 2006-10-02  Eric Blake  <ebb9@byu.net>
78982
78983         * modules/strnlen (Depends-on): Add extensions.
78984
78985 2006-10-02  Eric Blake  <ebb9@byu.net>
78986
78987         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
78988         definition in 2.60+.
78989
78990 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
78991
78992         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
78993         checks.
78994
78995 2006-10-02  Bruno Haible  <bruno@clisp.org>
78996
78997         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
78998         to the AUTOMAKE_OPTIONS.
78999         Reported by Jim Meyering.
79000
79001 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79002
79003         Work around bug in Solaris 10 /proc file system:
79004         /proc/self/fd/NNN/.. isn't the parent directory of
79005         the directory whose file descriptor is NNN.  This needs to
79006         be worked around at run time, not compile time, since a
79007         program might be built on Solaris 8, where things work, and
79008         run on Solaris 10.
79009         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
79010         to use the following interface instead:
79011         (OPENAT_BUFFER_SIZE): New macro.
79012         (openat_proc_name): New function.
79013         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
79014         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
79015         Likewise.
79016         * lib/openat-proc.c: New file.
79017         * modules/openat (Files): Add lib/openat-proc.c.
79018         (Depends-on): Add same-inode, stdbool.
79019         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
79020
79021 2006-09-29  Bruno Haible  <bruno@clisp.org>
79022
79023         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
79024         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
79025         argument. Set stdout_closed before testing for ferror, not after.
79026         (fwriteerror, fwriteerror_no_ebadf): New functions.
79027
79028 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79029
79030         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
79031
79032 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
79033
79034         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
79035         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
79036
79037 2006-09-28  Jim Meyering  <jim@meyering.net>
79038
79039         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
79040         Include <unistd.h>.
79041
79042 2006-09-28  Bruno Haible  <bruno@clisp.org>
79043
79044         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
79045         * modules/linkedhash-list (Depends-on): Likewise.
79046         * modules/rbtreehash-list (Depends-on): Likewise.
79047
79048 2006-09-28  Bruno Haible  <bruno@clisp.org>
79049
79050         * lib/strndup.h: Simplify the redefinition of strndup.
79051         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
79052         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
79053
79054 2006-09-28  Bruno Haible  <bruno@clisp.org>
79055
79056         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
79057         * lib/gl_linkedhash_list.c: Likewise.
79058         * lib/gl_rbtreehash_list.c: Likewise.
79059
79060 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79061
79062         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
79063         getaddrinfo.
79064
79065         * lib/__fpending.h: Don't include <stdio_ext.h> unless
79066         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
79067         it causes <stdio_ext.h> to cause a compile-time error.
79068         Problem reported by Nelson H. F. Beebe.
79069         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
79070         of HAVE_DECL___PENDING.
79071
79072         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
79073         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
79074         declaration.
79075
79076 2006-09-27  Jim Meyering  <jim@meyering.net>
79077
79078         This file could end up with a definition for a function
79079         named __strndup, rather than rpl_strndup on a system with
79080         incomplete weak_alias support.
79081         * lib/strndup.c (strndup): Rename from __strndup.
79082         Remove #defines that used to map __strndup to strndup.
79083         Don't use K&R prototypes.
79084         Remove LIBC-related code, since this file is not sync'd with glibc.
79085         * lib/strndup.h: Revamp, accordingly.
79086         * m4/strndup.m4: Modernize.
79087
79088 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * modules/savewd (Depends-on): Add 'raise'.
79091         * lib/savewd.c: Include <signal.h>, for 'raise'.
79092
79093 2006-09-26  Jim Meyering  <jim@meyering.net>
79094
79095         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
79096         when we detect Darwin 8.7.0's acl_get_file bug.
79097         Rearrange to perform the new (below) run-test while $LIBS
79098         contains any acl-related library.  Set USE_ACL at the end.
79099         (gl_ACL_GET_FILE): New function.
79100
79101 2006-09-26  Eric Blake  <ebb9@byu.net>
79102
79103         * lib/verror.c: Include <config.h> unconditionally.
79104
79105 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         * modules/clock-time (Maintainer): Add self.
79108         * modules/getlogin_r (Depends-on): Add extensions.
79109
79110 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79111
79112         * modules/clock-time: New module.
79113         * modules/nanosleep (Depends-on): Add clock-time.
79114         * modules/gethrxtime (Depends-on): Likewise.
79115         * modules/gettime (Depends-on): Likewise.
79116         * modules/settime (Depends-on): Likewise.
79117
79118         * modules/fts-lgpl: Depend on openat.
79119         * modules/mkancesdirs: Depend on savewd.
79120         * modules/mkdir-p: Likewise.
79121
79122 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79123
79124         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
79125
79126         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
79127         `gl_have_arbitrary_file_name_length_limit' to
79128         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
79129         actually works between configure runs.
79130
79131 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79132             Bruno Haible  <bruno@clisp.org>
79133
79134         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
79135
79136 2006-09-25  Jim Meyering  <jim@meyering.net>
79137
79138         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
79139         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
79140
79141 2006-09-25  Eric Blake  <ebb9@byu.net>
79142
79143         * gnulib-tool (func_import, func_create_testdir): Fix typos in
79144         exec's in 2006-09-18 patch when shuffling fds.
79145
79146 2006-09-25  Bruno Haible  <bruno@clisp.org>
79147
79148         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
79149         Reported by Jim Meyering.
79150
79151 2006-09-24  Jim Meyering  <jim@meyering.net>
79152
79153         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
79154         compare a pointer against a literal "0".  That caused failures with
79155         at least HP-UX's hpcc.
79156
79157 2006-09-22  Simon Josefsson  <jas@extundo.com>
79158
79159         * modules/gc-sha1:
79160         * modules/gc-md4:
79161         * modules/gc-hmac-sha1:
79162         * modules/gc-hmac-md5:
79163         * modules/gc-des:
79164         * modules/gc-arcfour: Distribute more files.
79165
79166 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79167
79168         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
79169         (gl_linked_iterator_from_to): Initialize struct completely.
79170         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
79171         (gl_tree_iterator_from_to): Likewise
79172         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
79173         * lib/gl_array_list.c [lint] (gl_array_iterator)
79174         (gl_array_iterator_from_to): Likewise.
79175         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
79176         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
79177         (gl_carray_iterator_from_to): Likewise.
79178
79179         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
79180         * lib/md4.c (md4_process_block): Remove unused variable.
79181         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
79182         parentheses for clarity.
79183
79184 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79185
79186         * modules/bison-i18n (Depends-on): Add gettext.
79187
79188 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79189
79190         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
79191         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
79192         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
79193         also add missing comma that caused broken test.
79194         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
79195         stdlib.h, for `abort'.
79196         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
79197         variables.
79198         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
79199         include unistd.h if present, for `rmdir'.
79200         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
79201         variables.
79202         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
79203         in the process include standard headers for prototypes.
79204         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
79205         gets declared on GNU/Linux.
79206         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
79207         unistd.h, for `rmdir'.
79208         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
79209
79210         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
79211         always true.
79212         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
79213
79214         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
79215
79216 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79217
79218         * gnulib-tool (func_version): Create output all at once.  This
79219         may help avoid triggering unnecessary SIGPIPEs, and at any
79220         rate it doesn't hurt.
79221
79222 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79223             Bruno Haible  <bruno@clisp.org>
79224
79225         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
79226         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
79227         * m4/signed.m4 (bh_C_SIGNED): Likewise.
79228
79229         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
79230         (gl_FUNC_VASPRINTF): Invoke it.
79231
79232 2006-09-22  Bruno Haible  <bruno@clisp.org>
79233
79234         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
79235         getloadavg.c as first argument.
79236
79237 2006-09-22  Bruno Haible  <bruno@clisp.org>
79238
79239         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
79240         at the beginning of the gl_INIT macro.
79241         * modules/getloadavg (configure.ac): Pass $gl_source_base to
79242         gl_GETLOADAVG.
79243
79244 2006-09-22  Bruno Haible  <bruno@clisp.org>
79245
79246         * gnulib-tool (func_create_megatestdir): Don't include the config-h
79247         module.
79248         Suggested by Ralf Wildenhues.
79249
79250 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         Import this patch from libc:
79253
79254         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
79255
79256         * lib/regex_internal.c (re_string_reconstruct): Handle
79257         offset < pstr->valid_raw_len && pstr->offsets_needed case.
79258         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
79259         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
79260         re_string_context_at.
79261
79262         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
79263         now requires it.
79264         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
79265         gl_REGEX now does it for us.
79266         (gl_REGEX): Add test taken from
79267         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
79268
79269         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
79270         Check that large offsets work.  Modernize Autoconf usages.
79271         Prefer "yes" to mean a good thing rather than a bad.
79272         Don't put "#define mkstemp" in config.h, as this might interfere
79273         with standard system headers that "#define mkstemp mkstemp64".
79274
79275         * modules/mkstemp (Depends-on): Add extensions, so that
79276         mkstemp is visible on some platforms.
79277         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
79278         (Include): Change to "mkstemp.h" from <stdlib.h>.
79279         (Files): Add mkstemp.h.
79280
79281         * lib/mkstemp.h: New file, since some standard headers
79282         #define mkstemp.
79283         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
79284         Include "mkstemp.h".
79285         Make the _LIBC code resemble glibc original more,
79286         e.g., use K&R style.
79287         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
79288         (mkstemp): Remove, since mkstemp.h does this for us.
79289         * lib/stdlib--.h: Include mkstemp.h.
79290
79291         Import this patch from libc:
79292
79293         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79294
79295         * lib/tempname.c (__gen_tempname): Change attempts_min
79296         into a macro.  Use preprocessor to decide how to initialize
79297         attempts [Coverity CID 67].
79298
79299 2006-09-20  Bruno Haible  <bruno@clisp.org>
79300
79301         * lib/mkdtemp.c: Import from libc.
79302         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
79303                 * sysdeps/posix/tempname.c (__gen_tempname): Change
79304                 attempts_min into a macro.  Use preprocessor to decide how to
79305                 initialize attempts [Coverity CID 67].
79306         2001-11-27  Paul Eggert  <eggert@twinsun.com>
79307                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
79308                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
79309
79310 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79311
79312         * gnulib-tool (func_exit): New function, to allow to pass the
79313         exit status portably through the trap.  Use everywhere.
79314         (--help, --version): Signal a write error.
79315         (trap): catch SIGPIPE, for write errors.
79316         Exit at the end of the trap, with the correct exit status.
79317
79318 2006-09-19  Karl Berry  <karl@gnu.org>
79319
79320         * doc/gnulib.texi: note about the license texinfo files.
79321
79322 2006-09-19  Eric Blake  <ebb9@byu.net>
79323
79324         * gnulib-tool: Avoid space-tab.
79325
79326 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79327
79328         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
79329         that prevented coreutils 6.1 from building.  Problem reported
79330         by Petter Reinholdtsen.
79331
79332 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
79333
79334         * gnulib-tool (avoidlist): Fix typo that broke options like
79335         --avoid=lock that are used by coreutils bootstrap.
79336
79337 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
79338
79339         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
79340         more systematically.
79341
79342 2006-09-18  Jim Meyering  <jim@meyering.net>
79343
79344         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
79345
79346 2006-09-18  Bruno Haible  <bruno@clisp.org>
79347
79348         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
79349
79350 2006-09-18  Bruno Haible  <bruno@clisp.org>
79351
79352         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
79353         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
79354         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
79355         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
79356         * m4/gettext.m4: Require autoconf >= 2.52.
79357         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
79358         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
79359         of gl_cv_header_inttypes_h.
79360
79361 2006-09-18  Bruno Haible  <bruno@clisp.org>
79362
79363         * lib/javaversion.c: Include configmake.h.
79364
79365 2006-09-18  Bruno Haible  <bruno@clisp.org>
79366
79367         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
79368         avoid that the while loops be executed in a subshell.
79369
79370 2006-09-18  Bruno Haible  <bruno@clisp.org>
79371
79372         * MODULES.html.sh (func_module): Break long lines.
79373         Suggested by Bruce Korb <bkorb@gnu.org>.
79374
79375 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79376
79377         Speed up by a factor of 1.12.
79378         * gnulib-tool (nl): New variable.
79379         (func_import): Rewrite include directive extraction to only read each
79380         directive once.
79381
79382 2006-09-17  Bruno Haible  <bruno@clisp.org>
79383
79384         * modules/javaversion (Makefile.am): Remove DEFS setting.
79385         (Depends-on): Add configmake, for PKGDATADIR definition.
79386
79387 2006-09-17  Bruno Haible  <bruno@clisp.org>
79388
79389         * gnulib-tool (func_create_testdir): Rewrite all files at once.
79390
79391 2006-09-17  Bruno Haible  <bruno@clisp.org>
79392
79393         * gnulib-tool (func_append): New function, stolen from libtool.m4.
79394         (func_modules_transitive_closure, func_modules_add_dummy,
79395         func_modules_to_filelist, func_import, func_create_testdir,
79396         func_create_megatestdir, ...): Use it wherever possible.
79397         Suggested by Ralf Wildenhues.
79398
79399 2006-09-16  Karl Berry  <karl@gnu.org>
79400
79401         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
79402         to avoid sectioning errors.
79403         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
79404         [ifinfo]: blank line after @center-ed titles.
79405         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
79406         Spell FSF address consistently with others.
79407         (These changes approved by rms.)
79408
79409 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79410
79411         Speed up by a factor of 1.61.
79412         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
79413         already checked module names again.
79414
79415 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79416
79417         Speed up by a factor of 1.13.
79418         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
79419         for new_files, and the input to func_add_or_update.
79420
79421 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79422
79423         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
79424         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
79425
79426 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79427
79428         * modules/mkancesdirs (Depends-on): Add fcntl.
79429         * modules/savewd: New file.
79430         * MODULES.html.sh (File system functions): Add savewd.
79431
79432         * modules/configmake (Makefile.am): Add support for the
79433         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
79434
79435 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79436
79437         * m4/savewd.m4: New file.
79438
79439 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79440
79441         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
79442         (dirchownmod): New arg FD.  All callers changed.
79443         Use FD rather than opening the directory ourself, as opening is
79444         now the caller's responsibility.
79445         * lib/dirchownmod.h: Likewise.
79446         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
79447         hosts that require <sys/types.h> before <sys/stat.h>.  Include
79448         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
79449         (test_dir): Remove.
79450         (mkancesdirs): Return length of prefix of FILE that has already
79451         been made, or -2 if there is a child doing the work.  Redo
79452         algorithm so that it is O(N) rather than O(N**2).  Optimize away
79453         ".", and treat ".." specially since it might stray back into
79454         already-created areas.  Use a subprocess if necessary.  New arg
79455         WD; all users changed.  MAKE_DIR function should now return 1
79456         if it creates a directory that is not readable.  Return -2 if
79457         a child process is spun off.
79458         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
79459         Adjust signature to match code.
79460         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
79461         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
79462         all users changed.
79463         * lib/savewd.c, lib/savewd.h: New files.
79464
79465 2006-09-15  Jim Meyering  <jim@meyering.net>
79466
79467         * modules/rename-dest-slash: New module.
79468         * MODULES.html.sh (posix_compat): Add it here.
79469
79470         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
79471
79472 2006-09-15  Jim Meyering  <jim@meyering.net>
79473
79474         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
79475         file.
79476
79477         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
79478
79479 2006-09-15  Jim Meyering  <jim@meyering.net>
79480
79481         * lib/rename-dest-slash.c (has_trailing_slash): Use
79482         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
79483         (rpl_rename_dest_slash): Perform the cheaper trailing slash
79484         test before testing whether SRC is a directory.
79485         Suggestions from Bruno Haible.
79486
79487         Avoid a warning about an unused variable.
79488         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
79489         into the #ifdef block where it's used.
79490
79491         * lib/rename-dest-slash.c: New file.
79492
79493 2006-09-14  Bruno Haible  <bruno@clisp.org>
79494
79495         * lib/allocsa.c: Include <config.h> unconditionally.
79496         * lib/asnprintf.c: Likewise.
79497         * lib/asprintf.c: Likewise.
79498         * lib/c-strcasecmp.c: Likewise.
79499         * lib/c-strcasestr.c: Likewise.
79500         * lib/c-strncasecmp.c: Likewise.
79501         * lib/c-strstr.c: Likewise.
79502         * lib/classpath.c: Likewise.
79503         * lib/clean-temp.c: Likewise.
79504         * lib/concatpath.c: Likewise.
79505         * lib/copy-file.c: Likewise.
79506         * lib/csharpcomp.c: Likewise.
79507         * lib/csharpexec.c: Likewise.
79508         * lib/execute.c: Likewise.
79509         * lib/fatal-signal.c: Likewise.
79510         * lib/findprog.c: Likewise.
79511         * lib/fwriteerror.c: Likewise.
79512         * lib/gl_array_list.c: Likewise.
79513         * lib/gl_array_oset.c: Likewise.
79514         * lib/gl_avltree_list.c: Likewise.
79515         * lib/gl_avltree_oset.c: Likewise.
79516         * lib/gl_avltreehash_list.c: Likewise.
79517         * lib/gl_carray_list.c: Likewise.
79518         * lib/gl_linked_list.c: Likewise.
79519         * lib/gl_linkedhash_list.c: Likewise.
79520         * lib/gl_list.c: Likewise.
79521         * lib/gl_oset.c: Likewise.
79522         * lib/gl_rbtree_list.c: Likewise.
79523         * lib/gl_rbtree_oset.c: Likewise.
79524         * lib/gl_rbtreehash_list.c: Likewise.
79525         * lib/imaxabs.c: Likewise.
79526         * lib/imaxdiv.c: Likewise.
79527         * lib/javacomp.c: Likewise.
79528         * lib/javaexec.c: Likewise.
79529         * lib/javaversion.c: Likewise.
79530         * lib/linebreak.c: Likewise.
79531         * lib/localcharset.c: Likewise.
79532         * lib/lock.c: Likewise.
79533         * lib/mbchar.c: Likewise.
79534         * lib/mbswidth.c: Likewise.
79535         * lib/mkdtemp.c: Likewise.
79536         * lib/pipe.c: Likewise.
79537         * lib/printf-args.c: Likewise.
79538         * lib/printf-parse.c: Likewise.
79539         * lib/progname.c: Likewise.
79540         * lib/progreloc.c: Likewise.
79541         * lib/readlink.c: Likewise.
79542         * lib/sh-quote.c: Likewise.
79543         * lib/stpcpy.c: Likewise.
79544         * lib/stpncpy.c: Likewise.
79545         * lib/strcasecmp.c: Likewise.
79546         * lib/strcasestr.c: Likewise.
79547         * lib/strcspn.c: Likewise.
79548         * lib/striconv.c: Likewise.
79549         * lib/strncasecmp.c: Likewise.
79550         * lib/strnlen1.c: Likewise.
79551         * lib/strstr.c: Likewise.
79552         * lib/strtok_r.c: Likewise.
79553         * lib/tls.c: Likewise.
79554         * lib/tmpdir.c: Likewise.
79555         * lib/unicodeio.c: Likewise.
79556         * lib/unsetenv.c: Likewise.
79557         * lib/vasnprintf.c: Likewise.
79558         * lib/vasprintf.c: Likewise.
79559         * lib/wait-process.c: Likewise.
79560         * lib/xallocsa.c: Likewise.
79561         * lib/xsetenv.c: Likewise.
79562         * lib/xstriconv.c: Likewise.
79563
79564 2006-09-13  Simon Josefsson  <jas@extundo.com>
79565
79566         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
79567         that internally, suggested by Ralf Wildenhues
79568         <Ralf.Wildenhues@gmx.de>.
79569
79570 2006-09-13  Simon Josefsson  <jas@extundo.com>
79571
79572         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
79573         @LIBOBJS@.
79574         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79575
79576 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * lib/_fpending.c: Include <config.h> unconditionally, since we no
79579         longer worry about uses that don't define HAVE_CONFIG_H.
79580         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
79581         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
79582         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
79583         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
79584         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
79585         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
79586         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
79587         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
79588         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
79589         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
79590         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
79591         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
79592         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
79593         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
79594         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
79595         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
79596         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
79597         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
79598         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
79599         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
79600         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
79601         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
79602         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
79603         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
79604         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
79605         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
79606         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
79607         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
79608         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
79609         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
79610         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
79611         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
79612         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
79613         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
79614         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
79615         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
79616         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
79617         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
79618         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
79619         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
79620         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
79621         Likewise.
79622
79623 2006-09-13  Eric Blake  <ebb9@byu.net>
79624
79625         * lib/getopt.c: Fix typo in last commit.
79626
79627 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
79628
79629         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
79630         dgettext.
79631
79632 2006-09-12  Jim Meyering  <jim@meyering.net>
79633
79634         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
79635         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
79636         Reported by Nelson H. F. Beebe.
79637
79638 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79639
79640         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
79641         program_invocation_name and program_invocation_short_name are
79642         initialized.
79643         * lib/argp-namefrob.h: Move declarations of program_invocation_name
79644         and program_invocation_short_name to argp.h, so they are visible
79645         to user programs.
79646         * lib/argp.h: Likewise
79647
79648 2006-09-10  Bruno Haible  <bruno@clisp.org>
79649
79650         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
79651         m4/inttypes_h.m4, m4/uintmax_t.m4.
79652
79653 2006-09-10  Bruno Haible  <bruno@clisp.org>
79654
79655         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
79656         gl_AC_TYPE_UINTMAX_T.
79657
79658 2006-09-10  Bruno Haible  <bruno@clisp.org>
79659
79660         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
79661
79662 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79663
79664         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
79665         convention.  Text proposed by Bruno Haible.
79666         (struct argp_option): Document the use of N_() wrappers.
79667
79668         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
79669         '\v', and translate the two parts separately, instead of feeding
79670         the whole string to gettext.  This allows to exclude
79671         '\v' from the strings visible to the translator by writing doc
79672         strings as N_("..") "\v" N_("..").
79673
79674 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
79675
79676         * config/srclist.txt: Undo latest change; the bug was fixed.
79677
79678 2006-09-09  Bruno Haible  <bruno@clisp.org>
79679
79680         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
79681         assignments if building a library without libtool.
79682         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
79683         in func_emit_lib_Makefile_am.
79684         (func_import): When building a static library libfoo.a, arrange to
79685         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
79686         (func_create_testdir): Likewise.
79687         * modules/gc (configure.ac, Makefile.am): If building statically,
79688         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
79689         * modules/iconvme (configure.ac, Makefile.am): Likewise.
79690         * modules/striconv (configure.ac, Makefile.am): Likewise.
79691         Based on a suggestion by Ralf Wildenhues.
79692
79693 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79694
79695         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
79696         Check for unistd.h too, since Autoconf doesn't assume POSIX.
79697         Also:
79698
79699         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79700         Add year_2050_test to catch glibc bug 2821
79701         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79702
79703         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79704         Prefer #ifdef to #if.
79705
79706         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
79707         Return from 'main' instead of calling 'exit'.
79708
79709 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79710
79711         * lib/mktime.c (guess_time_tm): Fix bug where mktime
79712         returned the maximum time_t value rather than (time_t) -1.
79713         Problem originally reported by William Bardwell
79714         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
79715
79716         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79717         Moved to here ...
79718         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
79719         ... from here.
79720
79721 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
79724         2821 is fixed.
79725
79726 2006-09-08  Jim Meyering  <jim@meyering.net>
79727
79728         Don't make generated files read-only.  That would bother too many
79729         people.  However, do retain the ability to work when targets are
79730         read-only: remove the destination and temporary files before writing
79731         them (when generated via sed or echo), or by using the -f option for
79732         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
79733         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79734         * modules/byteswap, modules/configmake, modules/fcntl:
79735         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79736         * modules/localcharset, modules/netinet_in, modules/poll:
79737         * modules/stdbool, modules/stdint, modules/sys_select:
79738         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79739
79740 2006-09-08  Jim Meyering  <jim@meyering.net>
79741
79742         Avoid new build failure on FreeBSD 6.0.
79743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
79744         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
79745         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
79746
79747 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79748
79749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
79750
79751 2006-09-07  Jim Meyering  <jim@meyering.net>
79752
79753         Fix global typo in last change: use chmod u-w, not chmod u-x.
79754         Spotted by Paul Eggert and Bruce Korb.
79755         * modules/alloca-opt, modules/argz, modules/arpa_inet:
79756         * modules/byteswap, modules/configmake, modules/fcntl:
79757         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
79758         * modules/localcharset, modules/netinet_in, modules/poll:
79759         * modules/stdbool, modules/stdint, modules/sys_select:
79760         * modules/sys_socket, modules/sys_stat, modules/sysexits:
79761
79762 2006-09-06  Jim Meyering  <jim@meyering.net>
79763
79764         Make generated files be read-only.
79765         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
79766         Ensure that each generated file is now read-only.
79767         * modules/argz: Likewise.
79768         * modules/arpa_inet: Likewise.
79769         * modules/byteswap: Likewise.
79770         * modules/configmake: Likewise.
79771         * modules/fcntl: Likewise.
79772         * modules/fnmatch: Likewise.
79773         * modules/getopt: Likewise.
79774         * modules/glob: Likewise.
79775         * modules/inttypes: Likewise.
79776         * modules/netinet_in: Likewise.
79777         * modules/poll: Likewise.
79778         * modules/stdbool: Likewise.
79779         * modules/stdint: Likewise.
79780         * modules/sys_select: Likewise.
79781         * modules/sys_socket: Likewise.
79782         * modules/sys_stat: Likewise.
79783         * modules/sysexits: Likewise.
79784         * modules/localcharset: Same as above, but continue using temporary
79785         file named "t-$@" (why different?) rather than the "$@-t" used
79786         everywhere else.
79787
79788         * modules/sysexits (Makefile.am): Replace literal occurrences
79789         of "sysexit.h" more readable, and more consistent, "$@".
79790
79791 2006-09-06  Bruno Haible  <bruno@clisp.org>
79792
79793         * modules/striconv: New file.
79794         * modules/xstriconv: New file.
79795         * MODULES.html.sh (Internationalization functions): Add striconv,
79796         xstriconv.
79797
79798 2006-09-06  Bruno Haible  <bruno@clisp.org>
79799
79800         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
79801         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
79802         not using libtool correctly.
79803
79804 2006-09-06  Bruno Haible  <bruno@clisp.org>
79805
79806         * lib/striconv.h: New file.
79807         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
79808         iconvstring.c.
79809         * lib/xstriconv.h: New file.
79810         * lib/xstriconv.c: New file.
79811
79812 2006-09-06  Bruno Haible  <bruno@clisp.org>
79813
79814         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
79815         lib_..._LDFLAGS.
79816
79817 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79818
79819         * lib/argz_.h: Sync from Libtool.
79820
79821         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
79822                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79823
79824         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
79825
79826 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79827
79828         * modules/trim: New file.
79829
79830 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
79831
79832         * lib/trim.h: New file.
79833         * lib/trim.c: New file.
79834
79835 2006-09-05  Bruno Haible  <bruno@clisp.org>
79836
79837         * MODULES.html.sh (String handling): Add trim.
79838
79839 2006-09-04  Karl Berry  <karl@gnu.org>
79840
79841         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
79842         until next release.
79843
79844 2006-09-03  Bruno Haible  <bruno@clisp.org>
79845
79846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
79847         correctly.
79848
79849 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79850
79851         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
79852         not gl_GETLOADAVG.  Omit unneeded semicolons.
79853         Problems reported by Ralf Wildenhues in
79854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79855         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
79856         at the end, which is the usual gnulib style.
79857
79858         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
79859         of doing all the work ourselves.
79860         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
79861         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
79862
79863 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
79866         Problem reported by Ralf Wildenhues in
79867         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
79868
79869         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
79870         HAVE_STRUCT_STATFS_F_FSTYPENAME.
79871
79872 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
79875         yesterday's patch by changing test -n to test -z.
79876
79877 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79878
79879         * modules/getloadavg (Files): Add m4/getloadavg.m4.
79880         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
79881         the former is now obsolescent.
79882
79883         * modules/chdir-long (Depends-on): Add fcntl.
79884
79885 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79886
79887         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
79888         obsolescent, and programs should use gnulib instead.
79889         * m4/getloadavg.m4: New file, with contents taken from Autoconf
79890         but with prefixes changed.
79891
79892 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
79895         or stdbool.h, because they might not exist while configuring.
79896
79897         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
79898         Don't include unistd.h or limits.h; not needed, since chdir-long.h
79899         does that for us.
79900         (O_DIRECTORY): Remove.
79901
79902 2006-08-31  Eric Blake  <ebb9@byu.net>
79903
79904         * gnulib-tool: Don't let emacs change spaces to TAB.
79905
79906 2006-08-31  Bruno Haible  <bruno@clisp.org>
79907
79908         * gnulib-tool: When calling func_import more than once, do it in a
79909         subshell.
79910         Reported by Eric Blake <ebb9@byu.net>.
79911
79912 2006-08-31  Bruno Haible  <bruno@clisp.org>
79913
79914         * gnulib-tool (nl): Remove variable.
79915         (sed_transform_lib_file): Use more robust test for config-h module.
79916         (func_import): Fix typo in 2006-08-25 patch.
79917
79918 2006-08-31  Bruno Haible  <bruno@clisp.org>
79919
79920         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
79921         specified, augment Makefile.am variables instead of assigning them.
79922
79923 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         Work around a bug in both the Linux and SunOS 64-bit kernels:
79926         nanosleep mishandles sleeps for longer than 2**31 seconds.
79927         Problem reported by Frank v Waveren in
79928         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
79930         Check for nanosleep bug.
79931         (LIB_NANOSLEEP): Append clock_gettime library if needed.
79932
79933 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79934
79935         Work around a bug in both the Linux and SunOS 64-bit kernels:
79936         nanosleep mishandles sleeps for longer than 2**31 seconds.
79937         Problem reported by Frank v Waveren in
79938         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
79939         * lib/nanosleep.c (BILLION): New constant.
79940         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
79941         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
79942         implementation.
79943
79944 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79945
79946         * modules/nanosleep (Depends-on): Add gettime.
79947
79948 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
79949         and Simon Josefsson  <jas@extundo.com>
79950         and Oskar Liljeblad  <oskar@osk.mine.nu>
79951
79952         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
79953         * gnulib-tool (func_import): New license type 'unmodifiable license
79954         text'.
79955         * modules/fdl: Use it.  Longer description.
79956         * module/gpl, module/lgpl: New files.
79957
79958 2006-08-30  Jim Meyering  <jim@meyering.net>
79959
79960         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
79961         shadowing the parameter.
79962
79963 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79964
79965         Sync from Libtool:
79966
79967         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79968
79969         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
79970         sharing with gnulib.  Report by Eric Blake.
79971
79972 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         * modules/isapipe: New file.
79975         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
79976
79977 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79978
79979         * modules/configmake (Makefile.am): Add a comment, and omit
79980         the CONFIGMAKE_ prefix from generated macro names.  Suggested
79981         by Bruno Haible.
79982
79983 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79984
79985         * m4/isapipe.m4: New file.
79986
79987 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         * lib/isapipe.c, lib/isapipe.h: New files.
79990
79991 2006-08-29  Jim Meyering  <jim@meyering.net>
79992
79993         * modules/configmake (Makefile.am): Make configmake.h depend on
79994         Makefile.  Otherwise, a stale configmake.h could hang around.
79995
79996 2006-08-29  Eric Blake  <ebb9@byu.net>
79997
79998         * lib/error.c (error_at_line, print_errno_message): Match libc, after
79999         resolution of upstream bug 3044.
80000
80001 2006-08-29  Bruno Haible  <bruno@clisp.org>
80002
80003         * modules/localcharset (Depends-on): Add configmake.
80004         (Makefile.am): Remove setting of LIBDIR through DEFS.
80005
80006 2006-08-29  Bruno Haible  <bruno@clisp.org>
80007
80008         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
80009         defined.
80010
80011 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
80012
80013         * modules/fcntl: New file.
80014         * modules/chdir-safer (Depends-on): Add fcntl.
80015         * modules/fts: Likewise.
80016         * modules/mkdir-p: Likewise.
80017
80018         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
80019         This undoes the most recent change, since we're now addressing the
80020         problem in a different way.
80021
80022         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
80023         into output, since the output might be called Makefile.am even
80024         if $makefile_name is something different.
80025         (func_import): Use $makefile_am rather than
80026         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
80027         empty.
80028
80029         * modules/inttypes (Files): Add m4/inttypes-h.m4.
80030
80031 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
80032
80033         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
80034         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
80035         recent change to stdint.m4, since we're now addressing the problem in a
80036         different way.
80037
80038 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
80039
80040         * m4/fcntl_h.m4: New file.
80041
80042 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
80043
80044         * lib/fcntl_.h: New file.
80045         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
80046         the fcntl module.
80047         * lib/dirchownmod.c: Likewise.
80048         * lib/fts.c: Likewise.
80049
80050         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
80051         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
80052         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
80053         just before including <inttypes.h>, to avoid circular inclusion.
80054
80055 2006-08-28  Jim Meyering  <jim@meyering.net>
80056
80057         * doc/visibility.texi: Actually read and correct the grammar of the
80058         sentence affected by yesterday's change.
80059
80060 2006-08-28  Eric Blake  <ebb9@byu.net>
80061
80062         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
80063         needs wrapper.
80064
80065 2006-08-28  Eric Blake  <ebb9@byu.net>
80066
80067         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
80068
80069 2006-08-28  Eric Blake  <ebb9@byu.net>
80070
80071         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
80072
80073 2006-08-28  Bruno Haible  <bruno@clisp.org>
80074
80075         * modules/c-strstr: New file, from GNU gettext.
80076         * MODULES.html.sh (String handling): Add c-strstr.
80077
80078 2006-08-28  Bruno Haible  <bruno@clisp.org>
80079
80080         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
80081         macros.
80082         Reported by Eric Blake.
80083
80084 2006-08-28  Bruno Haible  <bruno@clisp.org>
80085
80086         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
80087         (VASNPRINTF): Return a string of length > INT_MAX without failing.
80088         * lib/vasprintf.c: Include errno.h, limits.h.
80089         (EOVERFLOW): New fallback definition.
80090         (vasprintf): Test here whether the string length is > INT_MAX.
80091         * lib/vsnprintf.c: Include errno.h, limits.h.
80092         (EOVERFLOW): New fallback definition.
80093         (vsnprintf): Fix bug when generated string was too long for the buffer.
80094         Test here whether the string length is > INT_MAX.
80095
80096 2006-08-28  Bruno Haible  <bruno@clisp.org>
80097
80098         * lib/inttypes_.h (SCNX*): Remove definitions.
80099         Reported by Eric Blake.
80100
80101 2006-08-28  Bruno Haible  <bruno@clisp.org>
80102
80103         * lib/c-strstr.h: New file, from GNU gettext.
80104         * lib/c-strstr.c: New file, from GNU gettext.
80105
80106 2006-08-28  Bruno Haible  <bruno@clisp.org>
80107
80108         * gnulib-tool: Reorder some statements.
80109
80110 2006-08-28  Bruno Haible  <bruno@clisp.org>
80111
80112         * gnulib-tool: New option --makefile-name.
80113         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
80114         $makefile_name.
80115         (func_import): Write $makefile_name to the cache file, and read it from
80116         there unless explicitly specified. Use $makefile_name as file name
80117         instead of Makefile.am. Adjust the recommendations accordingly.
80118
80119 2006-08-28  Bruno Haible  <bruno@clisp.org>
80120
80121         * gnulib-tool (func_verify_module): Check against misapplying patch.
80122
80123 2006-08-28  Bruno Haible  <bruno@clisp.org>
80124
80125         * gnulib-tool (func_relativize, func_relconcat): New functions.
80126         Give an error if --local-dir is given with --update.
80127         Remove trailing slashes from $local_gnulib_dir.
80128         (func_import): Store the relativized $local_gnulib_dir in
80129         gnulib-cache.m4, and read it from there if not specified explicitly.
80130
80131 2006-08-28  Bruno Haible  <bruno@clisp.org>
80132
80133         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
80134         is the current directory. Respect also $local_gnulib_dir.
80135
80136 2006-08-28  Bruno Haible  <bruno@clisp.org>
80137             Simon Josefsson  <jas@extundo.com>
80138
80139         BeOS portability.
80140         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
80141
80142 2006-08-27  Jim Meyering  <jim@meyering.net>
80143
80144         * doc/visibility.texi: Remove duplicate word: "pointer".
80145
80146 2006-08-26  Bruno Haible  <bruno@clisp.org>
80147
80148         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
80149         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
80150         (Makefile.am): Create inttypes.h from inttypes_.h.
80151         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
80152
80153         * modules/imaxabs: New file.
80154
80155         * modules/imaxdiv: New file.
80156
80157 2006-08-26  Bruno Haible  <bruno@clisp.org>
80158
80159         * m4/inttypes.m4: New file.
80160         * m4/_inttypes_h.m4: Remove file.
80161         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
80162         PRI_MACROS_BROKEN.
80163         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
80164
80165         * m4/imaxabs.m4: New file.
80166
80167         * m4/imaxdiv.m4: New file.
80168
80169 2006-08-26  Bruno Haible  <bruno@clisp.org>
80170
80171         * lib/inttypes_.h: New file.
80172         * lib/inttypes.h: Remove file.
80173         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
80174
80175         * lib/imaxabs.c: New file.
80176
80177         * lib/imaxdiv.c: New file.
80178
80179 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80180
80181         New config-h module, so that "make" output needn't be cluttered
80182         by -DHAVE_CONFIG_H.
80183         * MODULES.html.sh (Support for building libraries and executables):
80184         Add config-h.
80185         * modules/config-h: New file.
80186         * gnulib-tool (nl, sed_transform_lib_file): New vars.
80187         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
80188         the config-h module is used.
80189
80190         New configmake module, so that "make" output needn't be cluttered
80191         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
80192         * MODULES.html.sh (Support for building libraries and executables):
80193         Add configmake.
80194         * modules/configmake: New file.
80195
80196 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         * m4/config-h.m4: New file.
80199
80200 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80201
80202         * config/srclist.txt: Add elisp-comp.
80203
80204 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80205
80206         * MODULES.html.sh (Support for building libraries and executables):
80207         Add elisp-comp.
80208         * build-aux/elisp-comp: New file.
80209         * modules/elisp-comp: New file.
80210
80211 2006-08-24  Bruno Haible  <bruno@clisp.org>
80212
80213         * gnulib-tool (func_create_testdir): Use non-default values of
80214         sourcebase and m4base.
80215
80216 2006-08-24  Bruno Haible  <bruno@clisp.org>
80217
80218         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
80219         HTML structure.
80220
80221 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80222
80223         * modules/openat (Depends-on): Add lchown.
80224
80225 2006-08-23  Bruno Haible  <bruno@clisp.org>
80226
80227         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
80228         of gl_LOCK_EARLY instead of gl_LOCK.
80229
80230 2006-08-23  Bruno Haible  <bruno@clisp.org>
80231
80232         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
80233         on OSF/1 to no.
80234         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
80235
80236 2006-08-23  Bruno Haible  <bruno@clisp.org>
80237
80238         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
80239         as unusable.
80240
80241         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
80242         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
80243         (gl_LOCK): New macro.
80244
80245 2006-08-22  Simon Josefsson  <jas@extundo.com>
80246
80247         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
80248         to md5 module.
80249
80250 2006-08-22  Simon Josefsson  <jas@extundo.com>
80251
80252         * MODULES.html.sh: Add "Support for maintaining and release
80253         projects".
80254
80255         * build-aux/gnupload: New file, from coreutils.
80256
80257 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         Avoid the need for AC_LIBSOURCES in m4 macros.
80260         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
80261         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
80262         * modules/check-version (EXTRA_DIST): Add check-version.h.
80263         * modules/crc (EXTRA_DIST): Add crc.h.
80264         * modules/des (EXTRA_DIST): Add des.h.
80265         * modules/gc (EXTRA_DIST): Add gc.h.
80266         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
80267         * modules/getline (EXTRA_DIST): Add getline.h.
80268         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
80269         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
80270         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
80271         * modules/md2 (EXTRA_DIST): Add md2.h.
80272         * modules/md4 (EXTRA_DIST): Add md4.h.
80273         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
80274         * modules/read-file (EXTRA_DIST): Add read-file.h.
80275         * modules/readline (EXTRA_DIST): Add readline.h.
80276         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
80277         rijndael-api-fst.h.
80278
80279 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * m4/rijndael.m4 (gl_ARCFOUR):
80282         * m4/arctwo.m4 (gl_ARCTWO):
80283         * m4/check-version.m4 (gl_CHECK_VERSION):
80284         * m4/crc.m4 (gl_CRC):
80285         * m4/des.m4 (gl_DES):
80286         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
80287         * m4/gc.m4 (gl_GC):
80288         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
80289         * m4/getline.m4 (gl_FUNC_GETLINE):
80290         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
80291         * m4/hmac-md5.m4 (gl_HMAC_MD5):
80292         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
80293         * m4/md2.m4 (gl_MD2):
80294         * m4/md4.m4 (gl_MD4):
80295         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
80296         * m4/read-file.m4 (gl_FUNC_READ_FILE):
80297         * m4/readline.m4 (gl_FUNC_READLINE):
80298         * m4/rijndael.m4 (gl_RIJNDAEL):
80299         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80300         to get the necessary .h files and whatnot.
80301
80302 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
80303
80304         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
80305         gnulib rather than the other way around.
80306         * config/srclistvars.sh (COREUTILS): Remove.
80307
80308 2006-08-22  Jim Meyering  <jim@meyering.net>
80309
80310         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
80311
80312         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
80313
80314 2006-08-22  Eric Blake  <ebb9@byu.net>
80315
80316         * modules/regexprops-generic: New file.
80317         * MODULES.html.sh (Support for building documentation): List it.
80318
80319 2006-08-22  Eric Blake  <ebb9@byu.net>
80320
80321         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
80322         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
80323         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
80324         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
80325
80326 2006-08-22  Bruno Haible  <bruno@clisp.org>
80327
80328         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
80329         and lib_LTLIBRARIES like the other lib_* variables.
80330
80331 2006-08-22  Bruno Haible  <bruno@clisp.org>
80332
80333         * build-aux/x-to-1.in: New file, from GNU gettext.
80334
80335 2006-08-22  Bruno Haible  <bruno@clisp.org>
80336
80337         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
80338         <utmpx.h> exists.
80339
80340 2006-08-22  Bruno Haible  <bruno@clisp.org>
80341
80342         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
80343         <utmpx.h> exists.
80344
80345 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         BeOS portability.
80348         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
80349         exist.
80350         Problem reported by Bruno Haible.
80351
80352 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80353
80354         Avoid the need for AC_LIBSOURCES in m4 macros.
80355         * modules/acl (EXTRA_DIST): Add acl.h.
80356         * modules/argmatch (Files): Add m4/argmatch.m4.
80357         (configure.ac): Add gl_ARGMATCH.
80358         (EXTRA_DIST): Renamed from lib_SOURCES, for
80359         consistency with the other modules.  Remove argmatch.c.
80360         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
80361         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
80362         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
80363         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
80364         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
80365         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
80366         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
80367         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
80368         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
80369         * modules/closeout (EXTRA_DIST): Add closeout.h.
80370         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
80371         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
80372         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
80373         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
80374         dirname.h; remove basename.c and stripslash.c.
80375         * modules/exclude (EXTRA_DIST): Add exclude.h.
80376         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
80377         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
80378         * modules/file-type (EXTRA_DIST): Add file-type.h.
80379         * modules/filemode (EXTRA_DIST): Add filemode.h.
80380         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
80381         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80382         * modules/fpending (EXTRA_DIST): Add __fpending.h.
80383         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
80384         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
80385         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
80386         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
80387         * modules/getdate (EXTRA_DIST): Add getdate.c.
80388         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
80389         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
80390         * modules/getpass (EXTRA_DIST): Add getpass.h.
80391         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
80392         * modules/group-member (EXTRA_DIST): Add group-member.h.
80393         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
80394         * modules/hash (EXTRA_DIST): Add hash.h.
80395         * modules/human (EXTRA_DIST): Add human.h.
80396         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
80397         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
80398         * modules/lchown (EXTRA_DIST): Add lchown.h.
80399         * modules/long-options (EXTRA_DIST): Add long-options.h.
80400         * modules/lstat (EXTRA_DIST): Add lstat.h.
80401         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
80402         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
80403         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
80404         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
80405         * modules/memxor (EXTRA_DIST): Add memxor.h.
80406         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
80407         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
80408         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
80409         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
80410         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
80411         * modules/physmem (EXTRA_DIST): Add physmem.h.
80412         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
80413         * modules/posixver (EXTRA_DIST): Add posixver.h.
80414         * modules/quote (EXTRA_DIST): Add quote.h.
80415         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
80416         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
80417         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
80418         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
80419         regex_internal.h regexec.c.
80420         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
80421         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
80422         * modules/same (EXTRA_DIST): Add same.h.
80423         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
80424         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
80425         * modules/savedir (EXTRA_DIST): Add savedir.h.
80426         * modules/sha1 (EXTRA_DIST): Add sha1.h.
80427         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
80428         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
80429         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
80430         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
80431         * modules/strdup (EXTRA_DIST): Add strdup.h.
80432         * modules/strftime (EXTRA_DIST): Add strftime.h.
80433         * modules/strndup (EXTRA_DIST): Add strndup.h.
80434         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
80435         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
80436         * modules/time_r (EXTRA_DIST): Add time_r.h.
80437         * modules/timespec (EXTRA_DIST): Add timespec.h.
80438         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
80439         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
80440         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
80441         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
80442         * modules/userspec (EXTRA_DIST): Add userspec.h.
80443         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
80444         * modules/utimens (EXTRA_DIST): Add utimens.h.
80445         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
80446         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
80447         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
80448         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
80449         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
80450         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
80451         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
80452         * modules/yesno (EXTRA_DIST): Add yesno.h.
80453
80454 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
80455
80456         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
80457
80458         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
80459         * m4/dev-ino.m4, same-inode.m4: Remove.
80460
80461         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
80462         * m4/acl.m4 (AC_FUNC_ACL):
80463         * m4/backupfile.m4 (gl_BACKUPFILE):
80464         * m4/c-strtod.m4 (gl_C99_STRTOLD):
80465         * m4/canon-host.m4 (gl_CANON_HOST):
80466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
80467         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
80468         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
80469         * m4/cloexec.m4 (gl_CLOEXEC):
80470         * m4/close-stream.m4 (gl_CLOSE_STREAM):
80471         * m4/closeout.m4 (gl_CLOSEOUT):
80472         * m4/dirfd.m4 (gl_FUNC_DIRFD):
80473         * m4/dirname.m4 (gl_DIRNAME):
80474         * m4/exclude.m4 (gl_EXCLUDE):
80475         * m4/exitfail.m4 (gl_EXITFAIL):
80476         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
80477         * m4/file-type.m4 (gl_FILE_TYPE):
80478         * m4/filemode.m4 (gl_FILEMODE):
80479         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
80480         * m4/fpending.m4 (gl_FUNC_FPENDING):
80481         * m4/fprintftime.m4 (gl_FPRINTFTIME):
80482         * m4/fts.m4 (gl_FUNC_FTS):
80483         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
80484         * m4/getdate.m4 (gl_GETDATE):
80485         * m4/gethrxtime.m4 (gl_GETHRXTIME):
80486         * m4/getpagesize.m4 (gl_GETPAGESIZE):
80487         * m4/getpass.m4 (gl_FUNC_GETPASS):
80488         * m4/gettime.m4 (gl_GETTIME):
80489         * m4/getugroups.m4 (gl_GETUGROUPS):
80490         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
80491         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
80492         * m4/hard-locale.m4 (gl_HARD_LOCALE):
80493         * m4/hash.m4 (gl_HASH):
80494         * m4/idcache.m4 (gl_IDCACHE):
80495         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
80496         * m4/lchown.m4 (gl_FUNC_LCHOWN):
80497         * m4/long-options.m4 (gl_LONG_OPTIONS):
80498         * m4/lstat.m4 (gl_FUNC_LSTAT):
80499         * m4/md5.m4 (gl_MD5):
80500         * m4/memcasecmp.m4 (gl_MEMCASECMP):
80501         * m4/memcoll.m4 (gl_MEMCOLL):
80502         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
80503         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
80504         * m4/memxor.m4 (gl_MEMXOR):
80505         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
80506         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
80507         * m4/modechange.m4 (gl_MODECHANGE):
80508         * m4/mountlist.m4 (gl_MOUNTLIST):
80509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
80510         * m4/openat.m4 (gl_FUNC_OPENAT):
80511         * m4/pathmax.m4 (gl_PATHMAX):
80512         * m4/physmem.m4 (gl_PHYSMEM):
80513         * m4/posixtm.m4 (gl_POSIXTM):
80514         * m4/posixver.m4 (gl_POSIXVER):
80515         * m4/quote.m4 (gl_QUOTE):
80516         * m4/quotearg.m4 (gl_QUOTEARG):
80517         * m4/readtokens.m4 (gl_READTOKENS):
80518         * m4/readutmp.m4 (gl_READUTMP):
80519         * m4/regex.m4 (gl_REGEX):
80520         * m4/safe-read.m4 (gl_SAFE_READ):
80521         * m4/safe-write.m4 (gl_SAFE_WRITE):
80522         * m4/same.m4 (gl_SAME):
80523         * m4/save-cwd.m4 (gl_SAVE_CWD):
80524         * m4/savedir.m4 (gl_SAVEDIR):
80525         * m4/settime.m4 (gl_SETTIME):
80526         * m4/sha1.m4 (gl_SHA1):
80527         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
80528         * m4/stat-macros.m4 (gl_STAT_MACROS):
80529         * m4/stat-time.m4 (gl_STAT_TIME):
80530         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
80531         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
80532         * m4/strdup.m4 (gl_FUNC_STRDUP):
80533         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
80534         * m4/strndup.m4 (gl_FUNC_STRNDUP):
80535         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
80536         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
80537         * m4/time_r.m4 (gl_TIME_R):
80538         * m4/timespec.m4 (gl_TIMESPEC):
80539         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
80540         * m4/unlinkdir.m4 (gl_UNLINKDIR):
80541         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
80542         * m4/userspec.m4 (gl_USERSPEC):
80543         * m4/utimecmp.m4 (gl_UTIMECMP):
80544         * m4/utimens.m4 (gl_UTIMENS):
80545         * m4/xalloc.m4 (gl_XALLOC):
80546         * m4/xgetcwd.m4 (gl_XGETCWD):
80547         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
80548         * m4/xreadlink.m4 (gl_XREADLINK):
80549         * m4/xstrtod.m4 (gl_XSTRTOD):
80550         * m4/yesno.m4 (gl_YESNO):
80551         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
80552         to get the necessary .h files and whatnot.
80553
80554 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
80555             Bruno Haible  <bruno@clisp.org>
80556
80557         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
80558         /bin/sh understanding of '!' conditional negation.
80559
80560 2006-08-21  Jim Meyering  <jim@meyering.net>
80561
80562         * modules/openat (Depends-on): Really alphabetize.
80563
80564         * modules/acl (Depends-on): Add error and quote.
80565
80566         * check-module (find_included_lib_files): Add at-func.c to the
80567         ok-to-include-more-than-once white list.
80568
80569         * modules/openat (Depends-on): Add lstat.  Alphabetize.
80570
80571 2006-08-21  Bruno Haible  <bruno@clisp.org>
80572
80573         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80574         Emit a pkgdata_DATA variable only if some snippets add contents to it.
80575         Reported by Martin Lambers <marlam@marlam.de>.
80576
80577 2006-08-21  Bruno Haible  <bruno@clisp.org>
80578
80579         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
80580         specify an installation location, don't emit a noinst_LIBRARIES or
80581         noinst_LTLIBRARIES assignment.
80582
80583 2006-08-21  Bruno Haible  <bruno@clisp.org>
80584
80585         BeOS portability.
80586         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
80587         BeOS has mbrtowc() but no <wctype.h>.
80588
80589 2006-08-21  Bruno Haible  <bruno@clisp.org>
80590
80591         BeOS portability.
80592         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
80593         exist.
80594
80595 2006-08-21  Bruno Haible  <bruno@clisp.org>
80596
80597         BeOS portability.
80598         * lib/mbchar.h: Include <wctype.h> only if it exists.
80599
80600 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80601
80602         Remove files that are no longer needed by their respective modules.
80603         * m4/obstack.m4: Remove.
80604         * m4/strerror_r.m4: Remove.
80605         * m4/uint32_t.m4: Remove.
80606         * m4/uintptr_t.m4: Remove.
80607         * m4/ullong_max.m4: Remove.
80608         * m4/xstrtoimax.m4: Remove.
80609         * m4/xstrtoumax.m4: Remove.
80610
80611         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
80612         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
80613         dependencies now capture this.
80614
80615         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
80616         Do not use AC_LIBSOURCES, since gnulib modules now do this.
80617         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
80618         * m4/human.m4 (gl_HUMAN): Likewise.
80619         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
80620         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
80621
80622         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
80623
80624         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
80625         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
80626         stdint.
80627         * m4/human.m4 (gl_HUMAN): Likewise.
80628         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
80629         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
80630         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80631         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80632         * m4/xstrtol (gl_XSTRTOL): Likewise.
80633
80634         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
80635         AC_TYPE_LONG_LONG_INT.
80636         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
80637         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
80638         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
80639         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
80640
80641         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
80642         on stdbool.
80643
80644         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
80645         (gl_PREREQ_XSTRTOUL): Remove.
80646
80647         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
80648
80649         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
80650         mode.
80651
80652 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80653
80654         Add and change modules to make it easier for coreutils to use
80655         gnulib-tool.
80656         * modules/backupfile (Files): Remove m4/d-ino.m4.
80657         (Depends-on): Add d-ino.
80658         * modules/cycle-check (Depends-on): Add stdint.
80659         (lib_SOURCES): Add cycle-check.h.
80660         * modules/d-ino: New module.
80661         * modules/d-type: New module.
80662         * modules/error (Files): Remove m4/strerror_r.m4.
80663         * modules/filemode (Files): Add m4/st_dm_mode.m4.
80664         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
80665         m4/inttypes_h.m4, m4/uintmax_t.m4.
80666         (Depends-on): Add stdint.
80667         (lib_SOURCES): Add fsusage.h.
80668         * modules/getcwd (Files): Remove d-ino.m4.
80669         (Depends-on): Add d-ino.
80670         * modules/getndelim2 (Depends-on): Add stdint.
80671         * modules/glob (Files): Remove m4/d-type.m4.
80672         (Depends-on): Add d-type.
80673         * modules/host-os: New module.
80674         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
80675         m4/inttypes_h.m4, m4/uintmax_t.m4.
80676         * Depends-on: Add stdint.
80677         (lib_SOURCES): Add human.h.
80678         * modules/inttostr (Files): Remove m4/intmax_t.m4,
80679         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
80680         m4/uintmax_t.m4, m4/ulonglong.m4.
80681         (Depends-on): Add stdint.
80682         (EXTRA_DIST): Add inttostr.h.
80683         * modules/lchmod: New module.
80684         * modules/link-follow: New module.
80685         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
80686         (Depends-on): Add lchmod.
80687         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
80688         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
80689         (Depends-on): Add stdint.
80690         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
80691         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
80692         (Depends-on): Add stdint.
80693         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
80694         * modules/perl: New module.
80695         * modules/regex (Depends-on): Add stdint.
80696         * modules/rmdir-errno: New module.
80697         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80698         m4/intmax_t.m4.
80699         (Depends-on): Add stdint.
80700         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
80701         m4/uintmax_t.m4.
80702         (Depends-on): Add stdint.
80703         * modules/unlink-busy: New module.
80704         * modules/utimecmp (Depends-on): Add stdint.
80705         * modules/uptime: New module.
80706         * modules/winsz-ioctl: New module.
80707         * modules/winsz-termios: New module.
80708         * modules/xnanosleep (Depends-on): Add nanosleep.
80709         * modules/ullong_max: Remove.
80710         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
80711         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
80712         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
80713         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
80714         (Depends-on): Add inttypes.
80715         (lib_SOURCES): Add xstrtol.h.
80716         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
80717         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
80718         * MODULES.html.sh: Move 'assert' into the assert section.
80719         Move 'dummy' into the linking section.
80720         Remove ullong_max.
80721         Add section for compatibility checks for POSIX:2001 functions,
80722         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
80723         winsz-ioctl, and winsz-termios into it.
80724         Add lchmod.
80725         Add top-level Misc section and put host-os, perl, and uptime
80726         into it.
80727
80728 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80729
80730         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
80731         now assume the stdint module.  Do not include inttypes.h.
80732         * lib/fsusage.h: Likewise.
80733         * lib/getndelim2.c: Likewise.
80734         * lib/human.h: Likewise.
80735         * lib/inttostr.h: Likewise.
80736         * lib/obstack.c: Likewise.
80737         * lib/regex_internal.h: Likewise.
80738         * lib/tempname.c: Likewise.
80739         * lib/utimecmp.c: Likewise.
80740         * lib/xstrtol.h: Likewise.
80741
80742         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
80743
80744         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
80745         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
80746         * lib/xtime.h: Likewise.
80747
80748 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80749
80750         * modules/openat (Files): Add lib/fchmodat.c.
80751         Fixes problem reported by Jay Youngman.
80752
80753 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80754
80755         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
80756         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
80757
80758 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
80759             Bruno Haible  <bruno@clisp.org>
80760
80761         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
80762         and is a script that invokes bison. Tighten the code. Add comments.
80763
80764 2006-08-18  Jim Meyering  <jim@meyering.net>
80765
80766         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
80767         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
80768         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
80769         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
80770
80771 2006-08-18  Bruno Haible  <bruno@clisp.org>
80772
80773         * modules/bison-i18n: New file.
80774         * MODULES.html.sh (Internationalization functions): Add it.
80775
80776 2006-08-18  Bruno Haible  <bruno@clisp.org>
80777
80778         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
80779         sys/statvfs.h. When getmntinfo was found, check its declaration and
80780         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
80781
80782 2006-08-18  Bruno Haible  <bruno@clisp.org>
80783
80784         * m4/bison-i18n.m4: New file, from bison.
80785
80786 2006-08-18  Bruno Haible  <bruno@clisp.org>
80787
80788         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
80789         (ME_DUMMY): Treat "kernfs" as a dummy.
80790         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
80791
80792 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80793
80794         Update from coreutils.
80795
80796         2006-08-15  Jim Meyering  <jim@meyering.net>
80797
80798         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
80799
80800         2006-01-17  Jim Meyering  <jim@meyering.net>
80801
80802         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
80803
80804         2006-01-11  Jim Meyering  <jim@meyering.net>
80805
80806         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
80807         Check for the lchmod function.
80808
80809 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80810
80811         Update from coreutils.
80812
80813         * lib/__fpending.h: Add copyright notice.
80814         * lib/fprintftime.h: Likewise.
80815         * lib/savedir.c: Use (C) in copyright notice.
80816         * lib/savedir.h: Likewise.
80817
80818         2006-08-15  Jim Meyering  <jim@meyering.net>
80819
80820         * lib/at-func.c: New file, with the logic of all emulated at-functions.
80821         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
80822         in support of the EXPECTED_ERRNO macro.
80823         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
80824         definitions.  Instead, define the appropriate symbols and include
80825         "at-func.c".
80826         * lib/mkdirat.c (mkdirat): Likewise.
80827         * lib/fchmodat.c (fchmodat): Likewise.
80828         (ENOSYS): Remove definition.
80829         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
80830         it.  Don't include "unistd--.h" -- it wasn't ever used.
80831
80832         2006-01-17  Jim Meyering  <jim@meyering.net>
80833
80834         Rewrite fts.c not to change the current working directory,
80835         by using openat, fstatat, fdopendir, etc..
80836
80837         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
80838         (HAVE_OPENAT_SUPPORT): Define.
80839         [_LIBC] (fchdir): Don't undef or define; no longer used.
80840         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
80841         Now, this `function' always succeeds, and consumes its file descriptor
80842         parameter -- so callers must not close such FDs.  Update callers.
80843         (diropen_fd, opendirat, cwd_advance_fd): New functions.
80844         (diropen): Add parameter, SP.  Adjust all callers.
80845         Implement using diropen_fd, rather than open.
80846         (fts_open): Initialize new member, fts_cwd_fd.
80847         Remove fts_rft-setting code.
80848         (fts_close): Close fts_cwd_fd, if necessary.
80849         (__opendir2): Define in terms of opendir or opendirat,
80850         depending on whether the FST_NOCHDIR flag is set.
80851         (fts_build): Since fts_safe_changedir consumes its FD, and since
80852         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
80853         and close the dup'd file descriptor upon failure.
80854         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
80855         (fts_safe_changedir): Tweak semantics to reflect that this function
80856         now calls cwd_advance_fd and hence consumes its FD argument.
80857         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
80858         [struct FTS] (fts_rft): Remove now-unused member.
80859         [struct FTS] (fts_cycle.state): Improve comment.
80860
80861         * lib/openat.c (openat_needs_fchdir): New function.
80862         * lib/openat.h (openat_needs_fchdir): Declare it.
80863
80864 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80865
80866         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
80867         Problem and fix reported by Pádraig Brady in
80868         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
80869
80870 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80871
80872         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
80873
80874 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80875
80876         * lib/memcoll.c (memcoll): Optimize for the common case where the
80877         arguments are bytewise equal.
80878
80879 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80880
80881         * doc/regexprops-generic.texi: Add a copyright notice.
80882
80883 2006-08-15  Bruno Haible  <bruno@clisp.org>
80884
80885         * modules/tmpdir (License): Change to LGPL.
80886
80887 2006-08-15  Bruno Haible  <bruno@clisp.org>
80888
80889         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
80890         module.
80891
80892 2006-08-14  Simon Josefsson  <jas@extundo.com>
80893
80894         * config/srclist.txt: Add gnupload.
80895
80896 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80897
80898         Change copyright notice from LGPL 2 to GPL 2, since that's the
80899         standard form used in the gnulib repository.
80900         * tests/test-lock.c: Likewise.
80901         * tests/test-stdint.c: Likewise.
80902         * tests/test-tls.c: Likewise.
80903
80904         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
80905         prelude-manager.  User shorter URLs for GNU projects, without '?'.
80906         Add copyright notice.
80907
80908         * check-module: Add copyright notice.  Output a copyright
80909         notice if "--version" is specified.
80910         * modules/COPYING: New file.
80911         * tests/test-getaddrinfo.c: Add copyright notice.
80912         * tests/test-verify.c: Likewise.
80913
80914 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80915
80916         Change copyright notice from LGPL 2 to GPL 2, since that's the
80917         standard form used in the gnulib repository.
80918         * lib/lock.c: LGPL -> GPL.
80919         * lib/lock.h: Likewise.
80920         * lib/strnlen1.c: Likewise.
80921         * lib/strnlen1.h: Likewise.
80922         * lib/tls.c: Likewise.
80923         * lib/tls.h: Likewise.
80924         * lib/tmpdir.c: Likewise.
80925
80926         * lib/TODO: Remove; this belongs only in coreutils.
80927
80928 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80929
80930         Add copyright notices to long-enough files that lack them, since
80931         otherwise the files aren't clearly free.  Use the same notice that
80932         getdate.texi already uses.
80933         * doc/alloca-opt.texi: Add copyright notice.
80934         * doc/alloca.texi: Likewise.
80935         * doc/ctime.texi: Likewise.
80936         * doc/functions.texi: Likewise.
80937         * doc/gcd.texi: Likewise.
80938         * doc/gnulib-tool.texi: Likewise.
80939         * doc/inet_ntoa.texi: Likewise.
80940         * doc/visibility.texi: Likewise.
80941
80942         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
80943         * doc/quote.texi: Add copyright notice.
80944
80945         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
80946         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
80947         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
80948         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
80949         is now obsolete, and give a pointer to the Sun list.
80950         Add copyright notice.
80951
80952 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
80953
80954         * config/srclistvars.sh: Add copyright notice.
80955
80956 2006-08-14  Eric Blake  <ebb9@byu.net>
80957
80958         Import the following change from libc:
80959
80960         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
80961
80962         Upstream bug 2997.
80963         * lib/misc/error.c: Add space between program name and message if file
80964         name is missing.
80965
80966 2006-08-12  Karl Berry  <karl@gnu.org>
80967
80968         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
80969         remove, these originate in gnulib now.
80970
80971 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80972
80973         * doc/Makefile (standards.info standards.html standards.dvi):
80974         Also depend on make-stds.texi.
80975
80976 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80977
80978         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
80979         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
80980
80981         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
80982         in wchar_t.  Problem reported by Eric Blake.
80983
80984         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
80985         LEN is smaller than SIZE.  Suggested by Bruno Haible.
80986         Also, help the compiler to keep LEN in a register.
80987
80988 2006-08-11  Eric Blake  <ebb9@byu.net>
80989
80990         * users.txt: Sort.  Add tar.
80991
80992 2006-08-11  Bruno Haible  <bruno@clisp.org>
80993
80994         * users.txt: New file.
80995
80996 2006-08-11  Bruno Haible  <bruno@clisp.org>
80997
80998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
80999         before <wchar.h>. Needed for OSF/1 and BSD/OS.
81000
81001 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
81002
81003         * modules/snprintf (Depends-on): Remove minmax.
81004         (Maintainer): Add self and Bruno.
81005
81006 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
81007
81008         * lib/.cppi-disable: Add snprintf.h, socket_.h.
81009         * lib/snprintf.c: Include <errno.h> and <limits.h>.
81010         (EOVERFLOW): Define if the system does not.
81011         Do not include "minmax.h"; it wasn't used.
81012         (snprintf): Don't assume size_t promotes to an unsigned type.
81013         Fix bug when generated string was too long for the buffer: the
81014         buffer's contents are supposed to be the initial prefix of the
81015         output.  Don't assume vasnprintf returns EOVERFLOW if the size
81016         exceeds INT_MAX; do the check ourselves.
81017
81018         Import the following changes from libc:
81019
81020         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
81021
81022         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
81023         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
81024         set wc to the byte which couldn't be converted.
81025         (re_string_reconstruct): Don't clear valid_raw_len before calling
81026         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
81027         tip_context using re_string_context_at.
81028
81029         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
81030
81031         * lib/posix/regex.h: g++ still cannot handled [restrict].
81032
81033         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
81034
81035         * lib/posix/regex.h: Remove special handling for VMS.
81036
81037 2006-08-10  Jim Meyering  <jim@meyering.net>
81038
81039         * modules/same-inode: New module.
81040         * modules/dev-ino: New module.
81041         * modules/cycle-check: Depend on these modules, rather than simply
81042         including their .h files.
81043         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
81044         required via m4/cycle-check.m4.
81045         * modules/same: Depend on new same-inode module, rather than
81046         including same-inode.h.
81047         * modules/chdir-safer: New file.
81048
81049         * modules/chown (Depends-on): Add stat-macros.
81050
81051 2006-08-10  Jim Meyering  <jim@meyering.net>
81052
81053         * m4/cycle-check.m4: New file.
81054         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
81055         * m4/dev-ino.m4, m4/same-inode.m4: New files.
81056
81057 2006-08-10  Eric Blake  <ebb9@byu.net>
81058
81059         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
81060         in from original proposal.
81061
81062 2006-08-10  Eric Blake  <ebb9@byu.net>
81063         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
81064
81065         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
81066         namespace.
81067
81068 2006-08-10  Bruno Haible  <bruno@clisp.org>
81069
81070         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
81071         as well.
81072
81073 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81074
81075         Sync from coreutils.
81076
81077         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
81078
81079         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
81080         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
81081
81082 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81083
81084         * modules/restrict: Remove; no longer needed now that we assume
81085         Autoconf 2.59 or later.
81086         * MODULES.html.sh: Remove 'restrict'.
81087         * modules/argp (Depends-on): Remove 'restrict'.
81088         * modules/base64 (Depends-on): Likewise.
81089         * modules/gc (Depends-on): Likewise.
81090         * modules/getaddrinfo (Depends-on): Likewise.
81091         * modules/glob (Depends-on): Likewise.
81092         * modules/inet_ntop (Depends-on): Likewise.
81093         * modules/inet_pton (Depends-on): Likewise.
81094         * modules/memxor (Depends-on): Likewise.
81095         * modules/regex (Depends-on): Likewise.
81096         * modules/strtok_r (Depends-on): Likewise.
81097         * modules/time_r (Depends-on): Likewise.
81098
81099 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81100
81101         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
81102         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
81103         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
81104         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
81105         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
81106         * m4/memxor.m4 (gl_MEMXOR): Likewise.
81107         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
81108         gl_C_RESTRICT replaced by AC_C_RESTRICT.
81109
81110         Merge from coreutils.
81111         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
81112         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
81113         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
81114         * m4/time_r.m4 (gl_TIME_R): Likewise.
81115
81116 2006-08-09  Karl Berry  <karl@gnu.org>
81117
81118         * config/srclist.txt: no more gettext-tools, per Bruno.
81119
81120 2006-08-08  Eric Blake  <ebb9@byu.net>
81121
81122         * modules/verror: New module.
81123         * MODULES.html.sh: Document it.
81124
81125 2006-08-08  Eric Blake  <ebb9@byu.net>
81126
81127         * lib/verror.h, lib/verror.c: New files.
81128
81129 2006-08-08  Eric Blake  <ebb9@byu.net>
81130
81131         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
81132         verror_at_line output complies with GNU Coding Standards even when
81133         file is NULL.
81134
81135 2006-08-07  Bruno Haible  <bruno@clisp.org>
81136
81137         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
81138         versions of AIX.
81139         Reported by Ralf Wildenhues.
81140
81141 2006-08-07  Bruno Haible  <bruno@clisp.org>
81142
81143         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
81144         in an AC_DEFUN. Needed so that the autoconf snippets can use
81145         AC_REQUIRE.
81146
81147 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81148
81149         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81150         Initialize pkgdata_DATA.
81151         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
81152         overriding it.
81153
81154 2006-08-06  Eric Blake  <ebb9@byu.net>
81155
81156         * lib/error.h: Fold in some upstream changes from glibc.
81157         * lib/error.c: Likewise.
81158
81159 2006-08-04  Bruno Haible  <bruno@clisp.org>
81160
81161         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81162         Make the mostlyclean-local rule depend on mostlyclean-generic.
81163         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
81164
81165 2006-07-31  Bruno Haible  <bruno@clisp.org>
81166
81167         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
81168         <stdlib.h>, <string.h>.
81169
81170 2006-07-30  Bruno Haible  <bruno@clisp.org>
81171
81172         * modules/readlink (License): Change to LGPL.
81173
81174 2006-07-30  Bruno Haible  <bruno@clisp.org>
81175
81176         * modules/javaversion (Makefile.am): Distribute javaversion.java and
81177         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
81178         set PKGDATADIR to point to it.
81179
81180 2006-07-30  Bruno Haible  <bruno@clisp.org>
81181
81182         * modules/csharpexec (configure.ac): Comment out macro invocation.
81183         * modules/javaexec (configure.ac): Likewise.
81184         * modules/javacomp-script (configure.ac): Likewise.
81185
81186         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
81187
81188 2006-07-30  Bruno Haible  <bruno@clisp.org>
81189
81190         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
81191         linked-list.
81192
81193 2006-07-30  Bruno Haible  <bruno@clisp.org>
81194
81195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
81196
81197 2006-07-30  Bruno Haible  <bruno@clisp.org>
81198
81199         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81200         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
81201         get removed.
81202
81203 2006-07-29  Bruno Haible  <bruno@clisp.org>
81204
81205         Make it possible for gnulib-tool to work with locally modified or
81206         augmented gnulib repositories.
81207         * gnulib-tool (func_usage): Document --local-dir option.
81208         (local_gnulib_dir): New variable.
81209         Handle --local-dir option.
81210         (func_lookup_file): New function.
81211         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
81212         (func_get_description, func_get_filelist, func_get_description,
81213         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
81214         func_get_automake_snippet, func_get_include_directive,
81215         func_get_license, func_get_maintainer): Use func_lookup_file.
81216         (func_import, func_create_testdir): Use func_lookup_file.
81217
81218 2006-07-29  Bruno Haible  <bruno@clisp.org>
81219
81220         * modules/setenv (Depends-on): Add unistd.
81221
81222 2006-07-29  Bruno Haible  <bruno@clisp.org>
81223
81224         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
81225
81226 2006-07-29  Bruno Haible  <bruno@clisp.org>
81227
81228         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
81229
81230 2006-07-29  Bruno Haible  <bruno@clisp.org>
81231
81232         * gnulib-tool (import, update): If there is no Makefile.am, look at
81233         aclocal.m4, instead of bailing out.
81234
81235 2006-07-29  Bruno Haible  <bruno@clisp.org>
81236
81237         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
81238         Categorize the options by when they are useful.
81239
81240 2006-07-29  Bruno Haible  <bruno@clisp.org>
81241
81242         * gnulib-tool (func_usage): Document option --no-libtool.
81243         Handle option --no-libtool.
81244         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
81245         for changed semantics of $libtool variable.
81246         (func_import): Likewise. If libtool is not used, show this through
81247         an option --no-libtool.
81248         (func_create_testdir): Update.
81249
81250 2006-07-29  Bruno Haible  <bruno@clisp.org>
81251
81252         * gnulib-tool (func_import): Extend error message about missing
81253         --doc-base.
81254
81255 2006-07-29  Bruno Haible  <bruno@clisp.org>
81256
81257         * gnulib-tool (func_import): Don't create the $docbase directory if
81258         there is no file to store there.
81259
81260 2006-07-29  Bruno Haible  <bruno@clisp.org>
81261
81262         * gnulib-tool (autoconf_minversion): If a --dir option is given and
81263         relevant, look for configure.ac there, not in the current directory.
81264         Also use a simple search for AC_PREREQ, not "autoconf --trace".
81265
81266 2006-07-29  Bruno Haible  <bruno@clisp.org>
81267
81268         * gnulib-tool (SORT): New variable.
81269         (func_usage): Undocument --assume-autoconf option.
81270         Remove --assume-autoconf option handling.
81271         (autoconf_minversion): Determine from the contents of configure.ac.
81272         (func_import): Remove autoconf_minversion handling.
81273         Suggested by Eric Blake.
81274
81275 2006-07-29  Bruno Haible  <bruno@clisp.org>
81276
81277         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
81278
81279 2006-07-29  Bruno Haible  <bruno@clisp.org>
81280
81281         * config/srclist.txt (*setenv.[ch]): Remove rules.
81282
81283 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81284
81285         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
81286
81287 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81288
81289         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
81290         arpa/inet.h.
81291
81292 2006-07-28  Simon Josefsson  <jas@extundo.com>
81293
81294         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
81295         * modules/inet_pton (Depends-on): Likewise.
81296
81297 2006-07-28  Simon Josefsson  <jas@extundo.com>
81298
81299         * m4/netinet_in_h.m4: New file.
81300
81301 2006-07-28  Simon Josefsson  <jas@extundo.com>
81302
81303         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
81304         #include's.
81305
81306 2006-07-28  Simon Josefsson  <jas@extundo.com>
81307
81308         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
81309         #include's.
81310
81311 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
81312
81313         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
81314         setgid on directories only if they set these bits.
81315         * lib/modechange.h: Remove obsolete comment about masks.
81316
81317 2006-07-28  Eric Blake  <ebb9@byu.net>
81318
81319         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
81320         macro expansion.
81321
81322 2006-07-28  Bruno Haible  <bruno@clisp.org>
81323
81324         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
81325
81326 2006-07-28  Bruno Haible  <bruno@clisp.org>
81327
81328         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
81329
81330 2006-07-28  Bruno Haible  <bruno@clisp.org>
81331
81332         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
81333         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
81334         Define fallbacks.
81335         Avoids link error on FreeBSD 4.x.
81336         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81337
81338         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
81339         encoding.
81340         * lib/mbswidth.c (iswcntrl): Likewise.
81341
81342 2006-07-27  Bruno Haible  <bruno@clisp.org>
81343
81344         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
81345         test.
81346
81347 2006-07-27  Bruno Haible  <bruno@clisp.org>
81348
81349         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
81350         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
81351         defined.
81352
81353 2006-07-26  Eric Blake  <ebb9@byu.net>
81354
81355         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
81356
81357 2006-07-26  Eric Blake  <ebb9@byu.net>
81358
81359         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
81360         like mingw that lack mkstemp.
81361         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
81362         avoid compilation warning on mingw.
81363
81364 2006-07-26  Bruno Haible  <bruno@clisp.org>
81365
81366         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
81367         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
81368         INT_FAST*_MIN, INTPTR_MIN.
81369
81370 2006-07-25  Bruno Haible  <bruno@clisp.org>
81371
81372         * modules/version-etc (Depends-on): Add stdarg.
81373
81374 2006-07-25  Bruno Haible  <bruno@clisp.org>
81375
81376         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
81377         complex commands.
81378
81379 2006-07-25  Bruno Haible  <bruno@clisp.org>
81380
81381         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
81382         defined in <stdarg.h> or config.h.
81383
81384 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81385
81386         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
81387         (gl_STDIO_SAFER): Remove.
81388
81389 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
81390
81391         * MODULES.html.sh (File stream based Input/Output):
81392         Add fopen-safer, tmpfile-safer; remove stdio-safer.
81393         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
81394         * modules/fopen-safer, modules/tmpfile-safer: New files.
81395         * modules/stdio-safer: Remove.
81396
81397 2006-07-24  Bruno Haible  <bruno@clisp.org>
81398
81399         * modules/tmpdir: New file.
81400         * MODULES.html.sh (File system functions): Add it.
81401
81402 2006-07-24  Bruno Haible  <bruno@clisp.org>
81403
81404         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
81405         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
81406
81407 2006-07-24  Bruno Haible  <bruno@clisp.org>
81408
81409         * modules/clean-temp: New file.
81410
81411 2006-07-24  Bruno Haible  <bruno@clisp.org>
81412
81413         * m4/tmpdir.m4: New file, from GNU gettext.
81414
81415 2006-07-24  Bruno Haible  <bruno@clisp.org>
81416
81417         * lib/tmpdir.h: New file, from GNU gettext.
81418         * lib/tmpdir.c: New file, from GNU gettext.
81419
81420 2006-07-24  Bruno Haible  <bruno@clisp.org>
81421
81422         * lib/clean-temp.h: New file, from GNU gettext.
81423         * lib/clean-temp.c: New file, from GNU gettext.
81424
81425 2006-07-23  Eric Blake  <ebb9@byu.net>
81426
81427         * modules/stdio-safer (Files): Add tmpfile-safer.c.
81428         (Depends-on): Add binary-io.
81429
81430 2006-07-23  Eric Blake  <ebb9@byu.net>
81431
81432         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
81433
81434 2006-07-23  Eric Blake  <ebb9@byu.net>
81435
81436         * lib/tmpfile-safer.c: New file.
81437         * lib/stdio-safer.h (fopen_safer): Add prototype.
81438         * lib/stdio--.h (tmpfile): Make safer.
81439
81440 2006-07-23  Bruno Haible  <bruno@clisp.org>
81441
81442         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
81443         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
81444         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
81445         gl_linked_remove_at): Use it.
81446
81447 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81448         and Simon Josefsson <jas@extundo.com>
81449
81450         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
81451
81452         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
81453
81454 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81455
81456         * modules/close-stream: New file.
81457         * modules/closeout (Description): Make it clear that it exits
81458         with a diagnostic on error.
81459         (Depends-on): Add close-stream.  Remove fpending, stdbool.
81460         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
81461
81462 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81463
81464         * m4/close-stream.m4: New file.
81465
81466 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
81467
81468         * lib/close-stream.c, lib/close-stream.h: New files.
81469
81470 2006-07-22  Bruno Haible  <bruno@clisp.org>
81471
81472         Merge from GNU gettext 0.15.
81473
81474         2006-05-01  Bruno Haible  <bruno@clisp.org>
81475
81476                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
81477
81478         2006-07-22  Bruno Haible  <bruno@clisp.org>
81479
81480                 * modules/javaversion: New file.
81481                 * MODULES.html.sh (Java): Add javaversion.
81482
81483         2006-03-12  Bruno Haible  <bruno@clisp.org>
81484
81485                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
81486
81487         2005-12-04  Bruno Haible  <bruno@clisp.org>
81488
81489                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
81490                 (untested).
81491
81492         2006-06-21  Bruno Haible  <bruno@clisp.org>
81493
81494                 Avoid warnings from recent versions of mcs.
81495                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
81496                 -o, -L, -r any more. Use options documented since mcs-1.0
81497                 instead. Similarly for -g.
81498
81499         2005-12-04  Bruno Haible  <bruno@clisp.org>
81500
81501                 * build-aux/csharpcomp.sh.in: Suffix for resources is
81502                 .resources, not .resource.
81503
81504         2005-07-09  Bruno Haible  <bruno@clisp.org>
81505
81506                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
81507                 add a .dll suffix.
81508                 Reported by Mark Junker <mjscod@gmx.de>.
81509
81510         2006-07-22  Bruno Haible  <bruno@clisp.org>
81511
81512                 * modules/gettext: Upgrade to gettext-0.15.
81513                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
81514                 m4/visibility.m4.
81515                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
81516
81517 2006-07-22  Bruno Haible  <bruno@clisp.org>
81518
81519         Merge from GNU gettext 0.15.
81520
81521         2006-03-25  Bruno Haible  <bruno@clisp.org>
81522
81523                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
81524
81525         2006-07-21  Bruno Haible  <bruno@clisp.org>
81526
81527                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
81528                 "1.1".
81529
81530         2006-05-09  Bruno Haible  <bruno@clisp.org>
81531
81532                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
81533                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
81534                 for the conftestver execution.
81535
81536         2006-05-01  Bruno Haible  <bruno@clisp.org>
81537
81538                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
81539                 optional target-version argument. Verify that the compiler
81540                 groks source of the specified source-version, or add -source
81541                 option as necessary. Verify that the compiler produces
81542                 bytecode in the specified target-version, or add -target and
81543                 -source options as necessary. Make the result of the test
81544                 available as variable CONF_JAVAC. Also log error output in
81545                 config.log.
81546
81547         2006-03-11  Bruno Haible  <bruno@clisp.org>
81548
81549                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
81550
81551         2006-05-09  Bruno Haible  <bruno@clisp.org>
81552
81553                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
81554                 CLASSPATH_SEPARATOR to a semicolon.
81555
81556         2006-03-12  Bruno Haible  <bruno@clisp.org>
81557
81558                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
81559                 available as variable CONF_JAVA, for subsequent autoconf
81560                 tests. Also log error output in config.log.
81561
81562         2006-07-19  Bruno Haible  <bruno@clisp.org>
81563
81564                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
81565                 that getline works on glibc2 systems. Needed to avoid trouble
81566                 in relocatable.c.
81567                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
81568
81569         2005-12-04  Bruno Haible  <bruno@clisp.org>
81570
81571                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
81572                 launcher (untested).
81573
81574         2005-12-04  Bruno Haible  <bruno@clisp.org>
81575
81576                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
81577
81578         2006-07-22  Bruno Haible  <bruno@clisp.org>
81579
81580                 * gettext.m4: Update from GNU gettext-0.15.
81581                 * nls.m4: Likewise.
81582                 * po.m4: Likewise.
81583                 * inttypes-pri.m4: Likewise.
81584                 * inttypes-h.m4: Renamed from inttypes.m4.
81585                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
81586
81587 2006-07-22  Bruno Haible  <bruno@clisp.org>
81588
81589         Merge from GNU gettext 0.15.
81590
81591         2005-07-05  Bruno Haible  <bruno@clisp.org>
81592
81593                 * printf-args.c (printf_fetchargs): Work around broken
81594                 definition of wint_t on mingw.
81595
81596         2005-02-12  Bruno Haible  <bruno@clisp.org>
81597
81598                 * xallocsa.h: Add extern "C" for C++.
81599
81600         2006-05-17  Bruno Haible  <bruno@clisp.org>
81601
81602                 Cygwin portability.
81603                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
81604
81605         2006-04-30  Bruno Haible  <bruno@clisp.org>
81606
81607                 * progreloc.c: Include <mach-o/dyld.h> if available.
81608                 (find_executable): Use _NSGetExecutablePath when possible.
81609
81610         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
81611
81612                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
81613                 function.
81614
81615         2005-12-29  Bruno Haible  <bruno@clisp.org>
81616
81617                 * progreloc.c (set_program_name_and_installdir): Fix
81618                 compilation error.
81619
81620         2005-12-04  Bruno Haible  <bruno@clisp.org>
81621
81622                 Cygwin portability.
81623                 * progreloc.c: Include <windows.h> also on Cygwin.
81624                 (find_executable): Add support for Cygwin.
81625                 (set_program_name_and_installdir): Handle also platforms with
81626                 nonempty EXEEXT.
81627
81628         2006-07-11  Bruno Haible  <bruno@clisp.org>
81629
81630                 * javacomp.c: Fix a comment.
81631                 Reported by Jim Meyering.
81632
81633         2006-04-30  Bruno Haible  <bruno@clisp.org>
81634
81635                 * javacomp.h (compile_java_class): Add source_version,
81636                 target_version arguments.
81637                 * javacomp.c: Rewritten to choose only a compiler that
81638                 respects the specified source_version and target_version.
81639
81640         2006-06-27  Bruno Haible  <bruno@clisp.org>
81641
81642                 Assume correct S_ISDIR macro.
81643                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
81644
81645         2006-07-22  Bruno Haible  <bruno@clisp.org>
81646
81647                 * javaversion.h: New file, from GNU gettext.
81648                 * javaversion.c: New file, from GNU gettext.
81649                 * javaversion.java: New file, from GNU gettext.
81650                 * javaversion.class: New file, from GNU gettext.
81651
81652         2006-05-17  Bruno Haible  <bruno@clisp.org>
81653
81654                 Cygwin portability.
81655                 * javaexec.c (execute_java_class): Test for jview program
81656                 also on Cygwin.
81657
81658         2006-04-09  Bruno Haible  <bruno@clisp.org>
81659
81660                 * fatal-signal.c: Don't include string.h.
81661                 (at_fatal_signal): Use a copying loop instead of memcpy.
81662
81663         2005-12-04  Bruno Haible  <bruno@clisp.org>
81664
81665                 * csharpexec.c: Add support for 'clix' launcher (untested).
81666                 (execute_csharp_using_sscli): New function.
81667                 (execute_csharp_program): Call it.
81668
81669         2006-06-21  Bruno Haible  <bruno@clisp.org>
81670
81671                 Avoid warnings from recent versions of mcs.
81672                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
81673                 -o, -L, -r any more. Use options documented since mcs-1.0
81674                 instead. Similarly for -g.
81675
81676         2005-07-09  Bruno Haible  <bruno@clisp.org>
81677
81678                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
81679                 add a .dll suffix.
81680                 Reported by Mark Junker <mjscod@gmx.de>.
81681
81682         2006-06-17  Bruno Haible  <bruno@clisp.org>
81683
81684                 * config.charset: Update for NetBSD 3.0.
81685
81686         2006-05-17  Bruno Haible  <bruno@clisp.org>
81687
81688                 Cygwin portability.
81689                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
81690
81691         2006-05-16  Bruno Haible  <bruno@clisp.org>
81692
81693                 * localcharset.c [CYGWIN]: Include <windows.h>.
81694                 (get_charset_aliases): For Cygwin, return the same CPxxx
81695                 aliases list as under WIN32.
81696                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
81697                 the environment variables. Fall back to GetACP().
81698
81699         2006-04-05  Bruno Haible  <bruno@clisp.org>
81700
81701                 * config.charset: Update Juan Manuel Guerrero's address.
81702
81703         2005-02-12  Bruno Haible  <bruno@clisp.org>
81704
81705                 * allocsa.h: Add extern "C" for C++.
81706
81707         2005-02-10  Bruno Haible  <bruno@clisp.org>
81708
81709                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
81710                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
81711
81712         2006-07-22  Bruno Haible  <bruno@clisp.org>
81713
81714                 * gettext.h: Update to GNU gettext-0.15.
81715
81716 2006-07-22  Bruno Haible  <bruno@clisp.org>
81717
81718         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
81719         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
81720         lib-prefix.m4, longdouble.m4, ssize_t.m4.
81721
81722 2006-07-21  Eric Blake  <ebb9@byu.net>
81723
81724         * modules/stdlib-safer: New file.
81725         * MODULES.html.sh (File stream based Input/Output): Add
81726         stdlib-safer.
81727
81728 2006-07-21  Eric Blake  <ebb9@byu.net>
81729
81730         * lib/stdlib-safer.h: New file from coreutils, required by
81731         stdlib--.h.
81732
81733 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
81734
81735         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
81736
81737 2006-07-20  Bruno Haible  <bruno@clisp.org>
81738
81739         * gnulib-tool: Recognize new option --assume-autoconf.
81740         (autoconf_minversion): New variable.
81741         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
81742
81743 2006-07-20  Bruno Haible  <bruno@clisp.org>
81744
81745         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
81746
81747 2006-07-19  Derek R. Price  <derek@ximbiot.com>
81748
81749         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
81750         Reindent and repaginate.
81751
81752 2006-07-19  Derek Price  <derek@ximbiot.com>
81753
81754         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
81755         Correct grammar.
81756
81757 2006-07-17  Bruno Haible  <bruno@clisp.org>
81758
81759         * modules/list: New file.
81760         * modules/array-list: New file.
81761         * modules/carray-list, modules/carray-list-tests: New files.
81762         * modules/linked-list, modules/linked-list-tests: New files.
81763         * modules/avltree-list, modules/avltree-list-tests: New files.
81764         * modules/rbtree-list, modules/rbtree-list-tests: New files.
81765         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
81766         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
81767         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
81768         * modules/oset: New file.
81769         * modules/array-oset: New file.
81770         * modules/avltree-oset, modules/avltree-oset-tests: New files.
81771         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
81772         * tests/test-carray_list.c: New file.
81773         * tests/test-linked_list.c: New file.
81774         * tests/test-avltree_list.c: New file.
81775         * tests/test-rbtree_list.c: New file.
81776         * tests/test-linkedhash_list.c: New file.
81777         * tests/test-avltreehash_list.c: New file.
81778         * tests/test-rbtreehash_list.c: New file.
81779         * tests/test-avltree_oset.c: New file.
81780         * tests/test-rbtree_oset.c: New file.
81781         * MODULES.html.sh (Container data structures): New section.
81782
81783 2006-07-17  Bruno Haible  <bruno@clisp.org>
81784
81785         * m4/gl_list.m4: New file.
81786
81787 2006-07-17  Bruno Haible  <bruno@clisp.org>
81788
81789         * lib/gl_list.h: New file.
81790         * lib/gl_list.c: New file.
81791         * lib/gl_array_list.h: New file.
81792         * lib/gl_array_list.c: New file.
81793         * lib/gl_carray_list.h: New file.
81794         * lib/gl_carray_list.c: New file.
81795         * lib/gl_linked_list.h: New file.
81796         * lib/gl_linked_list.c: New file.
81797         * lib/gl_anylinked_list1.h: New file.
81798         * lib/gl_anylinked_list2.h: New file.
81799         * lib/gl_avltree_list.h: New file.
81800         * lib/gl_avltree_list.c: New file.
81801         * lib/gl_anyavltree_list1.h: New file.
81802         * lib/gl_anyavltree_list2.h: New file.
81803         * lib/gl_rbtree_list.h: New file.
81804         * lib/gl_rbtree_list.c: New file.
81805         * lib/gl_anyrbtree_list1.h: New file.
81806         * lib/gl_anyrbtree_list2.h: New file.
81807         * lib/gl_anytree_list1.h: New file.
81808         * lib/gl_anytree_list2.h: New file.
81809         * lib/gl_linkedhash_list.h: New file.
81810         * lib/gl_linkedhash_list.c: New file.
81811         * lib/gl_anyhash_list1.h: New file.
81812         * lib/gl_anyhash_list2.h: New file.
81813         * lib/gl_avltreehash_list.h: New file.
81814         * lib/gl_avltreehash_list.c: New file.
81815         * lib/gl_rbtreehash_list.h: New file.
81816         * lib/gl_rbtreehash_list.c: New file.
81817         * lib/gl_anytreehash_list1.h: New file.
81818         * lib/gl_anytreehash_list2.h: New file.
81819
81820         * lib/gl_oset.h: New file.
81821         * lib/gl_oset.c: New file.
81822         * lib/gl_array_oset.h: New file.
81823         * lib/gl_array_oset.c: New file.
81824         * lib/gl_avltree_oset.h: New file.
81825         * lib/gl_avltree_oset.c: New file.
81826         * lib/gl_rbtree_oset.h: New file.
81827         * lib/gl_rbtree_oset.c: New file.
81828         * lib/gl_anytree_oset.h: New file.
81829
81830 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         * m4/mkancesdirs.m4: New file.
81833         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
81834         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
81835         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
81836         it.
81837
81838 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81839
81840         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
81841         * lib/mkancesdirs.h: New files.
81842         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
81843         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
81844         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
81845         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
81846         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
81847         callers changed.  Revamp internals significantly, by not
81848         attempting to create directories that are temporarily more
81849         permissive than the final results.  Do not attempt to use
81850         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
81851         This removes some race conditions, fixes some bugs, and simplifies
81852         things.  Use new dirchownmod function to do owner and mode changes.
81853         * lib/mkdir-p.h: Likewise.
81854         * lib/modechange.c (octal_to_mode): New function.
81855         (struct mode_change): New member mentioned.
81856         (make_node_op_equals): New arg mentioned.  All callers changed.
81857         (mode_compile): Keep track of which mode bits the user has explicitly
81858         mentioned.
81859         (mode_adjust): New arg DIR, so that we implement the X op correctly.
81860         New arg PMODE_BITS, to keep track of which mode bits the user
81861         mentioned; it treats S_ISUID and S_ISGID speciall.
81862         All callers changed.
81863         * lib/modechange.h: Likewise.
81864
81865 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * MODULES.html.sh: Add mkancestors.
81868         * modules/mkancesdirs: New module.
81869         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
81870         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
81871         The chdir-safer and afs files are now orphans; I'll remove them
81872         unless someone speaks up.
81873         Add lib/dirchownmod.c, lib/dirchownmod.h.
81874         (Depends-on): Remove alloca, chown, save-cwd, dirname.
81875         Add lchown, mkancesdirs.
81876         (Maintainer): Add self.
81877
81878 2006-07-15  Karl Berry  <karl@gnu.org>
81879
81880         * gnulib-tool: help message wording/arrangement.
81881
81882 2006-07-14  Simon Josefsson  <jas@extundo.com>
81883
81884         * doc/gnulib.texi (Libtool and Windows): New section.
81885
81886 2006-07-12  Simon Josefsson  <jas@extundo.com>
81887
81888         * modules/gendocs (License): Fix license, approved by Karl.
81889
81890 2006-07-12  Eric Blake  <ebb9@byu.net>
81891
81892         * MODULES.html.sh: Add gendocs.
81893
81894 2006-07-11  Eric Blake  <ebb9@byu.net>
81895
81896         * modules/fdl: New module, to install doc/fdl.texi.
81897         * MODULES.html.sh: Add new section for documentation modules.
81898         * gnulib-tool: Avoid space-tab.
81899         (--doc-base): New option, to manage files from doc.
81900
81901 2006-07-11  Eric Blake  <ebb9@byu.net>
81902
81903         * m4/absolute-header.m4: Fix comments to match recent change.
81904
81905 2006-07-11  Eric Blake  <ebb9@byu.net>
81906
81907         * gnulib-tool: List --doc-base before --tests-base.
81908
81909 2006-07-11  Derek R. Price  <derek@ximbiot.com>
81910
81911         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
81912
81913 2006-07-11  Bruno Haible  <bruno@clisp.org>
81914
81915         * README: Mention where to put documentation.
81916
81917 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81918
81919         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
81920
81921 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81922
81923         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
81924         to stdint.m4.
81925
81926 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
81927
81928         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
81929         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
81930         "no/such/file/stdint.h" when there is no such file, so that
81931         the resulting C code can be parsed by dodgy compilers.
81932         Problems reported by Bob Proulx.
81933
81934 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81935
81936         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
81937         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81938         macros into the GNU _D_EXACT_NAMLEN.
81939         * lib/savedir.c:  Likewise.
81940         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
81941
81942 2006-07-10  Derek R. Price  <derek@ximbiot.com>
81943         and Paul Eggert  <eggert@cs.ucla.edu>
81944
81945         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
81946         * m4/savedir.m4:
81947         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
81948         macros into the GNU _D_EXACT_NAMLEN.
81949
81950 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81951
81952         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
81953         around the absolute name, to work around a problem with the HP-UX
81954         11.23 native C compiler, reported by Bob Proulx.
81955
81956 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81957
81958         * doc/maintain.texi, make-stds.texi: Sync from
81959         <http://savannah.gnu.org/projects/gnustandards>.
81960
81961 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81962
81963         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
81964
81965 2006-07-09  Jim Meyering  <jim@meyering.net>
81966
81967         * m4/glob.m4: Remove a doubled word in a comment.
81968
81969 2006-07-09  Jim Meyering  <jim@meyering.net>
81970
81971         * lib/argp-pv.c: Remove a doubled word in a comment.
81972         * lib/check-version.c (check_version): Likewise.
81973         * lib/javacomp.c (compile_java_class): Likewise.
81974
81975 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81976
81977         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
81978         for the benefit of people using Autoconf 2.60.  If you want to
81979         support older Autoconf versions you can copy m4/onceonly_2_57.m4
81980         (or m4/onceonly.m4, if pre-2.57) manually.
81981
81982 2006-07-08  Jim Meyering  <jim@meyering.net>
81983
81984         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
81985         comment.
81986         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
81987         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
81988         comment.
81989
81990 2006-07-08  Jim Meyering  <jim@meyering.net>
81991
81992         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
81993
81994 2006-07-07  Simon Josefsson  <jas@extundo.com>
81995
81996         * tests/test-crc.c: Change expected crc value, the test vector
81997         were probably computed using the old broken crc.c?
81998
81999 2006-07-06  Simon Josefsson  <jas@extundo.com>
82000
82001         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
82002         now the canonical place for the M4 file).
82003
82004         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
82005         from the sys_socket dependency now.
82006
82007         * modules/inet_pton (Files): Ditto.
82008
82009         * modules/inet_ntop (Files): Ditto.
82010
82011 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82012
82013         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
82014         not gl_PREREQ_GETUSERSHELL.
82015
82016 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82017
82018         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
82019         with only one argument, for Autoconf 2.60.
82020         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
82021         expand to nothing, so add a shell command to avoid syntax error.
82022         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
82023
82024 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82025
82026         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
82027
82028 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82029
82030         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
82031         no longer needed.  Check for isblank decl.
82032         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
82033         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
82034         of existence.
82035
82036 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82037
82038         * lib/getloadavg.c: Use __VMS, not VMS.
82039         * lib/getopt.c: Likewise.
82040         * lib/getpagesize.h: Likewise.
82041         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
82042         and probably does not work.
82043
82044 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82045
82046         * lib/.cppi-disable: Add wcwidth.
82047         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
82048         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
82049         (ISGRAPH): Remove.  All uses changed to isgraph.
82050         (FOLD) [!defined _LIBC]: Remove special case.
82051         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
82052         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
82053         HAVE_ISBLANK.
82054         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
82055         case.
82056
82057 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82058
82059         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
82060         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
82061         brackets.  Other minor changes to suppress some compiler
82062         warnings.
82063
82064 2006-07-06  Derek R. Price  <derek@ximbiot.com>
82065         and Paul Eggert  <eggert@cs.ucla.edu>
82066
82067         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
82068         of invoking obsolescent AC_HEADER_DIRENT macro.
82069         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
82070         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
82071         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
82072         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
82073         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
82074         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
82075         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
82076         * m4/readdir.m4: Remove; no longer needed.
82077
82078 2006-07-06  Derek R. Price  <derek@ximbiot.com>
82079         and Paul Eggert  <eggert@cs.ucla.edu>
82080
82081         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
82082         Don't worry about this obsolete case any more.
82083         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
82084         directories.
82085         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
82086         worry about this obsolete case any more.
82087         * lib/fts.c: Likewise.
82088         * lib/getcwd.c: Likewise.
82089         * lib/glob.h: Likewise.
82090         * lib/savedir.c: Likewise.
82091
82092 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82093
82094         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
82095         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
82096         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
82097         needed.
82098         All uses removed.
82099         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82100         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
82101         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
82102         needed.
82103         * m4/getdate.m4 (gl_GETDATE): Likewise.
82104         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82105         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82106         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82107         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82108         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
82109         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82110         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
82111         needed.
82112
82113 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82114
82115         * lib/memcasecmp.c: Include <limits.h>.
82116         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
82117         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
82118         Don't assume isdigit succeeds only on '0' through '9'.
82119
82120 2006-07-05  Eric Blake  <ebb9@byu.net>
82121
82122         * modules/getaddrinfo (Depends-on): Add snprintf.
82123
82124 2006-07-05  Eric Blake  <ebb9@byu.net>
82125
82126         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
82127         to avoid 'header present but could not be compiled' on cygwin.
82128
82129 2006-07-05  Eric Blake  <ebb9@byu.net>
82130
82131         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
82132         missing from netdb.h.
82133         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
82134
82135 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82136
82137         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
82138         no longer needed.
82139         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
82140         * m4/getdate.m4 (gl_GETDATE): Likewise.
82141         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
82142         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
82143         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
82144         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
82145         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82146
82147 2006-07-05  Derek R. Price  <derek@ximbiot.com>
82148
82149         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
82150         All uses of is_space replaced by isspace.
82151         * lib/exit.h: Don't talk about STDC_HEADERS.
82152         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
82153         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
82154         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
82155         replaced by isprint etc.
82156         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
82157         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82158         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
82159         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
82160         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
82161         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
82162
82163 2006-07-05  Bruno Haible  <bruno@clisp.org>
82164
82165         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
82166         the function exists, before testing against AIX.
82167         Reported by Martin Lambers <marlam@marlam.de>.
82168
82169 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82170
82171         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
82172         From Mark D. Baushke.
82173
82174 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
82175
82176         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
82177         to the absolute name, not just one, to bypass Sun C 5.8's
82178         "warning: #include of /usr/include/... may be non-portable".
82179
82180 2006-07-04  Eric Blake  <ebb9@byu.net>
82181
82182         * modules/dirname-tests: New test module.
82183         * tests/test-dirname.c: New file, replacing dirname.c
82184         TEST_DIRNAME section that was recently deleted.
82185
82186 2006-07-04  Bruno Haible  <bruno@clisp.org>
82187
82188         Assume ANSI C header files and <ctype.h> functions.
82189         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
82190         (mbsnwidth): Use isprint, iscntrl instead.
82191
82192 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82193
82194         Merge from coreutils.
82195         * MODULES.html.sh: Add xstrtold.
82196         * modules/xstrtold: New file.
82197         * modules/cycle-check (Files): Add lib/same-inode.h.
82198         * modules/dirname (Files): Add m4/double-slash-root.m4.
82199         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
82200         * modules/mkdir-p (Files): Add lib/same-inode.h.
82201         * modules/same (Files): Add lib/same-inode.h.
82202
82203 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82204
82205         * m4/absolute-header.m4: Renamed from full-header-path.m4.
82206         This is to keep the terminology clean; POSIX talks about
82207         "absolute pathnames", not "full pathnames", but the GNU
82208         Coding Standards say to use "path" for something else;
82209         so use "absolute" to keep both sides happy.
82210         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
82211         Set gl_absolute_header, not gl_full_header_path.
82212         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
82213         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
82214         All uses changed.
82215
82216         Merge from coreutils.
82217
82218         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82219
82220         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
82221         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
82222         want to require the building of c-strtod.o.
82223         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
82224         needs -lm directly.
82225         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
82226
82227         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
82230         --as-needed option if available.  Problem reported by Albert Chin in
82231         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
82232         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
82233         cc merely issues a bunch of annoying warnings for --as-needed
82234         (this problem was reported by Bob Proulx).  Also, try linking with
82235         -lm to detect a bug in binutils 2.16 (this problem was reported
82236         by Ralf Wildenhues).
82237
82238         2006-06-18  Jim Meyering  <jim@meyering.net>
82239
82240         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
82241         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
82242         macro.
82243         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
82244         also check for glibc-2.4's abort-inducing bug.
82245
82246         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
82247         Low-probability clean-up should be to use rmdir to get rid of
82248         the just-created directory, not unlink.
82249
82250         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
82251         configure fail, and request a bug report to inform us about it.
82252         Add a comment that, barring reports to the contrary, in 2007 we'll
82253         assume ftruncate is universally available.
82254
82255         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82256
82257         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
82258
82259         2006-03-12  Jim Meyering  <jim@meyering.net>
82260
82261         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
82262         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
82263         * m4/same.m4 (gl_SAME): Likewise.
82264         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
82265
82266         2006-03-11  Eric Blake  <ebb9@byu.net>
82267
82268         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
82269         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
82270         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
82271         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
82272
82273 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82274
82275         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
82276         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
82277         reported by Mark D. Baushke, one in
82278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
82279
82280         Merge from coreutils.
82281
82282         * lib/.cppi-disable: Add stdint_.h.
82283         * lib/.cvsignore: Add stdint.h.
82284
82285         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
82286
82287         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
82288         both double and long double versions.
82289         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
82290         * lib/xstrtold.c: New file.
82291         * lib/xstrtod.h (xstrtold): New decl.
82292
82293         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82294
82295         * lib/filemode.c (setst): Remove.
82296         (strmode): Rewrite to avoid setst.  This makes the code shorter,
82297         (arguably) clearer, and the generated code is a bit smaller on my
82298         Debian GNU/Linux stable x86 host.
82299
82300         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
82301
82302         * lib/filemode.c: Include "filemode.h" first, to test the interface.
82303         Assume that filemode.h includes sys/types.h and sys/stat.h.
82304         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
82305         (ftypelet): Reorder to put common cases first, for efficiency.
82306         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
82307         to do 'M'.
82308         (strmode): Renamed from mode_string, and now stores 12 bytes instead
82309         of 10, for compatibility with FreeBSD.  All callers changed.
82310         (filemodestring): Now stores 12 bytes instead of 10, and sets file
82311         types that can't be deduced solely from st_mode.  First arg is now a
82312         const pointer.
82313         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
82314         (strmode): Renamed from mode_string.
82315         (filemodestring): New decl.
82316         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
82317         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
82318         needed.
82319         (S_ISPORT, S_ISWHT): New macros, if not already defined.
82320
82321         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82322
82323         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
82324         fsusage.h now does that.  Include fsusage.h first, to test interface.
82325         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
82326         at most one method (the old code could have generated decls that
82327         didn't conform to C89, not that this was ever exercised).
82328         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
82329
82330         2006-03-19  Jim Meyering  <jim@meyering.net>
82331
82332         Work even in a chroot where d_ino values for entries in "/"
82333         don't match the stat.st_ino values for the same names.
82334         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
82335         number, iterate through all entries again, using lstat instead.
82336         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
82337         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
82338
82339         * lib/getcwd.c (__getcwd): Clarify a comment.
82340         Use memcpy in place of a call to strcpy.
82341
82342         2006-03-12  Jim Meyering  <jim@meyering.net>
82343
82344         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
82345         matches that of the current directory (which we're about to chdir ".."
82346         out of), then save the dev-ino of the parent, instead.
82347
82348         * lib/same-inode.h (SAME_INODE): New file/macro.
82349         * lib/chdir-safer.c (SAME_INODE): Remove definition.
82350         Include "same-inode.h", instead.
82351         * lib/same.c: Likewise.
82352         * lib/cycle-check.h: Include "same-inode.h".
82353         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
82354         * lib/cycle-check.c (SAME_INODE): Remove definition.
82355         * lib/root-dev-ino.h: Include "same-inode.h".
82356
82357         2006-03-11  Eric Blake  <ebb9@byu.net>
82358
82359         * lib/same.c (same_name): s/base_name/last_component/
82360         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
82361         * lib/filenamecat.c (file_name_concat): Likewise.
82362
82363         2006-03-11  Eric Blake  <ebb9@byu.net>,
82364                     Paul Eggert  <eggert@cs.ucla.edu>
82365
82366         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
82367         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
82368         drive prefix.
82369         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
82370         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
82371         (last_component): New method.
82372         * lib/dirname.c (dir_len): Determine when drive letters need a
82373         subsequent slash.  Preserve // when it is special.
82374         (dir_name): Don't append dot when drive letter is absolute.
82375         [TEST_DIRNAME]: Move into a full-blown gnulib test.
82376         * lib/basename.c (base_name): New semantics - malloc the result.
82377         Preserve // when it is special.  Preserve relative files that look
82378         like drive letters.
82379         (base_len): Preserve // when it is special.
82380         (last_component): New method, similar to old base_name semantics.
82381         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
82382         base_name.  Strip redundant slashes from ///.
82383
82384 2006-07-03  Jim Meyering  <jim@meyering.net>
82385
82386         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
82387         macro is used before the first cycle_check call.
82388
82389 2006-07-03  Eric Blake  <ebb9@byu.net>
82390
82391         * modules/dirname (Depends-on): Add xstrndup.
82392
82393 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82394
82395         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
82396         test cases, so that config.log is a bit easier to follow.
82397
82398 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
82399
82400         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
82401         both are 64 bits, since this seems to be the tradition, and this
82402         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
82403         we ever run into a host that prefers long long to long in this
82404         case, we'll need another configure-time test.  Problem reported by
82405         Jim Meyering.
82406
82407 2006-07-02  Eric Blake  <ebb9@byu.net>
82408
82409         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
82410
82411 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82412
82413         * modules/inttypes (Depends-on): No longer depends on stdint.
82414         * modules/stdint (Description): Say more about assumptions.
82415         Say that the fast types might differ.  Say macros are used.
82416         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
82417         (Makefile.am): Revise list of substituted symbols to match
82418         new stdint.m4.
82419         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
82420         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
82421         * tests/test-stdint.c (verify_same_types)
82422         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
82423         the code conforms to C99/C89.
82424         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
82425         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
82426
82427 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82428
82429         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
82430         but fix a bug, by requiring at least 64 bits.
82431         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
82432         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
82433         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
82434         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82435
82436         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
82437         changes.  Make 2.59 a prerequisite.  Check and substitute for
82438         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
82439         inttypes.h.  Do not use special include files; just use the
82440         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
82441         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
82442         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
82443         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
82444         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
82445         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
82446         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
82447         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
82448         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
82449         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
82450         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
82451         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
82452         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
82453         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
82454         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
82455         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
82456         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
82457         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
82458         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
82459         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
82460         WINT_MAX.  Check for C99 conformance more strictly, by detecting
82461         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
82462         not check for things that C99 does not require, e.g., int8_t.  If
82463         a test isn't needed unless <stdint.h> isn't working, and is
82464         unlikely to be needed for any other reason, then don't do it
82465         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
82466         size_t, since we assume C89 freestanding at least.  Do not check
82467         for sig_atomic_t, wchar_t, or wint_t, since the code now does
82468         the right thing even if the types are not defined.  Instead use:
82469         (gl_STDINT_TYPE_PROPERTIES): New macro.
82470         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
82471         testing whether <sys/types.h> clashes, as Autoconf does this for
82472         us now.  All uses removed.
82473         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
82474         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
82475         (gl_CHECK_TYPE_SAME):
82476         Remove; no longer needed.
82477         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
82478         exists, since we'll return 0 anyway in that case.
82479         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
82480
82481 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82482
82483         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
82484         possible collision with system files.
82485         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
82486         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
82487         WCHAR_MIN and WCHAR_MAX in this case.
82488         (<stddef.h>): Do not include; no longer needed.
82489         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
82490         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
82491         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
82492         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
82493         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
82494         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
82495         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
82496         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
82497         !defined(__c99))]: Include in this case too, since it's harmless
82498         now.
82499         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
82500         dangerous to do so.
82501         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
82502         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
82503         (_STDINT_MIN, _STDINT_MAX): New macros.
82504         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
82505         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
82506         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
82507         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
82508         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
82509         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
82510         macros, not typedefs; this simplifies things quite a bit.
82511         Use long int for all types narrower than int64_t.
82512         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
82513         Define in terms of long long int or int64_t or long int,
82514         not int64_t or int32_t.  This saves some compile-time testing.
82515         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
82516         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
82517         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
82518         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
82519         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
82520         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
82521         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
82522         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
82523         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
82524         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
82525         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82526         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82527         undef any previous version and define our own version, for
82528         simplicity and consistency with the new macros for types.
82529         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
82530         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
82531         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
82532         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
82533         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
82534         @WINT_T_SUFFIX@ to keep things simple here.
82535         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
82536         Simplify by assuming typical 8/16/32/64 host, since we're
82537         already doing that elsewhere anyway.
82538         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
82539         and assume long long int is 64 bits if available.  This
82540         speeds up 'configure'.
82541
82542 2006-07-01  Eric Blake  <ebb9@byu.net>
82543
82544         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
82545         Reported by Andreas Buening.
82546
82547 2006-07-01  Eric Blake  <ebb9@byu.net>
82548
82549         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
82550
82551 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
82552
82553         * lib/getaddrinfo.c: fixed typo
82554
82555 2006-06-29  Jim Meyering  <jim@meyering.net>
82556
82557         * modules/strftime (Maintainer): Add my name, since with the
82558         FPRINTFTIME changes strftime.c has forked from glibc.
82559
82560 2006-06-29  Eric Blake  <ebb9@byu.net>
82561
82562         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
82563
82564 2006-06-29  Eric Blake  <ebb9@byu.net>
82565
82566         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
82567
82568 2006-06-29  Eric Blake  <ebb9@byu.net>
82569
82570         * lib/stat_.h: New file.
82571
82572 2006-06-29  Eric Blake  <ebb9@byu.net>
82573
82574         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
82575         unused static function.
82576
82577 2006-06-29  Eric Blake  <ebb9@byu.net>
82578
82579         * doc/functions.texi (Function Portability): Document missing lstat
82580         on mingw.
82581
82582 2006-06-29  Eric Blake  <ebb9@byu.net>
82583
82584         * MODULES.html.sh: Add sys_stat.
82585         * modules/sys_stat: New module.
82586         * modules/mkstemp (Depends-on): Add sys_stat.
82587
82588 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82589
82590         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
82591
82592 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82593
82594         * m4/c-bs-a.m4: Removed.
82595
82596 2006-06-29  Derek R. Price  <derek@ximbiot.com>
82597
82598         * lib/strftime.c: Assume strftime() exists.
82599
82600 2006-06-29  Derek Price  <derek@ximbiot.com>
82601
82602         * modules/c-bs-a: Removed - \a is C89.
82603         * MODULES.html.sh: Remove c-bs-a.
82604
82605 2006-06-29  Bruno Haible  <bruno@clisp.org>
82606
82607         * modules/wcwidth (License): Change to LGPL.
82608
82609 2006-06-28  Simon Josefsson  <jas@extundo.com>
82610
82611         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
82612         on _WIN32.
82613
82614         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
82615         getnameinfo.
82616
82617 2006-06-28  Simon Josefsson  <jas@extundo.com>
82618
82619         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
82620
82621 2006-06-28  Simon Josefsson  <jas@extundo.com>
82622
82623         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
82624         functions there.  It will succeed on Windows XP, but on Windows
82625         2000 and (presumably) earlier, it will fail, and use the internal
82626         re-implementation.
82627         (use_win32_p): New function.
82628         (getaddrinfo): Use strtoul on servname, to support numeric ports.
82629         Support AI_NUMERICSERV to disable getservbyname.
82630         (getnameinfo): New function, only supports
82631         NI_NUMERICHOST|NI_NUMERICSERV for now.
82632
82633         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
82634         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
82635         getnameinfo.
82636
82637 2006-06-28  Eric Blake  <ebb9@byu.net>
82638
82639         * modules/wcwidth: New file.
82640         * modules/mbchar (Depends-on): Add wcwidth.
82641         * modules/mbswidth (Depends-on): Add wcwidth.
82642         * MODULES.html.sh: Add wcwidth.
82643
82644 2006-06-28  Eric Blake  <ebb9@byu.net>
82645
82646         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
82647         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
82648
82649 2006-06-28  Eric Blake  <ebb9@byu.net>
82650
82651         * lib/xvasprintf.h: Fix comments.
82652
82653 2006-06-28  Eric Blake  <ebb9@byu.net>
82654
82655         * lib/mbchar.h (wcwidth): Include wcwidth.h.
82656         * lib/mbswidth.c (wcwidth): Move from here...
82657         * lib/wcwidth.h: ...to this new file.
82658
82659 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82660
82661         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
82662
82663         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
82664         it's obsolete.
82665         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
82666
82667 2006-06-28  Derek R. Price  <derek@ximbiot.com>
82668
82669         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
82670         Autoconf 2.60 says this stuff was obsolete.
82671
82672 2006-06-28  Bruno Haible  <bruno@clisp.org>
82673
82674         * modules/wcwidth (Files): Add m4/wchar_t.m4.
82675
82676 2006-06-28  Bruno Haible  <bruno@clisp.org>
82677
82678         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
82679         gt_TYPE_WCHAR_T.
82680
82681 2006-06-28  Bruno Haible  <bruno@clisp.org>
82682
82683         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
82684         declaration for wcwidth.
82685         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
82686
82687 2006-06-28  Bruno Haible  <bruno@clisp.org>
82688
82689         * lib/mkdtemp.c [MINGW]: Include <io.h>.
82690         (mkdir): Define using _mkdir.
82691
82692 2006-06-28  Bruno Haible  <bruno@clisp.org>
82693
82694         * lib/getaddrinfo.h: Fix POSIX URL.
82695         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
82696         _WIN32.
82697         (use_win32_p): Make static.
82698         (getaddrinfo): Reject service name if it is empty or does not consist
82699         solely of decimal digits, or if its value is > 65535.
82700         (getnameinfo): Remove useless casts.
82701
82702 2006-06-27  Simon Josefsson  <jas@extundo.com>
82703
82704         * modules/sys_select: New file, suggested by Bruno Haible, Paul
82705         Eggert and Martin Lambers.
82706
82707 2006-06-27  Simon Josefsson  <jas@extundo.com>
82708
82709         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
82710         Eggert and Martin Lambers.
82711
82712 2006-06-27  Bruno Haible  <bruno@clisp.org>
82713
82714         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
82715         result to 0, not to empty.
82716         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
82717
82718 2006-06-27  Bruno Haible  <bruno@clisp.org>
82719
82720         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
82721
82722 2006-06-26  Simon Josefsson  <jas@extundo.com>
82723
82724         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
82725         present.
82726
82727 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
82728
82729         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
82730         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
82731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
82732
82733 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
82734
82735         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
82736
82737 2006-06-26  Bruno Haible  <bruno@clisp.org>
82738
82739         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
82740
82741 2006-06-26  Bruno Haible  <bruno@clisp.org>
82742
82743         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
82744
82745 2006-06-26  Bruno Haible  <bruno@clisp.org>
82746
82747         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
82748         SGI C compiler in pre-C99 mode.
82749         Suggested by Mark D. Baushke and Larry Jones.
82750
82751 2006-06-26  Bruno Haible  <bruno@clisp.org>
82752
82753         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
82754         WCHAR_MAX.
82755         Reported by Mark D. Baushke and Larry Jones.
82756
82757 2006-06-26  Bruno Haible  <bruno@clisp.org>
82758
82759         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
82760         in pre-C99 mode.
82761         Suggested by Mark D. Baushke and Larry Jones.
82762
82763 2006-06-23  Simon Josefsson  <jas@extundo.com>
82764             Bruno Haible  <bruno@clisp.org>
82765
82766         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
82767         Emit mostlyclean-local rule.
82768         (func_emit_tests_Makefile_am): Likewise.
82769         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
82770
82771 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
82772
82773         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
82774
82775 2006-06-23  Bruno Haible  <bruno@clisp.org>
82776
82777         * tests/test-stdint.c: Update to match ISO C 99 Technical
82778         Corrigendum 1.
82779
82780 2006-06-23  Bruno Haible  <bruno@clisp.org>
82781
82782         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
82783
82784 2006-06-23  Bruno Haible  <bruno@clisp.org>
82785
82786         * lib/stdint_.h: Treat IRIX like OpenBSD.
82787
82788 2006-06-23  Bruno Haible  <bruno@clisp.org>
82789
82790         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
82791         ISO C 99 Technical Corrigendum 1.
82792
82793 2006-06-22  Simon Josefsson  <jas@extundo.com>
82794
82795         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
82796         MinGW.
82797
82798 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82799
82800         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
82801         needed.  Some compiler complained about some of them.  Problem reported
82802         by Larry Jones in
82803         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
82804
82805 2006-06-21  Simon Josefsson  <jas@extundo.com>
82806
82807         * tests/test-getaddrinfo.c: New file.
82808
82809         * modules/getaddrinfo-tests: New file.
82810
82811         * MODULES.html.sh: Add inet_pton.
82812
82813         * modules/inet_pton: New file.
82814
82815 2006-06-21  Simon Josefsson  <jas@extundo.com>
82816
82817         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
82818         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
82819         of using the (limited) gnulib implementation on Windows XP.
82820
82821         * m4/inet_pton.m4: New file.
82822
82823 2006-06-21  Simon Josefsson  <jas@extundo.com>
82824
82825         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
82826         variable.
82827
82828         * lib/socket_.h: Don't define WINVER.
82829
82830         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
82831         slightly modified to work in gnulib.
82832
82833 2006-06-21  Simon Josefsson  <jas@extundo.com>
82834
82835         * doc/gnulib.texi (Windows sockets): Add.
82836
82837 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
82838
82839         * lib/read-file.c (fread_file): Start with buffer allocation of
82840         0 bytes rather than 1 byte; this simplifies the code.
82841         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
82842         code to free buffer and save/restore errno.
82843         (internal_read_file): Remove unused local.
82844
82845 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
82846
82847         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
82848         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
82849         Problem reported by Denis Excoffier in
82850         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
82851
82852 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82853
82854         * modules/sys_socket, modules/socklen: Include sys/types since
82855         FreeBSD 4.x's sys/socket.h needs it.
82856
82857 2006-06-19  Simon Josefsson  <jas@extundo.com>
82858
82859         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
82860
82861 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
82862
82863         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
82864
82865 2006-06-19  Bruno Haible  <bruno@clisp.org>
82866
82867         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
82868         and FULL_PATH_INTTYPES_H in angle brackets.
82869         Reported by Mark D. Baushke <mdb@gnu.org>.
82870
82871 2006-06-17  Eric Blake  <ebb9@byu.net>
82872
82873         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
82874         errno.
82875
82876 2006-06-17  Bruno Haible  <bruno@clisp.org>
82877
82878         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
82879         <sys/inttypes.h>.
82880
82881 2006-06-17  Bruno Haible  <bruno@clisp.org>
82882
82883         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
82884         whether errno is declared. Assume <errno.h> declares errno.
82885
82886 2006-06-17  Bruno Haible  <bruno@clisp.org>
82887
82888         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
82889
82890 2006-06-17  Bruno Haible  <bruno@clisp.org>
82891
82892         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
82893         problem on Solaris 2.5.1.
82894
82895 2006-06-16  Eric Blake  <ebb9@byu.net>
82896
82897         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
82898         * lib/unicodeio.c [!defined errno]: Likewise.
82899         * lib/strtol.c [!defined errno]: Likewise.
82900         * lib/strtod.c [!defined errno]: Likewise.
82901
82902 2006-06-15  Eric Blake  <ebb9@byu.net>
82903
82904         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
82905
82906 2006-06-15  Eric Blake  <ebb9@byu.net>
82907
82908         * config/srclist.txt (ssize_t.m4): Lose sync.
82909
82910 2006-06-15  Bruno Haible  <bruno@clisp.org>
82911
82912         * modules/stdint (Files): Include m4/full-header-path.m4,
82913         m4/size_max.m4, m4/wchar_t.m4.
82914         (Makefile.am): Many more substitutions.
82915         * modules/stdint-tests: New file.
82916         * tests/test-stdint.c: New file.
82917
82918 2006-06-15  Bruno Haible  <bruno@clisp.org>
82919
82920         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
82921         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
82922         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
82923         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
82924         gl_CHECK_TYPE_SAME): New macros.
82925
82926 2006-06-15  Bruno Haible  <bruno@clisp.org>
82927
82928         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
82929
82930 2006-06-15  Bruno Haible  <bruno@clisp.org>
82931
82932         * lib/stdint_.h: Rewritten to be fully auto-configured.
82933         Fixes bug on HP-UX/IA64.
82934
82935 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
82936
82937         * lib/getdate.y (__attribute__): Don't define if already defined.
82938         Problem reported by Larry Jones.
82939         * lib/utimens.c (__attribute__): Likewise.
82940
82941 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
82942
82943         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
82944         reported by Andreas Schwab.
82945
82946 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82947             Bruno Haible  <bruno@clisp.org>
82948
82949         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
82950         check for the declaration of strnlen and a run test that exposes the
82951         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
82952         rpl_strndup.
82953
82954 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82955             Bruno Haible  <bruno@clisp.org>
82956
82957         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
82958
82959 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82960
82961         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
82962         compile test, for Tru64 4.0D.
82963
82964 2006-05-28  Karl Berry  <karl@gnu.org>
82965
82966         * config/srclist.txt (printf-args.c): lose sync.
82967
82968 2006-05-26  Martin Lambers  <marlam@marlam.de>
82969
82970         * lib/getpass.c: Updates the test for the native W32 API, and adds
82971         missing includes, thus fixing compilation warnings.
82972
82973 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82974
82975         * lib/exclude.c (exclude_fnmatch): New function.
82976         (excluded_file_name): Call exclude_fnmatch.
82977         * lib/exclude.h (excluded_file_name): New prototype
82978
82979 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
82980
82981         * lib/tempname.c (small_open, large_open): New macros.
82982         (__open, __open64) [!_LIBC]: Remove.
82983         (__gen_tempname): Use small_open and large_open instead of __open
82984         and __open64.  This fixes a portability bug on HP-UX 11.11i
82985         reported by Simon Wing-Tang in
82986         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
82987
82988 2006-05-24  Bruno Haible  <bruno@clisp.org>
82989
82990         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
82991         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
82992         Reported by Thorsten Maerz <torte@netztorte.de> via
82993         Aaron Stone <aaron@serendipity.cx>.
82994
82995 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82996
82997         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
82998         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
82999         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
83000         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
83001         not really conditional on the cache.
83002         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
83003
83004 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
83007         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
83008         (my_usleep): Don't mishandle maximum value.
83009
83010 2006-05-19  Jim Meyering  <jim@meyering.net>
83011
83012         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
83013
83014 2006-05-17  Bruno Haible  <bruno@clisp.org>
83015
83016         Cygwin portability.
83017         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
83018
83019 2006-05-17  Bruno Haible  <bruno@clisp.org>
83020
83021         * lib/stdint_.h: Fix recognition of Cygwin.
83022
83023 2006-05-15  Bruno Haible  <bruno@clisp.org>
83024
83025         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
83026         on libtool patch by Ralf Wildenhues.
83027
83028 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83029
83030         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
83031         test for C99 conformance; (bool) 0.5 is an integer constant
83032         expression, but (bool) -0.5 is not.  Problem reported by Fedor
83033         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
83034
83035 2006-05-11  Simon Josefsson  <jas@extundo.com>
83036
83037         * m4/xvasprintf.m4: Fix obvious typo.
83038
83039 2006-05-11  Jim Meyering  <jim@meyering.net>
83040
83041         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
83042         James Lemley.
83043
83044 2006-05-10  Simon Josefsson  <jas@extundo.com>
83045
83046         * lib/md4.c: Typo fix, update copyright years.
83047         (K1, K2): Don't use L because it turn computations into 64-bit on
83048         64-bit platforms.
83049
83050 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
83051
83052         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
83053         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
83054         unwanted sign propagation, e.g., on hosts with 64-bit int.
83055         There still are some problems with reeelly weird theoretical hosts
83056         (e.g., 33-bit int) but it's not worth worrying about now.
83057         * lib/sha1.c (rol): Likewise.
83058         (K1, K2, K3, K4): Remove unnecessary L suffix.
83059
83060 2006-05-10  Bruno Haible  <bruno@clisp.org>
83061
83062         * lib/des.c: Cast to avoid warnings.
83063
83064 2006-05-09  Bruno Haible  <bruno@clisp.org>
83065
83066         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
83067         (Depends-on): Depend also on xsize, stdarg.
83068         (configure.ac): Add gl_XVASPRINTF.
83069
83070 2006-05-09  Bruno Haible  <bruno@clisp.org>
83071
83072         * m4/xvasprintf.m4: New file.
83073
83074 2006-05-09  Bruno Haible  <bruno@clisp.org>
83075
83076         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
83077         (EOVERFLOW): Define fallback value.
83078         (xstrcat): New function.
83079         (xvasprintf): Recognize the special case of a string concatenation.
83080
83081 2006-05-08  Eric Blake  <ebb9@byu.net>
83082
83083         * gnulib-tool (func_version): Base copyright year on CVS date.
83084         (func_emit_copyright_notice): New function.
83085         (func_emit_lib_Makefile_am): Use it.
83086         (func_emit_tests_Makefile_am): Likewise.
83087         (func_import): Likewise.
83088
83089 2006-05-08  Bruno Haible  <bruno@clisp.org>
83090
83091         * modules/stdarg: New file.
83092         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
83093
83094 2006-05-08  Bruno Haible  <bruno@clisp.org>
83095
83096         * m4/stdarg.m4: New file, from GNU gettext.
83097
83098 2006-05-08  Bruno Haible  <bruno@clisp.org>
83099
83100         * config/srclist.txt (build-aux/config.rpath): different from latest
83101         release.
83102
83103 2006-05-08  Bruno Haible  <bruno@clisp.org>
83104
83105         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
83106
83107 2006-05-05  Jim Meyering  <jim@meyering.net>
83108
83109         * m4/warning.m4: New file, derived from bison's file by the same name.
83110
83111 2006-05-03  Bruno Haible  <bruno@clisp.org>
83112
83113         * lib/stdint_.h: Shorter URL.
83114         * lib/inttypes.h: Likewise.
83115
83116 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83117
83118         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
83119
83120 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83121
83122         * lib/verify.h: Document the internals better.  Most of this change
83123         was written by Bruno Haible.
83124
83125 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
83126
83127         * doc/verify.texi: New file, partly based on a proposal by
83128         Bruno Haible.
83129
83130 2006-05-02  Bruno Haible  <bruno@clisp.org>
83131
83132         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
83133         test from here...
83134         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
83135
83136 2006-04-29  Bruno Haible  <bruno@clisp.org>
83137
83138         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
83139         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
83140
83141 2006-04-29  Bruno Haible  <bruno@clisp.org>
83142
83143         * gnulib-tool: Make --update option actually work.
83144
83145 2006-04-29  Bruno Haible  <bruno@clisp.org>
83146
83147         * doc/gcd.texi: New file.
83148         * doc/gnulib.texi: Include it.
83149
83150 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
83151
83152         * lib/getdate.y (get_date): When adding relative date, start with the
83153         initial time, not with the result of the first mktime call.
83154
83155 2006-04-25  Bruno Haible  <bruno@clisp.org>
83156
83157         * gnulib-tool (func_import): Output the include directives in three
83158         blocks, sorted separately.
83159         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83160
83161 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83162
83163         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
83164         to define main with arguments, for C++.  Reported by Eric Blake.
83165         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
83166         Prefer 'int main ()' to 'int main (void)', for C++.
83167         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
83168         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
83169         for 'main', for C99 and C++.
83170
83171 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
83172
83173         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
83174         Don't assume that exit status -1 is valid.
83175         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83176         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
83177         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
83178         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
83179         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
83180         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
83181         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
83182         functions can be used without declaring them, or that you can
83183         exit with status -1.
83184         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
83185
83186 2006-04-24  Karl Berry  <karl@gnu.org>
83187
83188         * config/srclist.txt (longdouble.m4): sync lost.
83189
83190 2006-04-24  Eric Blake  <ebb9@byu.net>
83191
83192         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
83193
83194 2006-04-24  Bruno Haible  <bruno@clisp.org>
83195
83196         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
83197         poll() implementation in AIX.
83198         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83199
83200 2006-04-24  Bruno Haible  <bruno@clisp.org>
83201
83202         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
83203         assigned exactly once.
83204
83205 2006-04-23  Claudio Fontana  <claudio@gnu.org>
83206             Bruno Haible  <bruno@clisp.org>
83207
83208         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
83209         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
83210         for AM_CPPFLAGS.
83211
83212 2006-04-23  Bruno Haible  <bruno@clisp.org>
83213
83214         * modules/copy-file: Depend on unistd.
83215         * modules/execute: Likewise.
83216         * modules/fatal-signal: Likewise.
83217         * modules/findprog: Likewise.
83218         * modules/mkdtemp : Likewise.
83219         * modules/pipe: Likewise.
83220         * modules/wait-process: Likewise.
83221
83222 2006-04-23  Bruno Haible  <bruno@clisp.org>
83223
83224         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
83225         condition was already detected.
83226         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83227
83228 2006-04-23  Bruno Haible  <bruno@clisp.org>
83229
83230         * lib/copy-file.c: Include <unistd.h> unconditionally.
83231         * lib/execute.c: Likewise.
83232         * lib/fatal-signal.c: Likewise.
83233         * lib/findprog.c: Likewise.
83234         * lib/mkdtemp.c: Likewise.
83235         * lib/pipe.h: Likewise.
83236         * lib/pipe.c: Likewise.
83237         * lib/wait-process.h: Likewise.
83238
83239 2006-04-23  Bruno Haible  <bruno@clisp.org>
83240
83241         * gnulib-tool (func_usage): Fix --import description. Document
83242         --update.
83243         (func_import): Create temporary file in a temporary directory, if
83244         --dry-run is specified. Silence errors from 'grep' when there are no
83245         m4 files in $m4dir.
83246         (func_create_testdir): Silence errors from 'grep' when there are no
83247         m4 files in $m4dir.
83248         Reported by Karl Berry <karl@freefriends.org>.
83249
83250 2006-04-20  Bruno Haible  <bruno@clisp.org>
83251
83252         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
83253         one argument, so that the code will be portable to Autoconf 2.60.
83254         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
83255         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
83256         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
83257
83258 2006-04-19  Derek Price  <derek@ximbiot.com>
83259             Eric Blake  <ebb9@byu.net>
83260
83261         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
83262         rather than "/full/path.h".  Update comment to match.  Shorten &
83263         generalize m4_translit call via AS_TR_CPP.
83264
83265 2006-04-19  Derek Price  <derek@ximbiot.com>
83266             Eric Blake  <ebb9@byu.net>
83267
83268         * lib/inttypes.h: Correct grammar in comment.
83269
83270 2006-04-18  Derek Price  <derek@ximbiot.com>
83271             Paul Eggert  <eggert@cs.ucla.edu>
83272
83273         * modules/inttypes: New file.
83274         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
83275
83276 2006-04-18  Derek Price  <derek@ximbiot.com>
83277             Paul Eggert  <eggert@cs.ucla.edu>
83278
83279         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
83280         New files.
83281
83282 2006-04-18  Derek Price  <derek@ximbiot.com>
83283             Paul Eggert  <eggert@cs.ucla.edu>
83284
83285         * lib/inttypes.h: New file.
83286         * lib/strtoimax.c: Assume <inttypes.h>.
83287
83288 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
83289
83290         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
83291         isn't mounted.  Problem reported by Kir Kolyshkin.
83292
83293 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83294
83295         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
83296         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
83297         Derek R. Price.
83298         * lib/regex.h (RE_DUP_MAX): Update comment to match current
83299         implementation.
83300
83301 2006-04-12  Eric Blake  <ebb9@byu.net>
83302
83303         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
83304         is now done automatically by the corresponding Autoconf macro.
83305
83306 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
83307
83308         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
83309         time_r.h.
83310
83311 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83312
83313         Merge regex changes from libc, removing some of our
83314         POSIX-conformance changes that were rejected and redoing them in a
83315         less-intrusive way.
83316
83317         * lib/regcomp.c (re_compile_internal, init_dfa):
83318         Length arg is now size_t, not Idx.  All uses changed.
83319         (peek_token): Forward decl now says internal_function.
83320         (__re_error_msgid, __re_error_msgid_idx):
83321         Now static rather than extern with attribute_hidden.
83322         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
83323         For some reason libc prefers K&R style defns for external functions.
83324         (regerror) [!defined _LIBC]: Likewise.
83325         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
83326         (seek_collating_symbol_entry, lookup_collation_sequence_value):
83327         (build_range_exp, build_collating_symbol):
83328         Use K&R-style defn.
83329         (re_compile_fastmap): Use '\0' to memset, not 0.
83330         (utf8_sb_map): Make the calculations more obvious.
83331         (init_dfa, parse_bracket_exp, build_charclass_op):
83332         Call calloc and cast result, as glibc does.
83333         (init_word_char, fetch_token, peek_token, peek_token_bracket):
83334         (build_range_exp, build_collating_symbol):
83335         Now internal functions.
83336
83337         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
83338
83339         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
83340         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
83341         Don't depend on VMS; depend on __VMS instead, for POSIX
83342         namespace cleanness.
83343         (regoff_t): Define to ssize_t, not long int.
83344
83345         Remove the REG_ macros named below.  Instead, make the old names
83346         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
83347         __USE_GNU_REGEX.
83348         (REG_BACKSLASH_ESCAPE_IN_LISTS):
83349         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
83350         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
83351         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
83352         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
83353         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
83354         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
83355         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
83356         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
83357         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
83358         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
83359         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
83360         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
83361         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
83362         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
83363         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
83364         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
83365         (REG_NREGS):
83366         Remove.  All uses replaced by the old RE_* names.
83367         (RE_BACKSLASH_ESCAPE_IN_LISTS):
83368         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
83369         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
83370         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
83371         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
83372         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
83373         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
83374         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
83375         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
83376         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
83377         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
83378         Don't bother having these macros be independent of each others'
83379         values, since they no longer exist in the POSIX name space.
83380
83381         Rename the following member names back to their old names,
83382         unless !__USE_GNU_REGEX.  All uses changed back.
83383         (buffer): Renamed from re_buffer.
83384         (allocated): Renamed from re_allocated.
83385         (used): Renamed from re_used.
83386         (syntax): Renamed from re_syntax.
83387         (fastmap): Renamed from re_fastmap.
83388         (translate): Renamed from re_translate.
83389         (can_be_null): Renamed from re_can_be_null.
83390         (regs_allocated): Renamed from re_regs_allocated.
83391         (fastmap_accurate): Renamed from re_fastmap_accurate.
83392         (no_sub): Renamed from re_no_sub.
83393         (not_bol): Renamed from re_not_bol.
83394         (not_eol): Renamed from re_not_eol.
83395         (newline_anchor): Renamed from re_newline_anchor.
83396         (num_regs): Renamed from rm_num_regs.
83397         (start): Renamed from rm_start.
83398         (end): Renamed from rm_end.
83399
83400         (free_state): Move up a bit.
83401
83402         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
83403         #define to be empty.
83404         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
83405         when that is what is intended.
83406         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
83407         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
83408         (MAX): New macro.
83409         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
83410         All uses changed back to re_malloc, etc.  It's now the caller's
83411         responsibility to check for overflow; all callers changed.
83412         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
83413         (re_x2nrealloc): Remove.
83414         (free_state): Remove decl.
83415
83416         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
83417         (re_set_registers, re_exec):
83418         Use K&R-style defn.
83419
83420         2006-01-31  Roland McGrath  <roland@redhat.com>
83421
83422         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
83423         Reported by Mike Frysinger <vapier@gentoo.org>.
83424
83425         2006-01-15  Andreas Jaeger  <aj@suse.de>
83426
83427         [BZ #1950]
83428         * lib/regex_internal.c (re_string_reconstruct): Adjust for
83429         build_wcs_upper_buffer change.
83430         (build_wcs_upper_buffer): Change return type.
83431
83432         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
83433
83434         * lib/regex_internal.h: Include <stdint.h> if available.
83435
83436         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
83437
83438         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
83439
83440         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
83441
83442         * lib/regcomp.c: Adjust for changed secondary hash function.
83443
83444         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
83445
83446         * lib/regex.h: Pretty printing.
83447         Clean up namespace a bit.
83448
83449         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
83450
83451         * lib/regexec.c (update_cur_sifted_state, check_arrival,
83452         check_arrival_add_next_nodes): Avoid using uninitialized variable.
83453
83454         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83455                     Ulrich Drepper  <drepper@redhat.com>
83456
83457         [BZ #1302]
83458         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
83459         changed.
83460         (bitset_word_t): Renamed from bitset_word.  All uses changed.
83461
83462         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
83463
83464         [BZ #281]
83465         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
83466         * lib/regcomp.c: Remove unnecessary uses of
83467         unsigned RE_TRANSLATE_TYPE.
83468         * lib/regex_internal.h: Likewise.
83469         * lib/regex_internal.c: Likewise.
83470         * lib/regexec.c: Likewise.
83471         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
83472
83473         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
83474
83475         * lib/regexec.c (find_recover_state): Remove unnecessary
83476         initialization.
83477         (transit_state_bkref): Make DFA a const pointer.
83478         (get_subexp): Likewise.
83479         (check_arrival): Likewise.
83480         (update_cur_sifted_state): Likewise.
83481         (re_search_internal): Likewise.
83482         (prune_impossible_nodes): Likewise.
83483         (acquire_init_state_context): Likewise.
83484         (proceed_next_node): Likewise.
83485         (set_regs): Likewise.
83486         (free_fail_stack_return): Likewise.
83487         (check_arrival_expand_ecl): Mark DFA parameter as const.
83488         (check_arrival_expand_ecl_sub): Likewise.
83489         (check_subexp_limits): Likewise.
83490         (sub_epsilon_src_nodes):  Likewise.
83491         (add_epsilon_src_nodes):  Likewise.
83492         (merge_state_array): Likewise.
83493         (update_regs): Likewise.
83494         (build_trtable): Likewise.
83495         (sift_states_backward): Mark MCTX parameter as const.
83496         (build_sifted_states): Likewise.
83497         (update_cur_sifted_state): Likewise.
83498         (sift_states_mkref): Likewise.
83499         (check_arrival_expand_ecl): Mark eclosure as const.
83500         (check_dst_limits_calc_pos_1): Likewise.
83501         * lib/regex_internal.h (re_match_context_t): Make dfa a const
83502         pointer.
83503
83504         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
83505
83506         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
83507         (transit_state_sb): Likewise.
83508         (transit_state_mb): Likewise.
83509         (sift_states_iter_mb): Likewise.
83510         (check_arrival_add_next_nodes): Likewise.
83511         (check_node_accept_bytes): Change first parameter to pointer-to-const.
83512         [_LIBC] (re_search_2_stub): Use mempcpy.
83513
83514         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
83515         mbrtowc for very simple UTF-8 case.
83516
83517         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
83518         a pointer-to-const.
83519         (re_acquire_state_context): Likewise.
83520         * lib/regex_internal.h: Adjust prototypes.
83521
83522         * lib/regex.c: Prevent using C++ compilers.
83523
83524         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
83525         (re_acquire_state_context): Likewise.
83526
83527 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83528
83529         * modules/regex (Depends-on): Add ssize_t.
83530
83531 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83532
83533         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
83534         translation table.
83535
83536 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
83537
83538         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
83539
83540 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
83541             Bruno Haible  <bruno@clisp.org>
83542
83543         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
83544         <sys/types.h> and <inttypes.h>.
83545
83546 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83547
83548         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
83549         `__error_t_defined', so argp.h will not typedef the former.
83550
83551 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
83552
83553         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
83554         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
83555         glibc names.  Even if glibc is changed to conform to POSIX, the
83556         traditional names will be available anyway, since regex depends on
83557         the extensions module.  Also, fix a longstanding typo in the
83558         implementation of Spencer ERE test #75 from grep 2.3.  Problems
83559         reported by Emanuele Giaquinta.  Also, change sense of cached
83560         variable, so that the message makes sense.
83561
83562 2006-03-24  Simon Josefsson  <jas@extundo.com>
83563
83564         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
83565         including some doc fixes.
83566         (base64_encode_alloc): Fix +1 bug on allocation failures.
83567
83568 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83569
83570         * lib/base64.c (base64_encode): Do not read past end of array with
83571         unsanitized input on systems with CHAR_BIT > 8.
83572
83573 2006-03-24  Eric Blake  <ebb9@byu.net>
83574
83575         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
83576
83577 2006-03-22  Karl Berry  <karl@gnu.org>
83578
83579         * config/srclist.txt (*setenv.[ch]): get from coreutils.
83580         * config/srclistvars.sh (COREUTILS): new var.
83581
83582 2006-03-17  Jim Meyering  <jim@meyering.net>
83583
83584         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
83585         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
83586
83587 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83588
83589         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
83590         no longer needs it.  Instead, check that regoff_t is as least
83591         as wide as ptrdiff_t.
83592
83593         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
83594         so that our regex.h stays compatible with the installed regex.
83595         This is helpful for installers who configure --without-included-regex.
83596         Problem reported by Emanuele Giaquinta.
83597
83598 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
83599
83600         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
83601         Typedef to long int, not to off_, as POSIX will likely change
83602         in that direction.
83603
83604 2006-03-15  Eric Blake  <ebb9@byu.net>
83605
83606         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
83607
83608 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83609
83610         * lib/argp-help.c (validate_uparams): Fix typo
83611         * lib/argp-parse.c (argp_default_options): Consistently begin help
83612         messages with a lowercase letter.
83613
83614 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
83615
83616         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
83617         overrun buffers and shouldn't be used (much as gets shouldn't be
83618         used).
83619         * lib/time_r.c (asctime_r, ctime_r): Likewise.
83620
83621 2006-03-08  Simon Josefsson  <jas@extundo.com>
83622
83623         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
83624         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83625
83626 2006-03-08  Simon Josefsson  <jas@extundo.com>
83627
83628         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
83629         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83630
83631 2006-03-08  Simon Josefsson  <jas@extundo.com>
83632
83633         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
83634         signal that configure disabled the device.
83635
83636 2006-03-08  Simon Josefsson  <jas@extundo.com>
83637
83638         * build-aux/maint.mk: Fix refresh-po, to handle no translated
83639         languages.
83640
83641 2006-03-07  Simon Josefsson  <jas@extundo.com>
83642
83643         * modules/getopt (Depends-on): Add unistd.
83644
83645         * modules/unistd: New file.
83646
83647 2006-03-07  Simon Josefsson  <jas@extundo.com>
83648
83649         * modules/gc-random: New file.
83650
83651 2006-03-07  Simon Josefsson  <jas@extundo.com>
83652
83653         * m4/unistd_h.m4: New file.
83654
83655 2006-03-07  Simon Josefsson  <jas@extundo.com>
83656
83657         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
83658         test to be side-effect free by storing the result in the cache
83659         variable gl_cv_lib_readline, and moving the assignment of
83660         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
83661         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83662
83663 2006-03-07  Simon Josefsson  <jas@extundo.com>
83664
83665         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
83666         error on missing devices (the functions will return an error).
83667
83668         * m4/gc.m4: Move random stuff to gc-random.m4
83669
83670 2006-03-07  Simon Josefsson  <jas@extundo.com>
83671
83672         * lib/unistd_.h: New file.
83673
83674 2006-03-07  Simon Josefsson  <jas@extundo.com>
83675
83676         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
83677
83678 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83679
83680         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
83681         Problem reported by Juan Manuel Guerrero.
83682
83683 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83684
83685         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
83686         the unistd module.
83687         * lib/getlogin_r.c: Likewise.
83688         * lib/getlogin_r.h: Likewise.
83689         * lib/glob.c: Likewise.
83690         * lib/pagealign_alloc.c: Likewise.
83691         * lib/unistd_.h: Remove; no longer needed.
83692
83693 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
83694
83695         * MODULES.html.sh (Support for systems lacking POSIX:2001):
83696         Add unistd.
83697         * modules/c-stack (Depends-on): Add unistd.
83698         * modules/getlogin_r: Likewise.
83699         * modules/glob: Likewise.
83700         * modules/pagealign_alloc: Likewise.
83701         * modules/unistd (Files): Remove lib/unistd_.h.
83702         (EXTRA_DIST): Remove.
83703         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
83704         need unistd_.h.
83705         (MOSTLYCLEANFILES): Remove unistd.h-t.
83706
83707 2006-03-03  Simon Josefsson  <jas@extundo.com>
83708
83709         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
83710
83711 2006-03-03  Simon Josefsson  <jas@extundo.com>
83712
83713         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
83714         libidn and bison.
83715
83716 2006-03-03  Simon Josefsson  <jas@extundo.com>
83717
83718         * build-aux/maint.mk: Add indent target.
83719
83720 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
83721
83722         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
83723         our replacement poll.h in any case, to avoid a differing
83724         declaration from a system header.  Seen on AIX.
83725
83726 2006-03-01  Simon Josefsson  <jas@extundo.com>
83727
83728         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
83729         <kasal@ucw.cz>.
83730
83731 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83732
83733         * modules/gettime (Depends-on): Add extensions module.
83734         * modules/nanosleep (Depends-on): Likewise.
83735         * modules/settime (Depends-on): Likewise.
83736
83737 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83738
83739         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
83740         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
83741         pedantically.
83742         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
83743         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
83744
83745         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
83746         not "==".  Reported by Ralf Wildenhues.
83747
83748 2006-03-01  Karl Berry  <karl@gnu.org>
83749
83750         * doc/Copyright/request-*: new files, synced from gnuorg.
83751
83752 2006-03-01  Karl Berry  <karl@gnu.org>
83753
83754         * config/srclist.txt (Copyright/*): new entries.
83755
83756 2006-02-28  Simon Josefsson  <jas@extundo.com>
83757
83758         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
83759
83760 2006-02-27  Simon Josefsson  <jas@extundo.com>
83761
83762         * lib/base64.h: Indent #define's.  From Jim Meyering
83763         <jim@meyering.net>.
83764
83765 2006-02-27  Jim Meyering  <jim@meyering.net>
83766
83767         Revert the change of 2006-02-24, so these files can continue
83768         to be sync'd from gettext.
83769         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
83770         of `config.h'.
83771
83772 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83773
83774         * modules/intprops: New file.
83775         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
83776         Add intprops.
83777         * modules/getloadavg (Files): Remove lib/intprops.h.
83778         (Depends-on): Add intprops.
83779         * modules/human: Likewise.
83780         * modules/inttostr: Likewise.
83781         * modules/openat: Likewise.
83782         * modules/sig2str: Likewise.
83783         * modules/userspec: Likewise.
83784         * modules/utimecmp: Likewise.
83785         * modules/xnanosleep: Likewise.
83786         * modules/xstrtol: Likewise.
83787
83788 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
83789
83790         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
83791         * modules/lock-tests (TESTS): Use $(EXEEXT).
83792         * modules/tls-tests: Likewise.
83793         * modules/argp-tests: Likewise.
83794         (check_PROGRAMS): New var, replacing...
83795         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
83796
83797 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83798
83799         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
83800         `config.h'.
83801
83802 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
83803
83804         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
83805
83806 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83807
83808         Sync from coreutils.
83809         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
83810         gl_CHDIR_SAFER.
83811
83812 2006-02-22  Jim Meyering  <jim@meyering.net>
83813
83814         Sync from coreutils.
83815         * m4/chdir-safer.m4: New file.
83816
83817 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
83818
83819         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
83820         AT_FDCWD exceeds INT_MAX.
83821         * lib/openat.h (AT_FDCWD): Likewise.
83822
83823 2006-02-17  Eric Blake  <address@hidden>
83824
83825         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
83826
83827 2006-02-16  Simon Josefsson  <jas@extundo.com>
83828
83829         * modules/getaddrinfo (Depends-on): Add sys_socket.
83830
83831 2006-02-15  Simon Josefsson  <jas@extundo.com>
83832
83833         * build-aux/maint.mk: Add dsyntax-check rule.
83834
83835 2006-02-15  Eric Blake  <ebb9@byu.net>
83836
83837         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
83838         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
83839         'present but cannot compile' warnings on cygwin.
83840         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
83841         use ws2tcpip.h if sys/socket.h works.
83842         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
83843         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
83844
83845 2006-02-14  Simon Josefsson  <jas@extundo.com>
83846
83847         * modules/maintainer-makefile (Files): Rename.
83848
83849         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
83850         and (the local) Makefile.cfg to maint-cfg.mk.
83851
83852         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
83853         to the latter.
83854
83855         * modules/maintainer-makefile: New module.
83856
83857         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
83858         severaly stripped to make it possible to build it up from scratch
83859         with reliable tests.
83860
83861         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
83862         fixes to permit overriding the default actions when configure and
83863         makefile are not available.
83864
83865 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
83866
83867         Sync from coreutils.
83868         * modules/lstat (Depends-on): Don't depend on xalloc.
83869         (License): Change from GPL to LGPL, since this is now simply a
83870         replacement for a libc function.
83871
83872 2006-02-14  Jim Meyering  <jim@meyering.net>
83873
83874         Sync from coreutils.
83875
83876         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
83877         failure on deficient systems, and simplify gnulib lgpl dependencies.
83878         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
83879         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
83880
83881         * lib/xalloc-die.c: Remove unused definition of N_.
83882
83883 2006-02-14  Jim Meyering  <jim@meyering.net>
83884
83885         Sync from coreutils.
83886         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
83887         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
83888         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
83889         double-quote uses of that variable, to accommodate the rare case in
83890         which getmntent is available in none of the libraries checked.  This
83891         happens at least on FreeBSD 5.0.
83892
83893 2006-02-13  Simon Josefsson  <jas@extundo.com>
83894
83895         * gnulib-tool (Usage): Fix --import, from
83896         karl@freefriends.org (Karl Berry).
83897
83898 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
83899
83900         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
83901
83902 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
83903
83904         * lib/argp-namefrob.h: Restore changes accidentally lost during the
83905         "autoupdate" on 2005-12-12.
83906
83907 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83908
83909         * modules/closeout (Depends-on): Remove atexit.
83910
83911 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
83912
83913         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
83914         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
83915
83916 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
83917
83918         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
83919         __EXTENSIONS__ if this causes compilation to fail.  Problem
83920         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
83921         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
83922
83923 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
83924
83925         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
83926         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
83927         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
83928         All uses changed.
83929
83930 2006-01-26  Simon Josefsson  <jas@extundo.com>
83931
83932         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
83933         prototype is visible on mingw32.
83934
83935         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
83936         for mingw32.
83937
83938         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
83939         mingw32).
83940
83941 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
83942
83943         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
83944         attempt to open for write; this always fails, at least on POSIX
83945         hosts.  This reinstates the 2006-01-09 change, which was
83946         inadvertently removed.
83947
83948 2006-01-26  Bruno Haible  <bruno@clisp.org>
83949
83950         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
83951         Reported by Paul Eggert.
83952
83953 2006-01-26  Bruno Haible  <bruno@clisp.org>
83954             Paul Eggert  <eggert@cs.ucla.edu>
83955
83956         * lib/stdbool_.h (_Bool)
83957         [(! (defined __cplusplus || defined __BEOS__)
83958           && !defined __GNUC__
83959           && !(defined __HP_cc || defined __xlc__
83960                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
83961                || defined __sgi))]:
83962         #define to signed char in these cases too; this simplifies
83963         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
83964         etc., separately) and makes it more conservative.
83965
83966 2006-01-25  Simon Josefsson  <jas@extundo.com>
83967
83968         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
83969         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
83970         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
83971
83972 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83973
83974         * lib/argp-namefrob.h: Bugfix. Remove stray #
83975
83976 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
83977
83978         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
83979         so that we test the test.
83980         Check for yet another HP-UX cc bug involving *bool |= bool.
83981
83982 2006-01-25  Karl Berry  <karl@gnu.org>
83983
83984         * config/srclist.txt (vasnprintf.c): sync lost.
83985
83986 2006-01-25  Jim Meyering  <jim@meyering.net>
83987
83988         Sync from the stable (b5) branch of coreutils:
83989
83990         * lib/fts.c (fts_children): Don't let close() clobber errno from
83991         failed fchdir().
83992
83993         * lib/fts.c (fts_stat): When following a symlink-to-directory,
83994         don't necessarily interpret stat-fails+lstat-succeeds as indicating
83995         a dangling symlink.  That can also happen at least for ELOOP.
83996         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
83997         FYI, this bug predates the inclusion of fts.c in coreutils.
83998
83999         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
84000         in their own block, so pre-c99 compilers don't object.
84001
84002         Avoid the double-free (first in fts_read, second in fts_close) that
84003         would occur when an `active' directory is made inaccessible (e.g.,
84004         via chmod a-x) during a traversal.
84005         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84006         before returning.  Reproduce this failure by
84007         mkdir -p a/b; cd a; chmod a-x . b
84008         Reported by Stavros Passas.
84009
84010 2006-01-25  Jim Meyering  <jim@meyering.net>
84011
84012         * lib/fileblocks.c: Remove more useless parentheses.
84013         * lib/readutmp.h: Likewise.
84014
84015 2006-01-25  Bruno Haible  <bruno@clisp.org>
84016
84017         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
84018         warnings.
84019         Reported by Paul Eggert.
84020
84021 2006-01-25  Bruno Haible  <bruno@clisp.org>
84022
84023         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
84024         rid of a trap command. For Solaris sh.
84025         Reported by Mark D. Baushke <mdb@gnu.org>.
84026
84027 2006-01-24  Simon Josefsson  <jas@extundo.com>
84028
84029         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
84030         Bruno.
84031
84032 2006-01-24  Karl Berry  <karl@gnu.org>
84033
84034         * config/srclist.txt (argp-namefrob.h): sync lost.
84035
84036 2006-01-24  Jim Meyering  <jim@meyering.net>
84037
84038         * modules/openat (Files): Add lib/intprops.h.
84039         From Mark D. Baushke.
84040
84041 2006-01-24  Jim Meyering  <jim@meyering.net>
84042
84043         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
84044         Reported by Mark D. Baushke.
84045
84046 2006-01-24  Jim Meyering  <jim@meyering.net>
84047
84048         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
84049
84050 2006-01-24  Bruno Haible  <bruno@clisp.org>
84051
84052         * modules/strnlen (Maintainer): Change from glibc to all.
84053
84054 2006-01-24  Bruno Haible  <bruno@clisp.org>
84055
84056         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
84057         Patch by Paul Eggert.
84058
84059 2006-01-24  Bruno Haible  <bruno@clisp.org>
84060
84061         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
84062         already has it.
84063         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
84064         2005-11-26.
84065
84066         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
84067         'signed char' to avoid problems with the built-in _Bool type.
84068         Reported by Paul Eggert on 2005-11-26.
84069
84070 2006-01-24  Bruno Haible  <bruno@clisp.org>
84071
84072         * gnulib-tool (func_import): Avoid constructing complicated sed
84073         expressions inside backquote.
84074         Report and solution by Mark D. Baushke <mdb@gnu.org>.
84075
84076 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
84077
84078         These changes imported from libc.
84079         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
84080         test and two separate function calls.
84081         * lib/strndup.c (__strndup): Add libc_hidden_def.
84082
84083 2006-01-23  Simon Josefsson  <jas@extundo.com>
84084
84085         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
84086         Remove the test_*_SOURCES variable: automake infers it by default.
84087         * modules/tls-tests: Likewise.
84088
84089 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84090
84091         Work around porting bugs reported by Dieter in
84092         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
84093         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
84094         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
84095         Include "getopt.h" first, to check interface.
84096         (getenv): Declare only if defined HAVE_DECL_GETENV &&
84097         !HAVE_DECL_GETENV.
84098         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
84099         (__strndup): Revert to K&R-style function dfns, the glibc style.
84100         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
84101         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
84102         Include strnlen.h first, to get prototype properly.
84103         (strnlen): Renamed from __strnlen.
84104         Remove weak alias.
84105
84106 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84107
84108         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
84109
84110 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84111
84112         * config/srclist.txt: Adjust to reflect glibc reorganization.
84113         This affects only comments.
84114
84115 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84116
84117          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
84118          Reported by Bruce Korb <bkorb@gnu.org>.
84119
84120 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
84121
84122         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
84123         to pacify gcc -Wswitch-default.
84124
84125 2006-01-22  Bruno Haible  <bruno@clisp.org>
84126
84127         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
84128         temporary buffer for sprintf, take into account the precision also
84129         for 'd', 'i', 'u', 'o', 'x', 'X'.
84130
84131 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84132
84133         * modules/argp-tests: New module
84134         * tests/test-argp.c: New file
84135         * tests/test-argp-2.sh: New file
84136
84137 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
84138
84139         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
84140         (__argp_base_name): Removed
84141         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
84142         typo.
84143         (__argp_base_name): Provide macro definition or extern declaration
84144         depending on the configuration
84145
84146 2006-01-20  Simon Josefsson  <jas@extundo.com>
84147
84148         * modules/inet_ntop (Depends-on): Depend on sys_socket.
84149
84150 2006-01-20  Simon Josefsson  <jas@extundo.com>
84151
84152         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
84153
84154 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84155
84156         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
84157         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
84158         Suggested by Bruno Haible.
84159
84160 2006-01-20  Karl Berry  <karl@gnu.org>
84161
84162         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
84163         until changes propagate, I guess.
84164
84165 2006-01-19  Simon Josefsson  <jas@extundo.com>
84166
84167         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
84168
84169 2006-01-19  Simon Josefsson  <jas@extundo.com>
84170
84171         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
84172
84173 2006-01-19  Simon Josefsson  <jas@extundo.com>
84174
84175         * gnulib-tool: Set check_PROGRAMS.
84176
84177         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84178         modules/des-tests, modules/gc-arcfour-tests,
84179         modules/gc-arctwo-tests, modules/gc-des-tests,
84180         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84181         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84182         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84183         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84184         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84185         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
84186         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
84187         test_*_SOURCES.
84188
84189 2006-01-18  Simon Josefsson  <jas@extundo.com>
84190
84191         * modules/socklen (Depends-on): Depend on sys_socket.
84192
84193 2006-01-18  Simon Josefsson  <jas@extundo.com>
84194
84195         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
84196         modules/des-tests, modules/gc-arcfour-tests,
84197         modules/gc-arctwo-tests, modules/gc-des-tests,
84198         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
84199         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
84200         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
84201         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
84202         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
84203         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
84204         $(EXEEXT) to automake TESTS variable, for mingw32.
84205
84206 2006-01-17  Simon Josefsson  <jas@extundo.com>
84207
84208         * modules/socklen (Include): Need sys/socket.h.
84209
84210 2006-01-17  Bruno Haible  <bruno@clisp.org>
84211
84212         * modules/ssize_t (Include): Add <sys/types.h>.
84213
84214 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
84215
84216         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
84217         it's not portable and it doesn't work with cross-compiles.
84218         Problem reported by Bruno Haible.  Fix missing-$ typo in
84219         'test "gl_cv_ignore_unused_libraries" ...' that prevented
84220         -zignore from being used with Sun's C compiler.
84221
84222 2006-01-12  Simon Josefsson  <jas@extundo.com>
84223
84224         * lib/base64.c: Fix warning, reported by Bruno Haible
84225         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
84226
84227 2006-01-12  Bruno Haible  <bruno@clisp.org>
84228
84229         * modules/ldd: New file.
84230         * build-aux/ldd.sh.in: New file.
84231         * MODULES.html.sh (Support for building libraries and executables): Add
84232         ldd.
84233
84234 2006-01-12  Bruno Haible  <bruno@clisp.org>
84235
84236         * m4/ldd.m4: New file.
84237
84238 2006-01-12  Bruno Haible  <bruno@clisp.org>
84239
84240         * gnulib-tool (func_import, func_create_testdir): Don't go into an
84241         endless loop while replacing $auxdir with build-aux.
84242
84243 2006-01-11  Simon Josefsson  <jas@extundo.com>
84244
84245         * lib/stdint_.h (SIZE_MAX): Add missing (.
84246
84247 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
84248
84249         Sync from coreutils.
84250         * lib/md5.c: Fix commentary typos.
84251         (alignof, UNALIGNED_P): No need for a GCC-specific version.
84252         * lib/md5.h (__attribute__): Remove; unused.
84253         * lib/sha1.c: Fix commentary to match md5 better.
84254         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
84255         so that we don't need to worry about alignment.  All uses changed.
84256         This merges the 2005-10-28 md5 change into sha1.
84257
84258 2006-01-11  Jim Meyering  <jim@meyering.net>
84259
84260         Sync from coreutils.
84261         * lib/md5.c (OP): Fix spacing.
84262
84263 2006-01-11  Bruno Haible  <bruno@clisp.org>
84264
84265         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84266         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
84267         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
84268
84269 2006-01-11  Bruno Haible  <bruno@clisp.org>
84270
84271         Ensure automatic ordering between gl_LOCK and gl_ARGP.
84272         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
84273         the "early" section as well.
84274
84275 2006-01-11  Bruno Haible  <bruno@clisp.org>
84276
84277         Avoid "ar: no archive members specified" error on MacOS X.
84278         * gnulib-tool (func_modules_add_dummy): New function.
84279         (func_import, func_create_testdir): Invoke it.
84280
84281 2006-01-11  Bruno Haible  <bruno@clisp.org>
84282
84283         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
84284         with $auxdir in AC_CONFIG_FILES statements.
84285
84286 2006-01-11  Bruno Haible  <bruno@clisp.org>
84287
84288         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
84289         Initialize also noinst_HEADERS to empty.
84290
84291 2006-01-11  Bruno Haible  <bruno@clisp.org>
84292
84293         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
84294         variables.
84295         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
84296         autoreconf.
84297
84298 2006-01-11  Bruno Haible  <bruno@clisp.org>
84299
84300         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
84301         overridable by the user.
84302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84303
84304 2006-01-10  Simon Josefsson  <jas@extundo.com>
84305
84306         * modules/sys_socket: New file.
84307
84308 2006-01-10  Simon Josefsson  <jas@extundo.com>
84309
84310         * m4/sys_socket_h.m4: New file.
84311
84312 2006-01-10  Simon Josefsson  <jas@extundo.com>
84313
84314         * lib/socket_.h: New file.
84315
84316 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * modules/readutmp (Maintainer): Add myself.
84319
84320 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
84323         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
84324         People who are still concerned with buggy memcmp implementations
84325         can invoke gl_FUNC_MEMCMP themselves.
84326
84327 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
84328
84329         * lib/regex_internal.h (BITSET_WORD_BITS):
84330         Work around a bug in 64-bit PGC (before version 6.1-2), where the
84331         preprocessor mishandles large unsigned values as if they were signed.
84332         Problem reported by Claudio Fontana in
84333         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
84334
84335 2006-01-10  Jim Meyering  <jim@meyering.net>
84336
84337         Avoid the double-free (first in fts_read, second in fts_close) that
84338         would occur when an `active' directory is made inaccessible (e.g.,
84339         via chmod a-x) during a traversal.
84340         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
84341         before returning.  Reproduce this failure by
84342         mkdir -p a/b; cd a; chmod a-x . b
84343         Reported by Stavros Passas.
84344
84345         Sync from coreutils.
84346         * lib/sha1.c: Tweak grammar in a comment.
84347
84348 2006-01-10  Jim Meyering  <jim@meyering.net>
84349
84350         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
84351         Patch by Joerg Sonnenberger.
84352
84353 2006-01-10  Bruno Haible  <bruno@clisp.org>
84354
84355         * modules/readutmp: Depend on module free.
84356         * modules/strtok_r: Depend on module restrict.
84357
84358 2006-01-10  Bruno Haible  <bruno@clisp.org>
84359
84360         * modules/gettext (configure.ac): Add an invocation of
84361         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
84362
84363 2006-01-10  Bruno Haible  <bruno@clisp.org>
84364
84365         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
84366         Reported by Werner Lemberg <wl@gnu.org>.
84367
84368 2006-01-10  Bruno Haible  <bruno@clisp.org>
84369
84370         * lib/localcharset.c: Update from GNU gettext.
84371
84372 2006-01-10  Bruno Haible  <bruno@clisp.org>
84373
84374         * lib/argp.h (__const): Remove macro. Use const instead.
84375         * lib/argp-fmtstream.h (__const): Likewise.
84376         * lib/glob_.h (__const): Remove macro.
84377         * lib/glob-libc.h: Use const instead of __const.
84378
84379 2006-01-10  Bruno Haible  <bruno@clisp.org>
84380
84381         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
84382         variable.
84383         Needed to avoid an automake error regarding the 'gettext' module.
84384
84385 2006-01-09  Simon Josefsson  <jas@extundo.com>
84386
84387         * modules/inet_ntop (Depends-on): Add restrict.
84388
84389 2006-01-09  Simon Josefsson  <jas@extundo.com>
84390
84391         * modules/gc-rijndael-tests (License): Put under LGPL.
84392
84393         * modules/gc-des-tests (License): Likewise.
84394
84395         * modules/gc-arcfour-tests (License): Likewise.
84396
84397         * modules/gc-arctwo-tests (License): Likewise.
84398
84399         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
84400
84401         * modules/gc-hmac-sha1-tests (Files): Likewise.
84402
84403         * modules/gc-hmac-md5-tests (License): Likewise.
84404
84405         * modules/gc-sha1-tests (License): Likewise.
84406
84407         * modules/gc-md5-tests (License): Likewise.
84408
84409         * modules/gc-md4-tests (License): Likewise.
84410
84411         * modules/gc-md2-tests (License): Likewise.
84412
84413         * modules/gc-tests (License): Likewise.
84414
84415         * modules/des-tests (License): Likewise.
84416
84417         * modules/md4-tests (License): Likewise.
84418
84419         * modules/md2-tests (License): Likewise.
84420
84421 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84422
84423         Sync from coreutils:
84424
84425         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
84426         * modules/lib-ignore: New file.
84427         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
84428         chdir-safer.m4, lchmod.m4.
84429         * modules/openat: Add mkdirat.c, openat-priv.h.
84430
84431 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84432
84433         Sync from coreutils.
84434         * m4/lib-ignore.m4: New file.
84435         * m4/lchmod.m4: New file.
84436
84437 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84438
84439         Sync from coreutils.
84440         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
84441         for write access: POSIX says that must fail.
84442         * lib/fts.c (diropen): Likewise.
84443         * lib/save-cwd.c (save_cwd): Likewise.
84444         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
84445         well, for minor improvements on hosts that lack O_DIRECTORY.
84446         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
84447         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
84448         Fall back on chown if open failed with EACCES.
84449
84450         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
84451         Report an error at compile-time if only a 1-second nominal clock
84452         resolution is found.
84453
84454         * lib/lchmod.h: New file.
84455         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
84456         (make_dir_parents): Use lchown rather than chown, and
84457         lchmod rather than chmod.
84458
84459         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
84460         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
84461         "proc" reported by n0dalus.
84462
84463         * lib/mountlist.c: Include <limits.h>.
84464         (dev_from_mount_options)
84465         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
84466         New function.  It no longer assumes "dev=" has the System V meaning
84467         on Linux (since it doesn't).  It also parses "dev=" more carefully.
84468         (read_file_system_list)
84469         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
84470         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
84471         dev= in that case.
84472
84473         * lib/posixtm.h (PDS_PRE_2000): New macro.
84474         * lib/posixtm.c (year): Arg is now syntax_bits rather than
84475         allow_century.  All usages changed.  Reject dates outside the range
84476         1969-1999 if PDS_PRE_2000 is used.
84477
84478 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
84479
84480         Sync from coreutils.
84481         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
84482         (Time of day items): Mention the possibility of leap seconds.
84483         Problem reported by Dr. David Alan Gilbert.
84484
84485 2006-01-09  Jim Meyering  <jim@meyering.net>
84486
84487         Sync from coreutils.
84488
84489         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
84490
84491         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
84492
84493         * lib/modechange.c (mode_compile): Reject an invalid mode string
84494         that starts with an octal digit.  From Andreas Gruenbacher.
84495
84496         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
84497         and dup to open_safer and dup_safer, respectively.
84498         (openat_permissive): Fix typo in comment.
84499
84500         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
84501         "gettext.h"; either no longer needed or are guaranteed by openat.h.
84502         (_): Remove; no longer needed.
84503         (openat): Renamed from rpl_openat; no need for rpl_openat
84504         since openat.h renames openat for us.
84505         Replace most of the body with a call to openat_permissive,
84506         to avoid duplicate code.
84507         Port to (probably hypothetical) environments were mode_t is
84508         wider than int.
84509         (openat_permissive): Require mode arg, so that we can check
84510         types better.  Put it just after flags.  Change cwd failure
84511         indicator from pointer-to-bool to pointer-to-errno-value.
84512         All callers changed.
84513         Invoke openat_save_fail and/or openat_restore_fail if
84514         cwd_errno is null, so that openat can call us.
84515         (openat_permissive, fdopendir, fstatat, unlinkat):
84516         Simplify errno handling to avoid some duplicate code,
84517         as it's OK to set errno on success.
84518         * lib/openat.h: Revamp code so that function macros depend on
84519         __OPENAT_PREFIX only, not also on AT_FDCWD.
84520         (openat_ro): Remove.  Caller changed to use openat_permissive.
84521         (openat_permissive): Now a macro, if not a function.
84522         (openat_restore_fail, openat_save_fail): Now always functions,
84523         since mkdirat needs them even if __OPENAT_PREFIX is defined.
84524
84525         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
84526         and openat.c.
84527         * lib/mkdirat.c: Include openat-priv.h.
84528         Remove definitions of macros defined therein.
84529         * lib/openat.c: Likewise.
84530
84531         * lib/mkdirat.c (mkdirat): New file and function.
84532         * lib/openat.h (mkdirat): Declare.
84533
84534         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
84535
84536         * lib/openat.h (openat_permissive): Declare.
84537         (openat_ro): Define.
84538
84539         * lib/openat.c (EXPECTED_ERRNO): New macro.
84540         (openat_permissive): New function -- used in remove.c rewrite.
84541         (all functions): Set errno just before returning, only if there
84542         was an actual failure.
84543         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
84544
84545         Emulate openat-family functions using Linux's procfs, if possible.
84546         Idea and some code based on Ulrich Drepper's glibc changes.
84547
84548         * lib/openat.c: (BUILD_PROC_NAME): New macro.
84549         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
84550         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
84551         before falling back on save_cwd and restore_cwd.
84552         (fdopendir, fstatat, unlinkat): Likewise.
84553
84554         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
84555         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
84556
84557         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
84558         as second argument to va_arg.  Otherwise, some versions of gcc
84559         warn that `if this code is reached, the program will abort'.
84560
84561 2006-01-09  Jim Meyering  <jim@meyering.net>
84562
84563         Sync from coreutils.
84564         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
84565         Require openat-priv.h.
84566
84567 2006-01-09  Bruno Haible  <bruno@clisp.org>
84568
84569         * modules/strnlen (Include): Use strnlen.h.
84570
84571 2006-01-09  Bruno Haible  <bruno@clisp.org>
84572
84573         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
84574
84575 2006-01-09  Bruno Haible  <bruno@clisp.org>
84576
84577         * lib/sysexit_.h (EX_OK): New macro.
84578         Suggested by Martin Lambers <marlam@marlam.de>.
84579
84580 2006-01-09  Bruno Haible  <bruno@clisp.org>
84581
84582         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
84583         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
84584
84585 2006-01-09  Bruno Haible  <bruno@clisp.org>
84586
84587         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
84588         numbers.
84589
84590 2006-01-09  Bruno Haible  <bruno@clisp.org>
84591
84592         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
84593         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
84594         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
84595         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
84596
84597 2006-01-09  Bruno Haible  <bruno@clisp.org>
84598
84599         * build-aux/javacomp.sh.in: New file, moved from lib/.
84600         * modules/javacomp-script (Files): Update.
84601         (configure.ac): Add AC_CONFIG_FILES invocation.
84602         (EXTRA_DIST): Remove variable.
84603
84604         * build-aux/javaexec.sh.in: New file, moved from lib/.
84605         * modules/javaexec (Files): Update.
84606         (configure.ac): Add AC_CONFIG_FILES invocation.
84607         (EXTRA_DIST): Remove javaexec.sh.in.
84608
84609         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
84610         * modules/csharpcomp-script (Files): Update.
84611         (configure.ac): Add AC_CONFIG_FILES invocation.
84612         (EXTRA_DIST): Remove variable.
84613
84614         * build-aux/csharpexec.sh.in: New file, moved from lib/.
84615         * modules/csharpexec (Files): Update.
84616         (configure.ac): Add AC_CONFIG_FILES invocation.
84617         (EXTRA_DIST): Remove csharpexec.sh.in.
84618
84619 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84620
84621         Sync from coreutils.
84622
84623         Add POSIX ACL support
84624         * lib/acl.h (copy_acl, set_acl): Add declarations.
84625         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
84626         systems other than Linux.
84627         (chmod_or_fchmod): New function: use fchmod when possible,
84628         and chmod otherwise.
84629         (file_has_acl): Add a POSIX ACL implementation, with a
84630         Linux-specific subcase.
84631         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
84632         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
84633         acls are unsupported.
84634         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
84635         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
84636         are unsupported.
84637
84638 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
84639
84640         Sync from coreutils.
84641         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
84642
84643 2006-01-07  Bruno Haible  <bruno@clisp.org>
84644
84645         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
84646         gl_EARLY.
84647
84648 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84649
84650         * lib/strftime.c (tzname): Don't declare if it is already #defined.
84651         Problem reported for Mingw by Mark Junker.
84652
84653 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84654
84655         * README: Gnulib normally doesn't generate a tarball.
84656
84657 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
84658
84659         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
84660         long int, not int, for nanosecond counts, so that people who are
84661         used to POSIX struct timespec won't be surprised.  Reported by Jim
84662         Meyering.
84663
84664 2005-12-28  Bruno Haible  <bruno@clisp.org>
84665
84666         * build-aux/config.rpath: Update from GNU gettext.
84667
84668 2005-12-16  Jim Meyering  <jim@meyering.net>
84669
84670         * modules/fprintftime: New module.
84671         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
84672
84673 2005-12-16  Jim Meyering  <jim@meyering.net>
84674
84675         * m4/fprintftime.m4: New file.
84676
84677 2005-12-16  Jim Meyering  <jim@meyering.net>
84678
84679         * lib/fprintftime.c, lib/fprintftime.h: New files.
84680
84681 2005-12-15  Simon Josefsson  <jas@extundo.com>
84682
84683         * modules/socklen (configure.ac): Fix M4 macro name, to align with
84684         new m4/socklen.m4.
84685
84686 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84687
84688         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
84689         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
84690
84691 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
84692
84693         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
84694         * lib/argp-help.c (fill_in_uparams): Check if the constructed
84695         struct uparams is valid. Fall back to the default values if it is
84696         not.
84697
84698 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84699
84700         * modules/argp (Files): Add argp-pin.c
84701         (Depends-on): dirname
84702         (lib_SOURCES): Add argp-pin.c
84703
84704 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84705
84706         * m4/argp.m4:  Check if program_invocation_name and
84707         program_invocation_short_name are declared and define appropriate
84708         macros if they are not.
84709
84710 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84711
84712         * lib/argp-help.c (__argp_base_name): New function
84713         (__argp_short_program_name): Rewrite using __argp_base_name
84714         * lib/argp-namefrob.h: Define program_invocation_name and
84715         program_invocation_short_name if requested
84716         (__argp_base_name): Add prototype
84717         * lib/argp-parse.c (argp_def): Use gettext wrappers
84718         (argp_default_parser): Use __argp_base_name
84719         * lib/argp-pin.c: New file. Defines program_invocation_name and
84720         program_invocation_short_name on systems that lack them.
84721
84722 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84723
84724         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
84725         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84726         porting problem reported by Georg Schwarz in
84727         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84728
84729 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84730
84731         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
84732         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
84733         porting problem reported by Georg Schwarz in
84734         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
84735
84736 2005-12-05  Bruno Haible  <bruno@clisp.org>
84737
84738         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
84739         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
84740         Reported by Mark Junker <mjscod@gmx.de>.
84741
84742 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
84743
84744         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
84745         Use implementation from Albert Chin, with some
84746         comments/corrections by Stepan Kasal and myself.
84747
84748 2005-12-02  Bruno Haible  <bruno@clisp.org>
84749
84750         * gnulib-tool (func_import): Accept GPLed build tool modules when
84751         --lgpl is given.
84752         * modules/csharpcomp-script: New file.
84753         * modules/csharpcomp: Depend on it.
84754         * modules/javacomp-script: New file.
84755         * modules/javacomp: Depend on it.
84756         Suggested by Simon Josefsson.
84757
84758 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
84759
84760         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
84761         statement, to work around an HP-UX 10.20 compiler bug reported by
84762         Peter O'Gorman.
84763
84764 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84765
84766         * modules/savedir (Depends-on): Add openat.
84767
84768 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
84769
84770         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
84771         (uintmax_t) [defined uintmax_t]: Do not declare.
84772         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
84773         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
84774         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
84775         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
84776         sake of portability to weird hosts that C allows (though we don't
84777         know of any practical examples).
84778
84779         * lib/savedir.h (fdsavedir): New decl.
84780         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
84781         contains most of the former guts of savedir.
84782         (savedir): Use savedirstream.
84783         Include "openat.h".
84784
84785 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84786
84787         * modules/obstack (Files): Add m4/ulonglong.m4.
84788         Problem reported by Davide Angelocola.
84789
84790 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
84791
84792         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
84793         coreutils no longer futzes with rounding modes.
84794
84795 2005-11-14  Jim Meyering  <jim@meyering.net>
84796
84797         * lib/mkstemp-safer.c: Include <config.h>, required for possible
84798         replacement of mkstemp.
84799
84800 2005-11-10  Simon Josefsson  <jas@extundo.com>
84801
84802         * lib/readline.c: Remove EOL.
84803
84804 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84805
84806         * modules/gethrxtime (Depends-on): Add gettime.
84807
84808 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84809
84810         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
84811         or gettimeofday; no longer needed.
84812
84813 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84814
84815         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
84816         time business.
84817         (gethrxtime) [! (HAVE_NANOUPTIME
84818         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
84819         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
84820         our own approximation.
84821
84822 2005-11-08  Eric Blake  <ebb9@byu.net>
84823
84824         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84825
84826 2005-11-08  Eric Blake  <ebb9@byu.net>
84827
84828         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
84829
84830 2005-11-04  Bruno Haible  <bruno@clisp.org>
84831
84832         * gnulib-tool: Implement --update mode.
84833
84834 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84835
84836         Fix porting problem reported by Theodoros V. Kalamatianos.
84837         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
84838         Don't assume that futimes failing means we must fail.
84839
84840 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
84841
84842         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
84843         variables to suggest the intended function of the PATH_MAX check.
84844
84845 2005-10-30  Kean Johnston  <jkj@sco.com>
84846
84847         Trivial changes to support SCO systems.
84848         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
84849         as PATH_MAX.
84850         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
84851         where __ptr is null when no I/O is pending.
84852
84853 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84854
84855         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
84856         leave errno alone.  Problem reported by Dmitry V. Levin.
84857
84858 2005-10-28  Simon Josefsson  <jas@extundo.com>
84859
84860         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
84861         Test more.
84862
84863         * tests/test-gc-md2.c, tests/test-md2.c: New files.
84864
84865         * modules/md2, modules/md2-tests: New files.
84866
84867 2005-10-28  Simon Josefsson  <jas@extundo.com>
84868
84869         * m4/inet_ntop.m4: More tests.
84870
84871         * m4/gc-md2.m4, md2.m4: New file.
84872
84873 2005-10-28  Simon Josefsson  <jas@extundo.com>
84874
84875         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
84876         "restrict" keywords, as per POSIX.  Protect the function
84877         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
84878         Don't use K&R prototypes.  Check the sprintf return values.
84879         Re-define EAFNOSUPPORT if not present.  Indent.
84880
84881         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
84882         suggested by Bruno Haible <bruno@clisp.org>.
84883
84884         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
84885
84886         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
84887
84888         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
84889         libgcrypt).
84890
84891         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
84892
84893         * lib/md2.h, lib/md2.c: New files.
84894
84895 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
84896
84897         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
84898         errno alone.  Problem reported by Frederic Jolliton.
84899
84900 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
84901
84902         * modules/verify (License): Change from GPL to LGPL.  This is a
84903         tiny module and there are apparently near-equivalents that are
84904         under the BSD license.
84905
84906 2005-10-24  Simon Josefsson  <jas@extundo.com>
84907
84908         * modules/sha1: Relicense to LGPL.
84909
84910 2005-10-24  Simon Josefsson  <jas@extundo.com>
84911
84912         * lib/md4.h: Shrink buffer size, now that we changed the type.
84913
84914 2005-10-23  Simon Josefsson  <jas@extundo.com>
84915
84916         * gnulib-tool (func_import): Fix --tests-base.
84917
84918 2005-10-22  Simon Josefsson  <jas@extundo.com>
84919
84920         * modules/arcfour (Depends-on): Need stdint.
84921
84922 2005-10-22  Simon Josefsson  <jas@extundo.com>
84923
84924         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
84925         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
84926
84927 2005-10-22  Simon Josefsson  <jas@extundo.com>
84928
84929         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
84930         suggested by Bruno Haible <bruno@clisp.org>.
84931
84932 2005-10-22  Simon Josefsson  <jas@extundo.com>
84933
84934         * lib/crc.h: Include stddef.h, for size_t.
84935
84936 2005-10-22  Simon Josefsson  <jas@extundo.com>
84937
84938         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
84939         arcfour_context struct (simplify test vector testing in GNU
84940         Shishi).
84941
84942 2005-10-21  Simon Josefsson  <jas@extundo.com>
84943
84944         * modules/des, modules/des-tests: New files.
84945
84946         * modules/gc-des, modules/gc-des-tests: New files.
84947
84948         * tests/test-des.c, tests/test-gc-des.c: New file.
84949
84950 2005-10-21  Simon Josefsson  <jas@extundo.com>
84951
84952         * modules/arctwo, modules/arctwo-tests: New files.
84953
84954         * tests/test-arctwo.c: New file.
84955
84956         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
84957
84958         * tests/test-gc-arctwo.c: New file.
84959
84960 2005-10-21  Simon Josefsson  <jas@extundo.com>
84961
84962         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
84963         Bruno Haible <bruno@clisp.org>.
84964
84965         * m4/gc-des.m4: New file.
84966
84967 2005-10-21  Simon Josefsson  <jas@extundo.com>
84968
84969         * m4/arctwo.m4: New file.
84970
84971         * m4/gc-arctwo.m4: New file.
84972
84973 2005-10-21  Simon Josefsson  <jas@extundo.com>
84974
84975         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
84976         block.
84977
84978 2005-10-21  Simon Josefsson  <jas@extundo.com>
84979
84980         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
84981         <bruno@clisp.org>.
84982
84983         * lib/hmac-sha1.c (hmac_sha1): Likewise.
84984
84985         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
84986         Bruno Haible <bruno@clisp.org>.
84987
84988         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
84989         <bruno@clisp.org>.
84990
84991 2005-10-21  Simon Josefsson  <jas@extundo.com>
84992
84993         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
84994
84995 2005-10-21  Simon Josefsson  <jas@extundo.com>
84996
84997         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
84998
84999 2005-10-21  Simon Josefsson  <jas@extundo.com>
85000
85001         * lib/des.h, lib/des.c: New files.
85002
85003         * lib/gc-gnulib.c: Support DES.c
85004
85005 2005-10-21  Simon Josefsson  <jas@extundo.com>
85006
85007         * lib/arctwo.h, lib/arctwo.c: New files.
85008
85009         * lib/gc-gnulib.c: Support ARCTWO.
85010
85011 2005-10-21  Simon Josefsson  <jas@extundo.com>
85012
85013         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
85014         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85015
85016 2005-10-21  Simon Josefsson  <jas@extundo.com>
85017
85018         * gnulib-tool (func_import, func_create_testdir): Define automake
85019         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
85020         Makefile.am snippet),
85021         suggested by Bruno Haible <bruno@clisp.org>.
85022
85023         * modules/gc (Makefile.am): Use it.
85024
85025 2005-10-21  Bruno Haible  <bruno@clisp.org>
85026
85027         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
85028         patch.
85029
85030 2005-10-19  Simon Josefsson  <jas@extundo.com>
85031
85032         * tests/test-gc-rijndael.c: New file.
85033
85034         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
85035
85036 2005-10-19  Simon Josefsson  <jas@extundo.com>
85037
85038         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
85039         interface too.
85040
85041 2005-10-19  Simon Josefsson  <jas@extundo.com>
85042
85043         * tests/test-gc-arcfour.c: New file.
85044
85045         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
85046
85047 2005-10-19  Simon Josefsson  <jas@extundo.com>
85048
85049         * modules/gc-md4, modules/gc-md4-tests: New file.
85050
85051         * tests/test-gc-md4.c: New file.
85052
85053 2005-10-19  Simon Josefsson  <jas@extundo.com>
85054
85055         * m4/gc-md4.m4: New file.
85056
85057 2005-10-19  Simon Josefsson  <jas@extundo.com>
85058
85059         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
85060         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
85061         <kasal@ucw.cz>.
85062
85063 2005-10-19  Simon Josefsson  <jas@extundo.com>
85064
85065         * m4/gc-arcfour.m4: New file.
85066
85067         * m4/gc-rijndael.m4: New file.
85068
85069 2005-10-19  Simon Josefsson  <jas@extundo.com>
85070
85071         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
85072
85073 2005-10-19  Simon Josefsson  <jas@extundo.com>
85074
85075         * lib/gc-gnulib.c: Support ARCFOUR.
85076
85077 2005-10-19  Simon Josefsson  <jas@extundo.com>
85078
85079         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
85080         support.
85081
85082         * lib/gc.h: Add ECB enum type.
85083
85084         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
85085
85086 2005-10-18  Simon Josefsson  <jas@extundo.com>
85087
85088         * tests/test-md5.c: New file.
85089
85090         * modules/md5-tests: New file.
85091
85092 2005-10-18  Simon Josefsson  <jas@extundo.com>
85093
85094         * tests/test-md4.c: New file.
85095
85096         * modules/md4, modules/md4-tests: New files.
85097
85098 2005-10-18  Simon Josefsson  <jas@extundo.com>
85099
85100         * m4/md4.m4: New file.
85101
85102 2005-10-18  Simon Josefsson  <jas@extundo.com>
85103
85104         * lib/md4.h, lib/md4.c: New files, based on md5.?.
85105
85106 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
85107
85108         * gnulib-tool (func_create_testdir): Omit the second check whether
85109         BUILT_SOURCES in nonempty.
85110
85111 2005-10-17  Simon Josefsson  <jas@extundo.com>
85112
85113         * tests/test-rijndael.c: New file.
85114
85115 2005-10-17  Simon Josefsson  <jas@extundo.com>
85116
85117         * modules/sha1: Depend on stdint instead of md5.
85118
85119         * modules/md5: Depend on stdint, remove uint32_t.
85120
85121 2005-10-17  Simon Josefsson  <jas@extundo.com>
85122
85123         * modules/gc-sha1-tests: New file.
85124
85125         * tests/test-gc-sha1.c: New file.
85126
85127 2005-10-17  Simon Josefsson  <jas@extundo.com>
85128
85129         * m4/md5.m4: Remove call to uint32_t.m4.
85130
85131 2005-10-17  Simon Josefsson  <jas@extundo.com>
85132
85133         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
85134
85135         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
85136         md5.h.
85137
85138         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
85139
85140         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
85141
85142 2005-10-17  Simon Josefsson  <jas@extundo.com>
85143
85144         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
85145
85146 2005-10-17  Simon Josefsson  <jas@extundo.com>
85147
85148         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
85149
85150 2005-10-17  Simon Josefsson  <jas@extundo.com>
85151
85152         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
85153
85154         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
85155
85156 2005-10-17  Bruno Haible  <bruno@clisp.org>
85157
85158         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
85159         that it can also be used in a test.
85160
85161 2005-10-16  Bruno Haible  <bruno@clisp.org>
85162
85163         * gnulib-tool (func_emit_tests_Makefile_am): Also define
85164         TESTS_ENVIRONMENT, so that individual tests can augment it.
85165
85166         * gnulib-tool (func_create_testdir): Use an intermediate target for
85167         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
85168         macros, like $(ALLOCA_H), which cannot be passed through the command
85169         line.
85170
85171 2005-10-15  Simon Josefsson  <jas@extundo.com>
85172
85173         * modules/rijndael-tests: New file.
85174
85175         * modules/rijndael: New file.
85176
85177 2005-10-15  Simon Josefsson  <jas@extundo.com>
85178
85179         * m4/rijndael.m4: New file.
85180
85181 2005-10-15  Simon Josefsson  <jas@extundo.com>
85182
85183         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
85184
85185         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
85186
85187 2005-10-14  Simon Josefsson  <jas@extundo.com>
85188
85189         * tests/test-arcfour.c: New file.
85190
85191         * modules/arcfour, modules/arcfour-tests: New files.
85192
85193 2005-10-14  Simon Josefsson  <jas@extundo.com>
85194
85195         * m4/arcfour.m4: New file.
85196
85197 2005-10-14  Simon Josefsson  <jas@extundo.com>
85198
85199         * lib/arcfour.h, lib/arcfour.c: New files.
85200
85201 2005-10-14  Roland McGrath  <roland@redhat.com>
85202
85203         Import from libc.  [BZ #1331]
85204         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
85205         macro argument.
85206         Reported by Matej Vela <vela@debian.org>.
85207
85208 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85209
85210         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
85211         include <wchar.h>; no longer needed.
85212
85213 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
85214
85215         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
85216
85217 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
85218         and  Ulrich Drepper  <drepper@redhat.com>
85219
85220         Import from libc.
85221         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
85222         instead of inline stream orientation test and two separate
85223         function calls.  Pay no attention to USE_IN_LIBIO.
85224
85225 2005-10-13  Simon Josefsson  <jas@extundo.com>
85226
85227         * modules/gc-hmac-md5-tests: New file.
85228
85229         * tests/test-gc-hmac-sha1.c: New file.
85230
85231         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
85232
85233         * modules/gc-hmac-md5-tests: New file.
85234
85235         * tests/test-gc-md5.c: New file.
85236
85237         * modules/gc-md5-tests: New file.
85238
85239 2005-10-13  Simon Josefsson  <jas@extundo.com>
85240
85241         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
85242         Move memory allocation outside of loop.
85243
85244 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
85245
85246         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
85247         intermediate directory is in a read-only file system.  Problem
85248         reported by Eric Blake.
85249
85250 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
85251
85252         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
85253
85254 2005-10-12  Simon Josefsson  <jas@extundo.com>
85255
85256         * tests/test-hmac-sha1.c: New file.
85257
85258         * modules/hmac-sha1-tests: New file.
85259
85260         * modules/hmac-sha1: New file.
85261
85262 2005-10-12  Simon Josefsson  <jas@extundo.com>
85263
85264         * modules/gc-sha1: New file.
85265
85266 2005-10-12  Simon Josefsson  <jas@extundo.com>
85267
85268         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
85269
85270         * tests/test-gc-pbkdf2-sha1.c: New file.
85271
85272 2005-10-12  Simon Josefsson  <jas@extundo.com>
85273
85274         * modules/gc-md5, modules/gc-hmac-md5: New files.
85275
85276         * modules/gc (Files): Remove md5, memxor and hmac files.
85277
85278 2005-10-12  Simon Josefsson  <jas@extundo.com>
85279
85280         * m4/gc-pbkdf2-sha1.m4: New file.
85281
85282         * m4/gc-hmac-sha1.m4: New file.
85283
85284         * m4/gc-sha1: New file.
85285
85286         * m4/hmac-sha1.m4: New file.
85287
85288 2005-10-12  Simon Josefsson  <jas@extundo.com>
85289
85290         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
85291
85292         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
85293
85294 2005-10-12  Simon Josefsson  <jas@extundo.com>
85295
85296         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
85297         suggested by Bruno Haible <bruno@clisp.org>.
85298
85299 2005-10-12  Simon Josefsson  <jas@extundo.com>
85300
85301         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
85302
85303 2005-10-12  Simon Josefsson  <jas@extundo.com>
85304
85305         * lib/gc-pbkdf2-sha1.c: New file.
85306
85307         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
85308
85309 2005-10-12  Simon Josefsson  <jas@extundo.com>
85310
85311         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
85312
85313         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
85314
85315 2005-10-12  Simon Josefsson  <jas@extundo.com>
85316
85317         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
85318         GC_USE_HMAC_MD5, respectively.
85319
85320         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
85321         (gc_md5): Fix typo.
85322
85323         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
85324
85325         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
85326
85327         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
85328
85329 2005-10-12  Bruno Haible  <bruno@clisp.org>
85330
85331         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
85332         Reported by Stepan Kasal <kasal@ucw.cz>.
85333
85334 2005-10-11  Simon Josefsson  <jas@extundo.com>
85335
85336         * tests/test-crc.c: New file.
85337
85338         * modules/crc, modules/crc-tests: New files.
85339
85340 2005-10-11  Simon Josefsson  <jas@extundo.com>
85341
85342         * m4/crc.m4: New file.
85343
85344 2005-10-11  Simon Josefsson  <jas@extundo.com>
85345
85346         * lib/gc.h: Add gc_hash and gc_hash_buffer.
85347
85348         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
85349
85350         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
85351
85352 2005-10-11  Simon Josefsson  <jas@extundo.com>
85353
85354         * lib/crc.h, lib/crc.c: New files.
85355
85356         * lib/gc.h (gc_hash_buffer): Add doc.
85357
85358 2005-10-11  Bruno Haible  <bruno@clisp.org>
85359
85360         * modules/c-strcasestr: New file.
85361         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
85362
85363 2005-10-11  Bruno Haible  <bruno@clisp.org>
85364
85365         * modules/c-strcase: New file.
85366         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
85367
85368 2005-10-11  Bruno Haible  <bruno@clisp.org>
85369
85370         * lib/strcasecmp.c: Include limits.h.
85371         (strcasecmp): Avoid integer overflow on exotic platforms.
85372         * lib/strncasecmp.c: Include limits.h.
85373         (strncasecmp): Avoid integer overflow on exotic platforms.
85374         Reported by Paul Eggert.
85375
85376 2005-10-11  Bruno Haible  <bruno@clisp.org>
85377
85378         * lib/c-strcasestr.h: New file, from GNU gettext.
85379         * lib/c-strcasestr.c: New file, from GNU gettext.
85380
85381 2005-10-11  Bruno Haible  <bruno@clisp.org>
85382
85383         * lib/c-strcase.h: New file, from GNU gettext.
85384         * lib/c-strcasecmp.c: New file, from GNU gettext.
85385         * lib/c-strncasecmp.c: New file, from GNU gettext.
85386
85387 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85388
85389         * modules/mempcpy (License): GPL -> LGPL.
85390         * modules/strchrnul (License): Likewise.
85391         * modules/sysexits (License): Likewise.
85392
85393 2005-10-08  Simon Josefsson  <jas@extundo.com>
85394
85395         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
85396
85397 2005-10-07  Simon Josefsson  <jas@extundo.com>
85398
85399         * m4/memxor.m4: Remove gl_C_RESTRICT call.
85400
85401 2005-10-06  Simon Josefsson  <jas@extundo.com>
85402
85403         * tests/test-hmac-md5.c: New file.
85404
85405         * modules/hmac-md5-tests: New file.
85406
85407         * modules/hmac-md5: New file.
85408
85409 2005-10-06  Simon Josefsson  <jas@extundo.com>
85410
85411         * m4/hmac-md5.m4: New file.
85412
85413         * m4/memxor.m4: Require gl_C_RESTRICT.
85414
85415 2005-10-06  Simon Josefsson  <jas@extundo.com>
85416
85417         * lib/memxor.c (memxor): Avoid casts and warnings.
85418
85419 2005-10-06  Simon Josefsson  <jas@extundo.com>
85420
85421         * lib/hmac-md5.c: New file.
85422
85423         * lib/hmac.h: New file.
85424
85425 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
85428         promotes to int, not unsigned int, to catch the AIX 5.3
85429         compiler bug.
85430
85431 2005-10-05  Simon Josefsson  <jas@extundo.com>
85432
85433         * modules/memxor: New file.
85434
85435         * modules/iconv (Files): Move config.rpath to havelib, it is used
85436         there.
85437
85438         * modules/havelib (Files): Add config.rpath.
85439
85440 2005-10-05  Simon Josefsson  <jas@extundo.com>
85441
85442         * m4/memxor.m4: New file.
85443
85444 2005-10-05  Simon Josefsson  <jas@extundo.com>
85445
85446         * lib/memxor.c (memxor): Fix compiler error.
85447
85448         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
85449         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
85450
85451         * lib/memxor.h, lib/memxor.c: New files.
85452
85453         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
85454         we assume all systems have it, suggested by Jim Meyering
85455         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
85456         any systems lack sys/socket.h; mingw32 is known to lack it, but we
85457         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
85458         same reasons.
85459
85460 2005-10-05  Simon Josefsson  <jas@extundo.com>
85461
85462         * config/srclist.txt: Add glibc bug 1423 for md5.h.
85463
85464 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
85465
85466         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
85467         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
85468         needed, since the source code now assumes these .h files.
85469
85470 2005-10-05  Derek Price  <derek@ximbiot.com>
85471
85472         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
85473
85474 2005-10-05  Bruno Haible  <bruno@clisp.org>
85475
85476         * modules/stdint (License): Change to LGPL.
85477
85478 2005-10-04  Simon Josefsson  <jas@extundo.com>
85479
85480         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
85481         D. Baushke" <mdb@gnu.org>.
85482
85483 2005-10-04  Bruno Haible  <bruno@clisp.org>
85484
85485         * lib/verify.h (verify_true): Provide alternative definition for C++.
85486
85487 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
85488
85489         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
85490         (SSIZE_MAX): New macro, if not already defined.
85491         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
85492         than 2 GiB.
85493
85494 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85495
85496         Sync from coreutils.
85497         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
85498         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
85499         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
85500         ULLONG_MAX doesn't work with 2.7.2.1.
85501
85502 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85503
85504         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
85505         From Ben Pfaff.
85506
85507         * modules/exclude (Depends-on): Depend on verify.
85508         * modules/strtoimax (Depends-on): Likewise.
85509         * modules/utimecmp (Depends-on): Likewise.
85510
85511 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
85512
85513         * lib/exclude.c: Include verify.h.
85514         (verify): Remove.  All callers changed to use verify.h's version.
85515         * lib/strtoimax.c: Likewise.
85516         * lib/utimecmp.c: Likewis.e
85517
85518         Sync from coreutils.
85519         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
85520         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
85521         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
85522         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
85523         bother returning ENOSYS if settimeofday or stime fails; just let
85524         them return whatever errno they want to return.
85525         * lib/utimens.c: Include unistd.h, for dup2.
85526         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
85527         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
85528
85529 2005-10-02  Jim Meyering  <jim@meyering.net>
85530
85531         Sync from coreutils.
85532         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
85533         from glibc-2.2.5 that fails for read-only files.
85534
85535 2005-10-02  Jim Meyering  <jim@meyering.net>
85536
85537         Sync from coreutils.
85538         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
85539         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
85540         `#if HAVE_CONFIG_H'.
85541         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
85542         Remove AT_FDCWD test.
85543         Do not consume the fd unless successful.
85544         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
85545         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
85546         block, so that we don't even try to compile it if settimeofday is
85547         available.  This works around a compilation failure on OSF1 V5.1,
85548         due to stime requiring a `long int*' while tv_sec is `int'.
85549
85550 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
85551
85552         Sync from coreutils.
85553         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
85554         against `yes', rather than just testing for nonempty.
85555
85556 2005-10-01  Simon Josefsson  <jas@extundo.com>
85557
85558         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
85559         and Darwin.
85560
85561         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
85562         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
85563         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
85564         freeaddrinfo and gai_strerror are declared by the POSIX headers.
85565         Check if struct addrinfo is declared.
85566
85567 2005-10-01  Simon Josefsson  <jas@extundo.com>
85568
85569         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
85570         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
85571         AI_* and EAI_* definitions.  Protect function declarations.
85572
85573 2005-10-01  Jim Meyering  <jim@meyering.net>
85574
85575         Sync from coreutils.
85576
85577         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
85578         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
85579         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
85580         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85581         in the inet and nsl libraries.  Required on Solaris 5.7.
85582
85583 2005-10-01  Jim Meyering  <jim@meyering.net>
85584
85585         Sync from coreutils.
85586         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
85587         in the inet and nsl libraries.  Required on Solaris 5.7.
85588
85589 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
85590
85591         * lib/getdelim.c (getdelim): Remove unused variables.
85592
85593 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
85594
85595         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
85596         so that the code works even with ancient cpp.  Portability problem
85597         with GCC 2.7.2.1 reported by Thomas M.Ott.
85598
85599 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
85600
85601         * modules/regex (Depends-on): Add strcase.
85602
85603         * modules/gethostname (Licence): Change from GPL to LGPL, since
85604         gethostname.c is a trivial implementation of a standard library
85605         function.
85606         * modules/poll (License): Change from GPL to LGPL, since it's
85607         derived from LGPL code.
85608
85609 2005-09-27  Jim Meyering  <jim@meyering.net>
85610
85611         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
85612         HAVE_CONFIG_H.
85613
85614         * lib/intprops.h (signed_type_or_expr__): Define.
85615         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
85616         for unsigned types.
85617
85618 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
85619
85620         * lib/verify.h (verify_expr): Remove, replacing with:
85621         (verify_true): New macro that returns true instead of void.
85622         (verify_type__): Remove.
85623         (verify): Use verify_true rather than verify_type__.
85624
85625 2005-09-26  Bruno Haible  <bruno@clisp.org>
85626
85627         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
85628         is necessary.
85629         (lib_SOURCES): Remove mbchar.c.
85630         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
85631         (Files): Add m4/mbrtowc.m4.
85632         * modules/mbiter: Likewise.
85633         * modules/mbuiter: Likewise.
85634
85635 2005-09-26  Bruno Haible  <bruno@clisp.org>
85636
85637         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
85638         compile mbchar.c if they are not both present.
85639         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
85640         * m4/mbiter.m4 (gl_MBITER): Likewise.
85641         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
85642         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
85643         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
85644
85645 2005-09-25  Jim Meyering  <jim@meyering.net>
85646
85647         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
85648         also uses socklen_t.
85649
85650 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
85651
85652         * lib/utimens.c (ENOSYS): Define if not already defined.
85653         (futimens): Support having a null PATH if the file descriptor
85654         is nonnegative.
85655
85656         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
85657         Remove.
85658         (__attribute): Define to empty unless GCC 3.1 or later.
85659         This works around a core dump on OpenBSD 3.4, which has GCC
85660         2.95.3, which dumps core when given __attribute__(()).  It also
85661         simplifies other tests, since we really don't want to bother with
85662         worrying about which ancient version of GCC supported what.
85663         Original problem reported by Yoann Vandoorselaere, with part of
85664         the fix suggested by Derek Price.
85665
85666 2005-09-24  Jim Meyering  <jim@meyering.net>
85667
85668         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
85669         so we can once again use a positive bitfield width of 1 -- now we
85670         don't have to explain why we were using a bitfield width of 2.
85671
85672 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85673
85674         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
85675         and similarly for the other external symbols.  Problem reported
85676         by James Gallager.
85677
85678         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
85679         bug reported by Jim Meyering.
85680
85681         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
85682         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
85683         not needed, since socklen is a prerequisite module.
85684
85685 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
85686
85687         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
85688         Problem reported by Eric Blake.
85689         (getaddrinfo): Initialize se so that it's not garbage.
85690         Redo internal storage allocation so that it doesn't make unportable
85691         assumptions about alignment.
85692         Fix a memory leak.
85693
85694         * lib/utimens.c (futimens): Use futimesat if available.
85695         Prefer it to futimes since it doesn't have the futimes bug.
85696
85697         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
85698         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
85699         Instead, declare a function that returns a pointer to an array,
85700         and use verify_type__ to declare the size of the array.
85701         Problem and germ of a solution reported by Bruno Haible.
85702         (verify_type__): Use 2, not 1, for bitfield size, to avoid
85703         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
85704
85705 2005-09-23  Jim Meyering  <jim@meyering.net>
85706
85707         Sync from coreutils.
85708         Correct build failure (socklen_t not defined) on at least
85709         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
85710         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
85711
85712 2005-09-23  Jim Meyering  <jim@meyering.net>
85713
85714         * modules/getaddrinfo (Depends-on): Add socklen.
85715
85716 2005-09-23  Bruno Haible  <bruno@clisp.org>
85717
85718         * tests/test-verify.c: New file.
85719
85720 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85721
85722         Sync from coreutils.
85723
85724         * modules/argmatch (Depends-on): Add verify.
85725         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
85726         unistd-safer.
85727         * modules/save-cwd (Depends-on): Likewise.
85728
85729         * modules/openat (Files): Add lib/openat-die.c.
85730         (Depends-on): Remove error, exitfail.
85731         Add dirname.
85732
85733         * modules/verify: New file.
85734         * MODULES.html.sh (Diagnostics <assert.h>): New section,
85735         with "verify" module.
85736
85737 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85738
85739         Sync from coreutils.
85740
85741         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
85742         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
85743         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
85744         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
85745         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
85746         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
85747         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
85748         Don't bother checking for string.h, stdlib.h, unistd.h.
85749         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
85750         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
85751         module's job.
85752         * m4/jm-macros.m4 (gl_MACROS): Likewise.
85753         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
85754
85755         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
85756         (gl_GETDATE): Use it.
85757
85758         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
85759
85760 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85761
85762         Sync from coreutils.
85763
85764         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
85765         stat-time.h.
85766         * lib/argmatch.h: Include verify.h
85767         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
85768         (ARGMATCH_ASSERT): Remove; unused.
85769         * lib/canonicalize.c: Assume STDC_HEADERS.
85770         * lib/exclude.c: Include "strcase.h".
85771         * lib/regex_internal.h [!defined _LIBC]: Likewise.
85772         * lib/getusershell.c: Include stdio--.h rather than stdio.h
85773         and stdio-safer.h.
85774         (getusershell): Call fopen, not fopen_safer.
85775         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
85776         Do not include unistd-safer.h.
85777         (save_cwd): Don't call fd_safer; no longer needed
85778         now that we include fcntl--.h.
85779
85780         * lib/getdate.y (relative_time): New type.
85781         (RELATIVE_TIME_0): New constant.
85782         (parser_control): Use relative_time instead of doing it ourselves.
85783         (%union): Add new relative_time rel member.
85784         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
85785         Now typeless.
85786         (relunit, relunit_snumber): Now of type rel.
85787         (zone, rel, relunit, get_date): Adjust to above changes.
85788
85789         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
85790         Do not include unistd-safer.h.
85791         (getloadavg): Don't call fd_safer; no longer needed
85792         now that we include fcntl--.h.
85793
85794         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
85795         (make_dir_parents): Treat ENOSYS like EEXIST.
85796
85797         Improve quality of diagnostics on restore_cwd failure.
85798         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
85799         (make_dir_parents): Last arg is now int * (for errno), not bool *.
85800         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
85801         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
85802         each time through the loop.  Do not diagnose restore_cwd failure;
85803         that is the caller's job (and perhaps the caller does not care).
85804
85805         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
85806         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
85807         If the file already exists but is not a directory, don't bother
85808         to try to make its parents.
85809         Close potential file descriptor leak if we can't chdir("/") (!).
85810         Don't always return true if chdir($PWD) fails; return true only
85811         if the requested action was done successfully (except for the
85812         chdir($PWD)).
85813         Don't log final directory unless we actually made it.
85814         Refactor to avoid duplicate code to fix up permissions.
85815         Don't attempt to fix up parent permissions if chdir($PWD) fails.
85816
85817         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
85818         to make it a bit faster and (I hope) clearer.
85819         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
85820         Fix bug in formats like %2N.
85821
85822         * lib/verify.h: New file.
85823
85824 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
85825
85826         Sync from coreutils.
85827         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
85828
85829 2005-09-22  Jim Meyering  <jim@meyering.net>
85830
85831         Sync from coreutils.
85832
85833         * m4/lstat.m4 (gl_FUNC_LSTAT):
85834         Use AC_LIBSOURCES to require lstat.c and lstat.h.
85835         Remove obsolete comment.
85836         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
85837         * m4/xstrtod.m4: Likewise.
85838
85839         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
85840
85841 2005-09-22  Jim Meyering  <jim@meyering.net>
85842
85843         Sync from coreutils.
85844
85845         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
85846
85847         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
85848         the .tm_year member, since otherwise gcc-4.0 would now warn about
85849         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
85850
85851         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
85852         order to avoid an unsuppressible warning from gcc on 64-bit systems.
85853
85854         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
85855         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
85856         when run in a time zone for which daylight savings time is in effect
85857         for the starting date.
85858
85859         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
85860         stop us from restricting permissions of just-created absolute-named
85861         directories.
85862         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
85863         to restore initial working directory.
85864         * lib/mkdir-p.c (make_dir_parents): New parameter:
85865         different_working_dir, to tell caller if/when we change the working
85866         directory and are unable to return to the initial one.
85867         * lib/mkdir-p.h (make_dir_parents): Update prototype.
85868         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
85869         `return false'.  This fixes a bug introduced on 2004-07-30.
85870
85871         * lib/openat.c (fdopendir): Be sure to close the supplied
85872         file descriptor before returning.  This makes our replacement
85873         implementation a little closer to Solaris's, where fdopendir
85874         ties the file descriptor to the returned DIR* pointer.
85875         * lib/openat.c (unlinkat): New function.
85876         * lib/openat.h (unlinkat): Add prototype.
85877         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
85878         (openat_restore_fail): Rename from openat_restore_die.
85879         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
85880
85881         Provide an alternative to exiting immediately upon save_cwd or
85882         restore_cwd failure.  Now, an application can arrange e.g.,
85883         to perform a longjump in that case.
85884         * lib/openat.c: Include dirname.h.
85885         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
85886         (rpl_openat, fdopendir, fstatat): Call openat_save_die
85887         and openat_restore_die rather than calling error directly.
85888         Don't include "error.h" or "exitfail.h"; they're no longer needed.
85889
85890         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
85891         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
85892         define.
85893
85894         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
85895         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
85896                             int utc, int nanoseconds);
85897         Background:
85898         date should not have to allocate a megabyte of virtual memory to
85899         handle a format argument like +%1048575T.  When implemented with
85900         strftime, it must allocate such a buffer, use strftime to fill it
85901         in, print it, then free it.
85902         With fprintftime, it simply prints everything and exits.
85903         With no need for memory allocation, that's one fewer way to fail.
85904         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
85905         optional field width, not before, so we accept %9:z, not %:9z.
85906         (my_strftime): Be sure to use L_('x') for literals.
85907
85908         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
85909         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
85910         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
85911         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
85912         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
85913         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
85914         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
85915         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
85916         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
85917         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
85918         * lib/xgethostname.c, lib/xreadlink.c:
85919         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
85920
85921         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
85922         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
85923         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
85924         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85925         and don't include <sys/file.h>).
85926
85927 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
85928
85929         Sync from coreutils.
85930
85931         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
85932         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
85933         [!LDAV_DONE]: Avoid unused variable warning.
85934
85935 2005-09-21  Bruno Haible  <bruno@clisp.org>
85936
85937         * lib/unicodeio.h (unicode_to_mb): New declaration.
85938
85939 2005-09-20  Derek Price  <derek@ximbiot.com>
85940
85941         * lib/getaddrinfo.c: Don't include <netdb.h> included from
85942         getaddrinfo.h.
85943
85944 2005-09-20  Bruno Haible  <bruno@clisp.org>
85945
85946         * gnulib-tool: Remove trailing slashes from the values specified for
85947         --source-base, --m4-base, --tests-base, --aux-dir.
85948         Suggested by Simon Josefsson <jas@extundo.com>.
85949
85950 2005-09-20  Bruno Haible  <bruno@clisp.org>
85951
85952         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
85953         func_modules_to_filelist, func_import, func_create_testdir): Make all
85954         sorting results locale-independent, so that gnulib-cache.m4 doesn't
85955         change when gnulib-tool is invoked in a different locale.
85956
85957 2005-09-19  Simon Josefsson  <jas@extundo.com>
85958
85959         * m4/socklen.m4: Fix typo.
85960
85961 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85962
85963         Use a consistent style for including <config.h>.
85964         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
85965         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
85966         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
85967         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
85968         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
85969         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
85970         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
85971         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
85972         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
85973         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
85974         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
85975         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
85976         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
85977         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
85978         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
85979         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
85980         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
85981         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
85982         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
85983         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
85984         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
85985         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
85986         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
85987         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
85988         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
85989         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
85990         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
85991         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
85992         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
85993         lib/xstrtoumax.c, lib/yesno.c:
85994         Standardize inclusion of config.h.
85995         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
85996         lib/inttostr.h:  Removed inclusion of config.h from header files.
85997         * lib/inttostr.c:  Adjusted in-tree users.
85998         * lib/timespec.h: Remove superfluous warning to include config.h.
85999         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
86000         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
86001         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
86002         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
86003         config.h with HAVE_CONFIG_H.
86004
86005 2005-09-19  Jim Meyering  <jim@meyering.net>
86006
86007         * modules/pathmax (License): Change to LGPL.
86008
86009 2005-09-19  Derek Price  <derek@ximbiot.com>
86010
86011         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
86012
86013 2005-09-19  Bruno Haible  <bruno@clisp.org>
86014
86015         * gnulib-tool (import): Provide default for --tests-base.
86016
86017 2005-09-19  Bruno Haible  <bruno@clisp.org>
86018
86019         * doc/quote.texi: New file, extracted from gnulib.texi.
86020         * doc/ctime.texi: New file, extracted from gnulib.texi.
86021         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
86022         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
86023         * doc/gnulib.texi: Include them.
86024
86025 2005-09-18  Bruno Haible  <bruno@clisp.org>
86026
86027         Portability fix.
86028         * gnulib-tool (func_readlink): New function.
86029         (func_ln_if_changed): Use it.
86030
86031 2005-09-18  Bruno Haible  <bruno@clisp.org>
86032
86033         * gnulib-tool: Support --with-tests also with --import.
86034         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
86035         (func_import): Use variables $testsbase and $inctests. Emit a
86036         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
86037         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
86038         SUBDIRS += $testsdir.
86039         (func_create_testdir): Update.
86040
86041 2005-09-18  Bruno Haible  <bruno@clisp.org>
86042
86043         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
86044         instead of $dry_run.
86045         (func_cp_if_changed, func_mv_if_changed): Remove functions.
86046         (func_ln_if_changed): Don't handle dry-run here.
86047         (func_import): In dry-run mode, detect more precisely which actions
86048         would be performed, and don't use "...ing" verbs.
86049
86050 2005-09-18  Bruno Haible  <bruno@clisp.org>
86051
86052         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
86053         (func_import): Use join on two temporary files instead of three nested
86054         loops, in order to determine which files are new or old.
86055
86056 2005-09-18  Bruno Haible  <bruno@clisp.org>
86057
86058         * gnulib-tool (func_import): Comment out code that spits out the
86059         new files with --dry-run.
86060
86061 2005-09-18  Bruno Haible  <bruno@clisp.org>
86062
86063         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
86064
86065 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
86066
86067         * lib/stat-time.h: New file.
86068         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
86069         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
86070         in a different way.
86071         (timespec_cmp): New function.
86072         * lib/utimecmp.c: Include stat-time.h.
86073         (SYSCALL_RESOLUTION): Depend on whether various struct stat
86074         members exist, not on the obsolescent ST_MTIM_NSEC.
86075         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
86076
86077 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
86078
86079         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
86080
86081 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
86082
86083         * MODULES.html.sh (File system functions): Add stat-time.
86084         * modules/stat-time: New file.
86085         * modules/timespec (Files): Remove m4/st_mtim.m4; this
86086         is now done in a different way, by the stat-time module.
86087         * modules/utimecmp (Depends-on): Add stat-time.
86088
86089 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
86090
86091         * m4/st_mtim.m4: Remove.  Superseded by...
86092         * m4/stat-time.m4: New file.
86093         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
86094         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
86095
86096 2005-09-15  Derek Price  <derek@ximbiot.com>
86097
86098         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
86099
86100 2005-09-15  Derek Price  <derek@ximbiot.com>
86101
86102         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
86103         * lib/regex_internal.c: Ditto, using this...
86104         (__GNUC_PREREQ): ...new macro.
86105         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
86106         using...
86107         (__GNUC_PREREQ): ...this new macro.
86108
86109         * lib/strstr.h: Include string.h. Define strstr as a macro here.
86110
86111 2005-09-15  Derek Price  <derek@ximbiot.com>
86112             Paul Eggert  <eggert@cs.ucla.edu>
86113
86114         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
86115         changes, consolidating in...
86116         * lib/regex_internal.h: ...this file.
86117
86118 2005-09-13  Jim Meyering  <jim@meyering.net>
86119
86120         * lib/canon-host.c: Filter through gnu indent and reword comments
86121         slightly.
86122         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
86123
86124 2005-09-13  Derek Price  <derek@ximbiot.com>
86125
86126         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
86127         failure.
86128         Reported by Jim Meyering  <jim@meyering.net>.
86129
86130 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
86131
86132         * lib/base64.c: Typo.
86133         (base64_encode): Put b64str in initialized data section.
86134
86135 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
86136
86137         Merge glibc and coreutils changes into gnulib, plus a few
86138         extra fixes.
86139         * lib/md5.c: Use #error rather than a string.
86140         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
86141         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
86142         (__attribute__): Define to empty for non recent-GCC.
86143         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
86144         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
86145         Renamed from their non-__ counterparts, with new macros replacing
86146         them if not _LIBC.  Add __THROW attribute.
86147         (rol): Remove.
86148         (struct md5_ctx): Align buffer if using GCC.
86149         * lib/sha1.h (struct sha1_ctx): Likewise.
86150         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
86151         The old name was backwards.
86152         (NOTSWAP): Remove; not used.
86153         (rol): New macro, moved here from md5.h.
86154         (sha1_process_block): Remove a FIXME that doesn't make sense.
86155
86156 2005-09-12  Derek Price  <derek@ximbiot.com>
86157
86158         Return usable errors from canon-host.
86159         * lib/canon-host.h: New file.
86160         * lib/canon-host.c (canon_host): Wrap...
86161         (canon_host_r): ...this new function, which now relies exclusively on
86162         getaddrinfo.
86163         (ch_strerror): New function.
86164         (last_cherror): New global.
86165         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
86166         interface.
86167         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
86168         void *.
86169         (freeaddrinfo): Free ai->ai_canonname when set.
86170
86171 2005-09-12  Derek Price  <derek@ximbiot.com>
86172
86173         Make canon-host require getaddrinfo.
86174         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
86175         AC_LIBSOURCE canon-host.h.  Call...
86176         (gl_PREREQ_CANON_HOST): ...this new function, which requires
86177         gl_GETADDRINFO.
86178         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
86179
86180 2005-09-12  Derek Price  <derek@ximbiot.com>
86181
86182         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
86183         LGPL.
86184         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
86185
86186 2005-09-12  Derek Price  <derek@ximbiot.com>
86187
86188         * lib/gai_strerror.c: Include config.h when available.  Include
86189         getaddrinfo.h before other headers to test interface.
86190         Reported by Larry Jones <lawrence.jones@ugs.com>.
86191
86192 2005-09-12  Derek Price  <derek@ximbiot.com>
86193             Paul Eggert  <eggert@cs.ucla.edu>
86194
86195         * modules/glob (Files): Add glob-libc.h.
86196
86197 2005-09-12  Derek Price  <derek@ximbiot.com>
86198             Paul Eggert  <eggert@cs.ucla.edu>
86199
86200         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
86201         glob_.h, glob-libc.h.
86202         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
86203
86204 2005-09-12  Derek Price  <derek@ximbiot.com>
86205             Paul Eggert  <eggert@cs.ucla.edu>
86206
86207         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
86208         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
86209         protecting things that should be done only in gnulib contexts.
86210         * lib/glob_.h: New file, containing only the glob things needed for
86211         gnulib.
86212         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
86213         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
86214         (glob, globfree, glob_pattern_p): Now defined simply in terms of
86215         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
86216         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
86217         and to respect the namespace rules better.
86218
86219 2005-09-08  Simon Josefsson  <jas@extundo.com>
86220
86221         * modules/socklen: New file.
86222
86223 2005-09-08  Simon Josefsson  <jas@extundo.com>
86224
86225         * m4/socklen.m4: New file.
86226
86227 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86228
86229         * modules/utimens (Files): Add m4/utimbuf.m4, since
86230         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
86231         Reported by Sergey Poznyakoff.
86232
86233 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86234
86235         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
86236         definitions, since that's the preferred style in glibc.
86237         Fix a minor spacing issue, and update copyright notice to match
86238         glibc's.
86239
86240 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
86241
86242         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
86243
86244 2005-09-06  Simon Josefsson  <jas@extundo.com>
86245
86246         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
86247         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
86248
86249 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86250
86251         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
86252         warning.
86253
86254 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86255
86256         * config/srclist.txt: Add glibc bug 1302.
86257
86258 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
86259
86260         Change bitset word type from unsigned int to unsigned long int,
86261         as this has better performance on typical 64-bit hosts.
86262         Port bitset code to hosts with unusual word sizes.
86263         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
86264         (build_collating_symbol):
86265         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
86266         argument is a bitset.  This is merely a style issue, but it makes
86267         it clearer that an entire array is expected.
86268         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
86269         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
86270         Port to the case where bitset_word is not the same as unsigned int.
86271         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86272         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
86273         Likewise.
86274         * lib/regexec.c (check_dst_limits_calc_pos_1,
86275         check_subexp_matching_top):
86276         (build_trtable, group_nodes_into_DFAstates):
86277         Likewise.
86278         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
86279         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
86280         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
86281         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
86282         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
86283         * lib/regcomp.c (optimize_subexps, lower_subexp):
86284         Work even if bitset_word has holes in its bitwise representation.
86285         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
86286         * lib/regexec.c (check_dst_limits_calc_pos_1,
86287         check_subexp_matching_top):
86288         Likewise.
86289         * lib/regex_internal.c (re_string_reconstruct):
86290         Don't assume UCHAR_MAX == 255.
86291         * lib/regex_internal.h (bitset_set_all): Likewise.
86292         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
86293         All uses changed.
86294         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
86295         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
86296         All uses changed.
86297         (BITSET_WORD_MAX): New macro.
86298         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
86299         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
86300         (bitset_empty, bitset_copy):
86301         Prefer sizeof (bitset) to multiplying it out ourselves.
86302         (bitset_not_merge): Remove; unused.
86303         (bitset_contain): Return bool, not unsigned int with one bit on.
86304         All callers changed.
86305         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
86306         alignment than re_node_set; do this by defining a new internal
86307         type struct dests_alloc and using it to allocate memory.
86308
86309 2005-09-05  Bruno Haible  <bruno@clisp.org>
86310
86311         * gnulib-tool (func_import): Fix comparison in handling of symbolic
86312         links.
86313
86314 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
86315
86316         * modules/size_max (Makefile.am): Add size_max.h
86317
86318 2005-09-04  Derek Price  <derek@ximbiot.com>
86319
86320         * gnulib-tool (func_import): Fix reversed $symbolic logic.
86321
86322 2005-09-03  Simon Josefsson  <jas@extundo.com>
86323
86324         * gnulib-tool: Fix typo.
86325
86326 2005-09-03  Simon Josefsson  <jas@extundo.com>
86327
86328         * config/srclist.txt: Add glibc bug 1293.
86329
86330 2005-09-03  Derek Price  <derek@ximbiot.com>
86331
86332         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
86333         From Larry Jones <lawrence.jones@ugs.com>.
86334
86335 2005-09-02  Simon Josefsson  <jas@extundo.com>
86336
86337         * modules/socklen: New file.
86338
86339 2005-09-02  Simon Josefsson  <jas@extundo.com>
86340
86341         * modules/havelib: New module.
86342
86343         * modules/gettext, modules/iconv, modules/lock, modules/readline:
86344         Use havelib.
86345
86346 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86347
86348         Check for arithmetic overflow when calculating sizes, to prevent
86349         some buffer-overflow issues.  These patches are conservative, in the
86350         sense that when I couldn't determine whether an overflow was possible,
86351         I inserted a run-time check.
86352         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
86353         macros.
86354         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
86355         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
86356         (re_xnrealloc, re_x2nrealloc): New inline functions.
86357         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
86358         parse_bracket_exp):
86359         (build_equiv_class, build_charclass): Check for arithmetic overflow
86360         in size expression calculations.
86361         * lib/regex_internal.c (re_string_realloc_buffers):
86362         (build_wcs_upper_buffer, re_node_set_add_intersect):
86363         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
86364         (re_dfa_add_node, register_state): Likewise.
86365         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
86366         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
86367         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
86368         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
86369
86370 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
86371
86372         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
86373         m4/ulonglong.m4.  Problem reported by Martin Lambers.
86374
86375 2005-09-02  Bruno Haible  <bruno@clisp.org>
86376
86377         Support for lib vs. lib64 distinction on biarch platforms.
86378         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
86379         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
86380         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
86381
86382 2005-09-02  Bruno Haible  <bruno@clisp.org>
86383
86384         * gnulib-tool (import): In the other first-use case, provide defaults
86385         as well.
86386
86387 2005-09-02  Bruno Haible  <bruno@clisp.org>
86388
86389         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
86390         patches not yet found in the latest gettext release.
86391
86392 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86393
86394         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
86395         to avoid a collision with bits/local_lim.h in glibc.
86396         All uses changed.  Problem reported by Dmitry V. Levin in
86397         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
86398
86399         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
86400         bugs in int versus size_t comparisons.
86401         (re_string_context_at): Fix bug where the code assumed that
86402         Idx is signed.
86403
86404         Use bool where appropriate.
86405         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
86406         All callers changed.
86407         (calc_eclosure_iter): Likewise, for ROOT arg.
86408         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
86409         (build_charclass_op): Likewise, for NON_MATCH arg.
86410         * lib/regex_internal.c (re_string_allocate, re_string_construct):
86411         (re_string_construct_common): Likewise, for ICASE arg.
86412         * lib/regexec.c (re_search_2_stub, re_search_stub):
86413         Likewise, for RET_LEN arg.
86414         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
86415         (set_regs): Likewise, for FL_BACKTRACK arg.
86416         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
86417         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
86418         (calc_eclosure_iter, parse_bracket_exp):
86419         Use bool for internal variables that are booleans.
86420         * lib/regexec.c (re_search_internal, check_matching,
86421         proceed_next_node):
86422         (set_regs, build_sifted_states, sift_states_bkref):
86423         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
86424         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
86425         (find_collation_sequence_value):
86426         Likewise.
86427         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
86428         (re_node_set_compare):
86429         Return bool, not int. All callers changed.
86430         * lib/regexec.c (check_halt_node_context, check_dst_limits):
86431         (build_trtable, check_node_accept): Likewise.
86432         * lib/regex_internal.h: Include stdbool.h.
86433
86434         Fix bugs uncovered when converting to bool.
86435         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
86436         failure instead of charging ahead blindly.
86437         * lib/regex_internal.c (register_state): Likewise.
86438         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
86439         for freeing internal storage.
86440         (group_nodes_into_DFA_states): Use unsigned int, not int, for
86441         bitset pieces used as boolean, to avoid undefined behavior
86442         on hosts that do int overflow checking.
86443
86444 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
86445
86446         * config/srclist.txt: Add glibc bugs 1285-1287.
86447
86448 2005-09-01  Jim Meyering  <jim@meyering.net>
86449
86450         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
86451         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
86452         Require gl_STAT_MACROS, too.
86453
86454 2005-09-01  Bruno Haible  <bruno@clisp.org>
86455
86456         * gnulib-tool (import): In the first-use case, provide defaults.
86457
86458 2005-09-01  Bruno Haible  <bruno@clisp.org>
86459
86460         * gnulib-tool (func_import): Remove the .tmp files.
86461
86462 2005-09-01  Bruno Haible  <bruno@clisp.org>
86463
86464         * gnulib-tool (func_import): Fix handling of symbolic links.
86465
86466 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86467
86468         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
86469         old glibc regex code mishandles strings longer than 2**31 bytes.
86470         This patch fixes this when the regex code is used in gnulib
86471         (i.e., outside glibc).
86472
86473         This patch should not affect the use of the regex code inside
86474         glibc.  No doubt this problem also needs to be handled for glibc
86475         as well, but the result will be an incompatible change to the
86476         glibc ABI, and the old ABI will have to be supported too.  That
86477         can be the the subject for another patch.
86478
86479         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
86480         governing whether the rest of this patch is active.  By default,
86481         the macro is disabled and the patch has no effect.
86482         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
86483         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
86484         (struct re_pattern_buffer, re_search, re_search_2, re_match):
86485         (re_match_2, re_set_registers): Use the new types.
86486         * lib/regex_internal.h (Idx, re_hashval_t): New types.
86487         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
86488         New macros.
86489         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
86490         (re_string_context_at, bin_tree_t, re_dfastate_t):
86491         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
86492         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
86493         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
86494         (re_string_char_size_at, re_string_wchar_at):
86495         (re_string_elem_size_at):
86496         Use the new types and macros to port to 64-bit hosts.
86497         Use unsigned types for internal values, so that the code
86498         mostly works even for arrays larger than SSIZE_MAX.
86499         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
86500         (search_duplicated_node, calc_eclosure_iter, fetch_number):
86501         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
86502         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
86503         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
86504         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
86505         (calc_inveclosure, parse_dup_op, build_range_exp):
86506         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
86507         (fetch_number, create_token_tree, mark_opt_subexp):
86508         Likewise.
86509         * lib/regex_internal.c (re_string_construct_common,
86510         create_ci_newstate):
86511         (create_cd_newstate, re_string_allocate, re_string_construct):
86512         (re_string_realloc_buffers, build_wcs_upper_buffer):
86513         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
86514         (re_string_reconstruct, re_string_peek_byte_case):
86515         (re_string_fetch_byte_case, re_string_context_at):
86516         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
86517         (re_node_set_init_copy, re_node_set_add_intersect):
86518         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86519         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86520         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
86521         (re_acquire_state, re_acquire_state_context, register_state):
86522         Likewise.
86523         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
86524         search_cur_bkref_entry):
86525         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
86526         (re_search_internal, re_search_2_stub, re_search_stub)
86527         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
86528         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
86529         (update_cur_sifted_state, check_dst_limits):
86530         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86531         (check_subexp_limits, sift_states_bkref, merge_state_array):
86532         (check_subexp_matching_top, get_subexp, get_subexp_sub):
86533         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
86534         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
86535         (expand_bkref_cache, check_node_accept_bytes):
86536         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
86537         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
86538         (acquire_init_state_context, check_halt_node_context):
86539         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
86540         (sift_states_backward, clean_state_log_if_needed):
86541         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
86542         (find_recover_state, transit_state_sb, transit_state_mb):
86543         (transit_state_bkref, build_trtable, match_ctx_clean):
86544         Likewise.
86545         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
86546         to work around an assumption that REG_MISSING is negative.
86547
86548         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
86549         (seek_collating_symbol_entry) [defined _LIBC]:
86550         (lookup_collation_sequence_value) [defined _LIBC]:
86551         (build_range_exp, build_collating_symbol) [defined _LIBC]:
86552         Use prototypes rather than old-style function definitions.
86553         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
86554         (transit_state_sb) [0]:
86555         (find_collation_sequence_value) [defined _LIBC]: Likewise.
86556
86557         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
86558         rm_eo.
86559
86560         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
86561         (optimize_subexps, lower_subexp):
86562         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
86563         since the signed shift might overflow.  Use 1u<<31 instead.
86564         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
86565         Likewise.
86566         * lib/regexec.c (check_dst_limits_calc_pos_1,
86567         check_subexp_matching_top): Likewise.
86568
86569         * lib/regcomp.c (optimize_subexps, lower_subexp):
86570         Use CHAR_BIT rather than 8, for clarity.
86571         * lib/regexec.c (check_dst_limits_calc_pos_1):
86572         (check_subexp_matching_top): Likewise.
86573         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
86574         have to worry about portability issues when shifting it left.
86575         Remove no-longer-needed test for table_size > 0.
86576         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
86577         in a word, as the resulting behavior is undefined.
86578         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
86579         in one case, a <= should have been an <, and in another case the
86580         whole test was missing.
86581         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
86582         the standard name CHAR_BIT.
86583         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
86584         this is not true on one's complement and signed-magnitude hosts.
86585
86586         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
86587         next_last_offset.
86588         (struct re_dfa_t): Remove unused member states_alloc.
86589         * lib/regcomp.c (init_dfa): Don't initialize unused members.
86590
86591 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86592
86593         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
86594         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
86595         and large-file glibc and in 32-bit large-file Solaris.
86596
86597 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86598
86599         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
86600         lengths fit in regoff_t; this isn't true if regoff_t is the same
86601         width as size_t.
86602         * lib/regex.c (re_search_internal): 5th arg is LAST_START
86603         (= START + RANGE) instead of RANGE.  This avoids overflow
86604         problems when regoff_t is the same width as size_t.
86605         All callers changed.
86606         (re_search_2_stub): Check for overflow when adding the
86607         sizes of the two strings.
86608         (re_search_stub): Check for overflow when adding START
86609         to RANGE; if it occurs, substitute the extreme value.
86610
86611 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
86612
86613         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
86614
86615 2005-08-31  Jim Meyering  <jim@meyering.net>
86616
86617         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
86618         a pointer-to-const.
86619         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
86620         (register_state): Likewise.
86621         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
86622         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
86623         (group_nodes_into_DFAstates): Likewise.
86624
86625 2005-08-31  Jim Meyering  <jim@meyering.net>
86626
86627         * check-module: Add a FIXME comment.
86628
86629 2005-08-31  Eric Blake  <ebb9@byu.net>
86630
86631         * modules/unistd-safer (Files): Add unistd--.h.
86632         * modules/stdio-safer (Files): Add stdio--.h.
86633
86634 2005-08-31  Derek Price  <derek@ximbiot.com>
86635
86636         * lib/getdelim.c (getdelim): Return EOF on EOF.
86637         Reported by Larry Jones <lawrence.jones@ugs.com>.
86638
86639 2005-08-31  Bruno Haible  <bruno@clisp.org>
86640
86641         Avoid unnecessary diffs in the generated lib/Makefile.am.
86642         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
86643         the generated files.
86644         (func_import): Don't set cmd.
86645
86646 2005-08-31  Bruno Haible  <bruno@clisp.org>
86647
86648         * lib/strstr.c: Include <stddef.h>, for NULL.
86649         * lib/strcasestr.c: Likewise.
86650         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86651
86652 2005-08-31  Bruno Haible  <bruno@clisp.org>
86653
86654         * gnulib-tool: New option --macro-prefix.
86655         (func_import): Use macro_prefix.
86656         (import): Handle option --macro-prefix.
86657
86658 2005-08-31  Bruno Haible  <bruno@clisp.org>
86659
86660         * gnulib-tool (import): Rename most ac_* variables to cached_*.
86661         Also use new variables cached_lgpl, cached_libtool.
86662
86663 2005-08-31  Bruno Haible  <bruno@clisp.org>
86664
86665         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
86666         always instantiating them.
86667
86668 2005-08-31  Bruno Haible  <bruno@clisp.org>
86669
86670         * gnulib-tool (func_import): Read the previous cached settings
86671         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
86672         earlier added by gnulib but are now dropped. Warn when a gnulib file
86673         overwrites a non-gnulib file.
86674
86675 2005-08-31  Bruno Haible  <bruno@clisp.org>
86676
86677         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
86678         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
86679         projects that don't keep autogenerated files in CVS. Put into
86680         actioncmd only the specified modules, not the transitive closure.
86681
86682 2005-08-31  Bruno Haible  <bruno@clisp.org>
86683
86684         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
86685         Create directories that shall be filled.
86686         (import): Don't look for gl_* macros in configure.ac. Recurse across
86687         all directories containing a gnulib-cache.m4 files, if meaningful.
86688
86689 2005-08-31  Bruno Haible  <bruno@clisp.org>
86690
86691         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
86692         (import): Set seen_libtool when we see gl_LIBTOOL.
86693
86694 2005-08-31  Bruno Haible  <bruno@clisp.org>
86695
86696         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
86697         declaration macro definitions from generated gnulib.m4.
86698
86699 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
86700
86701         * lib/iconvme.h: Add prototype for iconv_alloc.
86702
86703 2005-08-29  Simon Josefsson  <jas@extundo.com>
86704
86705         * lib/iconvme.c: Fix errno.
86706
86707 2005-08-29  Bruno Haible  <bruno@clisp.org>
86708
86709         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
86710         that it works when the directory contains spaces.
86711
86712 2005-08-29  Bruno Haible  <bruno@clisp.org>
86713
86714         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
86715
86716 2005-08-29  Bruno Haible  <bruno@clisp.org>
86717
86718         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
86719         Emit more advice.
86720
86721 2005-08-29  Bruno Haible  <bruno@clisp.org>
86722         and Stepan Kasal  <kasal@ucw.cz>
86723
86724         * check-module: If more parameters are given, check each of them
86725         separately; add more exceptions, as noted by Jim Meyering.
86726         (check_module): New procedure.
86727         (%exempt_header): Now contains all exceptions.
86728
86729 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
86730
86731         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
86732
86733 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86734
86735         * lib/iconvme.c: Split iconv_string into iconv_alloc.
86736
86737 2005-08-28  Bruno Haible  <bruno@clisp.org>
86738
86739         * m4/gnulib-tool.m4: New file.
86740
86741 2005-08-27  Jim Meyering  <jim@meyering.net>
86742
86743         * modules/unistd-safer (Files): Add pipe-safer.c.
86744         * modules/fcntl-safer (Files): Add creat-safer.c.
86745
86746 2005-08-27  Jim Meyering  <jim@meyering.net>
86747
86748         * m4/stdlib-safer.m4: New file.  From coreutils.
86749         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
86750         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
86751         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
86752         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
86753         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
86754
86755 2005-08-27  Jim Meyering  <jim@meyering.net>
86756
86757         * lib/fopen-safer.c: Merge minor changes from coreutils.
86758         * lib/dup-safer.c: Likewise.
86759         * lib/fd-safer.c: Likewise.
86760
86761         Merge from coreutils.
86762         * lib/stdio--.h: New file.
86763         * lib/stdlib--.h: New file.
86764         * lib/mkstemp-safer.c: New file.
86765
86766         GNU tar needs these.
86767         * lib/pipe-safer.c: New file.
86768         * lib/creat-safer.c: New file.
86769         * lib/fcntl--.h (creat): Define to creat_safer.
86770         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
86771         * lib/unistd--.h (pipe): Define to pipe_safer.
86772         * lib/unistd-safer.h: Declare pipe_safer.
86773
86774 2005-08-26  Simon Josefsson  <jas@extundo.com>
86775
86776         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
86777         Haible <bruno@clisp.org>.
86778
86779 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
86780
86781         * lib/regex_internal.h: Remove all references to
86782         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
86783         or better.
86784         (bitset_not, bitset_merge, bitset_not_merge):
86785         (bitset_mask, re_string_allocate, re_string_construct):
86786         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
86787         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
86788         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
86789         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
86790         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
86791         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
86792         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
86793         (re_acquire_state_context):
86794         Remove unnecessary forward decls.
86795         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
86796         Put __attribute at function definition,
86797         now that the function decl has been removed.
86798         * lib/regex_internal.c (re_string_peek_byte_case):
86799         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
86800         Likewise.
86801
86802 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
86803
86804         * m4/regex.m4: Add AC_PREREQ(2.50).
86805         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
86806
86807 2005-08-25  Simon Josefsson  <jas@extundo.com>
86808
86809         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
86810         __fsetlocking.
86811
86812 2005-08-25  Simon Josefsson  <jas@extundo.com>
86813
86814         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
86815         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
86816         GLIBC specific code.
86817
86818 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86819
86820         Make regex safe for g++.  This fixes one real bug (an "err"
86821         that should have been "*err").  g++ problem reported by
86822         Sam Steingold.
86823         * lib/regex_internal.h (re_calloc): New macro, consistent with
86824         re_malloc etc.  All callers of calloc changed to use re_calloc.
86825         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
86826         not int.  All callers changed.
86827         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
86828         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
86829         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
86830         (find_recover_state): Change "err" to "*err"; this fixes what
86831         appears to be a real bug.
86832         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
86833         versus int.
86834
86835 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86836
86837         * modules/regex (Depends-on): Add malloc, since the code
86838         assumes that !malloc(0) means failure.
86839
86840 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86841
86842         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
86843
86844         alloca modernization/simplification for regex.
86845         * lib/regex.c: Remove portability cruft for alloca.  This no longer
86846         needs to be at the start of the file, and can be moved into
86847         regex_internal.h and simplified.
86848         * lib/regex_internal.h: Include <alloca.h>.
86849         (__libc_use_alloca) [!defined _LIBC]: New macro.
86850         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
86851         now works outside glibc.
86852
86853 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
86854
86855         * config/srclist.txt: Add glibc bugs 1241, 1245.
86856
86857 2005-08-25  Jim Meyering  <jim@meyering.net>
86858
86859         * lib/open-safer.c: Include <config.h>.
86860         Otherwise, we'd lose LARGEFILE support in any file using
86861         e.g. "fcntl--.h"
86862
86863 2005-08-25  Bruno Haible  <bruno@clisp.org>
86864
86865         * m4/minmax.m4: Require autoconf 2.52.
86866         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
86867         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
86868         alternatives of translit over the alphabet.
86869         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
86870
86871 2005-08-24  Simon Josefsson  <jas@extundo.com>
86872
86873         * tests/test-getpass.c: New file.
86874
86875 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86876
86877         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
86878         for GNU regex features.
86879
86880 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
86881
86882         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
86883         * lib/regex.h (regerror): Likewise.
86884
86885         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
86886         requires this.  (The code never needed it.)
86887
86888         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
86889         All uses of recently-renamed identifiers changed to use the new,
86890         POSIX-compliant names.  The code will build and run just fine
86891         without these changes, but it's better to eat our own dog food
86892         and use the standard-conforming names.
86893
86894         * lib/regex.h: Fix a multitude of POSIX name space violations.
86895         These changes have an effect only for programs that define
86896         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
86897         do not change anything for programs compiled in the normal way.
86898         Also, there is no effect on the ABI.
86899
86900         (_REGEX_SOURCE): New macro.
86901         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
86902         defined and _GNU_SOURCE is not; this fixes a name space violation.
86903
86904         Rename the following macros to obey POSIX requirements.
86905         The old names are still visible as macros if _REGEX_SOURCE is defined.
86906         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
86907         RE_BACKSLASH_ESCAPE_IN_LISTS.
86908         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
86909         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
86910         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
86911         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
86912         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
86913         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
86914         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
86915         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
86916         (REG_INTERVALS): renamed from RE_INTERVALS.
86917         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
86918         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
86919         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
86920         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
86921         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
86922         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
86923         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
86924         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
86925         RE_UNMATCHED_RIGHT_PAREN_ORD.
86926         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
86927         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
86928         (REG_DEBUG): renamed from RE_DEBUG.
86929         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
86930         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
86931         unusual, since we can't clash with the POSIX REG_ICASE.
86932         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
86933         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
86934         (REG_NO_SUB): renamed from RE_NO_SUB.
86935         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
86936         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
86937         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
86938         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
86939         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
86940         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
86941         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
86942         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
86943         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
86944         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
86945         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
86946         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
86947         RE_SYNTAX_POSIX_MINIMAL_BASIC.
86948         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
86949         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
86950         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
86951         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
86952         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
86953         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
86954         (REG_FIXED): Renamed from REGS_FIXED.
86955         (REG_NREGS): Renamed from RE_NREGS.
86956
86957         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
86958         of other REG_* macros, since POSIX says the user is allowed to
86959         #undef these macros selectively.
86960
86961         (reg_errcode_t): Update comment stating what other tables need
86962         to be consistent.
86963
86964         Rename the following enum values to obey POSIX requirements.
86965         The old names are still visible as macros.
86966         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
86967         is not defined, since GNU is supposed to be a superset of POSIX as
86968         much as possible, and since we want reg_errcode_t to be a signed
86969         type for implementation consistency.
86970         (_REG_NOERROR): Renamed from REG_NOERROR.
86971         (_REG_NOMATCH): Renamed from REG_NOMATCH.
86972         (_REG_BADPAT): Renamed from REG_BADPAT.
86973         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
86974         (_REG_ECTYPE): Renamed from REG_ECTYPE.
86975         (_REG_EESCAPE): Renamed from REG_EESCAPE.
86976         (_REG_ESUBREG): Renamed from REG_ESUBREG.
86977         (_REG_EBRACK): Renamed from REG_EBRACK.
86978         (_REG_EPAREN): Renamed from REG_EPAREN.
86979         (_REG_EBRACE): Renamed from REG_EBRACE.
86980         (_REG_BADBR): Renamed from REG_BADBR.
86981         (_REG_ERANGE): Renamed from REG_ERANGE.
86982         (_REG_ESPACE): Renamed from REG_ESPACE.
86983         (_REG_BADRPT): Renamed from REG_BADRPT.
86984         (_REG_EEND): Renamed from REG_EEND.
86985         (_REG_ESIZE): Renamed from REG_ESIZE.
86986         (_REG_ERPAREN): Renamed from REG_ERPAREN.
86987         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
86988         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
86989         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
86990         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
86991
86992         (_REG_RE_NAME, _REG_RM_NAME): New macros.
86993         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
86994         changed.  But support the old name if the new one is not defined
86995         and if _REGEX_SOURCE.
86996
86997         Change the following member names in struct re_pattern_buffer.
86998         The old names are still supported if !_REGEX_SOURCE.
86999         The new names are always supported, regardless of _REGEX_SOURCE.
87000         (re_buffer): Renamed from buffer.
87001         (re_allocated): Renamed from allocated.
87002         (re_used): Renamed from used.
87003         (re_syntax): Renamed from syntax.
87004         (re_fastmap): Renamed from fastmap.
87005         (re_translate): Renamed from translate.
87006         (re_can_be_null): Renamed from can_be_null.
87007         (re_regs_allocated): Renamed from regs_allocated.
87008         (re_fastmap_accurate): Renamed from fastmap_accurate.
87009         (re_no_sub): Renamed from no_sub.
87010         (re_not_bol): Renamed from not_bol.
87011         (re_not_eol): Renamed from not_eol.
87012         (re_newline_anchor): Renamed from newline_anchor.
87013
87014         Change the following member names in struct re_registers.
87015         The old names are still supported if !_REGEX_SOURCE.
87016         The new names are always supported, regardless of _REGEX_SOURCE.
87017         (rm_num_regs): Renamed from num_regs.
87018         (rm_start): Renamed from start.
87019         (rm_end): Renamed from end.
87020
87021         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
87022         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
87023         Prepend __ to parameter names.
87024
87025         Undo yesterday's changes.
87026
87027 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
87028
87029         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
87030         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
87031         lib/regex.c.
87032
87033 2005-08-24  Jim Meyering  <jim@meyering.net>
87034
87035         Sync from coreutils.
87036         * m4/fcntl-safer.m4: New file.
87037
87038         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
87039         and object files for this module.
87040
87041 2005-08-24  Jim Meyering  <jim@meyering.net>
87042
87043         Sync from coreutils.
87044         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
87045
87046 2005-08-24  Jim Meyering  <jim@meyering.net>
87047
87048         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
87049         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
87050
87051 2005-08-24  Jim Meyering  <jim@meyering.net>
87052
87053         * modules/fcntl-safer: New module.
87054         * modules/fts (Depends-on): Add fcntl-safer.
87055         * MODULES.html.sh (File descriptor based Input/Output):
87056         Add fcntl-safer.
87057
87058 2005-08-24  Bruno Haible  <bruno@clisp.org>
87059
87060         Support for unit test modules.
87061         * modules/README: Mention tests modules.
87062         * modules/TEMPLATE-TESTS: New file.
87063         * gnulib-tool: New options --extract-tests-module, --with-tests and
87064         --tests-base (unused for the moment).
87065         (testsbase, inctests): New variables.
87066         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
87067         (func_verify_module): Exclude TEMPLATE-TESTS.
87068         (func_verify_nontests_module, func_verify_tests_module): New functions.
87069         (func_get_dependencies): Add implicit dependency for tests modules.
87070         (func_get_tests_module): New function.
87071         (func_modules_transitive_closure): When --with-tests was specified,
87072         include the unit tests as well, unless explicitly avoided.
87073         (func_emit_lib_Makefile_am): Ignore the tests modules here.
87074         (func_emit_tests_Makefile_am): New function.
87075         (func_create_testdir): When --with-tests was specified, emit a
87076         tests/ directory.
87077         * MODULES.html.sh (Future developments): Update.
87078
87079 2005-08-24  Bruno Haible  <bruno@clisp.org>
87080
87081         * modules/tls-tests: New file.
87082         * tests/test-tls.c: New file, from GNU gettext.
87083
87084 2005-08-24  Bruno Haible  <bruno@clisp.org>
87085
87086         * modules/lock-tests: New file.
87087         * tests/test-lock.c: New file, from GNU gettext.
87088
87089 2005-08-24  Bruno Haible  <bruno@clisp.org>
87090
87091         * lib/lock.h: Add multiple inclusion guard.
87092         * lib/tls.h: Add multiple inclusion guard.
87093
87094 2005-08-24  Bruno Haible  <bruno@clisp.org>
87095
87096         * gnulib-tool: Add support for the --aux-dir option to
87097         --create-testdir, --create-megatestdir, --test, --megatest.
87098         (func_create_testdir, func_create_megatestdir): Optionally emit a
87099         AC_CONFIG_AUX_DIR directive.
87100         (create-testdir, create-megatestdir, test, megatest): Provide a
87101         default value for $auxdir.
87102
87103 2005-08-24  Bruno Haible  <bruno@clisp.org>
87104
87105         * gnulib-tool (import): Use compound statement instead of subshell
87106         where possible.
87107
87108 2005-08-24  Bruno Haible  <bruno@clisp.org>
87109
87110         * gnulib-tool (import): Change --aux-dir default to "build-aux".
87111
87112 2005-08-24  Bruno Haible  <bruno@clisp.org>
87113
87114         * gnulib-tool (func_version): Update.
87115
87116 2005-08-24  Bruno Haible  <bruno@clisp.org>
87117
87118         * gnulib-tool (func_import, func_create_testdir,
87119         func_create_megatestdir): Quote all autoconf macro arguments.
87120
87121 2005-08-24  Bruno Haible  <bruno@clisp.org>
87122
87123         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
87124         option --force, because --force causes the aclocal.m4 of each
87125         subdirectory to be newer than the corresponding config.h.in.
87126
87127 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87128
87129         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
87130         All contents moved to gl_REGEX.
87131         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
87132         assume that it does.
87133
87134 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87135
87136         * lib/regex.h (REG_NOSYS)
87137         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
87138         Define, since POSIX requires it as of 2001.
87139         (_REG_ENOSYS)
87140         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
87141         New private symbol, used to keep the enum signed in all cases.
87142         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
87143         Youngman in
87144         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
87145
87146         * lib/regex_internal.c (re_string_skip_chars, register_state):
87147         (calc_state_hash):
87148         Remove forward decls; no longer needed now that we use prototypes.
87149         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
87150         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
87151         (clean_state_log_if_needed): Likewise.
87152
87153 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
87154
87155         * config/srclist.txt: Add glibc bugs 1231-1233.
87156
87157 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87158
87159         Fix problems reported by Sam Steingold in
87160         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
87161         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
87162         assumed that reg_errcode_t is a signed type, which is not
87163         necessarily true if _XOPEN_SOURCE is not defined.
87164         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
87165         since some compilers warn about it otherwise.
87166
87167 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87168
87169         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
87170         (init_word_char, create_initial_state, duplicate_node_closure):
87171         (fetch_token, peek_token_bracket, build_range_exp):
87172         (build_collating_symbol): Remove forward decls; no longer needed
87173         now that we use prototypes.
87174
87175         * lib/regcomp.c:
87176         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
87177         (re_compile_fastmap_iter, regcomp, regerror, regfree):
87178         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
87179         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
87180         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
87181         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
87182         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
87183         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
87184         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
87185         (build_range_exp, build_collating_symbol, parse_bracket_exp):
87186         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
87187         (build_charclass, build_charclass_op, fetch_number, create_tree):
87188         (create_token_tree, mark_opt_subexp, duplicate_tree):
87189         Use prototypes rather than old-style definitions.
87190
87191         * lib/regex_internal.c:
87192         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
87193         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
87194         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
87195         (re_string_reconstruct, re_string_peek_byte_case):
87196         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
87197         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
87198         (re_node_set_init_copy, re_node_set_add_intersect):
87199         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
87200         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
87201         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
87202         (re_acquire_state, re_acquire_state_context, register_state):
87203         (create_ci_newstate, create_cd_newstate, free_state):
87204         Likewise.
87205         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
87206         re_search_2):
87207         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
87208         (re_search_internal, prune_impossible_nodes):
87209         (acquire_init_state_context, check_matching, static):
87210         (check_halt_node_context, check_halt_state_context, proceed_next_node):
87211         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
87212         (update_regs, sift_states_backward, build_sifted_states):
87213         (clean_state_log_if_needed, merge_state_array):
87214         (update_cur_sifted_state, add_epsilon_src_nodes):
87215         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
87216         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
87217         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
87218         (find_recover_state, check_subexp_matching_top, transit_state_mb):
87219         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
87220         (check_arrival, check_arrival_add_next_nodes):
87221         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
87222         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
87223         (check_node_accept_bytes, check_node_accept, extend_buffers):
87224         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
87225         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
87226         (sift_ctx_init):
87227         Likewise.
87228
87229         * lib/regex_internal.h:
87230         (re_string_allocate, re_string_construct, re_string_reconstruct):
87231         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
87232         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
87233         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
87234         (re_string_context_at, re_string_peek_byte_case):
87235         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
87236         is defined, since we now use prototypes always.
87237
87238         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
87239         C89 or better.  All uses removed.
87240
87241 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
87242
87243         * config/srclist.txt: Add glibc bugs 1220-1227.
87244
87245 2005-08-20  Jim Meyering  <jim@meyering.net>
87246
87247         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
87248         of unused local, dfa.
87249
87250 2005-08-20  Bruno Haible  <bruno@clisp.org>
87251
87252         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
87253
87254 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
87257         (re_node_set_insert_last, re_dfa_add_node):
87258         Rename local variables to avoid GCC shadowing warnings.
87259
87260 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87261
87262         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
87263         [defined lint]: Suppress bogus uninitialized-variable warnings.
87264
87265         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
87266         and let the caller return REG_ESPACE if out of space.  This
87267         removes an uninitialied-variable warning with GCC 4.0.1, and also
87268         avoids taking the address of a local variable.  All callers
87269         changed.
87270
87271 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87272
87273         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
87274         $LIBCSRC/posix/regexec.c.
87275         Add glibc bug 1217 for regcomp.c.
87276
87277 2005-08-19  Jim Meyering  <jim@meyering.net>
87278
87279         * lib/regexec.c (proceed_next_node): Redo local variables to
87280         avoid GCC shadowing warnings.
87281
87282 2005-08-18  Bruno Haible  <bruno@clisp.org>
87283
87284         * lib/strstr.c (strstr): Fix return value in multibyte case.
87285         * lib/strcasestr.c (strcasestr): Likewise.
87286
87287 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87288
87289         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
87290
87291 2005-08-17  Jim Meyering  <jim@meyering.net>
87292
87293         Make the %s format (seconds since the epoch) work for a negative
87294         number and when used with a zero-padded field width, e.g. %015s.
87295
87296         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
87297         label so that it precedes the code to set `digits'.  Otherwise,
87298         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
87299         print `00-22'.  Now, it prints `-0022', as it should.
87300
87301 2005-08-17  Bruno Haible  <bruno@clisp.org>
87302
87303         * modules/strstr (Files): Add m4/mbrtowc.m4.
87304         (Depends-on): Add mbuiter.
87305
87306 2005-08-17  Bruno Haible  <bruno@clisp.org>
87307
87308         * modules/strcasestr: New file.
87309         * MODULES.html.sh (String handling, based on ANSI C 89): Add
87310         strcasestr.
87311
87312 2005-08-17  Bruno Haible  <bruno@clisp.org>
87313
87314         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
87315
87316 2005-08-17  Bruno Haible  <bruno@clisp.org>
87317
87318         * modules/mbuiter: New file.
87319         * MODULES.html.sh (Extended multibyte and wide character utilities):
87320         Add mbuiter.
87321
87322 2005-08-17  Bruno Haible  <bruno@clisp.org>
87323
87324         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
87325         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
87326
87327 2005-08-17  Bruno Haible  <bruno@clisp.org>
87328
87329         * m4/strcasestr.m4: New file.
87330
87331 2005-08-17  Bruno Haible  <bruno@clisp.org>
87332
87333         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
87334         * lib/strstr.c: Completely rewritten, with multibyte locale support.
87335
87336 2005-08-17  Bruno Haible  <bruno@clisp.org>
87337
87338         * lib/strcasestr.h: New file.
87339         * lib/strcasestr.c: New file.
87340
87341 2005-08-17  Bruno Haible  <bruno@clisp.org>
87342
87343         * lib/strcasecmp.c: Use mbuiter.h.
87344
87345 2005-08-17  Bruno Haible  <bruno@clisp.org>
87346
87347         * lib/mbuiter.h: New file.
87348
87349 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
87350
87351         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
87352         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
87353         and gl_GETOPT are both invoked via different paths (as happens
87354         with GNU tar CVS because it uses both argp and getopt), the former
87355         wins.
87356
87357 2005-08-16  Bruno Haible  <bruno@clisp.org>
87358
87359         * modules/tls: New file.
87360         * MODULES.html.sh (Multithreading): Add tls.
87361
87362 2005-08-16  Bruno Haible  <bruno@clisp.org>
87363
87364         * modules/strnlen1: New file.
87365         * MODULES.html.sh (String handling): Add strnlen1.
87366
87367 2005-08-16  Bruno Haible  <bruno@clisp.org>
87368
87369         * modules/strcase (Files): Add m4/mbrtowc.m4.
87370         (Depends-on): Add strnlen1, mbchar.
87371
87372 2005-08-16  Bruno Haible  <bruno@clisp.org>
87373
87374         * modules/mbiter: New file.
87375         * MODULES.html.sh (Extended multibyte and wide character utilities):
87376         Add mbiter.
87377
87378 2005-08-16  Bruno Haible  <bruno@clisp.org>
87379
87380         * modules/mbfile: New file.
87381         * MODULES.html.sh (Extended multibyte and wide character utilities):
87382         Add mbfile.
87383
87384 2005-08-16  Bruno Haible  <bruno@clisp.org>
87385
87386         * modules/mbchar: New file.
87387         * MODULES.html.sh (Extended multibyte and wide character utilities):
87388         New section.
87389
87390 2005-08-16  Bruno Haible  <bruno@clisp.org>
87391
87392         * m4/tls.m4: New file, from GNU gettext.
87393
87394 2005-08-16  Bruno Haible  <bruno@clisp.org>
87395
87396         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
87397         always.
87398         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
87399
87400 2005-08-16  Bruno Haible  <bruno@clisp.org>
87401
87402         * m4/mbiter.m4: New file.
87403
87404 2005-08-16  Bruno Haible  <bruno@clisp.org>
87405
87406         * m4/mbfile.m4: New file.
87407
87408 2005-08-16  Bruno Haible  <bruno@clisp.org>
87409
87410         * m4/mbchar.m4: New file.
87411
87412 2005-08-16  Bruno Haible  <bruno@clisp.org>
87413
87414         * lib/tls.h: New file, from GNU gettext.
87415         * lib/tls.c: New file, from GNU gettext.
87416
87417 2005-08-16  Bruno Haible  <bruno@clisp.org>
87418
87419         * lib/strnlen1.h: New file.
87420         * lib/strnlen1.c: New file.
87421
87422 2005-08-16  Bruno Haible  <bruno@clisp.org>
87423
87424         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
87425         (mbi_init): Update.
87426         (mbi_avail, mbi_advance): Let the iteration end before the terminating
87427         NUL byte, not after it.
87428
87429 2005-08-16  Bruno Haible  <bruno@clisp.org>
87430
87431         * lib/strcase.h (strcasecmp): Add note in comments.
87432         * lib/strncasecmp.c: Use code from strcasecmp.c.
87433         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
87434         (strcasecmp): Work correctly in multibyte locales.
87435
87436 2005-08-16  Bruno Haible  <bruno@clisp.org>
87437
87438         * lib/mbiter.h: New file.
87439
87440 2005-08-16  Bruno Haible  <bruno@clisp.org>
87441
87442         * lib/mbfile.h: New file.
87443
87444 2005-08-16  Bruno Haible  <bruno@clisp.org>
87445
87446         * lib/mbchar.h: New file.
87447         * lib/mbchar.c: New file.
87448
87449 2005-08-16  Bruno Haible  <bruno@clisp.org>
87450
87451         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
87452         the valid ones. Makes the comparison operations transitive:
87453         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
87454         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
87455
87456 2005-08-15  Simon Josefsson  <jas@extundo.com>
87457
87458         * modules/ssize_t (License): Change to 'unlimited'.
87459
87460         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
87461
87462 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
87463
87464         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
87465         Add comments for each pending glibc patch.
87466
87467 2005-08-15  Bruno Haible  <bruno@clisp.org>
87468
87469         * lib/regex.h (__restrict_arr): Don't define to __restrict if
87470         __cplusplus is defined.
87471
87472 2005-08-14  Jim Meyering  <jim@meyering.net>
87473
87474         Sync from coreutils.
87475
87476         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
87477         Use the hash-table-based cycle-detection code not just when
87478         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
87479         Reported by James Youngman in
87480         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
87481         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
87482         FTS_TIGHT_CYCLE_CHECK.
87483         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
87484         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
87485         once again.
87486         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
87487         * lib/fts.c (fd_safer): Remove decl.
87488         Include fcntl--.h rather than unistd-safer.h
87489         (fts_safe_changedir): Don't call fd_safer; no longer needed
87490         now that we include fcntl--.h.
87491
87492 2005-08-12  Simon Josefsson  <jas@extundo.com>
87493
87494         * modules/getndelim2: Use ssize_t module.
87495         * modules/getnline: Likewise.
87496         * modules/safe-read: Likewise.
87497         * modules/xreadlink: Likewise.
87498
87499         * modules/ssize_t: New file.
87500
87501 2005-08-12  Simon Josefsson  <jas@extundo.com>
87502
87503         * m4/readline.m4: Look for termcap, curses or ncurses if required.
87504
87505 2005-08-12  Simon Josefsson  <jas@extundo.com>
87506
87507         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87508         ssize_t.
87509
87510 2005-08-12  Simon Josefsson  <jas@extundo.com>
87511
87512         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
87513         readline, getdelim and check_version.
87514         (Support for systems lacking ISO C 99: Sizes of integer types):
87515         Add size_max.
87516
87517 2005-08-12  Bruno Haible  <bruno@clisp.org>
87518
87519         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
87520
87521 2005-08-11  Simon Josefsson  <jas@extundo.com>
87522
87523         * modules/readline: New file.
87524
87525         * modules/strnlen (Files): Add strnlen.h.
87526
87527 2005-08-11  Simon Josefsson  <jas@extundo.com>
87528
87529         * m4/readline.m4: New file.
87530
87531 2005-08-11  Simon Josefsson  <jas@extundo.com>
87532
87533         * lib/readline.h, readline.c: New file.
87534
87535 2005-08-11  Simon Josefsson  <jas@extundo.com>
87536
87537         * doc/gnulib.texi (Initial import, Finishing touches): Mention
87538         gl_AVOID.
87539
87540 2005-08-11  Bruno Haible  <bruno@clisp.org>
87541
87542         * lib/strnlen.h (strnlen): Change parameter name to match comment.
87543
87544 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
87545
87546         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
87547
87548 2005-08-10  Simon Josefsson  <jas@extundo.com>
87549
87550         * tests/test-iconvme.c: New file.
87551
87552 2005-08-10  Simon Josefsson  <jas@extundo.com>
87553
87554         * m4/strnlen.m4: New file.
87555
87556         * m4/strndup.m4: Don't check for strnlen declaration, done in
87557         strnlen.m4.
87558
87559 2005-08-10  Simon Josefsson  <jas@extundo.com>
87560
87561         * lib/strndup.c: Use strnlen.h.
87562
87563         * lib/strnlen.h: New file.
87564
87565 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
87566
87567         * README: Typos.
87568
87569 2005-08-02  Simon Josefsson  <jas@extundo.com>
87570
87571         * modules/readline: New file.
87572
87573 2005-08-02  Simon Josefsson  <jas@extundo.com>
87574
87575         * modules/getdelim: New file.
87576
87577         * modules/getline: Rewrite, don't use getndelim2.
87578
87579 2005-08-02  Simon Josefsson  <jas@extundo.com>
87580
87581         * m4/getline.m4: Separate out getdelim stuff into separate module.
87582
87583         * m4/getdelim.m4: New file.
87584
87585 2005-08-02  Simon Josefsson  <jas@extundo.com>
87586
87587         * lib/getline.h, getline.c: Rewrite.
87588
87589         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
87590
87591 2005-07-31  Bruno Haible  <bruno@clisp.org>
87592
87593         * lib/lock.h (gl_lock_initializer): New macro.
87594         (gl_lock_define_initialized): Use it.
87595         (gl_rwlock_initializer): New macro.
87596         (gl_rwlock_define_initialized): Use it.
87597         (gl_recursive_lock_initializer): New macro.
87598         (gl_recursive_lock_define_initialized): Use it.
87599
87600 2005-07-30  Karl Berry  <karl@gnu.org>
87601
87602         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
87603         Report from Ben Pfaff, regarding getopt.
87604
87605 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
87606
87607         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
87608         normal way.
87609         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
87610         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
87611         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
87612         (gl_GETOPT): Use the new macros.  Most of the implementation
87613         is moved to the new macros.  This is for programs like Emacs
87614         that don't want all the functionality of gl_GETOPT.
87615
87616 2005-07-26  Bruno Haible  <bruno@clisp.org>
87617
87618         * m4/lock.m4: Update from GNU gettext.
87619
87620 2005-07-26  Bruno Haible  <bruno@clisp.org>
87621
87622         * lib/lock.h: Update from GNU gettext.
87623         * lib/lock.c: Update from GNU gettext.
87624
87625 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
87626
87627         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
87628         obsolescent AC_TRY_RUN.  Include the default includes files, for
87629         'exit'.
87630
87631 2005-07-24  Bruno Haible  <bruno@clisp.org>
87632
87633         * modules/visibility: New file.
87634         * MODULES.html.sh (Misc): Add visibility.
87635
87636 2005-07-24  Bruno Haible  <bruno@clisp.org>
87637
87638         * m4/visibility.m4: New file.
87639
87640 2005-07-24  Bruno Haible  <bruno@clisp.org>
87641
87642         * doc/visibility.texi: New file.
87643
87644 2005-07-22  Bruno Haible  <bruno@clisp.org>
87645
87646         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
87647         $(ALLOCA_H), redundant through BUILT_SOURCES.
87648         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
87649         redundant through BUILT_SOURCES.
87650         * modules/byteswap (Makefile.am): Remove explicit dependency on
87651         $(BYTESWAP_H), redundant through BUILT_SOURCES.
87652         * modules/fnmatch (Makefile.am): Remove explicit dependency on
87653         $(FNMATCH_H), redundant through BUILT_SOURCES.
87654         * modules/getopt (Makefile.am): Remove explicit dependency on
87655         $(GETOPT_H), redundant through BUILT_SOURCES.
87656         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
87657         redundant through BUILT_SOURCES.
87658         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
87659         redundant through BUILT_SOURCES.
87660         * modules/stdbool (Makefile.am): Remove explicit dependency on
87661         $(STDBOOL_H), redundant through BUILT_SOURCES.
87662         * modules/stdint (Makefile.am): Remove explicit dependency on
87663         $(STDINT_H), redundant through BUILT_SOURCES.
87664         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
87665         Remove explicit dependency on $(SYSEXITS_H).
87666         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
87667
87668 2005-07-18  Simon Josefsson  <jas@extundo.com>
87669
87670         * lib/check-version.c (check_version): Accept identical versions too.
87671
87672 2005-07-18  Bruno Haible  <bruno@clisp.org>
87673
87674         * modules/lock: New file.
87675         * MODULES.html.sh (Multithreading): New section.
87676
87677 2005-07-18  Bruno Haible  <bruno@clisp.org>
87678
87679         * m4/lock.m4: New file, from GNU gettext.
87680
87681 2005-07-18  Bruno Haible  <bruno@clisp.org>
87682
87683         * lib/lock.h: New file, from GNU gettext.
87684         * lib/lock.c: New file, from GNU gettext.
87685
87686 2005-07-18  Bruno Haible  <bruno@clisp.org>
87687
87688         * lib/lock.h (gl_once_t): New type.
87689         (gl_once_define, gl_once): New macros.
87690         * lib/lock.c (fresh_once): New variable.
87691         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
87692         functions.
87693
87694 2005-07-16  Simon Josefsson  <jas@extundo.com>
87695
87696         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
87697         workaround, suggested by Bruno.
87698
87699 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87700
87701         * modules/xalloc (Depends-on): Add xalloc-die.
87702         * modules/xvasprintf (Depends-on): Add xalloc-die.
87703
87704 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
87705
87706         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
87707         with a minor change.
87708
87709 2005-07-15  Bruno Haible  <bruno@clisp.org>
87710
87711         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
87712         When using lib/poll.c, define poll as rpl_poll.
87713
87714 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
87715
87716         * modules/argp (Depends-on): Remove unlocked-io.
87717
87718 2005-07-14  Derek Price  <derek@ximbiot.com>
87719
87720         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
87721         for glob symlink bug.
87722
87723 2005-07-14  Bruno Haible  <bruno@clisp.org>
87724
87725         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
87726         Instead, test for *_unlocked function declarations directly.
87727
87728 2005-07-11  Simon Josefsson  <jas@extundo.com>
87729
87730         * modules/size_max: New file.
87731
87732         * modules/xsize: Depend on size_max module for size_max.m4.
87733
87734 2005-07-11  Simon Josefsson  <jas@extundo.com>
87735
87736         * lib/size_max.h: New file.
87737
87738 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
87739
87740         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
87741         copyright symbol and the year.
87742         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
87743         (version_etc_va): Use parameterized copyright notice.
87744         Reword to conform to the current GNU coding standards.
87745
87746 2005-07-11  Karl Berry  <karl@gnu.org>
87747
87748         * doc/gnulib.texi (Quoting): new node.
87749         (Initial import): more info, from Patrice.
87750
87751 2005-07-11  Bruno Haible  <bruno@clisp.org>
87752
87753         * gnulib-tool (func_usage): Document option --avoid.
87754         (Command line options): Handle --avoid.
87755         (func_acceptable): New function.
87756         (func_modules_transitive_closure): Use it.
87757
87758 2005-07-11  Bruno Haible  <bruno@clisp.org>
87759
87760         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
87761         Reported by Jim Meyering.
87762
87763 2005-07-10  Bruno Haible  <bruno@clisp.org>
87764
87765         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
87766         Needed when size_t is smaller than 'unsigned int'.
87767         Reported by Paul Eggert.
87768
87769 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87770
87771         * modules/argp (Depends-on): Add unlocked-io
87772
87773 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
87774
87775         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
87776         block of defines.
87777
87778 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
87779
87780         * config/srclist.txt: Comment out regcomp.c, since we have a porting
87781         fix now.
87782
87783 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
87784         and Paul Eggert  <eggert@cs.ucla.edu>
87785
87786         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
87787         in wint_t, not wchar_t.  Remove now-unnecessary cast.
87788
87789 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87790
87791         * modules/regex (Files): Add lib/regex_internal.c,
87792         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
87793         (Depends-on): Add extensions.
87794         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
87795
87796 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87797
87798         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
87799         pathconf.
87800         * m4/same.m4 (gl_SAME): Likewise.
87801         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
87802
87803         * m4/regex.m4: Adjust to new libc regex implementation.
87804         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
87805         all the .c and .h parts of (the new) regex.
87806         Quote the m4 stuff better.
87807         Check for RE_ICASE bug of old gnulib.
87808         Check for REG_STARTEND of recent libc.
87809         Rename local variables from jm_* to gl_*.
87810         Quote operand of "test -f".
87811         Say "recent enough" version of libc, not "version 2".
87812         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
87813         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
87814         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
87815         Remove check for btowc, isascii.
87816         Require AM_LANGINFO_CODESET.
87817
87818 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87819
87820         * lib/regex.c, regex.h: Sync from libc.
87821         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
87822         * lib/regexec.c:
87823         New files, synced from libc, except that regex_internal.h
87824         currently has a small porting fix.
87825
87826 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
87827
87828         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
87829         regex_internal.c, regexec.c.
87830         Add regex_internal.h too, but as a comment, since the libc version
87831         is currently broken in gnulib mode.
87832
87833 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
87834
87835         Support programs like Emacs that use gnulib but not gettext.
87836         * MODULES.html.sh (Internationalization functions): Add gettext-h.
87837         * modules/gettext-h: New file.
87838         * modules/gettext (Files): Remove lib/gettext.h.
87839         (Depends-on): Add gettext-h.
87840         (Makefile.am): Remove lib_SOURCES.
87841         * modules/argmatch, modules/c-stack, modules/closeout:
87842         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
87843         * modules/execute, modules/file-type, modules/getaddrinfo:
87844         * modules/getopt, modules/human, modules/javacomp:
87845         * modules/javaexec, modules/mkdir-p, modules/obstack:
87846         * modules/openat, modules/pagealign_alloc, modules/pipe:
87847         * modules/quotearg, modules/regex, modules/rpmatch:
87848         * modules/unicodeio, modules/userspec, modules/version-etc:
87849         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
87850         * modules/xsetenv:
87851         Depend on gettext-h, not gettext.
87852
87853 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
87854
87855         * gnulib-tool (func_import): Add support for 'public domain' license.
87856         * modules/alloca, modules/atexit, modules/memmove:
87857         Now public domain, not GPL.
87858         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
87859         * modules/realloc, modules/strerror, modules/strtod:
87860         Now LGPL, not GPL.
87861
87862 2005-07-05  Bruno Haible  <bruno@clisp.org>
87863
87864         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
87865         autoconf CVS. Needed for mingw.
87866
87867 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87868
87869         Remove the dependency of the strftime module on the tzset module.
87870         * modules/strftime (Depends-on): Remove dependency on tzset.
87871
87872 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87873
87874         Remove the dependency of the strftime module on the tzset module.
87875         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
87876         gl_FUNC_TZSET_CLOBBER.
87877
87878 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
87879
87880         Remove the dependency of the strftime module on the tzset module.
87881         * lib/strftime.c (my_strftime)
87882         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
87883         Copy the input structure, to work around some of the bug with
87884         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
87885         Solaris releases, you should also use the tzset module, but we won't
87886         require it as a dependency any more since we don't want LGPLed code
87887         to depend on GPLed code.
87888
87889 2005-07-02  Jim Meyering  <jim@meyering.net>
87890
87891         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
87892         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
87893         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
87894         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
87895
87896 2005-07-02  Jim Meyering  <jim@meyering.net>
87897
87898         * lib/backupfile.c (backup_args): Change a `0' to NULL.
87899
87900 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
87901
87902         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
87903         declares only 'struct timespec;' (!).
87904
87905 2005-07-01  Jim Meyering  <jim@meyering.net>
87906
87907         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
87908         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
87909         * lib/save-cwd.c, tempname.c:
87910         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
87911         and don't include <sys/file.h>).
87912
87913 2005-06-29  Jim Meyering  <jim@meyering.net>
87914
87915         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
87916         type name.  Use the variable name instead.
87917         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
87918         Likewise.
87919
87920 2005-06-28  Simon Josefsson  <jas@extundo.com>
87921
87922         * modules/check-version (Files): Add check-version.m4.
87923
87924 2005-06-28  Simon Josefsson  <jas@extundo.com>
87925
87926         * m4/check-version.m4: New file, suggested by Jim Meyering
87927         <jim@meyering.net>.
87928
87929 2005-06-28  Simon Josefsson  <jas@extundo.com>
87930
87931         * lib/check-version.h, lib/check-version.c: New files.
87932
87933 2005-06-28  Simon Josefsson  <jas@extundo.com>
87934
87935         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
87936         collision with global variable.  Better indentation.  Don't
87937         increment buffer pointer beyond buffer end.  Based on comments
87938         from Paul Eggert <eggert@cs.ucla.edu>.
87939
87940         * lib/base64.h: Indent.
87941
87942 2005-06-28  Simon Josefsson  <jas@extundo.com>
87943
87944         * doc/gnulib.texi (Library version handling): New section.
87945
87946 2005-06-28  Jim Meyering  <jim@meyering.net>
87947
87948         * check-module (find_included_lib_files): Hard-code another
87949         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
87950         but modules/fts-lgpl (correctly) does not list those files.
87951
87952         * modules/canonicalize (Files): Add lib/pathmax.h.
87953
87954 2005-06-25  Simon Josefsson  <jas@extundo.com>
87955
87956         * modules/check-version: New file.
87957
87958 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
87959
87960         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
87961         initializer of struct addrinfo, as an indication that we don't
87962         care how many members the structure has.
87963
87964 2005-06-24  Derek Price  <derek@ximbiot.com>
87965         and Bruno Haible  <bruno@clisp.org>
87966
87967         Remove stat module & update lstat.
87968         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
87969         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
87970         * m4/stat.m4: Remove this file.
87971
87972 2005-06-24  Derek Price  <derek@ximbiot.com>
87973         and Bruno Haible  <bruno@clisp.org>
87974
87975         Remove stat module & update lstat.
87976         * lib/stat.c: Remove this file...
87977         (slash_aware_lstat): ...moving this content and its support...
87978         * lib/lstat.c (rpl_lstat): ...into here.
87979         * lib/lstat.h: New file.
87980
87981 2005-06-24  Derek Price  <derek@ximbiot.com>
87982         and Bruno Haible  <bruno@clisp.org>
87983
87984         Remove stat module & update lstat.
87985         * config/srclist.txt (libc sources): Remove stat.
87986
87987 2005-06-24  Derek Price  <derek@ximbiot.com>
87988         and Bruno Haible  <bruno@clisp.org>
87989
87990         Remove stat module & update lstat.
87991         * MODULES.html.sh (stat): Remove.
87992         * MODULES.html: Regenerated.
87993         * modules/lstat (Description): Correct function name.
87994         (Files): Add "lstat.h".
87995         (Depends-on): Remove stat, add xalloc, stat-macros.
87996         * modules/stat: Remove this file.
87997         (Include): Add "lstat.h", remove <sys/stat.h>.
87998
87999 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
88000
88001         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
88002         (ranged_convert): Don't save conversion in a temporary struct.
88003         This causes a warning with GCC 4.0.0, and anyway in the typical
88004         case it's not worth the extra 100 bytes or so of code.
88005         (ranged_convert, __mktime_internal): When calling a function via a
88006         pointer P, use P () rather than (*P) (), as we now assume C89 or
88007         better.
88008
88009 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88010
88011         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
88012         "who -r" failed to give output.  Problem reported by Tim Waugh.
88013
88014         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
88015         (xcalloc): Use it to avoid needless tests.
88016         Problem reported by Jim Meyering.
88017
88018 2005-06-20  Derek Price  <derek@ximbiot.com>
88019
88020         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
88021         unnecessary for Autoconfs > 2.59c.
88022
88023 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88024
88025         * lib/argp.h (__option_is_short): Check upper limit of
88026         __key. Isprint() requires its argument to have the value
88027         of an unsigned char or EOF.
88028
88029 2005-06-16  Jim Meyering  <jim@meyering.net>
88030
88031         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
88032         when either N or S is zero.
88033
88034 2005-06-16  Derek Price  <derek@ximbiot.com>
88035
88036         * m4/bison.m4: Declare YACC & YFLAGS precious.
88037
88038 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
88039
88040         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
88041         multibyte string or pattern, fall back on unibyte matching.
88042         Problem reported by James Youngman.
88043
88044 2005-06-08  Bruno Haible  <bruno@clisp.org>
88045
88046         * modules/csharpcomp: New file.
88047         * MODULES.html.sh (C#): Add csharpcomp.
88048
88049 2005-06-08  Bruno Haible  <bruno@clisp.org>
88050
88051         * m4/csharpcomp.m4: New file, from GNU gettext.
88052
88053 2005-06-08  Bruno Haible  <bruno@clisp.org>
88054
88055         * lib/csharpcomp.h: New file, from GNU gettext.
88056         * lib/csharpcomp.c: New file, from GNU gettext.
88057         * lib/csharpcomp.sh.in: New file, from GNU gettext.
88058
88059 2005-06-08  Bruno Haible  <bruno@clisp.org>
88060
88061         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
88062         warning on mingw.
88063
88064 2005-06-07  Derek Price  <derek@ximbiot.com>
88065
88066         Sync from CVS.
88067         * lib/glob_.h: Indent nested #ifdef.
88068
88069 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88070
88071         Sync from coreutils.
88072         Use "file name" when talking about file names, instead of "filename"
88073         or "path", as per the GNU coding standards.
88074         * lib/mkdir-p.c: Renamed from makepath.c.
88075         (make_dir_parents): Renamed from make_path.  All callers changed.
88076         * lib/mkdir-p.h: Likewise.  All includers changed.
88077         * lib/filenamecat.c: Renamed from path-concat.c.
88078         (file_name_concat): Renamed from path_concat.  All callers changed.
88079         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
88080         * lib/filenamecat.h: Likewise.  All includers changed.
88081         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
88082         in comments or local variable names.
88083         * lib/basename.c: Likewise.
88084         * lib/canonicalize.c, canonicalize.h: Likewise.
88085         * lib/dirname.c, dirname.h: Likewise.
88086         * lib/euidaccess.c: Likewise.
88087         * lib/exclude.c: Likewise
88088         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
88089         * lib/fsusage.c, fsuage.h: Likewise.
88090         * lib/fts.c, fts_.h: Likewise.
88091         * lib/getcwd.c: Likewise.
88092         * lib/getloadavg.c: Likewise.
88093         * lib/mkstemp.c: Likewise.
88094         * lib/mountlist.c, mountlist.h: Likewise.
88095         * lib/openat.c, openat.h: Likewise.
88096         * lib/readlink-stub.c: Likewise.
88097         * lib/readutmp.c, readutmp.h: Likewise.
88098         * lib/rename.c: Likewise.
88099         * lib/rmdir.c: Likewise.
88100         * lib/same.c: Likewise.
88101         * lib/savedir.c: Likewise.
88102         * lib/stripslash.c: Likewise.
88103         * lib/tempname.c: Likewise.
88104         * lib/xreadlink.c: Likewise.
88105         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
88106         All uses changed.
88107         * lib/exclude.h: Likewise.
88108
88109         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
88110         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88111         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
88112         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88113         * lib/pathmax.h: Include <limits.h> unconditionally, since other
88114         files have been getting away with it for years (MORE/BSD 4.3
88115         is extinct now).
88116         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
88117         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
88118
88119         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
88120         Define to 256, not 255, as per modern POSIX.
88121
88122 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88123
88124         Sync from coreutils.
88125         Use "file name" when talking about file names, instead of "filename"
88126         or "path", as per the GNU coding standards.
88127         * MODULES.html.sh: mkdir-p renamed from makepath.
88128         filenamecat renamed from path-concat.
88129         * modules/filenamecat: Renamed from modules/path-concat.
88130         (Files): filenamecat.h and filenamecat.c renamed from
88131         path-concat.h and path-concat.c.
88132         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
88133         (Include): filenamecat.h, not path-concat.h.
88134         * modules/mkdir-p: Renamed from modules/makepath.
88135         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
88136         makepath.c.
88137         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
88138         (Include): mkdir-p.h, not makepath.h.
88139
88140 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
88141
88142         Sync from coreutils.
88143         * m4/mkdir-p.m4: Renamed from makepath.m4.
88144         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
88145         Rename files from makepath.c to mkdir-p.c, and from
88146         makepath.h to mkdir-p.h.
88147         * m4/filenamecat.m4: Renamed from path-concat.m4.
88148         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
88149         Rename files from path-concat.c to filenamecat.c,
88150         and from path-concat.h to filenamecat.h.
88151         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
88152         "file name" in local variables or comments.
88153         * m4/rename.m4: Likewise.
88154
88155 2005-06-01  Bruno Haible  <bruno@clisp.org>
88156
88157         * modules/csharpexec: New file.
88158         * MODULES.html.sh (C#): New section.
88159
88160 2005-06-01  Bruno Haible  <bruno@clisp.org>
88161
88162         * m4/csharp.m4: New file, from GNU gettext.
88163         * m4/csharpexec.m4: New file, from GNU gettext.
88164
88165 2005-06-01  Bruno Haible  <bruno@clisp.org>
88166
88167         * lib/csharpexec.h: New file, from GNU gettext.
88168         * lib/csharpexec.c: New file, from GNU gettext.
88169         * lib/csharpexec.sh.in: New file, from GNU gettext.
88170
88171 2005-05-31  Derek Price  <derek@ximbiot.com>
88172             Paul Eggert  <eggert@cs.ucla.edu>
88173
88174         Sync from cvs.
88175         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88176
88177 2005-05-31  Derek Price  <derek@ximbiot.com>
88178             Paul Eggert  <eggert@cs.ucla.edu>
88179
88180         Sync from cvs.
88181         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
88182
88183 2005-05-29  Derek Price  <derek@ximbiot.com>
88184
88185         * config/srclist.txt (glob_.h, glob.c): Add these files.
88186
88187 2005-05-29  Derek Price  <derek@ximbiot.com>
88188
88189         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
88190         * modules/glob: New file.
88191         * modules/getlogin_r: Add link to POSIX spec in description.
88192
88193 2005-05-29  Derek Price  <derek@ximbiot.com>
88194             Paul Eggert  <eggert@cs.ucla.edu>
88195
88196         * m4/glob.m4: New file.
88197
88198 2005-05-29  Derek Price  <derek@ximbiot.com>
88199             Paul Eggert  <eggert@cs.ucla.edu>
88200
88201         * lib/glob_.h, lib/glob.c: New files.
88202
88203 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88204
88205         * modules/fts (Files): Remove m4/inttypes-pri.m4.
88206         * modules/fts-lgpl (Depends-on): Remove gettext.
88207
88208 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88209
88210         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
88211         and don't require gt_INTTYPES_PRI.
88212
88213 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
88214
88215         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
88216
88217         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
88218         the configuration hassle isn't worth it.
88219         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
88220         (LONGEST_MODIFIER, PRIuMAX): Remove.
88221
88222 2005-05-27  Bruno Haible  <bruno@clisp.org>
88223
88224         * lib/getlogin_r.h: Remove second include of <stddef.h>.
88225
88226 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
88227
88228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
88229         _POSIX_PTHREAD_SEMANTICS for Solaris.
88230
88231 2005-05-25  Derek Price  <derek@ximbiot.com>
88232
88233         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
88234
88235 2005-05-25  Derek Price  <derek@ximbiot.com>
88236             Paul Eggert  <eggert@cs.ucla.edu>
88237
88238         * modules/getlogin_r, m4/getlogin_r.m4: New files.
88239         * lib/getlogin_r.c, getlogin_r.h: New files.
88240
88241 2005-05-25  Bruno Haible  <bruno@clisp.org>
88242             Derek Price  <derek@ximbiot.com>
88243
88244         * lib/getlogin_r.h: Simplify API documentation.
88245
88246 2005-05-23  Derek Price  <derek@ximbiot.com>
88247
88248         * modules/minmax (Files): Add m4/minmax.m4.
88249         (configure.ac): Add gl_MINMAX.
88250
88251 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
88252
88253         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
88254         so that unistd-safer.h (GPL'ed code) need not be included.
88255
88256 2005-05-22  Bruno Haible  <bruno@clisp.org>
88257
88258         * m4/minmax.m4: New file.
88259         Based on a patch by Derek Price <derek@ximbiot.com>.
88260
88261 2005-05-22  Bruno Haible  <bruno@clisp.org>
88262
88263         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
88264         (INT64_MIN): Fix definition.
88265         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
88266
88267         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
88268         NEED_SIGNED_INT_TYPES.
88269
88270         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
88271         HAVE_SYSTEM_INTTYPES.
88272
88273 2005-05-22  Bruno Haible  <bruno@clisp.org>
88274
88275         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
88276         Also include <sys/param.h> if it defines MIN, MAX.
88277         Based on a patch by Derek Price <derek@ximbiot.com>.
88278
88279 2005-05-21  Jim Meyering  <jim@meyering.net>
88280
88281         * modules/fts (Files): Add m4/inttypes-pri.m4.
88282         (Depends-on): Add lstat and remove gettext.  Alphabetize.
88283
88284 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88285
88286         New fts module.
88287         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
88288         (setup_dir, free_dir): New functions.
88289         (enter_dir, leave_dir): Define trivial
88290         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
88291         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
88292         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
88293         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
88294         Move to fts-cycle.c.
88295         (fts_open): Use setup_dir.
88296         (fts_close): Use free_dir.
88297         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
88298         This adds a label and some gotos, but the alternatives were messier.
88299         Check for memory allocation failure when entering a dir.
88300         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
88301         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
88302         (FTS): New member fts_cycle, that is a union that contains the
88303         old active_dir_ht and cycle_state.  All uses changed to mention
88304         fts_cycle.ht and fts_cycle.state.
88305         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
88306         fts.c, with the following changes:
88307         (setup_dir, free_dir): New functions.
88308         (enter_dir): Now returns bool.  Return true if successful, false
88309         if memory exhausted.  All callers changed.
88310         Do not bother partly cleaning up on
88311         memory allocation failure; that is free_dir's job.
88312         However, free ad if hash_insert fails, to avoid memory leak.
88313         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
88314         fts->fts_options to see which union member to use.
88315
88316 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88317
88318         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
88319         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
88320
88321 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88322
88323         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
88324
88325 2005-05-20  Jim Meyering  <jim@meyering.net>
88326
88327         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
88328         Now a macro, to pacify GCC.
88329
88330 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88331
88332         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
88333         of -1.
88334
88335 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
88336
88337         * lib/chown.c (rpl_chown): Return -1 on failure.
88338
88339 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88340
88341         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
88342         Don't check for stddef.h.
88343         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
88344         don't use its results.
88345         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
88346         since we include them unconditionally.  Don't require
88347         AM_STDBOOL_H, since stdbool is a prerequisite.
88348         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
88349         since we assume C89 or better.
88350         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
88351         as we don't use their results.
88352         Don't check for fchdir, memmove, memset, strrchr, as we use
88353         them unconditionally.
88354         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
88355         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
88356
88357 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
88358
88359         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
88360         Include <stddef.h> unconditionally, since we assume C89 now.
88361         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
88362         * lib/fts.c: Include fts_.h first, to check interface.
88363         Do not include intprops.h; no longer needed.
88364         Include cycle-check.h and hash.h, since fts_.h no longer does.
88365         Remove unnecessary casts of closedir to void.
88366         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
88367         decide whether to decrement nlinks.
88368         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
88369         (FTS): Use struct hash_table * instead of Hash_table, so that
88370         we no longer need to include hash.h here.
88371
88372 2005-05-18  Jim Meyering  <jim@meyering.net>
88373
88374         * modules/dirfd (License): Change to LGPL.  Most of the code
88375         is already in the public domain.
88376
88377 2005-05-18  Jim Meyering  <jim@meyering.net>
88378
88379         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
88380         Reported by Yoann Vandoorselaere.
88381
88382 2005-05-17  Jim Meyering  <jim@meyering.net>
88383
88384         * m4/fts.m4: New file, from coreutils.
88385
88386 2005-05-17  Jim Meyering  <jim@meyering.net>
88387
88388         * lib/fts.c, lib/fts_.h: New files, from coreutils.
88389
88390 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88391
88392         Sync from coreutils.
88393         * m4/unlinkdir.m4: New file.
88394
88395 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88396
88397         Sync from coreutils.
88398         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
88399         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
88400         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
88401         White space changes only.
88402         * lib/makepath.c (make_path): Port to hosts where leading "//" is
88403         special.
88404         * lib/yesno.c: Include getline.h, not ctype.h.
88405         (yesno): Don't remove leading white space; POSIX doesn't allow it.
88406         Use getline to remove arbitrary restriction on response length.
88407
88408 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
88409
88410         * config/srclist-update: Spell out "Street" in FSF postal
88411         mail address; this is the style the FSF seems to prefer.
88412
88413         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
88414         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
88415         this updates FSF postal mail address.
88416
88417         Sync from coreutils.
88418         * modules/unlinkdir: New file.
88419         * modules/yesno (Depends-on): Add getline.
88420         * MODULES.html.sh (File system functions): Add unlinkdir.
88421
88422 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88423
88424         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
88425         lib/strsep.h:
88426         Change the initial comment to refer to GPL, not LGPL.
88427         gnulib-tool will change it to LGPL as needed.
88428
88429         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
88430         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
88431         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
88432         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
88433         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
88434         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
88435         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
88436         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
88437         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
88438         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
88439         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
88440         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
88441         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
88442         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
88443         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
88444         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
88445         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
88446         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
88447         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
88448         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
88449         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
88450         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
88451         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
88452         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
88453         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
88454         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
88455         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
88456         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
88457         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
88458         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
88459         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
88460         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
88461         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
88462         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
88463         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
88464         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
88465         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
88466         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
88467         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
88468         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
88469         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
88470         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
88471         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
88472         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
88473         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
88474         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
88475         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
88476         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
88477         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
88478         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
88479         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88480         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
88481         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
88482         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
88483         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
88484         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
88485         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
88486         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
88487         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
88488         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
88489         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
88490         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
88491         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
88492         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
88493         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
88494         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
88495         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
88496         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
88497         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
88498         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
88499         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
88500         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
88501         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
88502         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
88503         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
88504         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
88505         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
88506         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
88507         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
88508         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
88509         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
88510         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
88511         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
88512         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
88513         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
88514         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
88515         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
88516         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
88517         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
88518         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
88519         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
88520         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
88521         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
88522         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
88523         lib/yesno.c, lib/yesno.h:
88524         Update FSF postal mail address.
88525
88526 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88527
88528         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
88529         tests/test-memmem.c, tests/test-stpncpy.c:
88530         Update FSF postal mail address.
88531
88532 2005-05-13  Bruno Haible  <bruno@clisp.org>
88533
88534         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
88535         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
88536         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
88537         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
88538         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
88539         Add support for 64-bit integers in the MSVC compiler.
88540
88541 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88542
88543         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
88544
88545 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
88546
88547         * gnulib-tool (func_import): Sort and uniquify recommended includes.
88548
88549 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
88550
88551         * doc/getdate.texi (General date syntax): Don't say that date
88552         date --iso-8601=ns generates acceptable dates; it doesn't yet.
88553         Problem reported by Nic Ferrier.
88554
88555 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88556
88557         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
88558         specified in ai_socktype. Fix invalid ai_protocol
88559         check. ai_protocol is usually set to 0 or depending on
88560         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
88561         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
88562         ai_socktype / ai_protocol in the returned addrinfo structure.
88563
88564 2005-05-10  Simon Josefsson  <jas@extundo.com>
88565
88566         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
88567         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88568
88569 2005-05-10  Karl Berry  <karl@gnu.org>
88570
88571         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
88572         (from http://www.gnu.org/licenses).
88573         * doc/COPYING.LIB: also rename to COPYING.LESSER.
88574         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
88575         fdl.texi suffices.
88576
88577 2005-05-10  Karl Berry  <karl@gnu.org>
88578
88579         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
88580         (COPYING.DOC): remove.
88581
88582         * config/srclist-update: new FSF address.
88583
88584 2005-05-10  Derek Price  <derek@ximbiot.com>
88585
88586         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
88587         possible.
88588
88589 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88590             Bruno Haible  <bruno@clisp.org>
88591
88592         * modules/inet_ntop: New file.
88593         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88594         inet_ntop.
88595
88596 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88597             Bruno Haible  <bruno@clisp.org>
88598
88599         * m4/inet_ntop.m4: New file.
88600
88601 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
88602             Bruno Haible  <bruno@clisp.org>
88603
88604         * lib/inet_ntop.h: New file.
88605         * lib/inet_ntop.c: New file, from glibc with modifications.
88606
88607 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
88608
88609         * modules/time_r (License): Change to LGPL.
88610         * modules/extensions (License): Change to LGPL.  Actually,
88611         the license is more permissive than that, but currently gnulib-tool
88612         doesn't know how to handle more-permissive licenses.
88613
88614         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
88615         Problem reported by Dave Love.
88616
88617 2005-05-08  Jim Meyering  <jim@meyering.net>
88618
88619         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
88620         blank.
88621
88622 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88623
88624         * modules/argmatch (Depends-on): Add stdbool.
88625         * modules/backupfile (Depends-on): Likewise.
88626         * modules/chdir-long (Depends-on): Likewise.
88627         * modules/closeout (Depends-on): Likewise.
88628         * modules/cycle-check (Depends-on): Likewise.
88629         * modules/dirname (Depends-on): Likewise.
88630         * modules/fnmatch (Depends-on): Likewise.
88631         * modules/fsusage (Depends-on): Likewise.
88632         * modules/fwriteerror (Depends-on): Likewise.
88633         * modules/getcwd (Depends-on): Likewise.
88634         * modules/getloadavg (Depends-on): Likewise.
88635         * modules/hard-locale (Depends-on): Likewise.
88636         * modules/makepath (Depends-on): Likewise.
88637         * modules/mountlist (Depends-on): Likewise.
88638         * modules/nanosleep (Depends-on): Likewise.
88639         * modules/posixtm (Depends-on): Likewise.
88640         * modules/quotearg (Depends-on): Likewise.
88641         * modules/readtokens (Depends-on): Likewise.
88642         * modules/readtokens0 (Depends-on): Likewise.
88643         * modules/readutmp (Depends-on): Likewise.
88644         * modules/save-cwd (Depends-on): Likewise.
88645         * modules/strftime (Depends-on): Likewise.
88646         * modules/userspec (Depends-on): Likewise.
88647         * modules/utimecmp (Depends-on): Likewise.
88648         * modules/xgetcwd (Depends-on): Likewise.
88649         * modules/xnanosleep (Depends-on): Likewise.
88650         * modules/xstrtod (Depends-on): Likewise.
88651         * modules/yesno (Depends-on): Likewise.
88652
88653 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
88654
88655         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
88656         needless checks.
88657
88658 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88659
88660         Merge from coreutils.  Among other things,
88661         add bulletproofing for cases where stdin, stdout, or stderr are closed.
88662         * lib/fd-safer.c: New file.
88663         * lib/fcntl-safer.h, open-safer.c: Remove.
88664         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
88665         * lib/dup-safer.c: Include unistd-safer.h first.
88666         Don't include errno.h.
88667         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
88668         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
88669         * lib/file-type.c: Rely on file-type.h change.
88670         * lib/getloadavg.c: Include unistd-safer.h.
88671         (getloadavg): Use safer open.
88672         * lib/getusershell.c: Include "stdio-safer.h".
88673         (getusershell): Use safer fopen.
88674         * lib/long-options.c (long_options): Use NULL rather than 0.
88675         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
88676         'free'.
88677         * lib/modechange.c: Likewise.
88678         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
88679         (MODE_DONE): New constant.
88680         (struct mode_change): Remove 'next' member.
88681         (make_node_op_equals): New function; like the old one of the
88682         same name, except it allocates an array.
88683         (mode_compile, mode_create_from_ref): Use it.
88684         (mode_compile): Allocate result as an array, not a linked list.
88685         Parse octal string ourself, so that we catch mistakes like "+0".
88686         (mode_adjust): Arg is an array, not a linked list.
88687         * lib/modechange.c: Include stat-macros.h, xalloc.h.
88688         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
88689         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
88690         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
88691         Remove.  This is now stat-macros.h's job.
88692         (talloc): Remove.  All callers replaced by xalloc, so that
88693         our invokers don't have to worry about reporting memory failures.
88694         (make_node_op_equals): Remove.
88695         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88696         New constants.
88697         (struct mode_change): Moved here from modechange.h.
88698         (mode_append_entry): Remove.
88699         (mode_compile): Remove MASKED_OPS arg, since it encouraged
88700         apps to have incorrect behavior.  Use simpler algorithm for head
88701         and tail.  Don't futz with umask; that's now the job of mode_adjust.
88702         Detect more invalid usages rather than having somewhat-random behavior.
88703         Don't insert an "a=" action, as that leads to incorrect behavior.
88704         (mode_compile, mode_create_from_ref): Return NULL on error instead
88705         of an enum, since now there's only one way to have an error.  All
88706         callers changed.
88707         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
88708         at the correct time.  Simplify calculation of "+u" and its ilk.
88709         Don't mishandle "+X".
88710         (mode_free): Remove "register" and localize decls.
88711         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
88712         (struct mode_change): Move to modechange.c; callers don't
88713         need to see this stuff.
88714         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
88715         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
88716         (mode_change, mode_adjust): Reflect the new signatures noted above.
88717         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
88718         that might redefine system include files.
88719         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
88720         (my_usleep): Use NULL rather than (void *) 0.
88721         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
88722         Use siginterrupt to specify that system calls should be interrupted.
88723         (rpl_nanosleep): Move initialization of suspended closer to call of
88724         my_usleep.
88725         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
88726         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
88727         (desirable_utmp_entry): New function.
88728         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
88729         using x2nrealloc, to simplify logic.
88730         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
88731         size calculation.  Do not assume utmp file is a regular file.
88732         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
88733         (READ_UTMP_CHECK_PIDS): New constant.
88734         * lib/save-cwd.c: Include unistd-safer.h.
88735         (save_cwd): Use fd_safer.
88736         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
88737         [!_LIBC] Include "stat-macros.h" instead.
88738         * lib/unistd-safer.h (fd_safer): New decl.
88739
88740 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88741
88742         * modules/getloadavg (Depends-on): Add unistd-safer.
88743         * modules/getusershell (Depends-on): Add stdio-safer.
88744         * modules/lstat (Depends-on): Remove xalloc.
88745         * modules/mkstemp (Depends-on): Add stat-macros.
88746         * modules/modechange (Depends-on): Remove xstrtol.
88747         Add stat-macros, xalloc.
88748         * modules/save-cwd (Depends-on): Add unistd-safer.
88749         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
88750         * modules/unistd-safer (Files): Add lib/fd-safer.c
88751         (Makefile.am): Remove lib_SOURCES.
88752
88753         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
88754         Remove fcntl-safer; unistd-safer supersedes it.
88755
88756 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88757
88758         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
88759         AC_HEADER_STAT.
88760         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
88761         (gl_PREREQ_CHOWN): Remove.
88762         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
88763         it.  Don't require AC_HEADER_STAT.
88764         (gl_PREREQ_LSTAT): Remove.
88765         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
88766         Don't require AC_HEADER_STAT.
88767         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
88768         (gl_PREREQ_RMDIR): Remove.
88769         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
88770         mention stat-macros.h or AC_HEADER_STAT, since we'll make
88771         the stat-macros module a prerequisite.
88772         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
88773         * m4/filemode.m4 (gl_FILEMODE): Likewise.
88774         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
88775         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
88776         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
88777         variable names.
88778         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
88779         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
88780         variable prefixes.
88781         * m4/fcntl-safer.m4: Remove.
88782         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
88783         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
88784         Invoke gl_PREREQ_FD_SAFER.
88785         (gl_PREREQ_FD_SAFER): New macro.
88786         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
88787         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
88788         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
88789         Remove duplicate call to AC_LIBOBJ(readutmp).
88790         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
88791
88792         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
88793         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
88794
88795 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
88796
88797         * MODULES.html.sh (Misc): Add byteswap.
88798
88799 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88800
88801         * modules/getcwd (Depends-on): Add extensions.
88802         * modules/openat (Depends-on): Likewise.
88803
88804 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88805
88806         * modules/byteswap: New file.
88807
88808 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88809
88810         * m4/byteswap.m4: New file.
88811
88812 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
88813
88814         * lib/byteswap_.h: New file.
88815
88816 2005-04-25  Karl Berry  <karl@gnu.org>
88817
88818         * m4/gettext.m4: Update from GNU gettext 0.14.4.
88819
88820 2005-04-25  Albert Chin  <china@thewrittenword.com>
88821
88822         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
88823         Toolkit C bug.
88824
88825 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
88826
88827         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
88828         (func_ln_if_changed): Remove forcibly for no error message
88829         in case file does not exist.
88830
88831 2005-04-19  Simon Josefsson  <jas@extundo.com>
88832
88833         * gnulib-tool (Options): Make --symlink mean --symbolic.
88834
88835 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
88836
88837         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
88838
88839 2005-04-16  Simon Josefsson  <jas@extundo.com>
88840
88841         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
88842
88843 2005-04-15  Simon Josefsson  <jas@extundo.com>
88844
88845         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
88846
88847 2005-04-15  Simon Josefsson  <jas@extundo.com>
88848
88849         * gnulib-tool: Rename --symlink to --symbolic.
88850
88851 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
88852
88853         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
88854         symbolic links to files instead of copying/moving.  Add --aux-dir,
88855         specifying directory relative --dir where auxiliary build tools
88856         are placed.
88857
88858 2005-04-14  Bruno Haible  <bruno@clisp.org>
88859
88860         * modules/allocsa (License): Change to LGPL.
88861         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
88862
88863 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
88864
88865         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
88866         that "UTC +1 second" continues to work.  Problem reported
88867         by Dmitry V. Levin.
88868         (relunit_snumber): New rule.
88869         (relunit): Use it.
88870
88871 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
88872
88873         * lib/getdate.y (universal_time_zone_table): New constant.
88874         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
88875         universal_time_zone_table.
88876         (lookup_zone): Prefer universal_time_zone_table to
88877         local_time_zone_table, so that "GMT" time stamps are allowed in
88878         London during the summer.  Problem reported by Ian Abbott.
88879
88880 2005-04-12  Jim Meyering  <jim@meyering.net>
88881
88882         * lib/human.c (humblock): Set *options even when returning due to
88883         xstrtoumax conversion failure.  Thanks to a used-uninitialized
88884         warning from gcc-4.
88885
88886 2005-04-09  Jim Meyering  <jim@meyering.net>
88887
88888         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
88889         -Wuninitialized: initialize tm0.tm_year.
88890
88891 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
88892
88893         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
88894         count, since there's no maximum.  All uses changed.
88895         Add member dsts_seen.
88896         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
88897         not being INT_MAX.
88898         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
88899         Use pc_rels_seen to decide whether a date is absolute.
88900
88901         * lib/getdate.y (number): Don't overwrite year.
88902         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
88903         check.
88904
88905 2005-04-02  Simon Josefsson  <jas@extundo.com>
88906
88907         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
88908         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
88909
88910 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
88911
88912         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
88913         where no absolute path name can be longer than PATH_MAX.
88914
88915 2005-03-27  Jim Meyering  <jim@meyering.net>
88916
88917         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
88918
88919 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
88920
88921         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
88922         "one's complement" -> "ones' complement" in comment, as per Knuth.
88923         "value of type" -> "type or expression" in comment.
88924         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
88925
88926 2005-03-26  Jim Meyering  <jim@meyering.net>
88927
88928         Comment nits.
88929         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
88930         Correct typos: s/or/of/.
88931
88932 2005-03-26  Jim Meyering  <jim@meyering.net>
88933
88934         * modules/check-include-files: Move to ../ and rename to...
88935         * check-module: ...this.
88936
88937 2005-03-25  Jim Meyering  <jim@meyering.net>
88938
88939         * modules/xvasprintf (Files): Add xalloc.h.
88940
88941 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
88942
88943         * modules/gettext (Files): config/config.rpath ->
88944         build-aux/config.rpath
88945         * modules/iconv (Files): Likewise.
88946         Problem reported by Oskar Liljeblad.
88947
88948 2005-03-23  Jim Meyering  <jim@meyering.net>
88949
88950         * modules/check-include-files: New script to check for
88951         missing dependencies, multiple includes, etc.
88952
88953         * modules/c-strtold (Depends-on): Add xalloc.
88954         * modules/c-strtod (Depends-on): Add xalloc.
88955         * modules/hash (Depends-on): Add xalloc.
88956         (Files): Remove lib/xalloc.h.
88957
88958         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
88959         * modules/userspec (Files): Add lib/inttostr.h.
88960
88961 2005-03-23  Jim Meyering  <jim@meyering.net>
88962
88963         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
88964
88965 2005-03-22  Jim Meyering  <jim@meyering.net>
88966
88967         * modules/stat-macros: New module.
88968         * modules/canonicalize, modules/euidaccess, modules/file-type,
88969         * modules/filemode, modules/lchown, modules/makepath,
88970         * modules/rmdir, modules/stat: Depend on new stat-macros module
88971         rather than listing lib/stat-macros.h manually.
88972         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
88973
88974 2005-03-22  Jim Meyering  <jim@meyering.net>
88975
88976         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
88977
88978 2005-03-22  Bruno Haible  <bruno@clisp.org>
88979
88980         * config/srclist.txt: Replace target directory 'config' with
88981         'build-aux'.
88982         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
88983         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
88984         ../build-aux/.
88985
88986 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
88987
88988         * modules/chdir-long (Depends-on): Add mempcpy.
88989
88990         * modules/acl, modules/backupfile, modules/c-strtod,
88991         modules/c-strtold, modules/canon-host, modules/canonicalize,
88992         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
88993         modules/exclude, modules/exitfail, modules/file-type,
88994         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
88995         modules/getdate, modules/getline, modules/getpagesize,
88996         modules/getpass, modules/getugroups, modules/group-member,
88997         modules/hard-locale, modules/hash, modules/human, modules/idcache,
88998         modules/inttostr, modules/long-options, modules/makepath,
88999         modules/md5, modules/memcasecmp, modules/memcoll,
89000         modules/modechange, modules/mountlist, modules/path-concat,
89001         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
89002         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
89003         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
89004         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
89005         modules/strftime, modules/strndup, modules/strverscmp,
89006         modules/timespec, modules/unlocked-io, modules/userspec,
89007         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
89008         modules/yesno:
89009         Remove lib_SOURCES line from Makefile.am section, as this is now
89010         done automatically by the corresponding Autoconf macro.
89011
89012 2005-03-21  Jim Meyering  <jim@meyering.net>
89013
89014         Changes imported from coreutils.
89015
89016         * lib/cycle-check.c: Don't include xalloc.h.
89017
89018         * lib/path-concat.c: Don't include assert.h.
89019         (path_concat): Remove assertion that would have triggered
89020         for ABASE starting with more than one slash.
89021         Reported by Andreas Schwab.
89022
89023         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
89024         properly when ABASE is an absolute file name.
89025         Correct the description of this function.
89026         Include <assert.h>.
89027         Add an assertion and a test driver.
89028         This fixes a bug introduced on 2004-07-02.
89029         Andreas Schwab reported the resulting failure of cp --parents:
89030         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
89031
89032 2005-03-21  Jim Meyering  <jim@meyering.net>
89033
89034         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
89035         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
89036
89037 2005-03-21  Jim Meyering  <jim@meyering.net>
89038         and  Paul Eggert  <eggert@cs.ucla.edu>
89039
89040         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
89041         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
89042         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
89043         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
89044         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
89045         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
89046         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
89047         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
89048         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
89049         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
89050         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
89051         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
89052         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
89053         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
89054         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
89055         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
89056         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
89057         for these modules.
89058
89059 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
89060
89061         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
89062         (which shouldn't happen), generate nothing instead of returning 0
89063         immediately, so that nstrftime (NULL, ...) doesn't return 0.
89064
89065 2005-03-16  Bruno Haible  <bruno@clisp.org>
89066
89067         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
89068         HAVE_LONGLONG_64BIT.
89069
89070 2005-03-16  Bruno Haible  <bruno@clisp.org>
89071
89072         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
89073         HAVE_LONGLONG_64BIT.
89074
89075 2005-03-16  Bruno Haible  <bruno@clisp.org>
89076
89077         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
89078         HAVE_LONGLONG_64BIT.
89079
89080 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
89081
89082         * lib/strftime.c (my_strftime): Prepend space to format so that we can
89083         reliably distinguish strftime failure from empty output on POSIX
89084         hosts.
89085
89086 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
89087
89088         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
89089         (iconv_string): Don't guess a size-zero buffer, as that might cause
89090         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
89091         result would be 'too large', where 'too large' is (heuristically)
89092         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
89093         overflow concerns.  This will prevent some unwanted malloc failures
89094         when the inputs are very large.
89095
89096 2005-03-15  Karl Berry  <karl@gnu.org>
89097
89098         * config/srclist.txt (config.rpath): from gettext.
89099         * config/config.rpath: update.
89100
89101 2005-03-15  Bruno Haible  <bruno@clisp.org>
89102
89103         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
89104         to 'negate'.
89105
89106         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
89107         variable.
89108
89109         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
89110         results.
89111
89112 2005-03-14  Simon Josefsson  <jas@extundo.com>
89113
89114         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
89115         <fx@gnu.org>.
89116
89117 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
89118
89119         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
89120         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
89121         intprops.h.
89122         * lib/strtol.c: Likewise.
89123
89124 2005-03-14  Jim Meyering  <jim@meyering.net>
89125
89126         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
89127         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
89128         to be nonzero so that we (and caller) can detect the difference
89129         between a valid zero-length expansion and an error return, even
89130         when the underlying strftime fails before writing anything into
89131         that location.
89132
89133 2005-03-14  Bruno Haible  <bruno@clisp.org>
89134
89135         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
89136         Update from GNU gettext 0.14.3.
89137
89138 2005-03-10  Jim Meyering  <jim@meyering.net>
89139
89140         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
89141
89142 2005-03-10  Jim Meyering  <jim@meyering.net>
89143
89144         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
89145         so that this module works on systems without fchdir.
89146
89147 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
89148
89149         Factor int-properties macros into a single file, except for
89150         glibc-related files.
89151         * lib/intprops.h: New file.
89152         * lib/getloadavg.c: Include it instead of limits.h.
89153         (INT_STRLEN_BOUND): Remove.
89154         * lib/human.c: Include intprops.h.
89155         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
89156         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
89157         302/1000.
89158         * lib/inttostr.h: Include intprops.h instead of limits.h.
89159         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
89160         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
89161         for consistency with intprops.h.
89162         (time_t_is_integer, twos_complement_arithmetic): Use them.
89163         * lib/sig2str.h: Include <signal.h>, intprops.h.
89164         (INT_STRLEN_BOUND): Remove.
89165         * lib/strftime.c (TYPE_SIGNED): Remove.
89166         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
89167         * lib/strtol.c: Adjust comments to match intprops.h.
89168         * lib/userspec.c: Include intprops.h.
89169         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
89170         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
89171         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
89172         instead of rolling our own expressions.
89173         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
89174
89175         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
89176         instead of int.
89177         (my_strftime): Do not mishandle years close to INT_MAX, by doing
89178         the right thing even if adding 1900 would overflow.  Similarly
89179         for tm_mon + 1 and tm_yday + 1.
89180         Make %Y always equivalent to %C%y, and similarly for %G and %g.
89181         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
89182         (DO_SIGNED_NUMBER): New macro.
89183         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
89184
89185 2005-03-07  Bruno Haible  <bruno@clisp.org>
89186
89187         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
89188
89189 2005-03-07  Bruno Haible  <bruno@clisp.org>
89190
89191         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
89192
89193 2005-03-04  Derek R. Price  <derek@ximbiot.com>
89194
89195         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
89196         (func_import): Only replace files via --import when they have actually
89197         changed.
89198
89199 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89200
89201         * m4/mmap-anon.m4: New file.
89202         * m4/pagealign_alloc.m4: New file.
89203
89204 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89205             Bruno Haible  <bruno@clisp.org>
89206
89207         * modules/pagealign_alloc: New file.
89208         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
89209
89210 2005-03-03  Derek R. Price  <derek@ximbiot.com>
89211             Bruno Haible  <bruno@clisp.org>
89212
89213         * lib/pagealign_alloc.h: New file.
89214         * lib/pagealign_alloc.c: New file.
89215
89216 2005-03-03  Bruno Haible  <bruno@clisp.org>
89217
89218         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
89219         Use an all-permissive copyright notice, recommended by RMS.
89220
89221 2005-03-02  Bruno Haible  <bruno@clisp.org>
89222
89223         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
89224         of AIX, the replacement has to be done only after <string.h> is
89225         included, therefore not in config.h. stpncpy.h does the replacement,
89226         and stpncpy.c uses it.
89227
89228 2005-03-02  Bruno Haible  <bruno@clisp.org>
89229
89230         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
89231         stpncpy.c uses it.
89232
89233 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89234
89235         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
89236         The workaround isn't strictly needed for POSIX conformance, and
89237         it's too much of a pain to configure and maintain.  We'll ask
89238         people to fix their kernels instead.
89239         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
89240         (NANOSLEEP_BUG_WORKAROUND): Remove.
89241         (xnanosleep): Remove the workaround.
89242
89243 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89244
89245         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
89246         Reported by Derek Price.
89247         (Include): Add "timespec.h".
89248
89249         * modules/xnanosleep (Depends-on): Remove gethrxtime.
89250
89251 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
89252
89253         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
89254         to detect nanosleep bug.
89255
89256 2005-03-01  Bruno Haible  <bruno@clisp.org>
89257
89258         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
89259
89260 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
89261
89262         * modules/gethrxtime: New file.
89263         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
89264         (Depends-on): Add gethrxtime.
89265         (configure.ac): Add gl_XNANOSLEEP.
89266         (Makefile.am): Remove lib_SOURCES line.
89267
89268 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89269
89270         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
89271         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
89272
89273 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
89274
89275         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
89276         * lib/timespec.h (gettime): Return void, since it always
89277         succeeds now.  All uses changed.
89278         * lib/gettime.c (gettime): Likewise.
89279         [HAVE_NANOTIME]: Prefer nanotime.
89280         Assume gettimeofday succeeds, as POSIX requires.
89281         Assime time () succeeds, since other code already does.
89282         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
89283         (timespec_subtract): Remove.
89284         (NANOSLEEP_BUG_WORKAROUND): New constant.
89285         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
89286         things considerably.  Use it only on GNU/Linux hosts, since the
89287         workaround shouldn't be needed elsewhere.
89288
89289 2005-02-24  Bruno Haible  <bruno@clisp.org>
89290
89291         * modules/gettext (Files): Add m4/glibc2.m4.
89292
89293 2005-02-24  Bruno Haible  <bruno@clisp.org>
89294
89295         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
89296         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
89297         * m4/progtest.m4:
89298         Update from GNU gettext 0.14.2.
89299         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
89300
89301 2005-02-24  Bruno Haible  <bruno@clisp.org>
89302
89303         * lib/localcharset.c: Update from GNU gettext 0.14.2.
89304         * lib/config.charset: Update from GNU gettext 0.14.2.
89305
89306 2005-02-24  Bruno Haible  <bruno@clisp.org>
89307
89308         * lib/gettext.h: Update from GNU gettext 0.14.2.
89309
89310 2005-02-23  Simon Josefsson  <jas@extundo.com>
89311
89312         * m4/iconvme.m4: New file.
89313
89314 2005-02-23  Jim Meyering  <jim@meyering.net>
89315
89316         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
89317         change.
89318         Thanks to Bruno Haible for catching it.
89319
89320 2005-02-22  Simon Josefsson  <jas@extundo.com>
89321
89322         * modules/iconvme: New file.
89323
89324         * MODULES.html.sh: Add iconvme.
89325
89326 2005-02-22  Simon Josefsson  <jas@extundo.com>
89327
89328         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
89329
89330 2005-02-22  Simon Josefsson  <jas@extundo.com>
89331
89332         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
89333
89334 2005-02-22  Jim Meyering  <jim@meyering.net>
89335
89336         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
89337         s/ifndef/ifdef/.
89338
89339 2005-02-20  Neil Conway  <neilc@samurai.com>
89340
89341         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
89342         returned by OSX/Darwin if the specified buffer is not large
89343         enough for the hostname.
89344
89345 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89346
89347         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
89348         pass it to _help, otherwise the latter coredumps trying to
89349         dereference state.root_argp.
89350
89351 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89352
89353         * modules/chdir-long (Depends-on): Add memrchr.
89354         * modules/memrchr (Files): Add lib/memrchr.h.
89355         (Include): "memrchr.h".
89356
89357 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89358
89359         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
89360
89361 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
89362
89363         * lib/memrchr.h: New file.
89364         * lib/chdir-long.c: Include it.
89365         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
89366         Don't bother including stddef.h.
89367
89368 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
89369
89370         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
89371         inclusion.
89372         Include <sys/types.h>, for dev_t.
89373         (ME_DUMMY, ME_REMOTE): Move from here....
89374         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
89375         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
89376         Dmitry V. Levin.
89377         Include mountlist.h first, to test the interface.
89378
89379 2005-01-29  Bruno Haible  <bruno@clisp.org>
89380
89381         * lib/progname.c (program_name): Initialize.
89382         Needed when linking statically on MacOS X.
89383
89384 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89385
89386         Sync from coreutils.
89387         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
89388         (Depends-on): Add c-strtod.
89389         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
89390
89391 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
89392
89393         Sync from coreutils.
89394         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
89395
89396         Remove files that are specific to coreutils.
89397         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
89398
89399 2005-01-28  Bruno Haible  <bruno@clisp.org>
89400
89401         * modules/javacomp: New file.
89402         * MODULES.html.sh (Java): Add javacomp.
89403
89404 2005-01-28  Bruno Haible  <bruno@clisp.org>
89405
89406         * m4/javacomp.m4: New file, from GNU gettext.
89407
89408 2005-01-28  Bruno Haible  <bruno@clisp.org>
89409
89410         * lib/javacomp.sh.in: New file, from GNU gettext.
89411         * lib/javacomp.h: New file, from GNU gettext.
89412         * lib/javacomp.c: New file, from GNU gettext.
89413
89414 2005-01-26  Simon Josefsson  <jas@extundo.com>
89415
89416         * lib/gai_strerror.c: Use GPL in header.
89417
89418 2005-01-26  Bruno Haible  <bruno@clisp.org>
89419
89420         * modules/javaexec: New file.
89421         * MODULES.html.sh (Java): Add javaexec.
89422
89423 2005-01-26  Bruno Haible  <bruno@clisp.org>
89424
89425         * m4/javaexec.m4: New file, from GNU gettext.
89426
89427 2005-01-26  Bruno Haible  <bruno@clisp.org>
89428
89429         * lib/javaexec.sh.in: New file, from GNU gettext.
89430         * lib/javaexec.h: New file, from GNU gettext.
89431         * lib/javaexec.c: New file, from GNU gettext.
89432
89433 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89434
89435         * modules/lchown (Depends-on): Remove lchown.h
89436
89437 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89438
89439         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
89440         must be defined if the header file was not found, in order
89441         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
89442
89443 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89444
89445         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
89446         initializers for struct pentry_state.
89447         (__argp_error): Check return value of __asprintf
89448         (__argp_failure): Translate error message
89449
89450         * lib/argp-parse.c: Removed braces around the expansion of N_()
89451
89452 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
89453
89454         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
89455         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
89456         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
89457         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
89458         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
89459         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
89460         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
89461         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
89462         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
89463         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
89464         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
89465         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
89466         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
89467         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
89468         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
89469         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
89470         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
89471         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
89472         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
89473         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
89474         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
89475         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
89476         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
89477         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
89478         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
89479         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
89480         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
89481         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
89482         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
89483         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
89484         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
89485         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
89486         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
89487         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
89488         xstrtol.m4, xstrtoumax.m4, yesno.m4:
89489         Use an all-permissive copyright notice, recommended by RMS.
89490
89491 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
89492
89493         * modules/chdir-long (Depends-on): Remove mempcpy.
89494
89495 2005-01-21  Jim Meyering  <jim@meyering.net>
89496
89497         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
89498         same value as for Solaris 9.
89499
89500         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
89501         component length.  This included changing the parameter to be
89502         of type `char *' rather than `char const *'.
89503         * lib/chdir-long.h (chdir_long): Update prototype.
89504
89505         * lib/openat.c (fdopendir, fstatat): New functions.
89506         * lib/openat.h: Include headers required for use of DIR and struct
89507         stat.
89508         [AT_SYMLINK_NOFOLLOW]: Define.
89509         (fdopendir, fstatat): Add prototypes.
89510
89511 2005-01-21  Bruno Haible  <bruno@clisp.org>
89512
89513         * modules/classpath: New file.
89514         * MODULES.html.sh (Java): Add classpath.
89515
89516 2005-01-21  Bruno Haible  <bruno@clisp.org>
89517
89518         * lib/classpath.h: New file, from GNU gettext.
89519         * lib/classpath.c: New file, from GNU gettext.
89520
89521 2005-01-20  Simon Josefsson  <jas@extundo.com>
89522
89523         * modules/version-etc-fsf: New file.
89524
89525 2005-01-20  Simon Josefsson  <jas@extundo.com>
89526
89527         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
89528         * lib/version-etc.c: Remove version_etc_copyright.
89529         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
89530         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
89531
89532 2005-01-20  Simon Josefsson  <jas@extundo.com>
89533
89534         * lib/base64.h (isbase64): Add.
89535
89536         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
89537         using a unsigned prototype, don't inline.
89538         (base64_decode): Use it.
89539
89540 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89541
89542         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
89543         it.
89544
89545 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89546
89547         * lib/save-cwd.c (save_cwd): Remove code to support the case
89548         where fchdir is missing or flaky.
89549
89550 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
89551
89552         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
89553
89554 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
89555
89556         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
89557         AC_LIBSOURCES now does this.
89558         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
89559         with new ullong_max module.
89560
89561 2005-01-19  Bruno Haible  <bruno@clisp.org>
89562
89563         * modules/sh-quote: New file.
89564         * MODULES.html.sh (Executing programs): Add sh-quote.
89565
89566 2005-01-19  Bruno Haible  <bruno@clisp.org>
89567
89568         * lib/sh-quote.h: New file, from GNU gettext.
89569         * lib/sh-quote.c: New file, from GNU gettext.
89570
89571 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89572
89573         Merge from coreutils.
89574         * m4/ullong_max.m4: New file.
89575         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
89576         (gl_MACROS): Assume localeconv exists.
89577
89578 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89579
89580         Merge changes from coreutils, as described below in several
89581         changelogs dated today.
89582
89583         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
89584         (O_DIRECTORY): Remove; not needed here, since "." must be
89585         a directory.  All uses removed.
89586         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
89587         universal on Suns, and we also need to test for IRIX.
89588         Revamp code to use 'if' rather than '#if'.
89589         Avoid unnecessary comparison of cwd->desc to 0.
89590
89591         * lib/utimens.c (futimens): Robustify the previous patch, by checking
89592         for known valid error numbers rather than observed invalid ones.
89593
89594 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
89595
89596         * modules/ullong_max: New file.
89597
89598         * modules/chdir-long, modules/openat: New files.
89599         * modules/save-cwd (Depends-on): Depend on chdir-long.
89600         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
89601
89602 2005-01-18  Jim Meyering  <jim@meyering.net>
89603
89604         Merge from coreutils.
89605         * m4/chdir-long.m4, m4/openat.m4: New files.
89606         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
89607         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
89608         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
89609         is sane and DOES follow symlinks.  Besides, testing 20 different
89610         systems found no broken chown implementations.
89611         Prompted by a change in rsync's copy of this macro.
89612         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
89613
89614         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
89615
89616         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
89617         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
89618         NULL-means-set-to-current-time semantics.
89619         Remove temporary file immediately, rather than waiting
89620         for configure's at-exit trap code to do it.
89621
89622 2005-01-18  Jim Meyering  <jim@meyering.net>
89623
89624         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89625
89626         * lib/utimens.c (futimens): Account for the fact that futimes
89627         can also fail with errno == ENOSYS or errno == ENOENT.
89628         Patch from Dmitry V. Levin.
89629
89630         Change the name of the robust chdir function from chdir to chdir_long.
89631         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
89632         (restore_cwd): Use chdir_long, not chdir.
89633         * lib/chdir-long.c: Renamed from chdir.c.
89634         * lib/chdir-long.h: Renamed from chdir.h.
89635         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
89636         Hurd.
89637
89638 2005-01-18  Bruno Haible  <bruno@clisp.org>
89639
89640         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
89641         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
89642         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
89643         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
89644         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
89645         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
89646         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
89647         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
89648         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
89649         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
89650         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
89651         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
89652         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
89653         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
89654         Use an all-permissive copyright notice, recommended by RMS.
89655
89656 2005-01-18  Bob Proulx  <bob@proulx.com>
89657
89658         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
89659         simplify offsetof() macro construct to avoid compile failure with
89660         native HP-UX 11.0 ANSI C compiler.
89661
89662 2005-01-17  Bruno Haible  <bruno@clisp.org>
89663
89664         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
89665         redundant because stpncpy.m4 takes care of it.
89666
89667 2005-01-17  Bruno Haible  <bruno@clisp.org>
89668
89669         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
89670
89671 2005-01-17  Bruno Haible  <bruno@clisp.org>
89672
89673         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
89674         used.
89675
89676 2005-01-17  Bruno Haible  <bruno@clisp.org>
89677
89678         * lib/fwriteerror.h (fwriteerror): Change specification to include
89679         fclose.
89680         * lib/fwriteerror.c: Include <stdbool.h>.
89681         (fwriteerror): At the end, close the file stream. Record whether
89682         stdout was already closed.
89683
89684 2005-01-17  Bruno Haible  <bruno@clisp.org>
89685
89686         * lib/execute.c (environ): Declare if needed.
89687         * lib/pipe.c (environ): Likewise.
89688         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
89689
89690 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89691
89692         * modules/argp: Depend on vsnprintf
89693
89694 2005-01-10  Jim Meyering  <jim@meyering.net>
89695
89696         * modules/closeout (Depends-on): Add atexit.
89697
89698 2005-01-06  Bruno Haible  <bruno@clisp.org>
89699
89700         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
89701
89702 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
89703
89704         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
89705         definitions to be after all include files, to avoid collisions.
89706         Problem reported by Bob Proulx.
89707
89708 2005-01-04  Jim Meyering  <jim@meyering.net>
89709
89710         Changes imported from coreutils.
89711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
89712         as the mkstemp template, use a temporary directory and an
89713         8.3-friendly template to avoid trouble on systems like DJGPP.
89714         Reported by Juan M. Guerrero via Stepan Kasal.
89715         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
89716         close. Remove the temporary directory right away, rather than waiting
89717         for configure's at-exit trap code to do it.
89718         Suggestion from Stepan Kasal.
89719
89720 2005-01-01  Simon Josefsson  <jas@extundo.com>
89721
89722         * gnulib-tool: Print #include directives when --import'ing.
89723
89724 2004-12-28  Simon Josefsson  <jas@extundo.com>
89725
89726         * tests/test-base64.c: Include required header files.  Remove
89727         unused variables.
89728
89729 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89730
89731         * modules/error (Depends-on): Remove gettext.
89732
89733 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
89734
89735         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
89736         not needed.  This removes a dependency on the gettext module.
89737         [defined _LIBC]: Do not include <libintl.h>; not needed.
89738
89739 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89740
89741         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
89742         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
89743
89744 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
89745
89746         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
89747         HAVE_DECL_STRTOLD.
89748
89749 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89750
89751         * modules/getdate (Depends-on): Remove alloca-opt.
89752
89753 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89754
89755         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
89756
89757 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
89758
89759         * lib/argp-parse.c: Include <stddef.h>.
89760         (alignof, alignto): New macros.
89761         (parser_init): Don't assume that void * is aligned sufficiently
89762         for struct option.
89763
89764         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
89765         need to extend the stack.
89766         (YYINITDEPTH): New macro, so that the initial stack isn't overly
89767         large.
89768
89769 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
89770
89771         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
89772
89773 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89774
89775         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
89776         (2004-10-24) change.  Apparently this was a false alarm.
89777
89778         * modules/getdate: Depend on alloca-opt, not alloca.
89779
89780 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
89781
89782         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
89783         Remove now-obsolete comment about AIX.
89784         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
89785         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
89786         (YYMAXDEPTH): New macro.
89787
89788 2004-12-18  Simon Josefsson  <jas@extundo.com>
89789
89790         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
89791
89792 2004-12-18  Bruno Haible  <bruno@clisp.org>
89793
89794         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
89795
89796 2004-12-18  Bruno Haible  <bruno@clisp.org>
89797
89798         * lib/fatal-signal.c (fatal_signals): Make non-const.
89799         (init_fatal_signals): New function.
89800         (uninstall_handlers, install_handlers): Ignore signals that were set to
89801         SIG_IGN.
89802         (at_fatal_signal): Call init_fatal_signals.
89803         (init_fatal_signal_set): Likewise. Ignore signals that were set to
89804         SIG_IGN.
89805         Reported by Paul Eggert.
89806
89807 2004-12-18  Bruno Haible  <bruno@clisp.org>
89808
89809         * doc/alloca.texi: New file.
89810         * doc/alloca-opt.texi: New file.
89811
89812 2004-12-17  Jim Meyering  <jim@meyering.net>
89813
89814         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
89815         Otherwise, install-sh could exit with improper exit status when
89816         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
89817
89818 2004-12-16  Simon Josefsson  <jas@extundo.com>
89819
89820         * tests/test-base64.c: Add license.
89821
89822 2004-12-15  Stepan Kasal  <address@hidden>
89823
89824         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
89825
89826 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
89827
89828         * modules/getcwd (Files): Add m4/d-ino.m4.
89829         Suggested by Mark D. Baushke.
89830
89831 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89832
89833         * lib/getdate.y (textint): New member "negative".
89834         (time_zone_hhmm): New function.
89835         Expect 14 shift-reduce conflicts, not 13.
89836         (o_colon_minutes): New rule.
89837         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
89838         (yylex): Set the "negative" member of signed numbers.
89839
89840 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
89841
89842         * doc/getdate.texi (Time of day items, Time zone items):
89843         Describe new formats +00:00, UTC+00:00.
89844
89845 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
89846
89847         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
89848         spurious "-l"s.  Problem reported by Stepan Kasal.
89849
89850 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
89851
89852         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
89853         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
89854
89855 2004-12-04  Simon Josefsson  <jas@extundo.com>
89856
89857         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
89858         Vandoorselaere <yoann@prelude-ids.org>.
89859
89860 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89861
89862         Changes imported from coreutils.
89863         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
89864         exist.
89865         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
89866
89867 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89868
89869         Changes imported from coreutils.
89870         * lib/hard-locale.c: Assume <locale.h> exists.
89871         Include "strdup.h".
89872         (GLIBC_VERSION): New macro.
89873         (hard_locale): Assume setlocale exists.
89874         Rewrite to avoid #ifdef.
89875         Use strdup rather than malloc + strcpy.
89876         * lib/human.c: Assume <locale.h> exists.
89877         (human_readable): Assume localeconv exists.
89878
89879 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
89880
89881         * modules/hard-locale (Depends-on): Add strdup.
89882
89883 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
89884
89885         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
89886         convert T2, not T.  (Imported from libc.)
89887
89888 2004-11-30  Simon Josefsson  <jas@extundo.com>
89889
89890         * modules/restrict (License): Change to LGPL.
89891
89892 2004-11-30  Simon Josefsson  <jas@extundo.com>
89893
89894         * m4/restrict.m4: Add copyright and copying conditions.
89895
89896 2004-11-30  Simon Josefsson  <jas@extundo.com>
89897
89898         * m4/base64.m4: New file.
89899
89900 2004-11-30  Simon Josefsson  <jas@extundo.com>
89901
89902         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
89903         base64.
89904
89905         * tests/test-base64.c: New file.
89906
89907         * modules/base64: New file.
89908
89909 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89910
89911         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
89912         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
89913
89914         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
89915
89916 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
89917
89918         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
89919         (__getcwd.c): Don't restore errno; glibc doesn't.
89920         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
89921         first, falling back to our code only if its results look suspicious.
89922         Ensure that the resulting buffer is only as large as necessary.
89923
89924         * lib/readutmp.c: Include readutmp.h first.
89925         Include <errno.h>, since readutmp.h no longer does that.
89926         * lib/readutmp.h: Don't include <errno.h>,
89927         <sys/param.h>, <time.h>; not needed to establish interface.
89928         (errno): Remove decl.
89929         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
89930         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
89931         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
89932
89933 2004-11-28  Simon Josefsson  <jas@extundo.com>
89934
89935         * lib/base64.h, base64.c: New file.
89936
89937 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
89938
89939         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
89940
89941 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
89942
89943         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
89944         (Depends-on): Remove pathmax, same.  Add mempcpy.
89945         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
89946         (Makefile.am): Append getcwd.h to lib_SOURCES.
89947         (Include): Add getcwd.h.
89948         (Maintainer): Change from Jim Meyering to "all, glibc",
89949         since getdate now uses intended-for-glibc code.
89950         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
89951         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
89952
89953 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
89954
89955         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
89956         HP's ANSI C compiler.
89957         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
89958         Declaring int functions causes warnings on some modern systems and
89959         shouldn't be needed to compile on ancient ones.
89960         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
89961         defined.
89962
89963         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
89964         with the following changes.
89965         (__set_errno): Parenthesize properly.
89966         Include <stdbool.h>.
89967         (MIN, MAX, MATCHING_INO): New macros.
89968         (__getcwd): Define with prototype, not K&R form.
89969         Use heuristics to allocate default buffer on stack if possible.
89970         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
89971         behavior, and to avoid the PATH_MAX limit when computing
89972         ../../../../...
89973         Use MATCHING_INO to compare inode number to file.
89974         Check for arithmetic overflow in size calculations.
89975         Fix bug in reallocation of dot array that caused getcwd to fail
89976         on directories nested deeper than 75.
89977         Be more careful about saving errno on error.
89978         Do not use realloc; use only free+malloc, as this is a bit
89979         more flexible and avoids a needless copy operation.
89980         Do not inspect st_dev and st_ino for symbolic links; POSIX
89981         doesn't specify the latter.
89982         Check for closedir errors.
89983         Avoid needless casts.
89984         Use "#ifdef weak_alias" around weak_alias, to be like other
89985         glibc code.
89986         The following changes to getcwd.c have effect only when used in
89987         gnulib; they have no effect inside glibc proper.
89988         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
89989         as alloca isn't used.
89990         (alloca, __alloca): Likewise.
89991         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
89992         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89993         unconditionally, as gnulib assumes C89 or better.
89994         Do not include <sys/param.h>.
89995         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
89996         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
89997         better.
89998         (NULL) [!defined NULL]: Remove; we assume C89 or better.
89999         Include <dirent.h> in a way that is compatible with modern Autoconf.
90000         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
90001         New macros, if not already defined.
90002         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
90003         Use "_LIBC", not "defined _LIBC", for consistency.
90004         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
90005         a mempcpy module.
90006         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
90007         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
90008         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
90009         credit only to Jim Meyering and adjust the copyright dates.
90010         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
90011         <stdlib.h>, <unistd.h>, "pathmax.h".
90012         Instead, include "xgetcwd.h" (first) and "getcwd.h".
90013         (INITIAL_BUFFER_SIZE): Remove.
90014         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
90015
90016 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
90017
90018         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
90019         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
90020         Use the _ONCE methods, for efficiency.
90021         Check for fcntl.h.  In test program, include <errno.h>
90022         and <fcntl.h> if available.  Remove old K&R cruft from
90023         test program.  Check for common errors in GNU/Linux,
90024         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
90025         don't do AC_LIBOBJ, as that's getcwd.m4's job.
90026         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
90027         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
90028         name accordingly.
90029         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
90030         accommodate new getcwd.c.
90031         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
90032         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
90033         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
90034         that's all we need now.
90035
90036 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90037
90038         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
90039         argp-parse.c depends on getopt internals, that means we should
90040         always use our getopt, to be on the safe side.
90041         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
90042         order not to spoil the result of an eventual previous invocation
90043         of gl_GETOPT_SUBSTITUTE.
90044
90045 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90046
90047         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
90048         redefinition warnings. To avoid them, include the defines
90049         in `#if !defined __need_getopt ... #endif'. The only place
90050         where __getopt_argv_const is used is in definitions
90051         of getopt_long and getopt_long_only below, which are as well
90052         protected by `#ifndef __need_getopt'.
90053         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
90054         __need_getopt after including <stdio.h> and <unistd.h> These
90055         headers might have defined it.
90056
90057 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
90058
90059         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
90060
90061 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
90062
90063         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
90064         (futimens): New function, which uses futimes if available.
90065         (futimens, utimens): Support timespec==NULL, with same semantics
90066         as utime and utimens.
90067         * lib/utimens.h (futimens): New decl.
90068
90069 2004-11-23  Jim Meyering  <jim@meyering.net>
90070
90071         * lib/getopt_.h: Remove trailing blanks.
90072
90073 2004-11-23  Jim Meyering  <jim@meyering.net>
90074
90075         * lib/__fpending.c: Add comment.
90076
90077 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
90078
90079         * modules/canonicalize (Depends-on): Add xreadlink.
90080         Problem reported by James Youngman.
90081
90082 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
90083
90084         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
90085         New macros.
90086         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
90087         optopt): Use them instead of invoking ## directly; otherwise, the
90088         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
90089
90090 2004-11-19  Bruno Haible  <bruno@clisp.org>
90091
90092         * lib/strtok_r.c: Move comments from here...
90093         * lib/strtok_r.h: ... to here.
90094
90095 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90096
90097         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
90098         implementations that mishandle size_t overflow.
90099
90100 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
90101
90102         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
90103         might fail.  Problem reported by Yoann Vandoorselaere.
90104         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
90105         implementations that mishandle size_t overflow.
90106
90107 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90108
90109         * modules/canon-host (Depends-on): Add strdup.
90110
90111 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90112
90113         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
90114
90115 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90116
90117         * lib/canon-host.c: Include "strdup.h".
90118         (canon_host): Use getaddrinfo if available, so that IPv6 works.
90119         Use strdup instead of malloc/strcpy to duplicate strings.
90120
90121         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
90122         (human_space_before_unit): New constant.
90123         * lib/human.c (human_readable): Support it.
90124
90125         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
90126         (xgetcwd): Set errno correctly when failing.
90127         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
90128         the failure is actually due to a PATH_MAX problem.
90129
90130         Further getopt changes to make it more likely that glibc will
90131         buy the changes back.
90132         * lib/getopt.c (POSIXLY_CORRECT): New constant.
90133         (getopt): Use it, so to preserve glibc semantic
90134         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
90135         when compiling for libc.
90136         * lib/getopt_.h (__getopt_argv_const): Bring it back.
90137         (getopt_long, getopt_long_only): Use it.
90138
90139         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90140         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
90141         (getopt): Argv is now char * const *, as per standard.
90142         (_getopt_internal_r, _getopt_internal): Argv is now char **,
90143         not char *__getopt_argv_const *.
90144         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90145         _getopt_long_only_r): Likewise.
90146         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
90147         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90148         _getopt_long_r, _getopt_long_only_r): Likewise.
90149         * lib/getopt_.h (__getopt_argv_const): Remove.
90150         (getopt): Argv is now char * const *, as per standard.
90151
90152         * lib/getdate.y (tORDINAL): New token.
90153         (day, relunit): Allow it for relative times.
90154         (relative_time_table): Use tORDINAL for ordinals.
90155
90156 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
90157
90158         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
90159         Document that "second" isn't allowed as an ordinal number.
90160
90161 2004-11-16  Jim Meyering  <jim@meyering.net>
90162
90163         * modules/closeout (Depends-on): Add fpending.
90164
90165 2004-11-15  Jim Meyering  <jim@meyering.net>
90166
90167         * lib/closeout.c: Include "__fpending.h" once again.
90168         Include <stdbool.h>.
90169         (close_stdout): Don't fail just because stdout was closed initially,
90170         since some programs don't write to stdout in the normal course of
90171         operation (other than --version and --help), and we don't want this
90172         function to make e.g. `touch file >&-' fail.
90173         But do fail if it was closed and someone has tried to write to it.
90174         E.g., `printf foo >&-' must fail.
90175
90176 2004-11-13  Jim Meyering  <jim@meyering.net>
90177
90178         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
90179
90180 2004-11-12  Simon Josefsson  <jas@extundo.com>
90181
90182         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
90183         small doc fix is still pending.
90184
90185 2004-11-11  Simon Josefsson  <jas@extundo.com>
90186
90187         * modules/strtok_r: New file.
90188
90189         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90190         strtok_r.
90191
90192 2004-11-11  Simon Josefsson  <jas@extundo.com>
90193
90194         * m4/strtok_r.m4: New file.
90195
90196         * m4/getopt.m4: Replace opterr.
90197
90198 2004-11-11  Simon Josefsson  <jas@extundo.com>
90199
90200         * lib/strtok_r.h, strtok_r.c: New file.
90201
90202 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90203
90204         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
90205         of replacing opterr, getopt, etc.  This should handle the
90206         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
90207
90208 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
90209
90210         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
90211         we can stop lying to compilers about the constness of argv when we
90212         are compiled outside glibc.
90213         (getopt, getopt_long, getopt_long_only): Use it.
90214         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
90215         _getopt_internal, getopt): Likewise.
90216         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
90217         _getopt_long_only_r): Likewise.
90218         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
90219         _getopt_long_r, _getopt_long_only_r): Likewise.
90220
90221         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
90222         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
90223         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
90224         the other external symbols.
90225         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
90226         declaration, since the above renaming now works around collisions.
90227
90228 2004-11-11  Jim Meyering  <jim@meyering.net>
90229
90230         * lib/linebreak.c: Remove trailing blanks.
90231         * lib/alloca_.h: Likewise.
90232         * lib/acosl.c: Likewise.
90233         * lib/euidaccess.c: Likewise.
90234         * lib/allocsa.h: Likewise.
90235
90236 2004-11-10  Simon Josefsson  <jas@extundo.com>
90237
90238         * m4/getaddrinfo.m4: New file.
90239
90240 2004-11-10  Simon Josefsson  <jas@extundo.com>
90241
90242         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
90243
90244 2004-11-10  Simon Josefsson  <jas@extundo.com>
90245
90246         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90247         getaddrinfo.
90248
90249         * modules/getaddrinfo: New file.
90250
90251 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90252
90253         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
90254
90255 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
90256
90257         * lib/mktime.c (SHR): New macro, which is a portable
90258         substitute for >> that should work even on Crays.
90259         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
90260         Problem reported by Mark D. Baushke in
90261         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
90262         * lib/getdate.y (SHR): Likewise.
90263         (tm_diff): Use it.
90264         * lib/strftime.c (SHR): Likewise.
90265         (tm_diff): Use it.
90266         * lib/quotearg.c (struct quoting_options): Use unsigned int for
90267         quote_these_too, so that right shifts are well defined.  All uses
90268         changed.
90269
90270 2004-11-10  Jim Meyering  <jim@meyering.net>
90271
90272         Ensure that no close failure goes unreported.
90273         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
90274         return early when it seems there's nothing to flush.
90275         Don't include __fpending.h.
90276
90277 2004-11-10  Jim Meyering  <jim@meyering.net>
90278
90279         * modules/closeout (Depends-on): Remove fpending.
90280
90281 2004-11-10  Jim Meyering  <jim@meyering.net>
90282
90283         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
90284
90285 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90286
90287         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
90288         gl_FUNC_STRFTIME.
90289         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
90290         and AC_REQUIRE when possible, to avoid duplicate checks.
90291         Check for <wchar.h>.
90292
90293 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
90294
90295         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
90296
90297 2004-11-09  Bruno Haible  <bruno@clisp.org>
90298
90299         * m4/sockpfaf.m4: New file.
90300
90301 2004-11-05  Bruno Haible  <bruno@clisp.org>
90302
90303         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
90304         Reported by Mark D. Baushke <mdb@cvshome.org>.
90305
90306 2004-11-04  Bruno Haible  <bruno@clisp.org>
90307
90308         2004-09-11  Bruno Haible  <bruno@clisp.org>
90309                 * allocsa.valgrind: New file.
90310         2004-02-06  Bruno Haible  <bruno@clisp.org>
90311                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
90312                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
90313                 Reported by Christopher Seip <chris.seip@hp.com>.
90314
90315 2004-11-04  Bruno Haible  <bruno@clisp.org>
90316
90317         * modules/allocsa (Files): Add lib/allocsa.valgrind.
90318         (Makefile.am): Distribute it.
90319
90320 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
90321
90322         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
90323         with errno == ERANGE if the buffer is too small.
90324         Problem reported by Mark D. Baushke.
90325
90326 2004-11-03  Albert Chin  <china@thewrittenword.com>
90327             Paul Eggert  <eggert@cs.ucla.edu>
90328
90329         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
90330         equivalent, substitute $ac_type for equivalent type rather than
90331         blindly using uint32_t *always* which won't work if uint32_t is not
90332         available.  Define _UINT32_T to work around typedef of uint32_t if
90333         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
90334         2.5.1.
90335
90336 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90337
90338         * m4/jm-macros.m4: Sync from coreutils.
90339         (gl_MACROS): Check for mbrlen, for pathchk.
90340         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
90341
90342 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90343
90344         * lib/xreadlink.c (MAXSIZE): New macro.
90345         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
90346         size does not exceed MAXSIZE.  Avoid cast.
90347         As suggested by Mark D. Baushke in
90348         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
90349         if readlink fails with buffer size just under MAXSIZE, try again
90350         with MAXSIZE.
90351
90352 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
90353
90354         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
90355
90356 2004-11-02  Derek R. Price  <derek@ximbiot.com>
90357         and  Paul Eggert  <eggert@cs.ucla.edu>
90358
90359         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
90360         (get_date): Overparenthesize to avoid GCC warning.
90361
90362 2004-11-02  Bruno Haible  <bruno@clisp.org>
90363
90364         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
90365         returns void.
90366
90367 2004-11-02  Bruno Haible  <bruno@clisp.org>
90368
90369         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
90370         function returns void.
90371
90372 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90373
90374         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
90375         fflush_unlocked, flockfile, funlockfile, funlockfile,
90376         fputs_unlocked, putc_unlocked.
90377
90378 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
90379
90380         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90381         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
90382         already declared.
90383
90384 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90385
90386         * modules/getdate (Files): Add doc/getdate.texi.
90387         (Depends-on): Add setenv, xalloc.
90388
90389 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90390
90391         * lib/getdate.y: Add support for TZ="foo" within a date string.
90392         Fix some bugs near time_t boundaries.  Reject dates with
90393         out-of-range components, e.g., "Sept 31".
90394         Include <stdlib.h>, "setenv.h", "xalloc.h".
90395         (ISDIGIT_LOCALE): Remove; unused.
90396         Note that the TZ and time functions used here are not reentrant.
90397         (mktime_ok, get_tz): New functions.
90398         (TZBUFSIZE): New constant.
90399         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
90400         This requires that we sometimes generate our own TZ="XXX..." setting.
90401
90402 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
90403
90404         * doc/getdate.texi: New file, from coreutils with modifications for
90405         the new TZ parsing.
90406
90407 2004-10-27  Derek R. Price  <derek@ximbiot.com>
90408
90409         * lib/mktime.c (not_equal_tm): Remove redundant check.
90410
90411 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90412
90413         * modules/regex (lib_SOURCES): Add regex.c.
90414         Reported by James Youngman in
90415         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
90416
90417 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
90418
90419         * lib/getdate.y: Use Bison 1.875 features, and some minor
90420         code cleanups.  This change does not affect semantics.
90421         Don't include <stdlib.h>; no longer needed.
90422         Don't include unlocked-io.h; only the "#if TEST" code uses
90423         stdio, and performance isn't crucial there.
90424         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
90425         Bison 1.875 features as described below.
90426         All uses of "PC." replaced by "pc->".
90427         (YYSTYPE): Add a forward declaration.
90428         (yylex, yyerror): Use full prototypes in forward decls.
90429         Use "%pure-parser" rather than obsolescent "%pure_parser".
90430         Use %parse-param and %lex-param instead of obsolescent
90431         YYPARSE_PARAM and YYLEX_PARAM.
90432         (meridian_table, month_and_day_table, time_units_table,
90433         relative_time_table, time_zone_table, military_table,
90434         lookup_zone, lookup_word, get_date):
90435         Use NULL instead of 0 where appropriate.
90436         (to_hour): Avoid abort (), to avoid a dependency on
90437         stdlib.h.
90438         (yyerror, yylex): Now accepts parser_control * arg.
90439         (main) [TEST]: Use '\0' rather than 0 for char.
90440
90441 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90442
90443         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
90444
90445 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
90446
90447         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
90448         It's now the caller's responsibility to handle the case where
90449         !HAVE_GETPAGESIZE && !defined getpagesize.
90450
90451         * lib/mktime.c (leapyear): Arg is long int, not int.
90452
90453 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
90454
90455         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
90456
90457 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90458
90459         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
90460         missing.  Problem reported by James Youngman.
90461
90462 2004-10-16  Simon Josefsson  <jas@extundo.com>
90463
90464         * gnulib-tool: Fix comments.  Fix parse problem.
90465         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
90466
90467 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
90468
90469         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
90470         implementation of getopt_long.  Problem reported by Alexander Taler in:
90471         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
90472
90473 2004-10-15  Bruno Haible  <bruno@clisp.org>
90474
90475         * gnulib-tool: Untabify. Initialize supplied_libname.
90476         (func_usage): More homogenous output.
90477         (func_modules_transitive_closure, func_modules_to_filelist,
90478         func_emit_lib_Makefile_am): New functions.
90479         (func_import): New function, extracted from big case statement. Use
90480         func_get_license, func_modules_transitive_closure,
90481         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
90482         opt_lgpl. Don't use test -a, as it's not portable.
90483         (func_create_testdir): Use func_modules_transitive_closure,
90484         func_modules_to_filelist, func_emit_lib_Makefile_am.
90485
90486 2004-10-15  Bruno Haible  <bruno@clisp.org>
90487
90488         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
90489
90490 2004-10-15  Bruno Haible  <bruno@clisp.org>
90491
90492         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
90493         the portions belonging to each module.
90494         Suggested by Derek Robert Price <derek@ximbiot.com>.
90495
90496 2004-10-12  Simon Josefsson  <jas@extundo.com>
90497
90498         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
90499         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
90500         to real functions.
90501
90502 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90503
90504         * modules/vsnprintf: New file.
90505
90506 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90507
90508         * m4/vsnprintf.m4: New file.
90509
90510 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90511
90512         * lib/vsnprintf.h: New file.
90513         * lib/vsnprintf.c: New file.
90514
90515 2004-10-11  Bruno Haible  <bruno@clisp.org>
90516
90517         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
90518         vsnprintf.
90519
90520 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
90521
90522         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
90523
90524 2004-10-07  Bruno Haible  <bruno@clisp.org>
90525
90526         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
90527         fits into the provided buffer.
90528
90529 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
90530
90531         * lib/diacrit.c, diacrit.h: Add GPL notice.
90532
90533         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
90534         notice.
90535         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
90536         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
90537         This avoids a potential constant-folding bug.
90538
90539 2004-10-05  Bruno Haible  <bruno@clisp.org>
90540
90541         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
90542         for the declaration of strsep.
90543
90544 2004-10-05  Bruno Haible  <bruno@clisp.org>
90545
90546         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
90547
90548 2004-10-04  Simon Josefsson  <jas@extundo.com>
90549
90550         * modules/memmem: New file.
90551         * tests/test-memmem.c: New file.
90552         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
90553
90554 2004-10-04  Simon Josefsson  <jas@extundo.com>
90555
90556         * m4/memmem.m4: New file.
90557
90558 2004-10-04  Simon Josefsson  <jas@extundo.com>
90559
90560         * lib/memmem.h: New file.
90561         * lib/memmem.c: New file, taken from glibc.
90562
90563 2004-10-04  Simon Josefsson  <jas@extundo.com>
90564
90565         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
90566         '#ifdef USE_UNLOCKED_IO'.
90567
90568 2004-10-04  Simon Josefsson  <jas@extundo.com>
90569
90570         * config/srclist.txt: Add memmem from glibc.
90571
90572 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90573
90574         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
90575
90576         * modules/argmatch, modules/argp, modules/closeout, modules/error,
90577         modules/exclude, modules/getdate, modules/getline,
90578         modules/getndelim2, modules/getpass, modules/getpass-gnu,
90579         modules/getusershell, modules/linebuffer, modules/md5,
90580         modules/mountlist, modules/posixtm, modules/readtokens,
90581         modules/readutmp, modules/regex, modules/sha1,
90582         modules/version-etc, modules/yesno:
90583         Remove dependency on unlocked-io.
90584
90585 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90586
90587         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
90588
90589         * m4/unlocked-io.m4: Add copyright notice.
90590         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
90591
90592 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90593
90594         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
90595         * lib/xmalloc.c (xmemdup): Likewise.
90596         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
90597         XFREE): Remove these long-obsolescent macros.
90598         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
90599         * lib/xstrdup.c: Remove.
90600
90601         * lib/regex.c (re_comp): Cast gettext return value to char *,
90602         Problem reported by Martin Neitzel via Mark D. Baushke.
90603
90604 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
90605
90606         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
90607         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
90608         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
90609         regex.c, sha1.c, version-etc.c, yesno.c:
90610         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
90611         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
90612         the includer's responsibility.
90613
90614         Sync from coreutils.
90615
90616         * lib/modechange.c (mode_compile): Don't decrement a pointer that
90617         points to the start of a string, as the C Standard says the
90618         resulting behavior is undefined.
90619
90620         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
90621         simple -> simple_backups, numbered_existing ->
90622         numbered_existing_backups, numbered -> numbered_backups
90623         to avoid shadowing problems.  All uses changed.
90624         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
90625         * lib/backupfile.c (check_extension, numbered_backup):
90626         Rename locals to avoid shadowing 'basename'.
90627         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
90628         once.
90629
90630         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
90631         * lib/.cvsignore: Add getopt.h.
90632
90633 2004-10-04  Bruno Haible  <bruno@clisp.org>
90634
90635         * modules/README: New file.
90636         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
90637         not a module.
90638
90639 2004-10-02  Jim Meyering  <jim@meyering.net>
90640
90641         * lib/dirfd.h, getpagesize.h: Add copyright notice.
90642
90643 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90644
90645         * modules/strsep: New file.
90646
90647 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90648
90649         * m4/strsep.m4: New file.
90650
90651 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90652
90653         * lib/strsep.h: New file.
90654         * lib/strsep.c: New file.
90655
90656 2004-10-01  Simon Josefsson  <jas@extundo.com>
90657
90658         * lib/snprintf.c (snprintf): Handle size==0.
90659
90660 2004-10-01  Simon Josefsson  <jas@extundo.com>
90661             Bruno Haible  <bruno@clisp.org>
90662
90663         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
90664         (snprintf): Declare 'args'.
90665
90666 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
90667
90668         * lib/snprintf.c: Remove comments as to why each header is needed.
90669
90670 2004-10-01  Bruno Haible  <bruno@clisp.org>
90671
90672         * MODULES.html.sh: Add strsep.
90673
90674 2004-09-30  Simon Josefsson  <jas@extundo.com>
90675
90676         * modules/snprintf: New file.
90677
90678 2004-09-30  Simon Josefsson  <jas@extundo.com>
90679
90680         * m4/snprintf.m4: New file.
90681
90682 2004-09-30  Simon Josefsson  <jas@extundo.com>
90683
90684         * lib/snprintf.h, lib/snprintf.c: New files.
90685
90686 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
90687
90688         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
90689         (hol_entry_help): Never translate an empty string.
90690         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
90691         * lib/argp.h (OPTION_NO_TRANS): New option.
90692
90693 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90694
90695         * modules/argp (Maintainer): Replace Simon Josefsson
90696         by Sergey Poznyakoff.
90697
90698 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90699
90700         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
90701         changes merged back into glibc.
90702
90703 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
90704
90705         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
90706
90707 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
90708
90709         * lib/xvasprintf.c: Include xalloc.h.
90710         (xvasprintf): Use xalloc_die, not xmalloc_die.
90711
90712 2004-09-29  Bruno Haible  <bruno@clisp.org>
90713
90714         * modules/alloca-opt: New file, derived from modules/alloca.
90715         * modules/allocsa: Depend on alloca-opt instead of alloca.
90716         * modules/setenv: Likewise.
90717         * modules/vasnprintf: Likewise.
90718         * MODULES.html.sh: Add alloca-opt.
90719
90720 2004-09-28  Simon Josefsson  <jas@extundo.com>
90721
90722         * gnulib-tool: New parameter --lgpl, to asseert that modules are
90723         LGPL, and to replace license template from GPL to LGPL.
90724
90725 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90726
90727         * modules/dummy: Change license to LGPL.
90728
90729 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
90730
90731         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
90732
90733 2004-09-24  Simon Josefsson  <jas@extundo.com>
90734
90735         * modules/minmax (License): Change from GPL to LGPL.
90736
90737 2004-09-23  Simon Josefsson  <jas@extundo.com>
90738
90739         * gnulib-tool (--import): Typo.
90740
90741 2004-09-23  Simon Josefsson  <jas@extundo.com>
90742
90743         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
90744
90745 2004-09-22  Bruno Haible  <bruno@clisp.org>
90746
90747         * modules/*: Add 'License' field.
90748         * gnulib-tool: Accept --extract-license option.
90749         (func_get_license): New function.
90750
90751 2004-09-21  Bruno Haible  <bruno@clisp.org>
90752
90753         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
90754         Reported by Simon Josefsson.
90755
90756 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90757
90758         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
90759         gl_AC_TYPE_LONG_LONG.
90760
90761 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
90762
90763         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
90764
90765 2004-09-18  Simon Josefsson  <jas@extundo.com>
90766         and  Paul Eggert  <eggert@cs.ucla.edu>
90767
90768         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
90769         calls with autoreconf.  Define GL_LIB.
90770
90771 2004-09-14  Karl Berry  <karl@gnu.org>
90772
90773         * config/srclist.txt: unsync setenv.c, sigh.
90774
90775 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90776
90777         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
90778         Problem reported by Bruno Haible in:
90779         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
90780
90781 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
90782
90783         * config/srclist.txt: Comment out argp-pvh.c.
90784
90785 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
90786
90787         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
90788         in case some system header has #define'd it.  Problem reported by
90789         Soeren D. Schulze in
90790         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
90791
90792 2004-09-09  Karl Berry  <karl@gnu.org>
90793
90794         * regex.[ch]: delete from the root.  These were supposed to be
90795                 synced with emacs cvs, but this has not happened for about
90796                 a year, and anyway nothing else uses emacs regex.[ch].
90797                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
90798                 lib/regex[.ch] is untouched.
90799
90800 2004-09-09  Bruno Haible  <bruno@clisp.org>
90801
90802         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
90803
90804 2004-09-09  Bruno Haible  <bruno@clisp.org>
90805
90806         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
90807         modifications.
90808         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
90809
90810 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90811
90812         * modules/xvasprintf: New file.
90813         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
90814
90815 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
90816
90817         * lib/xvasprintf.h: New file.
90818         * lib/xvasprintf.c: New file.
90819         * lib/xasprintf.c: New file.
90820
90821 2004-09-08  Bruno Haible  <bruno@clisp.org>
90822
90823         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
90824
90825 2004-09-08  Bruno Haible  <bruno@clisp.org>
90826
90827         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
90828         length is > INT_MAX.
90829         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
90830         more.
90831
90832 2004-09-08  Bruno Haible  <bruno@clisp.org>
90833
90834         * lib/stdint_.h: New file, taken from GNU clisp.
90835
90836 2004-09-08  Bruno Haible  <bruno@clisp.org>
90837             Oskar Liljeblad  <oskar@osk.mine.nu>
90838
90839         * modules/stdint: New file.
90840         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
90841
90842 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90843
90844         Import from coreutils.
90845         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
90846         strings on unbounded length.  alloca's performance benefits aren't
90847         that important here.
90848         (V_STRDUP): Remove.
90849         (parse_with_separator): New function, with most of the internals
90850         of the old parse_user_spec.  Allow user to omit both user and group,
90851         for compatibility with FreeBSD.
90852         Clone only the user name, not the entire spec.
90853         Do not set *uid, *gid unless entirely successful.
90854         Avoid memory leak in some failing cases.
90855         Fix regression for USER.GROUP reported by Dmitry V. Levin in
90856         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
90857         (parse_user_spec): Rewrite to use parse_with_separator.
90858
90859 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90860
90861         * modules/userspec: Don't depend on alloca.
90862
90863 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
90864
90865         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
90866
90867 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
90868
90869         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
90870         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
90871         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
90872
90873 2004-08-16  Simon Josefsson  <jas@extundo.com>
90874
90875         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
90876         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
90877         Add --dry-run for --import.
90878         Let user provided command line parameters override configure.ac
90879         settings.
90880
90881 2004-08-12  Simon Josefsson  <jas@extundo.com>
90882
90883         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
90884         as discussed with Paul Eggert in threads rooted at
90885         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
90886         and
90887         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
90888         Before, the test was empty, and relied on ELIDE_CODE in source
90889         code.)
90890         (gl_PREREQ_GETOPT): New macro.
90891         (gl_GETOPT): Use them.
90892
90893 2004-08-12  Simon Josefsson  <jas@extundo.com>
90894
90895         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
90896         * lib/getopt_.h: Renamed from getopt.h.
90897
90898 2004-08-12  Simon Josefsson  <jas@extundo.com>
90899
90900         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
90901         Change default library name from libfoo to libgnu.
90902         Now, if you have a configure.ac that says:
90903                 gl_SOURCE_BASE(gl)
90904                 gl_M4_BASE(gl/m4)
90905                 gl_MODULES(error getopt etcetera)
90906                 gl_INIT
90907         you can import all you need by running:
90908                 ../gnulib/gnulib-tool --import
90909
90910         * modules/getopt (Files): Rename getopt.h to getopt_.h.
90911         (Makefile.am): Rewrite, use logic from argz.
90912         (Include): Use <getopt.h> instead of "getopt.h".
90913
90914 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90915
90916         * modules/argp (Files): Add m4/unlocked-io.m4.
90917         (Depends-on): Add extensions.
90918
90919 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90920
90921         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
90922         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
90923         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
90924         Check for program_invocation_name, program_invocation_short_name,
90925         flockfile, funlockfile, features.h, _getopt_long_only_r.
90926
90927 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90928
90929         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
90930         its complicated substitute.
90931         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
90932         and program_invocation_name.
90933         (__argp_basename) [!_LIBC]: Remove; the only use was
90934         replaced by its body.
90935         (__argp_short_program_name): Change condition from
90936         !defined __argp_short_program_name to
90937         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
90938         to match argp-namefrob.h.
90939         (__argp_failure): Don't assume strerror_r returns char *.
90940         * lib/argp-parse.c (N_): Define unconditionally.
90941         (argp_default_options): Fill out initializers with 0 to avoid
90942         gcc warnings.
90943
90944 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
90945
90946         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
90947         getopt1.c.
90948
90949 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90950
90951         Merge from coreutils.
90952
90953         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
90954
90955         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
90956         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
90957
90958 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90959
90960         Merge from coreutils.
90961
90962         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
90963         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
90964         for Reliant Unix 5.43.
90965
90966         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
90967         (union fooround): Use uintmax_t, not long int.
90968         The rest is a merge from libc:
90969         [defined _LIBC]: Include <shlib-compat.h>.
90970         (_obstack) [defined _LIBC]: Remove after 2.3.4.
90971
90972         * lib/settime.c (settime): Recode to avoid warning with
90973         Sun Forte C 6U2.
90974
90975         * lib/strverscmp.c: Convert to UTF-8.
90976
90977 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
90978
90979         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
90980         m4/uintmax_t.m4.
90981
90982 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90983
90984         * modules/xalloc-die: New file.
90985         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
90986
90987         * modules/md5 (Files): Add m4/uint32_t.m4.
90988         * modules/sha1: Renamed from modules/sha.
90989         (Files):
90990         Rename lib/sha.h to lib/sha1.h.
90991         Rename lib/sha.c to lib/sha1.c.
90992         Rename m4/sha.m4 to m4/sha1.m4.
90993         (lib_SOURCES): Likewise.
90994         (configure.ac): Rename gl_SHA to gl_SHA1.
90995         (Include): sha.h -> sha1.h.
90996
90997 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
90998
90999         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
91000         * m4/sha1.m4: Renamed from sha.m4.
91001         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
91002
91003 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
91004
91005         * lib/obstack.h (obstack_empty_p):
91006         Don't assume that chunk->contents is suitably aligned.
91007         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
91008         Likewise. Problem reported by Benno in
91009         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
91010
91011         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
91012         readable.  This could be improved further but it'd take some work.
91013
91014 2004-08-08  Simon Josefsson  <jas@extundo.com>
91015
91016         * modules/xgethostname (Depends-on): Remove exit and error (not
91017         used).
91018
91019         * modules/getpass-gnu: Add getpass.h.
91020         (Depends-on): Add stdbool.
91021         * modules/getpass: Add getpass.h.
91022
91023 2004-08-08  Simon Josefsson  <jas@extundo.com>
91024
91025         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
91026         Check getpass declaration.
91027
91028 2004-08-08  Simon Josefsson  <jas@extundo.com>
91029
91030         * lib/xgethostname.c: Don't include error.h (not used).
91031
91032         * lib/getpass.h: Add.
91033         * lib/getpass.c: Include getpass.h first.
91034
91035 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
91036
91037         * lib/xalloc-die.c: New file.
91038         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
91039         All uses removed.
91040         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
91041         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
91042         xalloc-die.c.
91043         (_, N_, xalloc_die): Move to xalloc-die.c.
91044         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
91045         so that we needn't mess with xalloc_msg_memory_exhausted.
91046
91047         * lib/sha1.h: Renamed from sha.h.
91048         (SHA1_H): Renamed from _SHA_H.
91049         (sha1_ctx): Renamed from sha_ctx.
91050         (sha1_init_ctx): Renamed from sha_init_ctx.
91051         (sha1_process_block): Renamed from sha_process_block.
91052         (sha1_process_bytes): Renamed from sha_process_bytes.
91053         (sha1_finish_ctx): Renamed from sha_finish_ctx.
91054         (sha1_read_ctx): Renamed from sha_read_ctx.
91055         (sha1_stream): Renamed from sha_stream.
91056         (sha1_buffer): Renamed from sha_buffer.
91057         * lib/sha1.c: Likewise; renamed from sha.c.
91058         Do not include <sys/types.h>.
91059         Include <stddef.h> rather than <stdlib.h>.
91060
91061 2004-08-08  Bruno Haible  <bruno@clisp.org>
91062
91063         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
91064         FILESYSTEM_PREFIX_LEN.
91065         * lib/progreloc.c: Likewise.
91066         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
91067
91068 2004-08-06  Simon Josefsson  <jas@extundo.com>
91069
91070         * modules/progname (Depends-on): Don't depend on stdbool.
91071
91072 2004-08-06  Simon Josefsson  <jas@extundo.com>
91073
91074         * modules/getsubopt: New file.
91075         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
91076         getsubopt.
91077
91078 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91079
91080         More merge from coreutils.
91081
91082         * m4/utimens.m4, m4/utimecmp.m4: New files.
91083         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
91084         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
91085         prereq.m4, sha.m4: Import changes from coreutils.
91086
91087 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91088
91089         More merge from coreutils.
91090         * modules/raise, modules/readtokens0, modules/utimens:
91091         * modules/utimecmp, module/xnanosleep: New files.
91092         * modules/strftime: Add lib/strftime.h.
91093         Change include from <time.h> to "strftime.h".
91094         * modules/yesno: Add lib/yesno.h.
91095         * modules/backupfile: Remove lib/addext.c.
91096         * modules/euidaccess: Add stat-macros.h.
91097         * modules/canonicalize, modules/euidaccess,
91098         modules/filemode, modules/lchown, modules/makepath,
91099         modules/rmdir, modules/stat: Likewise.
91100
91101 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
91102
91103         Merge from tar.
91104         * lib/argp-help.c (make_hol, hol_append): Don't assume that
91105         SIZE_MAX is a valid preprocessor constant.
91106         (__argp_basename): Change from "#ifndef _LIBC"
91107         to "#ifndef __argp_short_program_name", so that
91108         we don't compile these functions for tar.
91109
91110         More merges from coreutils.
91111         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
91112         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
91113         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
91114         * lib/addext.c: Remove; no longer needed.
91115         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
91116         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
91117         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
91118         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
91119         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
91120         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
91121         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
91122         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
91123         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
91124         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
91125         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
91126         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
91127         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
91128         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
91129         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
91130         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
91131         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
91132         Import changes from coreutils.
91133
91134 2004-08-05  Simon Josefsson  <jas@extundo.com>
91135
91136         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
91137
91138 2004-08-05  Simon Josefsson  <jas@extundo.com>
91139
91140         * m4/getsubopt.m4: New file.
91141
91142 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91143
91144         Merge from coreutils.
91145
91146         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
91147         * m4/getcwd-path-max.m4: New files.
91148
91149         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
91150         FILESYSTEM_PREFIX_LEN ->
91151         FILE_SYSTEM_PREFIX_LEN.
91152         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
91153         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
91154         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
91155         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
91156
91157         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
91158         prerequisite modules now handle the DOS stuff.
91159         Don't check for unistd.h.
91160
91161 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91162
91163         Merge from coreutils.
91164
91165         * lib/.gdb-history: Remove; this doesn't belong here.
91166
91167         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
91168         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
91169         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
91170         * lib/getcwd.c: New files.
91171
91172         * lib/dirname.h: Include <stdbool.h>.
91173         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
91174         for consistency with POSIX terminology.  All uses changed.
91175         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
91176         (strip_trailing_slashes): Use bool for booleans.
91177         * lib/stripslash.c (strip_trailing_slashes): Likewise.
91178
91179         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
91180         sometimes returns a positive errno value even when it succeeds.
91181         (print_errno_message) [!LIBC]: Fall back on strerror if
91182         __strerror_r fails.
91183
91184         * lib/path-concat.c (mempcpy): Don't define if a system header defines
91185         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
91186         (longest_relative_suffix): New function.
91187         (path_concat): Use it.  Assume first argument is not NULL.
91188         Port to DOS.  Omit redundant separators.
91189         Report an error instead of returning NULL.
91190         Use mempcpy instead of memcpy.
91191         (xpath_concat): Remove: not declared or used.
91192
91193         * lib/same.h: Include <stdbool.h>
91194         (same_name): Return bool, not int.
91195         * lib/same.c (same_name): Likewise.
91196         (errno): Don't declare; we assume C89 or better now.
91197
91198         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
91199         if not already defined.
91200
91201         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
91202         * lib/dup-safer.c (errno): Likewise.
91203
91204 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
91205
91206         Merge from coreutils.
91207         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
91208         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
91209         * modules/path-concat: Don't depend on strdup.
91210
91211 2004-08-03  Simon Josefsson  <jas@extundo.com>
91212
91213         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
91214         * lib/progname.h: Don't include stdbool.h.
91215
91216 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91217
91218         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
91219         * MODULES.html.sh (func_all_modules): Remove fatal.
91220
91221 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91222
91223         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
91224
91225 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
91226
91227         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
91228         working.
91229
91230 2004-08-02  Simon Josefsson  <jas@extundo.com>
91231
91232         * lib/getsubopt.h: New file, with comments from Bruno Haible.
91233         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
91234         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
91235
91236 2004-08-01  Simon Josefsson  <jas@extundo.com>
91237
91238         * lib/xgetdomainname.c: Include stdlib.h, for free().
91239
91240 2004-07-19  Bruno Haible  <bruno@clisp.org>
91241
91242         * MODULES.html.sh (func_all_modules): Add dummy.
91243
91244 2004-07-16  Simon Josefsson  <jas@extundo.com>
91245
91246         * modules/dummy: New file.
91247
91248 2004-07-16  Simon Josefsson  <jas@extundo.com>
91249
91250         * lib/dummy.c: New file.
91251
91252 2004-07-16  Bruno Haible  <bruno@clisp.org>
91253
91254         * lib/backupfile.h: Add extern "C" for C++.
91255         * lib/closeout.h: Likewise.
91256         * lib/copy-file.h: Likewise.
91257         * lib/findprog.h: Likewise.
91258         * lib/full-write.h: Likewise.
91259         * lib/pathname.h: Likewise.
91260         * lib/progname.h: Likewise.
91261         * lib/stpcpy.h: Likewise.
91262         * lib/stpncpy.h: Likewise.
91263         * lib/strcase.h: Likewise.
91264         * lib/strstr.h: Likewise.
91265         * lib/xalloc.h: Likewise.
91266
91267         * lib/mbswidth.h: Add extern "C" for C++.
91268         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
91269
91270 2004-07-13  Robert Millan  <robertmh@gnu.org>
91271
91272         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
91273
91274 2004-07-09  Simon Josefsson  <jas@extundo.com>
91275
91276         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
91277         failed without this.)
91278
91279 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91280
91281         * modules/chown (Files): Add lib/fchown-stub.c, since
91282         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
91283
91284 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
91285
91286         * lib/fchown-stub.c: New file.
91287
91288 2004-06-24  Jim Meyering  <jim@meyering.net>
91289
91290         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
91291
91292 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91293
91294         * modules/argz: Omit "#include".
91295
91296         * MODULES.html.sh (func_all_modules): Add calloc, to match
91297         2004-06-01 addition of calloc module.
91298
91299 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91300
91301         * m4/argz.m4: New file, which is autoupdated from libtool.
91302
91303 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91304
91305         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
91306         libtool.
91307
91308 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
91309
91310         * config/srclist-update: Don't insist on "USA." before the
91311         close-comment, as libtool omits the period and puts the */ on a
91312         separate line.
91313         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
91314         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
91315
91316 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
91317
91318         * modules/argz: New file.
91319         * MODULES.html.sh (func_all_modules): Add argz.
91320
91321 2004-06-12  Jim Meyering  <jim@meyering.net>
91322         and  Paul Eggert  <eggert@cs.ucla.edu>
91323
91324         * modules/hash (Files): Add lib/xalloc.h.
91325         * modules/pipe (Depends-on): Add wait-process.
91326         * modules/stat (Depends-on): Add xalloc.
91327         * modules/userspec (Files): Add lib/userspec.h.
91328         * modules/xstrto
91329
91330         Upgrade from gettext-0.13.
91331         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
91332         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
91333         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
91334
91335 2004-06-10  Jim Meyering  <jim@meyering.net>
91336
91337         * lib/calloc.c: New file.
91338
91339 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
91340
91341         * lib/getdate.y (yylex): Allow space between sign and number.
91342         Problem reported by Dan Jacobson.
91343
91344 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91345
91346         Merge from coreutils CVS.
91347
91348         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
91349         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
91350         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
91351         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
91352         xstrtol.m4: Fix copyright date and/or serial number.
91353
91354         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
91355         See if we need an fchown replacement.
91356         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
91357         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
91358         and use the replacement function if we detect either defect.
91359
91360         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
91361         gl_UTIMECMP.
91362
91363 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
91364         and  Jim Meyering  <jim@meyering.net>
91365
91366         Merge from coreutils CVS.
91367
91368         * lib/stat-macros.h: New file, with contents from file-type.h
91369         and coreutils' system.h.
91370         * lib/file-type.c: Include "stat-macros.h".
91371         * lib/file-type.h (file_type): Move all macro definitions to new file,
91372         stat-macros.h.
91373
91374         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
91375         Wrap old code with this conditional.
91376         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
91377         function that does not dereference symlinks.
91378         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
91379
91380         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
91381         dependency problems.
91382         (xreadlink): Accept new arg SIZE, for efficiency.
91383         All decls and uses changed.
91384         * lib/xreadlink.h: Include <stddef.h>, for size_t.
91385
91386         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
91387         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
91388
91389         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
91390         sysexits.h.
91391
91392 2004-06-01  Jim Meyering  <jim@meyering.net>
91393
91394         * m4/calloc.m4: New file.
91395
91396 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
91397
91398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
91399         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
91400         Also, fix a typo in a diagnostic.
91401
91402 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91403
91404         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
91405         or AC_FUNC_REALLOC.
91406
91407 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
91408
91409         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
91410         macros to be defined.
91411         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
91412         the allocator returns NULL because the requested size is zero.
91413
91414 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
91415
91416         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
91417         var.  Add comment explaining why libc still defines it.  This
91418         merges the following patch from glibc:
91419         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
91420
91421 2004-05-20  Andreas Schwab  <schwab@suse.de>
91422
91423         * m4/free.m4: Replace free if it not known to work, not the other
91424         way round.
91425
91426 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
91427
91428         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
91429         present in glibc since revision 1.1 of this file.
91430         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
91431         obstack_alignment_mask, obstack_alloc, obstack_base,
91432         obstack_blank, obstack_blank_fast, obstack_chunk_size,
91433         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
91434         obstack_grow0, obstack_init, obstack_int_grow,
91435         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
91436         obstack_next_free, obstack_object_size, obstack_ptr_grow,
91437         obstack_ptr_grow_fast, obstack_room): Remove declarations of
91438         nonexistent functions.
91439
91440 2004-05-18  Karl Berry  <karl@gnu.org>
91441
91442         * config/srclist.txt: break link for vasnprintf.c.
91443
91444 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91445
91446         Port obstack to the AS/400, where pointers are 16 bytes wide and
91447         you cannot cast an integer to a valid pointer.  This patch is
91448         currently waiting to be integrated into glibc; see
91449         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
91450
91451         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
91452         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
91453         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
91454         (struct obstack): temp member is now a union of a pointer and
91455         an integer, instead of an integer.  All integer uses changed.
91456         This does not affect the physical layout of struct obstack,
91457         except on hosts (like the AS/400) where the size or alignment of
91458         void * is greater than that of ptrdiff_t.
91459         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
91460         __STDC__)]: Store temporary in pointer member of union, not
91461         integer member.
91462         * lib/obstack.c: Include <stddef.h>, for offsetof.
91463         (struct fooalign): Remove; it doesn't need a name.
91464         (union fooround): Change double to long double, and add void *.
91465         (DEFAULT_ALIGNMENT): Use offsetof to compute.
91466         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
91467         not a macro.  Hence the values are always int; so remove all
91468         casts-to-int in uses.
91469
91470 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
91471
91472         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
91473         we can get this patch merged into glibc.
91474
91475 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91476             Paul Eggert  <eggert@cs.ucla.edu>
91477
91478         * m4/argp: Depend on alloca.
91479
91480 2004-05-17  Derek R. Price  <derek@ximbiot.com>
91481             Paul Eggert  <eggert@cs.ucla.edu>
91482
91483         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
91484         freecoding.
91485
91486 2004-05-17  Bruno Haible  <bruno@clisp.org>
91487
91488         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
91489         precision that consists of a '.' followed by an empty digit string.
91490         Patch by Tor Lillqvist <tml@iki.fi>.
91491
91492 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91493
91494         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
91495         for backward compatibility with older code.  We need our own
91496         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
91497         it under some other name, and our alloca.h will define it.
91498
91499 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
91500             Derek Price  <derek@ximbiot.com>
91501
91502         * lib/alloca.c: Include <alloca.h>, to get our interface.
91503         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
91504         include <alloca.h> first.  Use C89 prototype for alloca; this
91505         requires including <stddef.h> for size_t.  Use extern "C" if C++.
91506         Use #elif for simplicity, since we can assume C89 now.
91507         Don't try to source the system alloca.h since it will not be found
91508         and to prevent recursively including its replacement.
91509         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
91510         * lib/regex.c: Likewise.
91511
91512 2004-05-16  Derek Price  <derek@ximbiot.com>
91513             Paul Eggert  <eggert@cs.ucla.edu>
91514
91515         getline cleanup.  This changes the getndelim2 API: both order of
91516         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
91517         no delimiter).
91518
91519         * lib/getline.c: Don't include stddef.h or stdio.h, since our
91520         interface does that.
91521         (getline): Always use getdelim, so that we don't have two
91522         copies of this code.
91523         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
91524         if available.
91525         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
91526         (GETNDELIM2_MAXIMUM): New macro.
91527         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
91528         instead of the old practice of delim2==0.  All callers changed.
91529         Return -1 on overflow, instead of returning junk.
91530         Do not set *linesize unless allocation succeeds.
91531         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
91532         that we include sys/types.h.
91533         * lib/getnline.h: Likewise.
91534         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
91535         (getndelim2): Reorder arguments.
91536         * lib/getnline.c (getnline, getndelim):
91537         Don't discard the NMAX argument.
91538         (getnline): Invoke getndelim, to avoid code duplication.
91539         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
91540         of (size_t) -1 by callers of the getnline family.
91541
91542 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91543
91544         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
91545         Check for gettimeofday.
91546         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
91547         Check for settimeofday, stime.
91548
91549 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
91550
91551         * lib/nanosleep.c (suspended): Change its type from int to
91552         sig_atomic_t volatile.
91553         (first_call): Make it private to rpl_nanosleep, and have it
91554         be zero initially as that's a bit faster.
91555         (my_usleep): Round up fractional times instead of truncating them,
91556         as this is the usual meaning for 'sleep'.
91557
91558         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
91559         doesn't work.
91560         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
91561         (ENOSYS): Define if not defined.
91562         (settime): Fall back on stime if it exists and settimeofday fails.
91563         But don't bother with fallbacks if a method fails with errno == EPERM.
91564
91565 2004-05-11  Jim Meyering  <jim@meyering.net>
91566
91567         Prior to this change, the save_cwd caller required read access to the
91568         current directory on most systems (ones with the fchdir function).
91569
91570         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
91571         fails, try write-only, and finally, resort to using xgetcwd.
91572
91573 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
91574
91575         * lib/obstack.c, obstack.h: Import changes from libc.
91576
91577 2004-04-28  Bruno Haible  <bruno@clisp.org>
91578
91579         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
91580         also implicitly appends .exe to executables.
91581         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
91582         accepts Windows pathnames.
91583         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91584         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91585         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
91586         Treat Cygwin like Windows, since it now accepts Windows pathnames.
91587         Reported by Derek Robert Price <derek@ximbiot.com>.
91588
91589 2004-04-21  Karl Berry  <karl@gnu.org>
91590
91591         * config/srclist.txt (localcharset.c): break sync.
91592
91593 2004-04-20  Paul Eggert  <eggert@twinsun.com>
91594
91595         * m4/host-os.m4: Add a copyright notice.
91596
91597 2004-04-20  Jim Meyering  <jim@meyering.net>
91598
91599         Change UTILS_ to gl_ in AC_DEFINE'd names.
91600         Change utils_- and jm_-prefixed variables, too.
91601         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
91602         UTILS_FUNC_MKDIR_TRAILING_SLASH.
91603         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
91604
91605         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
91606         Don't emit trailing blanks.
91607         Also rename jm_-prefixed variables to have gl_ prefix.
91608
91609         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
91610         Also rename jm_-prefixed variables to have gl_ prefix.
91611
91612         * m4/jm-macros.m4: Reflect the renamings.
91613         * m4/prereq.m4: Likewise.
91614
91615 2004-04-20  Jim Meyering  <jim@meyering.net>
91616
91617         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
91618         memory.
91619
91620 2004-04-20  Jim Meyering  <jim@meyering.net>
91621             Bruno Haible  <bruno@clisp.org>
91622
91623         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
91624         memory when realloc fails.
91625
91626 2004-04-19  Jim Meyering  <jim@meyering.net>
91627
91628         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
91629         now that readutmp.c may call `free (0)'.
91630
91631 2004-04-19  Bruno Haible  <bruno@clisp.org>
91632
91633         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
91634         * m4/inttypes_h.m4: Likewise.
91635         * m4/stdint_h.m4: Likewise.
91636         * m4/intmax_t.m4: Likewise.
91637         * m4/uintmax_t.m4: Likewise.
91638
91639 2004-04-18  Jim Meyering  <jim@meyering.net>
91640
91641         * m4/prereq.m4: Don't forbid jm_ prefix.
91642
91643         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
91644         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
91645         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
91646         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
91647         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
91648         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
91649         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
91650         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
91651         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
91652         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
91653         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
91654         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
91655         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
91656         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
91657         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
91658         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
91659         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
91660         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
91661         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
91662
91663 2004-04-18  Jim Meyering  <jim@meyering.net>
91664
91665         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
91666         failure, don't leak memory and do call END_UTMP_ENT.
91667
91668 2004-04-16  Jim Meyering  <jim@meyering.net>
91669
91670         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
91671         coreutils' stat program.
91672         (gl_PREREQ): Don't require jm_PREREQ_STAT.
91673
91674 2004-04-11  Paul Eggert  <eggert@twinsun.com>
91675
91676         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
91677         C89.
91678         (CHAR_BIT): Remove, since we assume C89.
91679         Include <stdint.h> if available, as per current Autoconf CVS advice.
91680
91681 2004-03-31  Jim Meyering  <jim@meyering.net>
91682
91683         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
91684         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
91685         * m4/xalloc.m4: Likewise.
91686
91687 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91688
91689         Merge from coreutils.
91690
91691         * m4/inttostr.m4: New file.
91692         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
91693         Require AM_STDBOOL_H and gl_TIMESPEC instead.
91694         Require gl_CLOCK_TIME.
91695         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
91696
91697 2004-03-30  Paul Eggert  <eggert@twinsun.com>
91698
91699         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
91700         not bool, to be more consistent with Unix conventions.
91701         Suggested by Bruno Haible.
91702
91703         Merge from coreutils.
91704
91705         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
91706         * lib/umaxtostr.c: New files.
91707
91708         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
91709         the usual <time.h> dance.
91710         (get_date): Change signature to support fractional time stamps.
91711         All callers changed.
91712         * lib/getdate.y: Include "getdate.h" first, as we can now
91713         assume C89 and don't need to worry about 'const'.
91714         Similarly, include "unlocked-io.h" near start, not in middle.
91715         Include <limits.h>.
91716         (textint.value): Use long int rather than int.
91717         (textint.digits): Use size_t rather than int.
91718         (BILLION, LOG10_BILLION): New constants.
91719         (parser_control): New member rel_ns.  Members day_ordinal,
91720         time_zone, month, day, hour, minutes, rel_year, rel_month,
91721         rel_day, rel_hour, rel_minutes, rel_seconds
91722         are now long int, not int.  Member seconds is now struct timespec,
91723         not int.  New member timespec_seen.  Members dates_seen, days_seen,
91724         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
91725         not int.
91726         (%union.intval): Now long int, not int.
91727         New member timespec.
91728         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
91729         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
91730         (spec): Now is a timespec or an item list.
91731         (timespec, items): New nonterminals.
91732         (time, rel, relunit, number, get_date):
91733         Add support for fractional seconds.
91734         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
91735         (gmtime, localtime, mktime): Remove decls; not needed with C89.
91736         (to_hour): First arg is now long int, not int.
91737         (to_year): Returns long int, not int.
91738         Don't treat year -70 like 70.
91739         (tm_diff): Returns long int, not int.
91740         (lookup_word): Use bool instead of int when appropriate.
91741         (yylex): Use size_t for count, not int.
91742         Detect overflow when parsing large integer constants.
91743         Add support for fractions.
91744         (get_date): Make pointers 'const' if possible.
91745         Use more-portable code to detect integer overflow.
91746         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
91747         Don't use ctime; it's not reliable if the year has >4 digits.
91748
91749         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
91750         This is for compatibility with BSD.
91751
91752         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
91753         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
91754         From coreutils' system.h.
91755
91756         * lib/userspec.c: Don't include "posixver.h".
91757         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
91758         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
91759         compatible extension.  Simplify code by removing a boolean int
91760         that was always nonzero if a string was nonnull.
91761
91762 2004-03-30  Jim Meyering  <jim@meyering.net>
91763
91764         Merge from coreutils.
91765
91766         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
91767         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
91768         on some systems one must include <grp.h> before it.
91769         Reported by Christian Krackowizer.
91770
91771 2004-03-30  Jim Meyering  <jim@meyering.net>
91772
91773         Merge from coreutils.
91774
91775         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
91776
91777         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
91778         an empty input stream.
91779
91780         * lib/readtokens.c: Include <stdbool.h>.
91781         (readtoken): Use `size_t' rather than int/long.
91782         All callers adjusted.
91783         Use `bool' rather than `int' where appropriate.
91784         Use memset rather than an explicit loop.
91785         Use x2nrealloc rather than xrealloc.
91786         Allow the use of `\0' as a delimiter.
91787         (readtokens): Likewise.
91788         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
91789
91790 2004-03-30  Jim Meyering  <jim@meyering.net>
91791
91792         * m4/realloc.m4: Remove file, since now it does no more than
91793         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
91794         the `configure.ac' section of module/realloc.
91795         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
91796
91797 2004-03-30  Bruno Haible  <bruno@clisp.org>
91798
91799         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
91800         nonnull.
91801
91802 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91803
91804         Merge changes to getloadavg.c from coreutils and Emacs.
91805
91806         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
91807         Define to an expression, not to the empty string.
91808         Include cloexec.h and xalloc.h.
91809         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
91810         Use set_cloexec_flag rather than rolling our own.
91811         * lib/cloexec.c, lib/cloexec.h: New files.
91812
91813 2004-03-29  Paul Eggert  <eggert@twinsun.com>
91814
91815         * m4/cloexec.m4: New file.
91816
91817 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91818
91819         * lib/getopt.h: Sync with libc CVS.
91820
91821 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91822             Bruno Haible  <bruno@clisp.org>
91823
91824         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
91825         mbswidth.
91826
91827 2004-03-18  Paul Eggert  <eggert@twinsun.com>
91828             Bruno Haible  <bruno@clisp.org>
91829
91830         * lib/mbswidth.h: Include <wchar.h> only if
91831         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
91832         <wchar.h>.
91833         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
91834
91835 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91836
91837         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
91838         Sync with libc CVS.
91839         * lib/getopt_int.h: New file, also synced from libc.
91840
91841 2004-03-09  Paul Eggert  <eggert@twinsun.com>
91842
91843         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
91844         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
91845         Bring back getopt.c, getopt.h, getopt1.c.
91846
91847 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91848
91849         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
91850         All uses changed.  Check for sa_sigaction member; this fixes
91851         a bug first reported by Jason Andrade in
91852         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91853
91854 2004-03-07  Paul Eggert  <eggert@twinsun.com>
91855
91856         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
91857         '#if' expressions.  Unlike the code it replaces, it does not
91858         depend on (defined _SC_PAGESIZE).  However, it does depend on
91859         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
91860         first reported by Jason Andrade in
91861         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
91862
91863 2004-02-25  Simon Josefsson  <jas@extundo.com>
91864
91865         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
91866
91867 2004-02-25  Simon Josefsson  <jas@extundo.com>
91868
91869         * lib/strdup.h: New file.
91870         * lib/strdup.c: Include it.
91871         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
91872         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
91873
91874 2004-02-23  Karl Berry  <karl@gnu.org>
91875
91876         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
91877         (from fencepost.gnu.org:/gd/gnuorg).
91878
91879 2004-02-23  Karl Berry  <karl@gnu.org>
91880
91881         * config/srclistvars.sh (GNUORG) [karl]: redefine.
91882         * config/srclist.txt: add maintain/standards documents.
91883
91884 2004-02-18  Bruno Haible  <bruno@clisp.org>
91885
91886         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
91887         Reported by Derek Robert Price <derek@ximbiot.com>.
91888
91889 2004-02-16  Karl Berry  <karl@gnu.org>
91890
91891         * config/mkinstalldirs, install-sh: update from automake.
91892
91893 2004-02-06  Karl Berry  <karl@gnu.org>
91894
91895         * m4/po.m4: update from gettext 0.14.1.
91896
91897 2004-02-06  Karl Berry  <karl@gnu.org>
91898
91899         * lib/config.charset: update from gettext 0.14.1.
91900
91901 2004-02-05  Paul Eggert  <eggert@twinsun.com>
91902
91903         Add comments and code, prompted by suggestions from Bruno Haible
91904         for sh-quote.
91905         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
91906         describing the enum quoting_style values.
91907         * lib/quotearg.c (quotearg_alloc): New function.
91908         (quotearg_buffer_restyled): Treat lone { and } as special.
91909         Treat = as special.  Work around bug with older shells
91910         that "see" a '\' that is really the 2nd byte of a multibyte char.
91911         Quote empty string with shell_quoting_style.
91912
91913 2004-02-03  Bruno Haible  <bruno@clisp.org>
91914
91915         * m4/pipe.m4: New file, from GNU gettext.
91916
91917 2004-02-03  Bruno Haible  <bruno@clisp.org>
91918
91919         * lib/pipe.h: New file, from GNU gettext.
91920         * lib/pipe.c: New file, from GNU gettext.
91921
91922 2004-01-27  Bruno Haible  <bruno@clisp.org>
91923
91924         * m4/execute.m4: New file, from GNU gettext.
91925
91926 2004-01-27  Bruno Haible  <bruno@clisp.org>
91927
91928         * lib/execute.h: New file, from GNU gettext.
91929         * lib/execute.c: New file, from GNU gettext.
91930         * lib/w32spawn.h: New file, from GNU gettext.
91931
91932 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91933
91934         Merge from diffutils.
91935
91936         * lib/file-type.c (file_type): Add typed memory objects.
91937         * lib/file-type.h (S_TYPEISTMO): New macro.
91938
91939         * lib/c-stack.h (c_stack_action): Remove argv argument.
91940         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
91941         (die): Don't calculate message unless segv_action returns.
91942         (get_stack_location, min_address_from_argv, max_address_from_argv,
91943         volatile stack_base, volatile_stack_size): Remove.
91944         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
91945         that every segmentation violation is a stack overflow.  (Ouch!)
91946         See Debian bug 136249 (still outstanding) for more info about why
91947         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
91948
91949 2004-01-24  Paul Eggert  <eggert@twinsun.com>
91950
91951         Exit-status fix from coreutils.
91952
91953         Use exit_failure consistently in place of EXIT_FAILURE,
91954         so that program exit statuses are consistent on failure.
91955
91956         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
91957         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
91958         * lib/argmatch.h: Comment fix to match the above.
91959         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
91960         Now a macro referring to exit_failure, instead of a separate
91961         variable.  Include "exitfail.h" to get it.
91962         * lib/xstrtol.h: Include "exitfail.h".
91963         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
91964
91965         * lib/long-options.c (parse_long_options): Use prototype
91966         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
91967         for clarity.
91968
91969 2004-01-21  Jim Meyering  <jim@meyering.net>
91970
91971         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
91972         so as not to conflict with a different-sized __mktime_internal
91973         function in GNU libc.
91974         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
91975         Problem building statically-linked `ls' reported by Michael Brunnbauer.
91976
91977 2004-01-20  Karl Berry  <karl@gnu.org>
91978
91979         * config/config.guess: update from config.
91980
91981         * config/srclistvars.sh: GNUWWWLICENSES for karl.
91982
91983 2004-01-20  Bruno Haible  <bruno@clisp.org>
91984
91985         Safer stack allocation.
91986         * lib/setenv.c: Include allocsa.h.
91987         (alloca): Remove fallback definition.
91988         (freea): Remove macro.
91989         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
91990         instead of freea.
91991
91992 2004-01-20  Bruno Haible  <bruno@clisp.org>
91993
91994         * m4/eealloc.m4: New file, from GNU gettext.
91995
91996 2004-01-20  Bruno Haible  <bruno@clisp.org>
91997
91998         * m4/allocsa.m4: New file, from GNU gettext.
91999
92000 2004-01-20  Bruno Haible  <bruno@clisp.org>
92001
92002         * lib/xallocsa.h: New file, from GNU gettext.
92003         * lib/xallocsa.c: New file, from GNU gettext.
92004
92005 2004-01-20  Bruno Haible  <bruno@clisp.org>
92006
92007         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
92008
92009 2004-01-20  Bruno Haible  <bruno@clisp.org>
92010
92011         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
92012         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
92013         specially.
92014
92015 2004-01-20  Bruno Haible  <bruno@clisp.org>
92016
92017         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
92018         patch.
92019
92020 2004-01-20  Bruno Haible  <bruno@clisp.org>
92021
92022         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
92023
92024 2004-01-20  Bruno Haible  <bruno@clisp.org>
92025
92026         * lib/eealloc.h: New file.
92027
92028 2004-01-20  Bruno Haible  <bruno@clisp.org>
92029
92030         * lib/binary-io.h: Avoid warnings on Cygwin.
92031
92032 2004-01-20  Bruno Haible  <bruno@clisp.org>
92033
92034         * lib/allocsa.h: New file, from GNU gettext.
92035         * lib/allocsa.c: New file, from GNU gettext.
92036
92037 2004-01-18  Karl Berry  <karl@gnu.org>
92038
92039         * doc/gpl.texi, doc/lgpl.texi: new files.
92040
92041 2004-01-18  Karl Berry  <karl@gnu.org>
92042
92043         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
92044         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
92045
92046 2004-01-15  Paul Eggert  <eggert@twinsun.com>
92047
92048         Merge from coreutils.
92049
92050         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
92051         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
92052         (gl_DEFAULT_POSIX2_VERSION): Move
92053         the documentation from 'configure' into 'config.hin',
92054         so that 'configure --help' isn't burdened by it and
92055         we don't have to worry about its formatting there.
92056         Reword the documentation so that it's more succinct
92057         and can be run together into a single paragraph.
92058         * m4/same.m4 (gl_SAME): Check for pathconf.
92059
92060 2004-01-15  Paul Eggert  <eggert@twinsun.com>
92061
92062         Merge from coreutils.
92063
92064         * lib/posixver.c: Include posixver.h.
92065
92066         * lib/same.c: Include <stdbool.h>, <limits.h>.
92067         (_POSIX_NAME_MAX): Define if not defined.
92068         (MIN): New macro.
92069         (same_name): If file names are silently truncated, report
92070         that the file names are the same if they are the same after
92071         the silent truncation.
92072
92073         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
92074         conversion function.
92075         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
92076         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
92077         longer needed.
92078
92079 2004-01-15  Jim Meyering  <jim@meyering.net>
92080
92081         Merge from coreutils.
92082
92083         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
92084         if no library is required.
92085         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
92086         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
92087         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
92088         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
92089         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
92090         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
92091         value, $ac_cv_search_crypt, if it's "none required".
92092         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
92093         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
92094         not gl_FUNC_GETLOADAVG.
92095         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
92096         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
92097
92098 2004-01-15  Jim Meyering  <jim@meyering.net>
92099
92100         Merge from coreutils.
92101
92102         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
92103         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
92104         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
92105
92106         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
92107         optional configure-time default.
92108
92109         * lib/version-etc.c (version_etc_copyright): Update copyright date.
92110
92111         * lib/xreadlink.c (xreadlink): Correct outdated comment.
92112
92113 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
92114
92115         Merge from coreutils.
92116
92117         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
92118         value, $ac_cv_search_nanosleep, if it's "none required".
92119
92120 2004-01-14  Paul Eggert  <eggert@twinsun.com>
92121
92122         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
92123         with like-named macro in fnmatch.c.
92124         (EXT): Use an internal constant instead.
92125
92126         Merge fnmatch patches from glibc.
92127         * lib/fnmatch.c (mbsinit): Remove define.
92128         Add libc_hidden_ver (__fnmatch, fnmatch).
92129         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
92130         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
92131
92132 2004-01-14  Karl Berry  <karl@gnu.org>
92133
92134         * config/install-sh: update from automake.
92135
92136 2004-01-13  Karl Berry  <karl@gnu.org>
92137
92138         * config/install-sh: update from automake.
92139
92140 2004-01-09  Karl Berry  <karl@gnu.org>
92141
92142         * config/install-sh: update from automake.
92143
92144 2004-01-05  Karl Berry  <karl@gnu.org>
92145
92146         * config/config.{sub,guess}: update from config.
92147
92148 2003-12-31  Karl Berry  <karl@gnu.org>
92149
92150         * config/depcomp: update from automake.
92151
92152 2003-12-14  Karl Berry  <karl@gnu.org>
92153
92154         * lib/config.charset: update from gettext-runtime.
92155
92156 2003-12-03  Paul Eggert  <eggert@twinsun.com>
92157
92158         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
92159         Bug reported by Alfred M. Szmidt.
92160
92161 2003-12-03  Bruno Haible  <bruno@clisp.org>
92162
92163         * m4/gettext.m4: Upgrade from gettext-0.13.
92164         * m4/po.m4: Upgrade from gettext-0.13.
92165         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
92166         * m4/intmax.m4: New file, from gettext-0.13.
92167         * m4/printf-posix.m4: New file, from gettext-0.13.
92168
92169 2003-11-29  Karl Berry  <karl@gnu.org>
92170
92171         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
92172
92173 2003-11-25  Paul Eggert  <eggert@twinsun.com>
92174             Bruno Haible  <bruno@clisp.org>
92175
92176         * lib/printf-parse.h: Don't include sys/types.h.
92177         (ARG_NONE): New macro.
92178         (char_directive): Change type of *arg_index fields to size_t.
92179         * lib/printf-parse.c: Don't include sys/types.h.
92180         (SSIZE_MAX): Remove macro.
92181         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
92182         Remove unnecessary overflow check.
92183         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
92184         fields.
92185
92186 2003-11-25  Bruno Haible  <bruno@clisp.org>
92187
92188         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
92189
92190 2003-11-25  Bruno Haible  <bruno@clisp.org>
92191
92192         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
92193         gt_TYPE_SSIZE_T.
92194
92195 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92196
92197         * modules/alloca: Remove dependency on xalloc.
92198
92199 2003-11-24  Paul Eggert  <eggert@twinsun.com>
92200
92201         * lib/alloca.c: Remove dependency on xalloc module.
92202         (xalloc_die): Remove.
92203         (memory_full) [!defined emacs]: New macro.
92204         [!defined emacs]: Don't include xalloc.h.
92205         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
92206         address arithmetic overflows.  Change datatypes a bit to avoid
92207         unnecessary casts.
92208
92209 2003-11-22  Jim Meyering  <jim@meyering.net>
92210
92211         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
92212         s/size/size_t/.
92213
92214 2003-11-21  Karl Berry  <karl@gnu.org>
92215
92216         * config/config.{sub,guess}: update from config.
92217
92218 2003-11-18  Karl Berry  <karl@gnu.org>
92219
92220         * config/config.{sub,guess}: update from config.
92221
92222         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
92223
92224 2003-11-17  Paul Eggert  <eggert@twinsun.com>
92225
92226         * README: Mention that S+T cannot overflow if S is the size of
92227         an existing object and T is sufficiently small.
92228
92229 2003-11-17  Jim Meyering  <jim@meyering.net>
92230
92231         On systems without utime and without a utimes function capable of
92232         dealing with a NULL struct utimbuf* argument, this utime replacement
92233         could -- in unusual circumstances -- leak a file descriptor.
92234         * lib/utime.c: Include <unistd.h> and <errno.h>.
92235         (utime_null): Be sure to close `fd' and to preserve errno.
92236         Reported by Geoff Collyer via Arnold Robbins.
92237
92238 2003-11-17  Bruno Haible  <bruno@clisp.org>
92239
92240         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
92241         (Depends-on): Add xsize.
92242
92243 2003-11-17  Bruno Haible  <bruno@clisp.org>
92244
92245         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
92246
92247 2003-11-17  Bruno Haible  <bruno@clisp.org>
92248
92249         * lib/vasnprintf.c (alloca): Remove fallback definition.
92250         (freea): Remove definition.
92251         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
92252         Reported by Paul Eggert.
92253
92254 2003-11-16  Paul Eggert  <eggert@twinsun.com>
92255             Bruno Haible  <bruno@clisp.org>
92256
92257         Protect against address arithmetic overflow.
92258         * lib/printf-args.h: Include stddef.h.
92259         (arguments): Change type of field 'count' to size_t.
92260         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
92261         'unsigned int' where appropriate.
92262         * lib/printf-parse.h: Include sys/types.h.
92263         (char_directive): Change type of *arg_index fields to ssize_t.
92264         (char_directives): Change type of fields 'count', max_*_length to
92265         size_t.
92266         * lib/printf-parse.c: Include sys/types.h and xsize.h.
92267         (SSIZE_MAX): Define fallback value.
92268         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
92269         instead of 'int' where appropriate. Check a_allocated, d_allocated
92270         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
92271         * lib/vasnprintf.c: Include xsize.h.
92272         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
92273         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
92274         overflow. Avoid wraparound when converting a width or precision from
92275         decimal to binary.
92276
92277 2003-11-16  Bruno Haible  <bruno@clisp.org>
92278
92279         Update from GNU gettext.
92280         * lib/printf-parse.c: Generalize to it can be compiled for wide
92281         strings.
92282         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
92283         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
92284         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
92285         SNPRINTF): New macros.
92286         Don't include <alloca.h> if the file is used inside libintl.
92287         (local_wcslen): New function, for Solaris 2.5.1.
92288         (VASNPRINTF): Use it instead of wcslen.
92289
92290 2003-11-16  Bruno Haible  <bruno@clisp.org>
92291
92292         * lib/xsize.h (xmax): New function.
92293         (xsum, xsum3, xsum4): Declare as "pure" functions.
92294
92295 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92296
92297         * modules/xalloc (Files): Undo latest change, since xalloc.h
92298         no longer needs SIZE_MAX or PTRDIFF_MAX.
92299
92300 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92301
92302         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
92303         gl_PTRDIFF_MAX.
92304
92305 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92306
92307         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
92308         "return", to pacify some unknown compiler.  Problem reported
92309         by Joerg Schilling.
92310
92311 2003-11-12  Paul Eggert  <eggert@twinsun.com>
92312
92313         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
92314         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
92315         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
92316         heuristic is just as accurate as far as we know, and it removes a
92317         dependency on size_max.m4 and ptrdiff_max.m4.
92318
92319 2003-11-11  Bruno Haible  <bruno@clisp.org>
92320
92321         * modules/xsize (Files): Add m4/size_max.m4.
92322         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
92323
92324 2003-11-11  Bruno Haible  <bruno@clisp.org>
92325
92326         * m4/size_max.m4: New file.
92327         * m4/ptrdiff_max.m4: New file.
92328         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
92329         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
92330         (gl_XALLOC): Invoke it.
92331
92332 2003-11-11  Bruno Haible  <bruno@clisp.org>
92333
92334         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
92335         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
92336         defined.
92337
92338 2003-11-10  Paul Eggert  <eggert@twinsun.com>
92339
92340         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
92341         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
92342         rejected some allocations of exactly SIZE_MAX - 2 bytes.
92343         From Bruno Haible.
92344         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
92345         not (size_t) -1, since it's defined here.
92346
92347 2003-11-09  Karl Berry  <karl@gnu.org>
92348
92349         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
92350
92351 2003-11-06  Paul Eggert  <eggert@twinsun.com>
92352
92353         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
92354         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
92355         Reject sizes of exactly SIZE_MAX bytes.
92356         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
92357         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
92358
92359 2003-11-05  Bruno Haible  <bruno@clisp.org>
92360
92361         * lib/xsize.h: Include limits.h, to avoid a possible collision with
92362         SIZE_MAX defined in <limits.h> on Solaris.
92363
92364 2003-11-04  Jim Meyering  <jim@meyering.net>
92365
92366         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
92367         variable names, rather than @VAR@.
92368         * modules/poll: Likewise.
92369
92370 2003-11-04  Bruno Haible  <bruno@clisp.org>
92371
92372         * modules/xsize: New file.
92373         * modules/linebreak: Depend on xsize.
92374         * MODULES.html.sh (func_all_modules): Add xsize.
92375
92376 2003-11-04  Bruno Haible  <bruno@clisp.org>
92377
92378         * m4/xsize.m4: New file.
92379
92380 2003-11-04  Bruno Haible  <bruno@clisp.org>
92381
92382         * lib/xsize.h: New file.
92383         * lib/linebreak.c: Include xsize.h.
92384         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
92385         argument for overflow.
92386         Suggested by Paul Eggert.
92387
92388 2003-11-03  Karl Berry  <karl@gnu.org>
92389
92390         * config/config.{guess,sub}: update from config.
92391
92392 2003-11-03  Jim Meyering  <jim@meyering.net>
92393
92394         * modules/userspec (lib_SOURCES): Add userspec.h.
92395         (Include): Add "userspec.h".
92396         Improve description.
92397
92398 2003-11-03  Jim Meyering  <jim@meyering.net>
92399
92400         * lib/userspec.c: Include "userspec.h".
92401         * lib/userspec.h: New file.
92402
92403 2003-11-03  Bruno Haible  <bruno@clisp.org>
92404
92405         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
92406
92407 2003-11-03  Bruno Haible  <bruno@clisp.org>
92408
92409         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
92410         available, to avoid (extremely rare) race condition.
92411         Suggested by Paul Eggert.
92412
92413 2003-11-02  Karl Berry  <karl@gnu.org>
92414
92415         * config/srclist.txt (vasprintf.c): sync broken, sigh.
92416
92417 2003-10-31  Paul Eggert  <eggert@twinsun.com>
92418
92419         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
92420         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
92421         (read_filesystem_list): Set and use me_type_malloced.
92422         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
92423         whatever the type happens to be), for brevity and consistency.
92424         Check for size calculation overflow on Alphas running OSF/1.
92425
92426 2003-10-31  Jim Meyering  <jim@meyering.net>
92427
92428         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
92429
92430         * lib/linebuffer.c: Include <string.h> for declaration of memset.
92431
92432 2003-10-30  Paul Eggert  <eggert@twinsun.com>
92433             Bruno Haible  <bruno@clisp.org>
92434
92435         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
92436         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
92437
92438 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
92439
92440         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
92441         netbsd*-gnu*.  Suggested by Robert Millan.
92442
92443 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92444
92445         * modules/group-member: Depend on stdbool.
92446
92447 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92448
92449         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
92450
92451 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92452
92453         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
92454         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
92455         after the 'gnu' in these cases.  This fixes some bugs in the
92456         previous change, and is based on suggestions by Robert Millan.
92457
92458 2003-10-29  Paul Eggert  <eggert@twinsun.com>
92459
92460         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
92461         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
92462         no longer needed.
92463         * lib/quotearg.c (quotearg_n_options): Use it.
92464         * lib/group-member.c: Include <stdbool.h>.
92465         (free_group_info): Arg is now const *; don't free arg.
92466         (get_group_info): Now returns bool and accepts struct group_info *,
92467         rather than returning a malloc'ed struct group_info *.
92468         All uses changed.  Check for overflow in internal size calculation.
92469
92470         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
92471         rather than xmalloc/xrealloc.
92472         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
92473         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
92474         conformance bug: the old code used a pointer after freeing the
92475         storage that it addressed.
92476         * lib/hash.c (hash_initialize): Simplify the code by using
92477         xalloc_oversized rather than doing it by hand.
92478         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
92479         the buffer preserved.  Use free and xmalloc instead.
92480         * lib/quotearg.c (quotearg_n_options): Likewise.
92481         Use a simpler test for size overflow.  Don't use xalloc_oversized
92482         because unsigned int might be wider than size_t (!); this suggests
92483         that we should switch from unsigned int to size_t for slot numbers.
92484
92485 2003-10-28  Paul Eggert  <eggert@twinsun.com>
92486
92487         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
92488         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
92489         NetBSD kernels.  Requested by Richard Stallman.
92490
92491 2003-10-27  Paul Eggert  <eggert@twinsun.com>
92492
92493         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
92494         to allocate the returned structure.  Do not allocate a subarray,
92495         as x2nrealloc will do that.
92496         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
92497         instead of xnrealloc.
92498         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
92499
92500 2003-10-27  Bruno Haible  <bruno@clisp.org>
92501
92502         * lib/stdbool_.h: Better support for BeOS.
92503
92504 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92505
92506         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
92507         now uses inline.
92508
92509 2003-10-26  Paul Eggert  <eggert@twinsun.com>
92510
92511         * lib/xalloc.h (xalloc_oversized): New static inline function, for
92512         callers that want to do their own size-overflow checking.  Include
92513         <stdbool.h>, since xalloc_oversized returns bool.
92514         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
92515         to use xalloc_oversized.
92516
92517         Add two functions x2realloc, x2nrealloc, for programs that grow
92518         arrays dynamically by doubling their sizes.
92519         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
92520         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
92521         New functions.
92522
92523         Port to C99 semantics for 'inline' of external functions.
92524         Bug reported by Bruno Haible.
92525         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
92526         with the old contents of xnmalloc.
92527         (xnmalloc, xmalloc): Use it.
92528         (xnrealloc_inline): New static inline function,
92529         with the old contents of xnrealloc.
92530         (xnrealloc, xrealloc): Use it.
92531
92532         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
92533         that.
92534
92535 2003-10-26  Karl Berry  <karl@gnu.org>
92536
92537         * config/srclist.txt (COPYING.DOC): no longer available from
92538         /gd/gnuorg; don't know where the ultimate source is.
92539
92540 2003-10-25  Paul Eggert  <eggert@twinsun.com>
92541
92542         Fix several address-calculation bugs in the hash modules,
92543         plus some minor code cleanup.
92544
92545         * lib/hash.h: Include <stdbool.h>, for bool.
92546         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
92547         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
92548         hash_get_n_entries, hash_get_max_bucket_length,
92549         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
92550         hash_rehash): Use size_t rather than unsigned.
92551         * lib/hash.c (struct hash_table, hash_get_n_buckets,
92552         hash_get_n_buckets_used, hash_get_n_entries,
92553         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
92554         hash_get_entries, hash_do_for_each, hash_string, is_prime,
92555         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
92556         Likewise.
92557         (SIZE_MAX): Define if not defined.
92558         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
92559         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
92560         hash_print):
92561         Use const * when possible.
92562         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
92563         (check_tuning): Fix bug: if tuning parameters were very close to
92564         0 or 1, rounding errors could have caused subscript violations.
92565         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
92566         (hash_initialize): Add 'fail:' label
92567         to free table and return NULL, and use it to simplify code.
92568         Use calloc rather than clearing the storage ourself.
92569         (hash_initialize, hash_rehash): Check for arithmetic overflow in
92570         buffer size calculations.
92571         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
92572         Include <stddef.h>, for size_t.
92573         * lib/hash-pjw.c (hash_pjw): Likewise.
92574         Switch to method described by Bruno Haible.
92575         Include <limits.h>, for CHAR_BIT.
92576         (SIZE_BITS): New macro.
92577
92578 2003-10-23  Paul Eggert  <eggert@twinsun.com>
92579
92580         * m4/getline.m4 (AM_FUNC_GETLINE):
92581         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
92582         hosts.  Problem reported by Derek Robert Price in
92583         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
92584         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
92585         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
92586
92587 2003-10-21  Paul Eggert  <eggert@twinsun.com>
92588
92589         * lib/getndelim2.c (getndelim2): When size calculation overflows,
92590         ceiling the allocation at NMAX bytes rather than silently
92591         discarding input bytes before NMAX is reached.  This makes
92592         a difference only if NMAX exceeds SIZE_MAX / 2.
92593
92594         * lib/obstack.c: Merge from glibc.
92595         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
92596         Add libc_hidden_def (_obstack_newchunk).
92597         (_obstack_free) [! defined _LIBC]: Remove.
92598         [defined _LIBC]: Make a strong alias from obstack_free, rather than
92599         a clone of the function body.
92600         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
92601         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
92602
92603         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
92604         glibc.
92605         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
92606         arg to memcpy.
92607
92608         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
92609         (obstack_ptr_grow_fast, obstack_int_grow_fast):
92610         Don't use lvalue casts, as GCC plans to remove support for them
92611         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
92612         was also present in the non-GCC version, indicating that this
92613         code had always been buggy and had never been widely used.
92614         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
92615         Use the fast variant of each macro, rather than copying the
92616         definiens of the fast variant; that way, we'll be more likely to
92617         catch future bugs in the fast variants.
92618
92619 2003-10-20  Bruno Haible  <bruno@clisp.org>
92620
92621         * modules/wait-process: New file.
92622         * MODULES.html.sh (func_all_modules): Add wait-process.
92623
92624 2003-10-20  Bruno Haible  <bruno@clisp.org>
92625
92626         * m4/wait-process.m4: New file.
92627
92628 2003-10-20  Bruno Haible  <bruno@clisp.org>
92629
92630         * lib/wait-process.h: New file, from GNU gettext.
92631         * lib/wait-process.c: New file, from GNU gettext.
92632
92633 2003-10-19  Jim Meyering  <jim@meyering.net>
92634
92635         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
92636         HPUX 10.20.
92637
92638 2003-10-18  Karl Berry  <karl@gnu.org>
92639
92640         * config/config.guess: update from config.
92641
92642 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92643
92644         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
92645         (getgroups): First arg is int, not size_t.
92646         Don't let 'free' mangle errno.
92647
92648 2003-10-16  Paul Eggert  <eggert@twinsun.com>
92649
92650         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
92651
92652 2003-10-16  Karl Berry  <karl@gnu.org>
92653
92654         * config/config.{guess,sub}: update from config.
92655
92656 2003-10-16  Jim Meyering  <jim@meyering.net>
92657
92658         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
92659         memcpy.
92660
92661 2003-10-15  Paul Eggert  <eggert@twinsun.com>
92662
92663         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
92664         (SIZE_MAX): Remove.
92665         (new_exclude, add_exclude_file): Initial size no longer needs to
92666         be a power of 2.
92667         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
92668         our own address arithmetic overflow checking.
92669
92670         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
92671         (fnmatch): Do not alloca more than 2000 wide characters;
92672         instead, use malloc for large buffers.
92673         Check for address arithmetic overflow, and return -1
92674         with errno set to ENOMEM in that case.
92675         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
92676         (NEW_PATTERN): Do not alloca more than 8000 bytes;
92677         instead, return -1.  Check for address arithmetic overflow.
92678
92679 2003-10-14  Paul Eggert  <eggert@twinsun.com>
92680
92681         Handle invalid suffixes and overflow independently, so that
92682         callers can treat them independently as needed.  Fix some bugs in
92683         suffix handling, e.g., "100k@" was not diagnosed as an invalid
92684         suffix for a human-readable blocksize.  The major caller-visible
92685         change is the addition of a new
92686         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
92687         that both overflow and suffix chars were found.
92688
92689         * lib/human.c (humblock): Don't check separately for invalid suffix
92690         char; that is xstrtoumax's job (now that its bug is fixed).
92691         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
92692         INTMAX_MAX]: New macros.
92693         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
92694         TYPE_MAXIMUM): New macros.
92695         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
92696         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
92697         if overflow occurs, as it's what __strtol does and it's more useful
92698         in practice.
92699         (__xstrtol): If __strtol reports some error other than ERANGE,
92700         reflect it to the caller as LONGINT_INVALID.  If it reports
92701         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
92702         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
92703         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
92704         value.
92705         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
92706         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
92707         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
92708         [defined UINTMAX_MAX]: New macros.
92709
92710 2003-10-14  Bruno Haible  <bruno@clisp.org>
92711
92712         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
92713
92714 2003-10-14  Bruno Haible  <bruno@clisp.org>
92715
92716         * m4/sig_atomic_t: New file, from GNU gettext.
92717         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
92718
92719 2003-10-14  Bruno Haible  <bruno@clisp.org>
92720
92721         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
92722         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
92723         Also use volatile where needed.
92724
92725 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92726
92727         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
92728         Change maintainer from Bruno Haible to 'all'.
92729
92730 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92731
92732         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
92733
92734 2003-10-12  Paul Eggert  <eggert@twinsun.com>
92735
92736         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
92737         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
92738         and define in terms of the other primitives.
92739         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
92740         (SIZE_MAX): Define if not already defined.
92741         (array_size_overflow): New function.
92742         (xalloc_die): Abort instead of exiting if 'error' returns.
92743         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
92744         (xmalloc, xrealloc): Use them.
92745         (xcalloc): Check for address arithmetic overflow.
92746         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
92747         a bit faster than strcpy.
92748
92749 2003-10-10  Simon Josefsson  <jas@extundo.com>
92750
92751         * modules/argp (Depends-on): Add restrict and strcase.
92752
92753 2003-10-10  Simon Josefsson  <jas@extundo.com>
92754
92755         * m4/argp.m4: Add AC_C_INLINE.
92756
92757 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92758
92759         Merge getpass from libc, plus a few fixes.
92760
92761         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
92762         Include <stdbool.h>.
92763         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
92764         __fsetlocking to empty.
92765         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
92766         do include <bits/libc-lock.h>.
92767         Do not include <fcntl.h>; not needed.
92768         [_LIBC]: Include <wchar.h>.
92769         (NOTCANCEL_MODE): New macro.
92770         (flockfile, funlockfile) [_LIBC]: New macros.
92771         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
92772         [!_LIBC]: New macros.
92773         (call_fclose): New function.
92774         (getpass): Use it.  Save tty stream separately; this simplifies the
92775         code and makes it more reliable if stdin happens to equal stdout.
92776         Invoke __fsetlocking on tty.
92777         Handle thread cancellation if needed.
92778         Namespace cleanup (use __tcgetattr, __getline).
92779         Use bool for Booleans.
92780         [USE_IN_LIBIO]: Handle wide streams.
92781         [!_LIBC]: Unconditionally do the fseek, since we don't know what
92782         stream might go where.
92783
92784         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
92785         doesn't have to include <stdio.h> before us.
92786         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
92787         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
92788         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
92789         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
92790         if not declared, so that we can use getpass.c code from libc without
92791         rewriting it.
92792         (flockfile, ftrylockfile, funlockfile): New macros.
92793
92794 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92795
92796         * modules/getpass: Depend on stdbool.
92797
92798 2003-10-08  Paul Eggert  <eggert@twinsun.com>
92799
92800         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
92801
92802 2003-10-07  Karl Berry  <karl@gnu.org>
92803
92804         * config/config.{guess,sub}: update from config.
92805
92806 2003-10-06  Jim Meyering  <jim@meyering.net>
92807             Bruno Haible  <bruno@clisp.org>
92808
92809         This lets translators provide better translations for the
92810         "Written by ..." part of --version output.
92811         * lib/version-etc.h: Include stdarg.h.
92812         (version_etc_copyright): Declare as readonly.
92813         (version_etc): Make this function variadic with a NULL-terminated list
92814         of author name strings.
92815         (version_etc_va): New declaration.
92816         * lib/version-etc.c: Include stdarg.h, stdlib.h.
92817         (version_etc_copyright): Declare as readonly.
92818         (version_etc_va): New function. Provide a different translatable string
92819         for each possible number of authors < 10. Abbreviate when there are 10
92820         authors or more.
92821         (version_etc): Make this function variadic. Call version_etc_va.
92822         Suggestion from Gary V. Vaughan.
92823
92824         * lib/long-options.h (parse_long_options): Change prototype: the
92825         authors string is moved to the end and becomes variadic.
92826         * lib/long-options.c: Include stdarg.h.
92827         (parse_long_options): Make this function variadic, too.
92828         Call version_etc_va, not version_etc.
92829
92830 2003-10-06  Bruno Haible  <bruno@clisp.org>
92831
92832         * modules/version-etc-2: Remove file.
92833         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
92834
92835 2003-10-06  Bruno Haible  <bruno@clisp.org>
92836
92837         * modules/fatal-signal: New file.
92838         * MODULES.html.sh (func_all_modules): Add fatal-signal.
92839
92840 2003-10-06  Bruno Haible  <bruno@clisp.org>
92841
92842         * m4/fatal-signal.m4: New file.
92843         * m4/signalblocking.m4: New file, from GNU gettext.
92844
92845 2003-10-06  Bruno Haible  <bruno@clisp.org>
92846
92847         * lib/version-etc-2.h: Remove file.
92848         * lib/version-etc-2.c: Remove file.
92849
92850 2003-10-06  Bruno Haible  <bruno@clisp.org>
92851
92852         * lib/fatal-signal.h: New file, from GNU gettext.
92853         * lib/fatal-signal.c: New file, from GNU gettext.
92854
92855 2003-10-05  Paul Eggert  <eggert@twinsun.com>
92856
92857         * README: Rework advice for preventing empty .o files.
92858         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
92859         not <sys/types.h>.
92860
92861 2003-10-04  Karl Berry  <karl@gnu.org>
92862
92863         * lib/argp*: update from libc.
92864
92865 2003-10-04  Karl Berry  <karl@gnu.org>
92866
92867         * config/config.{guess,sub}: update from config.
92868
92869 2003-10-02  Bruno Haible  <bruno@clisp.org>
92870
92871         * modules/lchown (Include): Add lchown.h.
92872         * modules/time_r (Include): Use "..." syntax.
92873         * modules/xgetdomainname (Include): Add xgetdomainname.h.
92874
92875 2003-10-01  Simon Josefsson  <jas@extundo.com>
92876
92877         * MODULES.html.sh (func_all_modules): Move gethostname from section
92878         'based on' to section 'lacking' POSIX:2001.
92879
92880 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
92881
92882         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
92883         to output mode on the same stream.
92884
92885 2003-09-29  Paul Eggert  <eggert@twinsun.com>
92886
92887         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
92888         Fix arg typo in previous patch.
92889
92890 2003-09-28  Jim Meyering  <jim@meyering.net>
92891
92892         * lib/error.c: Correct cpp indentation.
92893
92894 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92895
92896         * modules/free: New file.
92897
92898 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92899
92900         * m4/free.m4: New file.
92901
92902 2003-09-27  Paul Eggert  <eggert@twinsun.com>
92903
92904         * lib/minmax.h (MIN, MAX)
92905         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
92906         Omit the special code that used __typeof__, since we worry that
92907         it could be more trouble than it's worth.  See:
92908         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
92909         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
92910
92911         * lib/free.c: New file.
92912
92913 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
92914
92915         Trivial fixes to Makefile.am parts of module listings.
92916         * modules/strstr: Append strstr.h to lib_SOURCES.
92917         * modules/strcase: Likewise, for strcase.h.
92918
92919 2003-09-27  Karl Berry  <karl@gnu.org>
92920
92921         * config/mkinstalldirs: update from automake.
92922
92923 2003-09-26  Paul Eggert  <eggert@twinsun.com>
92924
92925         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
92926         (error_tail): Do not loop, reallocating temporary buffer, since
92927         the output cannot contain more wide characters than the input
92928         contains bytes, the size must be big enough already.  This avoids
92929         one potential size overflow calculation.  Check for size overflow
92930         when calculating temporary buffer size.  Free temporary buffer
92931         when done, if it was allocated with malloc; this plugs a memory
92932         leak.  Remove casts from void * to pointers, that are no longer
92933         needed now that we're assuming C89 or better.
92934
92935         Merge error changes from glibc.
92936
92937         * lib/error.c, error.h: Update copyright notice header to match glibc.
92938         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
92939         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
92940         Disable cancellation while printing error.
92941         * lib/error.h: Prepend __ to parameter names.
92942
92943 2003-09-26  Jim Meyering  <jim@meyering.net>
92944
92945         * lib/error.c (error_tail): Move some declarations
92946         into inner scope where the local variables are used.
92947
92948 2003-09-26  Bruno Haible  <bruno@clisp.org>
92949
92950         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
92951         stpncpy().
92952         Don't define stpncpy through config.h; it's now done through stpncpy.h.
92953
92954 2003-09-26  Bruno Haible  <bruno@clisp.org>
92955
92956         * lib/stpncpy.h (gnu_stpncpy): New declaration.
92957         (stpncpy): Define as alias for gnu_stpncpy.
92958         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
92959
92960 2003-09-25  Simon Josefsson  <jas@extundo.com>
92961
92962         * lib/xgetdomainname.h: New file.
92963         * lib/xgetdomainname.c: New file.
92964
92965 2003-09-25  Simon Josefsson  <jas@extundo.com>
92966             Bruno Haible  <bruno@clisp.org>
92967
92968         * modules/getdomainname: New file.
92969         * modules/xgetdomainname: New file.
92970         * MODULES.html.sh (func_all_modules): Add getdomainname,
92971         xgetdomainname.
92972
92973 2003-09-25  Simon Josefsson  <jas@extundo.com>
92974             Bruno Haible  <bruno@clisp.org>
92975
92976         * m4/getdomainname.m4: New file.
92977
92978 2003-09-25  Simon Josefsson  <jas@extundo.com>
92979             Bruno Haible  <bruno@clisp.org>
92980
92981         * lib/getdomainname.h: New file.
92982         * lib/getdomainname.c: New file.
92983
92984 2003-09-25  Karl Berry  <karl@gnu.org>
92985
92986         * lib/argp-fmtstream.c, argp-help.c: update from libc.
92987
92988 2003-09-25  Karl Berry  <karl@gnu.org>
92989
92990         * config/install-sh: update from automake.
92991
92992 2003-09-25  Bruno Haible  <bruno@clisp.org>
92993
92994         * modules/version-etc-2: New file, from modules/version-etc with
92995         modifications.
92996         * MODULES.html.sh (func_all_modules): Add version-etc-2.
92997
92998 2003-09-25  Bruno Haible  <bruno@clisp.org>
92999
93000         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
93001         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
93002
93003 2003-09-24  Simon Josefsson  <jas@extundo.com>
93004
93005         * modules/xgethostname: Add xgethostname.h.
93006
93007 2003-09-24  Paul Eggert  <eggert@twinsun.com>
93008
93009         * lib/linebuffer.c (freebuffer): Don't free the argument, just
93010         the buffer associated with the argument.  Bug reported by
93011         Simon Josefsson.
93012
93013 2003-09-24  Paul Eggert  <eggert@twinsun.com>
93014
93015         * README: Document assumptions that 'int' is at least 32 bits
93016         wide, that integer arithmetic is 2's complement without overflow,
93017         that there are no holes in integer values, that adding sizes of
93018         two nonoverlapping objects can't overflow, and that all-bits-zero
93019         yields scalar zero.  Fix spelling and capitalization typos.
93020
93021 2003-09-19  Karl Berry  <karl@gnu.org>
93022
93023         * lib/argp.h: update from libc.
93024
93025 2003-09-17  Paul Eggert  <eggert@twinsun.com>
93026
93027         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
93028         to avoid spurious warnings like "AC_RUN_IFELSE was called before
93029         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
93030
93031 2003-09-17  Paul Eggert  <eggert@twinsun.com>
93032
93033         * gnulib-tool: Use "test -h", not "test -L", for portability
93034         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
93035         (tags_regexp): Remove, since \| doesn't conform to POSIX.
93036         (sed_extract_prog): Issue s commands one-by-one, rather than
93037         using \| in one s command.
93038
93039 2003-09-16  Paul Eggert  <eggert@twinsun.com>
93040
93041         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
93042         input error, instead of returning NULL the next time we are called
93043         (and therefore losing track of errno).
93044
93045 2003-09-16  Bruno Haible  <bruno@clisp.org>
93046
93047         * gnulib-tool (func_create_testdir): Warn about duplicated
93048         dependencies.
93049
93050 2003-09-15  Paul Eggert  <eggert@twinsun.com>
93051
93052         * modules/argmatch, modules/fatal, modules/obstack,
93053         modules/xalloc, modules/xgethostname: Sort dependencies by
93054         importance, not alphabetically.
93055
93056 2003-09-15  Paul Eggert  <eggert@twinsun.com>
93057
93058         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
93059         fails, so that the caller gets the proper errno.
93060
93061         * lib/readutmp.c (read_utmp): Likewise.
93062         Check for fstat error.  Close stream and free storage
93063         when failing.
93064
93065 2003-09-14  Karl Berry  <karl@gnu.org>
93066
93067         * config/srclist.txt (strdup.c): disable for c89 changes.
93068
93069 2003-09-14  Jim Meyering  <jim@meyering.net>
93070
93071         * lib/getloadavg.c: Correct cpp indentation.
93072         * lib/strdup.c: Likewise.
93073         * lib/vasnprintf.c: Likewise.
93074
93075 2003-09-14  Bruno Haible  <bruno@clisp.org>
93076
93077         * modules/fwriteerror: New file.
93078         * MODULES.html.sh (func_all_modules): Add fwriteerror.
93079
93080 2003-09-14  Bruno Haible  <bruno@clisp.org>
93081
93082         * lib/fwriteerror.h: New file.
93083         * lib/fwriteerror.c: New file.
93084
93085 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93086
93087         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
93088         modules/xgethostname, modules/xalloc: Depend on exit.
93089
93090 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93091
93092         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
93093
93094         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
93095         and AC_MINIX, too, so that their extensions are available.
93096
93097         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
93098         This macro has been superseded by gl_BACKUPFILE.
93099
93100         More patches to assume C89 or better.
93101
93102         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
93103
93104         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
93105         unconditionally.
93106         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
93107         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
93108         Include <string.h>, <stdlib.h> unconditionally.
93109         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
93110         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
93111         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
93112         headers or for string.h.
93113         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
93114         or strtoul.
93115
93116         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
93117         headers.
93118         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
93119         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93120         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
93121         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
93122         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93123         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
93124         memcpy, memset.
93125         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
93126         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
93127         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
93128         strtol.
93129         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
93130         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
93131         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
93132         strtoul.
93133
93134 2003-09-12  Paul Eggert  <eggert@twinsun.com>
93135
93136         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
93137         * lib/obstack.c [!defined _LIBC]: Likewise.
93138         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
93139         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
93140         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
93141
93142         More changes to assume C89 or better.
93143
93144         * lib/error.c (error_tail): Assume vprintf.
93145
93146         * lib/argmatch.c (getenv): Remove decl.
93147         * lib/progreloc.c (get_full_program_name): Define via prototype.
93148         * lib/setenv.c (clearenv): Likewise.
93149         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
93150         needed.
93151         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
93152         (malloc, memcpy): Remove decls.
93153         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
93154         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
93155         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93156         (memcpy): Remove macro.
93157         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
93158         (__P): Remove.  All uses removed.
93159         (PTR): Remove.  All uses changed to void *.
93160         (CHAR_BIT, NULL): Remove.
93161         (spaces, zeros, memset_space, memset_zero)
93162         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
93163         Remove.
93164         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
93165         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
93166         Define with prototype.
93167         Remove now-unnecessary prototype decl.
93168         (extra_args_spec): Assume ANSI C.  All uses changed.
93169         (extra_args_spec_iso): Remove.
93170         (my_strftime, emacs_strftimeu): Define via prototype.
93171         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
93172         unconditionally.
93173         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
93174         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
93175         (strtoul, strtol): Remove decls.
93176         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
93177         LONG_MAX): Remove.
93178         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
93179         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
93180         (LOCALE_PARAM_PROTO): New macro.
93181         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
93182         (INTERNAL (strtol), strtol): Define with a prototype.
93183         (PARAMS): Remove.  All uses removed.
93184         * lib/tempname.c: Include <string.h> unconditionally.
93185         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
93186         * lib/xgethostname.c (main): Define with a prototype.
93187         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
93188         Include <stdlib.h> unconditionally.
93189         (calloc, malloc, realloc, free): Remove decls.
93190         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
93191         Include <stdlib.h> unconditionally.  Sort include file names.
93192         (strtod): Remove.
93193         (xstrtod): Define with a prototype.
93194         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
93195         (strtol, strtoul): Remove decls.
93196
93197 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93198
93199         More patches to assume C89 or better.
93200         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
93201         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
93202         string.h, memchr, STDC_HEADERS.
93203
93204 2003-09-11  Paul Eggert  <eggert@twinsun.com>
93205
93206         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
93207         Include <stdlib.h>, <string.h> unconditionally.
93208         Remove now-unnecessary cast to char *.
93209         * lib/strnlen.c: Include <string.h> unconditionally.
93210         * lib/yesno.c (yesno): Define with a prototype.
93211
93212 2003-09-11  Bruno Haible  <bruno@clisp.org>
93213
93214         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
93215
93216 2003-09-10  Jim Meyering  <jim@meyering.net>
93217
93218         * lib/error.c: Correct indentation of cpp directives.
93219
93220 2003-09-10  Bruno Haible  <bruno@clisp.org>
93221
93222         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
93223         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
93224         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
93225         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
93226         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
93227         <stdlib.h> and <string.h> checks.
93228         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
93229         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
93230
93231 2003-09-10  Bruno Haible  <bruno@clisp.org>
93232
93233         * lib/strcspn.c: Include <string.h> unconditionally.
93234         * lib/strpbrk.c: Include <string.h> unconditionally.
93235         * lib/strstr.c: Include <string.h> unconditionally.
93236         * lib/unicodeio.c: Include <string.h> unconditionally.
93237         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
93238         * lib/unsetenv.c: Likewise.
93239         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
93240         * lib/yesno.c: Include <stdlib.h> unconditionally.
93241         (rpmatch): Add prototype.
93242
93243 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93244
93245         More patches to assume C89 or better.
93246         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
93247         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
93248         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
93249         or for string.h.
93250         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
93251         stdlib.h.
93252         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
93253         C headers.
93254         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
93255         string.h.
93256         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
93257         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
93258         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
93259         or for string.h.
93260         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
93261         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
93262         C headers.
93263         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
93264         memcpy.
93265         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
93266         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
93267         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
93268         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
93269         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
93270         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
93271         string.h, free.
93272         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
93273         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
93274         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
93275         C headers, or for string.h.
93276         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
93277         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
93278         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
93279         headers, memory.h, stdlib.h, string.h, strings.h.
93280         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
93281         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
93282         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
93283         strchr.
93284         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
93285         headers, memory.h, string.h.
93286         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
93287         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
93288         free.
93289         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
93290         headers.
93291         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
93292         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
93293         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
93294         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
93295         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
93296
93297 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93298
93299         More K&R removal.
93300
93301         * lib/acosl.c (main): Use a prototype.
93302         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
93303         tanl.c: Likewise.
93304
93305         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
93306
93307         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
93308         (getopt, etopt_long, getopt_long_only, _getopt_internal)
93309         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
93310         with a prototype.
93311         * lib/getopt.c (const): Remove macro.
93312         Include <string.h> unconditionally.
93313         (my_index): Remove; all uses changed to strchr.
93314         (strlen): Remove decl.
93315         (exchange): Remove forward decl; no longer needed.
93316         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
93317         Define with prototype.
93318         * lib/getopt1.c (const): Remove macro.
93319         (getopt_long, getopt_long_only, main): Define with prototype.
93320
93321         * lib/getugroups.c: Include <string.h> unconditionally.
93322
93323         * lib/getusershell.c: Include <stdlib.h> unconditionally.
93324         (getusershell, setusershell, endusershell, readname, main):
93325         Define with prototypes.
93326
93327         * lib/group-member.c: Include group-member.h first.
93328         Include <stdlib.h> unconditionally.
93329
93330         * lib/hard-locale.c: Include hard-locale.h first.
93331         Include <stdlib.h>, <string.h> unconditionally.
93332
93333         * lib/hash.c (free, malloc): Remove decls.
93334         Include <stdlib.h> unconditionally.
93335
93336         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
93337         (getenv): Do not declare.
93338
93339         * lib/idcache.c: Include <string.h> unconditionally.
93340
93341         * lib/long-options.c: Include long-options.h first, to test interface.
93342         Include <stdlib.h> unconditionally.
93343
93344         * lib/makepath.c: Include makepath.h first, to test interface.
93345         Include <stdlib.h> and <string.h> unconditionally.
93346
93347         * lib/linebuffer.c: Include <stdlib.h>.
93348         (free): Remove decl.
93349
93350         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
93351         stddef.h. rpl_malloc returns void *, not char *.
93352         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
93353         prototype.
93354
93355         * lib/md5.h: Include <limits.h> unconditionally.
93356         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
93357         (__P): Remove; all uses removed.
93358         * lib/md5.c: Include "md5.h" first.
93359         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
93360         md5_buffer, md5_process_bytes, md5_process_block):
93361         Define with prototypes.
93362         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
93363         * lib/sha.c: Include "sha.h" first.
93364         Include <stdlib.h>, <string.h> unconditionally.
93365
93366         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
93367         * lib/memcmp.c (__ptr_t): Likewise.
93368         * lib/memrchr.c (__ptr_t): Likewise.
93369         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
93370         Include <string.h> unconditionally.
93371         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
93372         * lib/memchr.c: Include <stdlib.h> unconditionally.
93373         * lib/memchr.c (LONG_MAX): Remove.
93374         * lib/memrchr.c (LONG_MAX): Likewise.
93375         * lib/memchr.c (__memchr): Define via a prototype.
93376         * lib/memrchr.c (__memrchr): Likewise.
93377         * lib/memcmp.c (__P): Remove, and remove all uses.
93378         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
93379         Remove forward decls; no longer needed.
93380         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
93381         Use types required by C89 in prototype.
93382
93383         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
93384         * lib/savedir.c: Likewise.
93385         * lib/mkdir.c (free): Remove decl.
93386         * lib/rmdir.c (rmdir): Define with a prototype.
93387         * lib/savedir.c: Include savedir.h first, to test interface.
93388
93389         * lib/mktime.c (STDC_HEADERS): Remove.
93390         Include <stdlib.h>, <string.h> unconditionally.
93391
93392         * lib/modechange.c: Include <stdlib.h> unconditionally.
93393         (malloc): Remove decl.
93394
93395         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
93396         (free): Remove decl.
93397
93398         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
93399         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
93400         (This type really should be intptr_t, but that's a C99ism.)
93401         (_obstack_memcpy): Remove: all uses changed to memcpy.
93402         Include <string.h> unconditionally.
93403         (struct obstack): Assume __STDC__ for types of members
93404         chunkfun, freefun, extra_arg.
93405         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
93406         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
93407         obstack_begin, obstack_specify_allocation,
93408         obstack_specify_allocation_with_arg, obstack_chunkfun,
93409         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
93410         Remove unprototyped decls and the macros that use them.
93411         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
93412         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
93413         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
93414         (defined __STDC__ && __STDC__)]:
93415         Remove nonprototyped code.
93416         Include <stdlib.h> unconditionally.
93417         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
93418         _obstack_allocated_p, _obstack_free, obstack_free,
93419         _obstack_memory_used, print_and_abort):
93420         Define using prototypes.
93421         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
93422         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
93423         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
93424         obstack_next_free, obstack_object_size, obstack_room) [0]:
93425         Remove unused, unprototyped code.
93426
93427         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
93428
93429         * lib/physmem.c (physmem_total, physmem_available, main): Define
93430         with prototypes.
93431
93432         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
93433         (main): Define with a prototype.
93434
93435         * lib/posixver.c (getenv): Remove decl.
93436
93437         * lib/putenv.c (malloc): Returns void *, not char *.
93438         Include <string.h> unconditionally.
93439         (strchr, memcpy, NULL): Do not define.
93440
93441         * lib/readtokens.c: Include readtokens.h first, to test interface.
93442         Include <stdlib.h>, <string.h> unconditionally.
93443         (init_tokenbuffer): Define with a prototype.
93444
93445         * lib/regex.c (PARAMS): Remove.  All uses removed.
93446         All uses of _RE_ARGS removed, too.
93447         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
93448         unconditionally.
93449         (bzero): Assume memset exists.
93450         (memcmp, memcpy, NULL): Remove.
93451         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
93452         char, or assignments to local vars of type signed char.
93453         (init_syntax_once, PREFIX(extract_number_and_incr),
93454         PREFIX(print_partial_compiled_pattern),
93455         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
93456         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
93457         PREFIX(regex_grow_registers), PREFIX(regex_compile),
93458         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
93459         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
93460         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
93461         wcs_compile_range, byte_compile_range, truncate_wchar,
93462         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
93463         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
93464         count_mbs_length, wcs_re_match_2_internal,
93465         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
93466         PREFIX(alt_match_null_string_p),
93467         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
93468         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
93469         regfree, PREFIX(extract_number)): Define with prototype.  Remove
93470         now-unnecessary declaration, if any.
93471         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
93472         regcomp, regexec):
93473         Remove now-unnecessary casts among pointer types.
93474         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
93475
93476         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
93477         (free): Remove decl.
93478
93479         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
93480
93481         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
93482         (free): Remove decl.
93483
93484         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
93485         * lib/xgetcwd.c: Likewise.
93486
93487         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
93488         (free): Remove decl.
93489
93490         * lib/strchrnul.c (strchrnul): Define with a prototype.
93491         Fix bug: c_in was not converted to char before searching.
93492
93493         The following changes are not K&R related:
93494
93495         * lib/group-member.h: Include <sys/types.h>, so that this file is
93496         self-contained.
93497         * lib/makepath.h: Likewise.
93498
93499         * lib/getusershell.c (readname, default_index, line_size, readname):
93500         Use size_t, not int, for sizes.
93501         (readname): If the size overflows, report an error instead of
93502         looping forever.
93503
93504 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93505
93506         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
93507         libc.
93508
93509 2003-09-09  Paul Eggert  <eggert@twinsun.com>
93510
93511         * README: New section: portability guidelines.
93512
93513 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93514
93515         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
93516         C89 spec.
93517
93518 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
93519
93520         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
93521
93522 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93523
93524         Assume C89 or better; remove K&R cruft.
93525         A few of these changes were first proposed by Derek Robert Price
93526         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
93527
93528         * lib/addext.c: Include <string.h> unconditionally.
93529         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
93530         Don't declare getenv or malloc.
93531
93532         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
93533         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
93534         (NULL): Remove.
93535         (find_stack_direction, alloca): Use prototypes.
93536
93537         * lib/atexit.c (atexit): Define using a prototype.
93538
93539         * lib/basename.c, dirname.c, stripslash.c:
93540         Include <string.h> unconditionally.
93541
93542         * lib/bcopy.c: Include <stddef.h>.
93543         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
93544
93545         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
93546
93547         * lib/error.h (error, error_at_line, error_print_progname)
93548         [! (defined (__STDC__) && __STDC__)]: Remove decls.
93549         * lib/error.c: Include error.h first, to check interface.
93550         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93551         (VA_START): Remove; all uses changeed to va_start.
93552         (exit, strerror): Remove decls.
93553         (error_print_progname): Prototype uncondionally.
93554         Don't include <errno.h>; no longer needed.
93555         (private_strerror): Remove.
93556         (error_tail): Always define.
93557         (error, error_at_line): Assume C89 or better; always use prototypes.
93558         * lib/fatal.c: Include "fatal.h" first, to test interface.
93559         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
93560         (VA_START): Remove; all uses changed to va_start.
93561         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
93562         this case.
93563         (exit): Remove decl.
93564         (fatal): Prototype unconditionally.  Assume va_start works.
93565         Abort at end, to pacify gcc.
93566
93567         * lib/euidaccess.c (main): Define with a prototype.
93568
93569         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
93570
93571         * lib/exitfail.c: Include <stdlib.h> unconditionally.
93572
93573         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
93574         prototypes.
93575         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
93576         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
93577         (getenv): Remove decl.
93578         (fnmatch): Define using a prototype.
93579         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
93580         (FCT): Define using a prototype.
93581
93582         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
93583
93584         * lib/gethostname.c: Include <stddef.h>.
93585         (gethostname): Define with prototype.  Length is size_t, not int.
93586
93587 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93588
93589         Assume C89 or better; remove K&R cruft.
93590         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
93591         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
93592         string.h, getenv, malloc.
93593         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
93594         headers.
93595         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
93596         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
93597         do not check for strerror.
93598         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
93599         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
93600         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
93601         do not check for doprnt or vprintf.
93602         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
93603         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
93604
93605 2003-09-08  Paul Eggert  <eggert@twinsun.com>
93606
93607         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
93608         getversion.c should have been removed then, but was accidentally
93609         preserved.
93610
93611         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
93612         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
93613
93614 2003-09-08  Karl Berry  <karl@gnu.org>
93615
93616         * config/config.sub, config.guess, srclistvars.sh: update from savannah
93617                 config, forget about prep.
93618
93619         * config/depcomp, missing: update from automake.
93620
93621 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93622
93623         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
93624         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93625
93626 2003-09-07  Paul Eggert  <eggert@twinsun.com>
93627
93628         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
93629         copy_tm_result.  Bug reported by Simon Josefsson in
93630         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
93631
93632 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93633
93634         * m4/time_r.m4: New file.
93635         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
93636         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
93637         is. Check for timegm declaration.
93638         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
93639         Do not check for gmtime_r.
93640         Replace mktime if __mktime_internal does not exist and if mktime
93641         hasn't been replaced already.
93642
93643 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93644
93645         * lib/time_r.c, lib/time_r.h: New files.
93646
93647         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
93648         __localtime_r.
93649         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
93650         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
93651
93652         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
93653         __gmtime_r.
93654         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
93655         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
93656         Include <time_r.h>.
93657
93658         * lib/timegm.c: Switch to glibc implementation, with the following
93659         changes:
93660         [defined HAVE_CONFIG_H]: Include <config.h>.
93661         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
93662         (__mktime_internal) [!defined _LIBC]: New decl.
93663         (__gmtime_r) [!defined _LIBC]: New macro and function.
93664         (timegm): Use a prototype, since gnulib assumes C89.
93665         Do not bother declaring tmp to be const, as it's not really usefu.
93666         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
93667         (timegm): Declare only if HAVE_DECL_TIMEGM.
93668
93669 2003-09-06  Paul Eggert  <eggert@twinsun.com>
93670
93671         * MODULES.html.sh (func_all_modules): Add time_r.
93672         * modules/time_r: New file.
93673         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
93674         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
93675
93676 2003-09-03  Paul Eggert  <eggert@twinsun.com>
93677
93678         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
93679         Bug reported by Lute Kamstra in
93680         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
93681
93682         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
93683         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
93684         course with correspondingly smaller numbers for tomorrow and
93685         yesterday.  From Tadayoshi Funaba.  Originally installed into
93686         sh-utils on 1999-08-07, but the patch got lost (I guess during the
93687         coreutils merge?).
93688
93689 2003-08-31  Simon Josefsson  <jas@extundo.com>
93690
93691         * modules/timegm: New file.
93692         * MODULES.html.sh (func_all_modules): Add timegm.
93693
93694 2003-08-31  Simon Josefsson  <jas@extundo.com>
93695
93696         * m4/timegm.m4: New file.
93697
93698 2003-08-31  Simon Josefsson  <jas@extundo.com>
93699
93700         * lib/timegm.h: New file.
93701         * lib/timegm.c: New file.  Based on
93702         wget-1.8.2/src/http.c:mktime_from_utc.
93703
93704 2003-08-31  Karl Berry  <karl@gnu.org>
93705
93706         * lib/argp.h: update from libc.
93707
93708 2003-08-28  Bruno Haible  <bruno@clisp.org>
93709
93710         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
93711         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
93712         followed by '#define fnmatch fnmatch_posix' gives an error.
93713
93714 2003-08-28  Bruno Haible  <bruno@clisp.org>
93715
93716         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
93717         warning on QNX, which defines O_BINARY to 000000.
93718
93719 2003-08-27  Jim Meyering  <jim@meyering.net>
93720
93721         * m4/mkstemp.m4: Require that the system mkstemp be able to create
93722         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
93723         would fail after 32.  Reported by Danny Levinson.  Details here:
93724         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
93725
93726 2003-08-24  Bruno Haible  <bruno@clisp.org>
93727
93728         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
93729         MSVC7 <stdio.h> is included later.
93730
93731 2003-08-22  Simon Josefsson  <jas@extundo.com>
93732
93733         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
93734
93735 2003-08-20  Karl Berry  <karl@gnu.org>
93736
93737         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
93738
93739 2003-08-20  Bruno Haible  <bruno@clisp.org>
93740
93741         * modules/progname: New file.
93742         * MODULES.html.sh (func_all_modules): Add progname.
93743
93744 2003-08-20  Bruno Haible  <bruno@clisp.org>
93745
93746         * lib/progname.h: New file, from GNU gettext.
93747         * lib/progname.c: New file, from GNU gettext.
93748         * lib/progreloc.c: New file, from GNU gettext.
93749
93750 2003-08-19  Jim Meyering  <jim@meyering.net>
93751
93752         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
93753         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
93754
93755 2003-08-19  Bruno Haible  <bruno@clisp.org>
93756
93757         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
93758         more.
93759
93760 2003-08-19  Bruno Haible  <bruno@clisp.org>
93761
93762         * lib/xstrdup.c: Assume <string.h> exists.
93763
93764 2003-08-18  Paul Eggert  <eggert@twinsun.com>
93765
93766         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
93767         in makefile rules.
93768
93769 2003-08-18  Jim Meyering  <jim@meyering.net>
93770
93771         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
93772         * m4/lib-ld.m4: Likewise.
93773
93774 2003-08-18  Jim Meyering  <jim@meyering.net>
93775
93776         * lib/setenv.h: Indent nested cpp directive.
93777         * lib/vasnprintf.c: Remove trailing blanks.
93778
93779 2003-08-17  Simon Josefsson  <jas@extundo.com>
93780
93781         * modules/xstrndup: New file.
93782         * MODULES.html.sh (func_all_modules): Add xstrndup.
93783
93784 2003-08-17  Simon Josefsson  <jas@extundo.com>
93785
93786         * modules/argp: Fix autoconf macro name. Add more dependencies.
93787
93788 2003-08-17  Simon Josefsson  <jas@extundo.com>
93789
93790         * m4/xstrndup.m4: New file.
93791
93792 2003-08-17  Simon Josefsson  <jas@extundo.com>
93793
93794         * m4/argp.m4: New file.
93795
93796 2003-08-17  Simon Josefsson  <jas@extundo.com>
93797             Bruno Haible  <bruno@clisp.org>
93798
93799         * lib/xstrndup.h: New file.
93800         * lib/xstrndup.c: New file.
93801
93802 2003-08-17  Bruno Haible  <bruno@clisp.org>
93803
93804         * modules/strndup (Files, Include): Add lib/strndup.h.
93805
93806 2003-08-17  Bruno Haible  <bruno@clisp.org>
93807
93808         * modules/euidaccess (Files): Add lib/euidaccess.h.
93809
93810 2003-08-17  Bruno Haible  <bruno@clisp.org>
93811
93812         * lib/strndup.h: New file.
93813
93814 2003-08-17  Bruno Haible  <bruno@clisp.org>
93815
93816         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
93817         like AC_GNU_SOURCE.
93818         * modules/extensions (configure.ac): Comment out the invocation of
93819         gl_USE_SYSTEM_EXTENSIONS.
93820
93821 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93822
93823         Merges from coreutils, etc.
93824         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
93825         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
93826         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
93827         fixing a typo.
93828         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
93829         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
93830
93831 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93832
93833         Document merge from coreutils.
93834         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
93835         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
93836         * modules/utime: Add m4/utimes-null.m4.
93837
93838 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93839
93840         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
93841         space, undoing this 2003-08-12 change:
93842         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93843
93844 2003-08-16  Paul Eggert  <eggert@twinsun.com>
93845
93846         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
93847         strtoul.c from libc, undoing this 2003-08-12 change:
93848         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
93849
93850 2003-08-16  Jim Meyering  <jim@meyering.net>
93851
93852         Merges from coreutils.
93853         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
93854         prefix.  Adjust cache variables similarly.  Create 500 rather than
93855         just 300 files, to exercise bug on Darwin6.5, too.
93856         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
93857         $missing_dir.
93858         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
93859         AM_SYS_POSIX_TERMIOS.
93860         Reported by mkc@mathdogs.com.
93861         Also change use of $am_cv_sys_posix_termios
93862         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
93863         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
93864         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
93865         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
93866         in /proc/mounts until it finds one with matching device number.  This
93867         is unnecessary when the FILE argument *is* a mount point.  No stat call
93868         is necessary in that case.  So, disable the statvfs-testing code on
93869         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
93870         as RedHat bug# 84846.
93871         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93872         to 1MB, so as not to render systems with no stack size limit (e.g.,
93873         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93874         Include <unistd.h>.  On some systems,
93875         it is required for the definition of _SC_PAGESIZE.
93876
93877 2003-08-16  Jim Meyering  <jim@meyering.net>
93878
93879         Merge from coreutils.
93880         * lib/xstrtoimax.c: #else #if -> #elif.
93881         * lib/xstrtoumax.c: Likewise.
93882
93883 2003-08-16  Jim Meyering  <jim@meyering.net>
93884
93885         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
93886         * m4/utimes.m4: Removed.
93887         * m4/utimes-null.m4: Renamed from utimes.m4.
93888
93889         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
93890         to 1MB, so as not to render systems with no stack size limit (e.g.,
93891         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
93892         Include <unistd.h>.  On some systems,
93893         it is required for the definition of _SC_PAGESIZE.
93894
93895 2003-08-16  Jim Meyering  <jim@meyering.net>
93896         and Paul Eggert  <eggert@cs.ucla.edu>
93897
93898         Merges from coreutils, etc.
93899
93900         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
93901         using the latest version from cvs.  This avoids problems with #line
93902         directives using a vendor (Sun) compiler.
93903         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
93904         Don't set GETGROUPS_LIB here; now it's
93905         done via getgroups.m4's wrapper function.
93906         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
93907         rather than just in sh-util/configure.in, so that the
93908         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
93909         same.
93910         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
93911         AC_FUNC_GETLOADAVG where to find getloadavg.c.
93912         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
93913         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
93914         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
93915         Remove code that is now done by the newly-required macros.
93916         Append $(EXEEXT) to DF_PROG.
93917         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
93918         Do not invoke or require the following here,
93919         since prereq.m4 or some gnulib .m4 now does this for us:
93920         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
93921         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
93922         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
93923         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
93924         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
93925         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
93926         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
93927         AC_FUNC_OBSTACK.
93928         Do not replace the following functions, as this is now the job
93929         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
93930         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
93931         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
93932         atexit getpass, strdup, getpagesize.
93933         Replace 'raise'.
93934         Do not check for the following functions, as this is now the job
93935         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
93936         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
93937         setregid.
93938         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
93939         Check for sys/sysctl.h.
93940         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
93941         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
93942         of checking for ssize_t ourselves.
93943
93944         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
93945         Require every macro that gnulib/modules/* suggests for us.
93946         (jm_PREREQ_ADDEXT): New macro.
93947         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
93948         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
93949
93950         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
93951         (gl_PHYSMEM): Use it.
93952         Also check for `table' function.
93953         Check for new headers and functions.
93954         Add check for sys/sysmp.h.
93955         With suggestions from Kaveh Ghazi.
93956         Ignore headers that are present but cannot be compiled.  This
93957         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
93958         C 5.4.
93959
93960 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93961
93962         Document merge from coreutils.
93963         * modules/userspec: Depend on posixver.
93964         * modules/strftime: Depend on tzset.
93965
93966 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93967
93968         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
93969         rather than tab, after '#' in shell-script copyright notices.
93970         Suggested by Bruno Haible.
93971
93972 2003-08-15  Paul Eggert  <eggert@twinsun.com>
93973
93974         * config/srclist-update: Use three spaces, rather than tab, after '#'
93975         in shell-script copyright notices.  Suggested by Bruno Haible.
93976         Remove unnecessary parenthesization in regular expression.
93977
93978 2003-08-15  Jim Meyering  <jim@meyering.net>
93979
93980         Merge from coreutils.
93981         * lib/xgethostname.c: Include <stdlib.h>.
93982         (xghostname): Don't exit for anything other than memory-related
93983         failure; just return NULL.
93984         * lib/userspec.c: Include "posixver.h".
93985         (parse_user_spec): Accept `.' as a separator only
93986         in pre-POSIX-200112 mode.
93987         * lib/strtoimax.c: Use #elif rather than #else #if.
93988         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
93989         Remove function, now that we can rely on a working tzset function.
93990         [!_LIBC]: Ensure that the required autoconf test has been run.
93991         [!defined _NL_CURRENT && HAVE_STRFTIME]:
93992         Use underlying_strftime for %r.
93993         * lib/sha.c: Merge in some clean-up and optimization changes from
93994         glibc.
93995         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
93996         Ensure that it is a multiple of 64.
93997         Rearrange loop exit tests so as to avoid performing an
93998         additional fread after encountering an error or EOF.
93999         * lib/realloc.c: Update copyright date.
94000
94001 2003-08-15  Jim Meyering  <jim@meyering.net>
94002         and Paul Eggert  <eggert@twinsun.com>
94003
94004         Merge from coreutils.
94005         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
94006         member but strut utmpx does not.  Needed for AIX 4.3.3.
94007         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
94008
94009 2003-08-15  Jim Meyering  <jim@meyering.net>
94010         and Paul Eggert  <eggert@cs.ucla.edu>
94011
94012         Merges from coreutils, etc.
94013         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
94014         Require gl_FUNC_TZSET_CLOBBER.
94015         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
94016         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
94017         members.
94018
94019 2003-08-14  Paul Eggert  <eggert@twinsun.com>
94020
94021         Help the merge from coreutils.
94022         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
94023         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
94024         * m4/tzset.m4: Use it too.
94025
94026 2003-08-14  Paul Eggert  <eggert@twinsun.com>
94027
94028         * modules/tzset: New file.
94029
94030 2003-08-14  Jim Meyering  <jim@meyering.net>
94031
94032         Merges from coreutils.
94033         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
94034         variable names, rather than @FNMATCH_H@.
94035         * modules/alloca: Likewise for $(ALLOCA_H).
94036
94037         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
94038         the three copies of the literal target, `fnmatch.h'.
94039         * modules/alloca (alloca.h): Likewise.
94040
94041 2003-08-14  Jim Meyering  <jim@meyering.net>
94042
94043         Merge from coreutils.
94044         * m4/tzset.m4: New file.
94045         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
94046         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
94047         otherwise, AIX 5.1 systems would end up using the latter.
94048         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
94049         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
94050         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
94051         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
94052
94053 2003-08-14  Jim Meyering  <jim@meyering.net>
94054
94055         Merge from coreutils.
94056         * lib/obstack.h: Whitespace changes.
94057         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
94058         and xcalloc return values.
94059         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
94060         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
94061         hang on OSF/1 5.1 for DIR on both local and remote file systems.
94062         Reported by (and fix confirmed by) Nelson H. F. Beebe.
94063         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
94064         error from mntctl.
94065         Use mntctl's return value to drive the entry-processing loop, since
94066         we can't rely on the value of the vmt_length member in the last
94067         entry.  On some systems doing so could result in exhausting
94068         virtual memory.  Based in part on a patch from Mike Jetzer.
94069
94070 2003-08-14  Jim Meyering  <jim@meyering.net>
94071         and Paul Eggert  <eggert@twinsun.com>
94072
94073         Merges from coreutils, plus other fixes.
94074         * lib/physmem.c: Merge in portability changes from gcc/libiberty
94075         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
94076         for credits and details.  Thanks to Kaveh Ghazi for helping
94077         to keep these files in sync.
94078         (ARRAY_SIZE): Define it.
94079         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
94080         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
94081         (memcasecmp): Don't assume size_t fits in unsigned int.
94082         Remove casts and duplicate code.
94083         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
94084         (memcpy): Remove definition.
94085         Merge in some clean-up and optimization changes from glibc.
94086         [BLOCKSIZE]: Move definition to top of file.
94087         Ensure that it is a multiple of 64.
94088         Rearrange loop exit tests so as to avoid performing an
94089         additional fread after encountering an error or EOF.
94090         * lib/md5.h (md5_uintptr): Define.
94091         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
94092         return to the initial working directory.  Preserve errno
94093         for caller.
94094         * lib/idcache.c: Include "xalloc.h".
94095         (xmalloc, xrealloc): Remove decls.
94096         (getuser): Remove casts no longer required in C89.
94097         * lib/human.c: Include stdio.h, for sprintf.
94098         * lib/group-member.c: Include "xalloc.h".
94099         (xmalloc, xrealloc): Remove decls.
94100         (get_group_info): Remove casts no longer required in C89.
94101         * lib/getusershell.c (readname): Remove casts no longer required in
94102         C89.
94103         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
94104         * lib/getline.c: Whitespace fix, from coreutils.
94105
94106 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94107
94108         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
94109         Check for isascii.
94110
94111         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94112         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94113         Undo previous (whitespace-only) change.
94114
94115 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94116
94117         * lib/exclude.c: Include <ctype.h>
94118         (IN_CTYPE_DOMAIN): New macro.
94119         (is_space): New fn.
94120         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
94121         and empty lines.
94122
94123         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94124         Undo previous (whitespace-only) change.
94125
94126 2003-08-13  Paul Eggert  <eggert@twinsun.com>
94127
94128         * config/srclist-update: Change update back to the old behavior,
94129         leaving whitespace alone.  Use one 'sed' command rather than a
94130         pipeline.
94131         (fixlicense): Now a variable, not a function.
94132         (remove_trailing_blanks): Remove.
94133         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
94134         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94135         Undo previous (whitespace-only) change.
94136
94137 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94138
94139         Merge from coreutils.
94140         * modules/euidaccess: Add lib_SOURCES, include for new
94141         file euidaccess.h
94142
94143 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94144
94145         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
94146         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
94147         Normalize leading white space and remove trailing white space.
94148
94149         Merge from coreutils
94150         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
94151
94152         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
94153         0.12.1.  These files are now being upgraded automatically by
94154         ../config/srclist-update.
94155
94156 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94157
94158         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
94159         Normalize leading white space and remove trailing white space.
94160         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
94161         notice, as per ../config/srclist-update.
94162
94163         Merge from coreutils.
94164         * lib/euidaccess.h: New file.
94165         * lib/euidaccess.c: Include it.
94166         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
94167         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
94168         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
94169
94170 2003-08-12  Paul Eggert  <eggert@twinsun.com>
94171
94172         * config/srclist-update: Add copyright notice.
94173         (remove_id_lines, remove_trailing_blanks): New constants.
94174         (fixfile): Use them to normalize spacing a bit in copied files.
94175         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
94176         Normalize leading white space and remove trailing white space.
94177
94178         * config/texinfo.tex: Sync with texinfo.
94179
94180         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
94181         strtoul.c from libc, to merge coreutils whitespace changes.
94182
94183         * config/srclist.txt: Get the following m4 files from gettext:
94184         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
94185         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
94186         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
94187         wint_t.m4.
94188
94189 2003-08-12  Karl Berry  <karl@gnu.org>
94190
94191         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
94192         been made.
94193
94194 2003-08-11  Paul Eggert  <eggert@twinsun.com>
94195
94196         * modules/gnu-source, m4/gnu-source.m4:
94197         Remove; we're assuming Autoconf 2.54 or later now.
94198         Suggested by Bruno Haible.
94199         * MODULES.html.sh (func_all_modules): Remove gnu-source.
94200
94201 2003-08-11  Bruno Haible  <bruno@clisp.org>
94202
94203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
94204
94205 2003-08-11  Bruno Haible  <bruno@clisp.org>
94206
94207         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
94208         (vasnprintf): Use it instead of wcslen.
94209
94210 2003-08-11  Bruno Haible  <bruno@clisp.org>
94211
94212         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
94213         value to ensure that _Bool promotes to int. Use #define for _Bool when
94214         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
94215
94216 2003-08-10  Karl Berry  <karl@gnu.org>
94217
94218         * lib/regex.h: update from libc (whitespace fix).
94219
94220 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94221
94222         Merge some files from coreutils.  These changes were
94223         originally made by Jim Meyering.
94224         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
94225         many older Unixes require this.
94226         * lib/alloca.c (alloca): Remove cast to argument of free;
94227         no longer needed in C89.
94228         * lib/alloca_.h, regex.h: Fix white space to match
94229         what GNU indent does.
94230
94231 2003-08-09  Paul Eggert  <eggert@twinsun.com>
94232
94233         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
94234         apparently Emacs's Unicode mode got confused before my 2003-08-05
94235         checkin.
94236
94237 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94238
94239         * m4/extensions.m4: New file.
94240         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
94241         Require gl_USE_SYSTEM_EXTENSIONS.
94242         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
94243         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
94244
94245 2003-08-08  Paul Eggert  <eggert@twinsun.com>
94246
94247         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
94248         * modules/extensions, modules/gnu-source: New files.
94249         * modules/timespec, modules/unlocked-io: Depend on extensions.
94250
94251 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94252
94253         * modules/restrict: New file.
94254         * MODULES.html.sh (func_all_modules): Add restrict.
94255         * modules/regex: Depend on restrict.
94256
94257 2003-08-07  Paul Eggert  <eggert@twinsun.com>
94258
94259         * m4/restrict.m4: New file.
94260         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
94261
94262 2003-08-07  Bruno Haible  <bruno@clisp.org>
94263
94264         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
94265         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
94266
94267 2003-08-07  Bruno Haible  <bruno@clisp.org>
94268
94269         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
94270         makes the module 'getndelim2' compatible with the module 'getline'.
94271
94272 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94273
94274         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
94275         byte with "\201" to avoid glitches when editing that source file
94276         with multi-gnome-terminal.
94277
94278 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94279
94280         * lib/bumpalloc.h: Remove.
94281
94282 2003-08-05  Paul Eggert  <eggert@twinsun.com>
94283
94284         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
94285         * modules/bumpalloc: Remove.
94286
94287 2003-08-04  Paul Eggert  <eggert@twinsun.com>
94288
94289         * lib/getloadavg.c: Change copyright notice and spacing to conform to
94290         GNU coding style.
94291
94292         Merge from coreutils.
94293         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
94294         1. From glibc.
94295         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
94296         from Karl Berry, implemented by Jim Meyering.
94297         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
94298         from Dmitry V. Levin.
94299         Remove anachronistic cast of xrealloc.
94300         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
94301         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
94302         type. Otherwise, it wouldn't compile with at least /bin/cc on
94303         ymp-cray-unicos9.0.2.X.
94304         Combine two mostly-identical uses of alloca into one.
94305         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
94306
94307 2003-08-04  Dave Love  <d.love@dl.ac.uk>
94308
94309         [From Emacs.]
94310
94311         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
94312         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
94313         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
94314         obsolete NLIST_NAME_UNION.
94315         [__GNU__]: Undef BSD and FSCALE.
94316         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
94317
94318 2003-08-03  Paul Eggert  <eggert@twinsun.com>
94319
94320         * lib/stdbool_.h (_Bool): Make it signed char, instead of
94321         an enum type, so that it's guaranteed to promote to int.  See:
94322         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
94323
94324 2003-08-03  Karl Berry  <karl@gnu.org>
94325
94326         * config/depcomp: update from automake.
94327
94328 2003-07-31  Paul Eggert  <eggert@twinsun.com>
94329
94330         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
94331         (strerror): Don't assume that a printable int fits in 14 bytes.
94332
94333 2003-07-31  Bruno Haible  <bruno@clisp.org>
94334
94335         * modules/getpass-gnu: New file.
94336         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
94337
94338 2003-07-31  Bruno Haible  <bruno@clisp.org>
94339
94340         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
94341
94342 2003-07-24  Karl Berry  <karl@gnu.org>
94343
94344         * config/missing: update from automake.
94345
94346 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
94347             Bruno Haible  <bruno@clisp.org>
94348
94349         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
94350         * lib/getline.c (getline, getdelim): Likewise.
94351         Remove _GNU_SOURCE define; now it's defined in config.h through
94352         m4/getline.m4.
94353
94354 2003-07-23  Karl Berry  <karl@gnu.org>
94355
94356         * config/config.sub: update from prep.
94357
94358 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94359
94360         * modules/xalloc (Depends-on): Add exitfail.
94361         * modules/xmemcoll: Likewise.
94362
94363 2003-07-22  Paul Eggert  <eggert@twinsun.com>
94364
94365         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
94366         over-parenthesization in macros.
94367
94368         Sync with coreutils.
94369
94370         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
94371         required by C99.
94372
94373         Use `exit_failure' for xalloc and xmemcoll instead of their own
94374         private exit-failure variables.
94375         * lib/xalloc.h (xalloc_exit_failure): Remove.
94376         * lib/xmalloc.c: Likewise.  Include exitfail.h.
94377         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
94378         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
94379         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
94380         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
94381
94382 2003-07-20  Jim Meyering  <jim@meyering.net>
94383
94384         * modules/closeout (Depends-on): Add exitfail.
94385         Suggestion from Bruno Haible.
94386
94387 2003-07-19  Karl Berry  <karl@gnu.org>
94388
94389         * config/config.sub: update from prep.
94390
94391 2003-07-18  Paul Eggert  <eggert@twinsun.com>
94392
94393         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
94394         Remove.
94395         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
94396         to test that it can stand by itself.  Include "exitfail.h".
94397         Clients should set exit_failure instead.
94398         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
94399
94400 2003-07-18  Bruno Haible  <bruno@clisp.org>
94401
94402         * modules/getndelim2: New file.
94403         * modules/getline: Share files with module getndelim2.
94404         * modules/getnline: Depend on getndelim2 instead of sharing files with
94405         it. Add getnline.c to lib_SOURCES.
94406         * MODULES.html.sh (func_all_modules): Add getndelim2.
94407
94408 2003-07-18  Bruno Haible  <bruno@clisp.org>
94409
94410         * m4/getndelim2.m4: New file.
94411         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
94412         invoke gl_PREREQ_GETNDELIM2.
94413         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
94414         gl_PREREQ_GETNDELIM2.
94415         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
94416         gl_GETNDELIM2.
94417
94418 2003-07-18  Bruno Haible  <bruno@clisp.org>
94419
94420         * lib/getndelim2.h: New file.
94421         * lib/getndelim2.c: Make into a module of its own. Include config.h,
94422         getndelim2.h.
94423         (getndelim2): Make non-static. Change return type to ssize_t.
94424         * lib/getline.h: Change argument names.
94425         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
94426         * lib/getnline.c: Include getndelim2.h.
94427
94428 2003-07-18  Andreas Schwab  <schwab@suse.de>
94429
94430         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
94431
94432 2003-07-17  Karl Berry  <karl@gnu.org>
94433
94434         * config/config.sub: update from prep.
94435
94436 2003-07-17  Bruno Haible  <bruno@clisp.org>
94437
94438         * modules/getnline: New file.
94439         * modules/getline: Add lib/getndelim2.c to source file list.
94440         * MODULES.html.sh (func_all_modules): Add getnline.
94441
94442 2003-07-17  Bruno Haible  <bruno@clisp.org>
94443
94444         * m4/getnline.m4: New file.
94445
94446 2003-07-17  Bruno Haible  <bruno@clisp.org>
94447
94448         * m4/Makefile.am.in: Remove file.
94449         * m4/Makefile.am: Remove file.
94450         * m4/Makefile.in: Remove file.
94451
94452 2003-07-17  Bruno Haible  <bruno@clisp.org>
94453
94454         * lib/getnline.h: New file.
94455         * lib/getnline.c: New file.
94456         * lib/getndelim2.c: New file, extracted from getline.c.
94457         (getndelim2): Renamed from getdelim2, with added nmax argument.
94458         * lib/getline.c: Include getndelim2.c.
94459         (getdelim2): Moved out to getndelim2.c.
94460         (getline, getdelim): Update.
94461
94462 2003-07-17  Bruno Haible  <bruno@clisp.org>
94463
94464         * lib/Makefile.am: Remove file.
94465         * lib/Makefile.in: Remove file.
94466
94467 2003-07-17  Bruno Haible  <bruno@clisp.org>
94468
94469         * configure.in: Remove file.
94470         * Makefile.in: Remove file.
94471
94472 2003-07-17  Bruno Haible  <bruno@clisp.org>
94473
94474         * MODULES.html.sh: Put the </BODY> right before </HTML>.
94475
94476 2003-07-16  Karl Berry  <karl@gnu.org>
94477
94478         * config/srclist-update: was running fixlicense twice, which caused
94479                 texinfo.tex to be nullified for some reason.  Simplify,
94480                 $gplsrc is no longer needed as far as I can see?
94481
94482 2003-07-16  Jim Meyering  <jim@meyering.net>
94483
94484         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
94485
94486 2003-07-15  Paul Eggert  <eggert@twinsun.com>
94487
94488         * config/srclist.txt: Get the following files from gettext-runtime/intl
94489         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
94490         ref-del.sin.  From Bruno Haible.
94491         * config/srclist-update (fixfile): Change grep pattern again, since the
94492         previous fix didn't work (there was another trailing $).  Use
94493         '[$]' to escape the $s.
94494
94495 2003-07-15  Karl Berry  <karl@gnu.org>
94496
94497         * lib/vasnprintf.c: update from gettext.
94498
94499 2003-07-15  Karl Berry  <karl@gnu.org>
94500
94501         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
94502         gets expanded when surrounded by '$'.
94503
94504 2003-07-15  Jim Meyering  <jim@meyering.net>
94505
94506         * modules/save-cwd: Don't depend on error.  From Derek Price.
94507
94508 2003-07-15  Jim Meyering  <jim@meyering.net>
94509
94510         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
94511
94512 2003-07-14  Simon Josefsson  <jas@extundo.com>
94513
94514         * modules/mempcpy: New file.
94515         * MODULES.html.sh (func_all_modules): Add mempcpy.
94516
94517 2003-07-14  Simon Josefsson  <jas@extundo.com>
94518
94519         * m4/mempcpy.m4: New file.
94520
94521 2003-07-14  Simon Josefsson  <jas@extundo.com>
94522
94523         * lib/mempcpy.h: New file.
94524         * lib/mempcpy.c: New file.
94525
94526 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94527
94528         * modules/getdate, modules/posixtm: Depend on mktime.
94529
94530 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94531
94532         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
94533         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
94534         unicodeio.c, unicodeio.h, unlocked-io.h:
94535         Switch from LGPL to GPL.
94536
94537 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94538
94539         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
94540         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
94541         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
94542         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
94543         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
94544         updated automatically by ../config/srclist-update.  This changes
94545         their license from LPGL to GPL.
94546
94547 2003-07-14  Paul Eggert  <eggert@twinsun.com>
94548
94549         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
94550         assumed to refer to the root of the most recent stable gettext version.
94551         * config/srclistvars.sh: Add defaults for eggert.
94552         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
94553         Match "This program" as well as "The program".  This is needed
94554         for gettext.
94555
94556 2003-07-14  Jim Meyering  <jim@meyering.net>
94557
94558         Don't emit diagnostics.  Let callers do that.
94559         * lib/save-cwd.c: Don't include "error.h".
94560         (save_cwd): Don't call error.  Ensure that errno is valid
94561         when returning nonzero.
94562
94563         * lib/save-cwd.h (restore_cwd): Update prototype.
94564         * lib/save-cwd.c (restore_cwd): Remove two parameters.
94565         Simplify.  Don't call error upon failure.  Let callers do that.
94566         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
94567         when auditing is enabled.  But don't bother updating the #if.
94568
94569 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
94570
94571         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
94572         it breaks C++ compilation.
94573         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
94574
94575 2003-07-10  Simon Josefsson  <jas@extundo.com>
94576
94577         * modules/strchrnul (Makefile.am): Add strchrnul.h.
94578
94579 2003-07-10  Jim Meyering  <jim@meyering.net>
94580
94581         * m4/clock_time.m4: Remove trailing blank.
94582         * m4/intmax_t.m4: Likewise.
94583
94584 2003-07-10  Jim Meyering  <jim@meyering.net>
94585
94586         * lib/vasnprintf.c: Remove trailing blanks.
94587         Make cpp indentation consistent.
94588
94589 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94590
94591         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
94592         posixver.c, strftime.c, strnlen.c, strverscmp.c:
94593         Switch from LGPL to GPL.
94594
94595 2003-07-09  Paul Eggert  <eggert@twinsun.com>
94596
94597         * config/srclist.txt: Sort sublists.  Add
94598         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
94599         that differ from gnulib for one reason or another; we'd like this list
94600         to be smaller but for now let's document what we have.
94601
94602 2003-07-08  Paul Eggert  <eggert@twinsun.com>
94603
94604         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
94605         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
94606         and sweeter "eval x=$x".
94607         * config/srclist.txt: Get lib/argp* from glibc.
94608
94609 2003-07-07  Paul Eggert  <eggert@twinsun.com>
94610
94611         * lib/mktime.c: Fix some boundary cases and remove need for floating
94612         point.
94613
94614         Issue a compile-time diagnostic if time_t is floating point, or if
94615         two's complement arithmetic is not in effect, or if arithmetic
94616         right shift does not propagate the sign.  These assumptions were
94617         all in the original code but they weren't checked.
94618
94619         (TIME_T_MIDPOINT, verify): New macros.
94620         (__isleap): Remove; it has integer overflow problems.
94621         (leapyear): New function, without those problems.
94622         (ydhms_tm_diff): Remove; splitting into two parts.
94623         (ydhms_diff): New function, containing the arithmetic part of
94624         the old ydhms_tm_diff function.  Issue a compile-time
94625         diagnostic if we are not using C99 integer division.
94626         Avoid casts when possible.
94627         (guess_time_tm): New function, containing the checking part of
94628         the old ydhms_tm_diff function.  Return the new value, rather than
94629         the difference between it and the old.  Accept a new argument T
94630         so that *T specifies the old value.  Check for overflow in the result.
94631
94632         (__mktime_internal): Use a time_t offset, not a long int offset.
94633         This undoes the 2003-06-04 change, which is no longer needed now
94634         that we have better overflow checking.
94635         (localtime_offset): Likewise.
94636
94637         (__mktime_internal): Avoid harmful overflow on hosts where time_t
94638         and long are 64-bit but int is only 32-bit.
94639         (ydhms_diff): Use long int to store year1 and yday1.
94640         Issue a compile-time diagnostic if long int is not wide enough.
94641
94642         (__mktime_internal): Use long int to store adjusted year and yday.
94643         Use plain C rather than preprocessor commands, if that doesn't
94644         affect efficiency.
94645         Check for overflow (and try to repair) after each probe
94646         rather than checking only at the very end.  This avoids some bugs
94647         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
94648         does not equal GMT offset at maximum time).
94649         Use integer to check for overflow rather than floating point; this
94650         is more portable to non-IEEE hosts, and is a tad faster.
94651         When we detect that we are oscillating between two values,
94652         don't check whether tm_isdst has the requested value, since
94653         we already know the answer.  When tm_isdst has the wrong value,
94654         use a different heuristic to find the right one, based on the
94655         extreme values actually observed in practice in tz2003a,
94656         rather than the (overly optimistic) "previous 3 calendar quarters".
94657
94658         (not_equal_tm, print_tm, check_result): Use "const T" rather than
94659         "T const" to accommodate glibc style.
94660         (check_result): Use less-confusing report format.  "long" -> "long int.
94661         (main): Likewise.
94662         Don't loop if the iteration overflows time_t.
94663         Allow a negative step in the iteration.
94664
94665 2003-07-06  Karl Berry  <karl@gnu.org>
94666
94667         * config/depcomp: update from automake.
94668         * config/config.sub: update from prep.
94669
94670 2003-07-03  Karl Berry  <karl@gnu.org>
94671
94672         * config/config.guess: update from prep.
94673
94674 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94675
94676         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
94677         xreadlink.c now includes it unconditionally.
94678
94679 2003-07-01  Paul Eggert  <eggert@twinsun.com>
94680
94681         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
94682         having it depend on HAVE_SYS_TYPES_H.
94683
94684 2003-07-01  Bruno Haible  <bruno@clisp.org>
94685
94686         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
94687         <sys/types.h> should be sufficient.
94688         Reported by Paul Eggert.
94689
94690 2003-06-26  Karl Berry  <karl@gnu.org>
94691
94692         * config/depcomp: update from automake.
94693
94694 2003-06-26  Bruno Haible  <bruno@clisp.org>
94695
94696         * modules/human: Depend on module stdbool.
94697
94698 2003-06-25  Bruno Haible  <bruno@clisp.org>
94699
94700         * modules/readlink: New file.
94701         * modules/xreadlink: Depend on it.
94702         * MODULES.html.sh (func_all_modules): Add readlink.
94703
94704 2003-06-25  Bruno Haible  <bruno@clisp.org>
94705
94706         * m4/readlink.m4: New file.
94707
94708 2003-06-25  Bruno Haible  <bruno@clisp.org>
94709
94710         * lib/readlink.c: New file.
94711
94712 2003-06-22  Karl Berry  <karl@gnu.org>
94713
94714         * config/srclist.txt: update mkinstalldirs from automake.
94715         * config/mkinstalldirs: update.
94716
94717 2003-06-22  Bruno Haible  <bruno@clisp.org>
94718
94719         Portability to mingw32.
94720         * m4/ssize_t.m4: New file, from GNU gettext.
94721         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
94722         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
94723
94724 2003-06-22  Bruno Haible  <bruno@clisp.org>
94725
94726         * modules/safe-read: Add m4/ssize_t.m4.
94727         * modules/xreadlink: Add m4/ssize_t.m4.
94728
94729 2003-06-20  Bruno Haible  <bruno@clisp.org>
94730
94731         Assume C89, so PARAMS isn't needed.
94732         * lib/unicodeio.h (PARAMS): Remove.
94733         * lib/unicodeio.c: Don't use PARAMS.
94734
94735 2003-06-18  Karl Berry  <karl@gnu.org>
94736
94737         * config/config.{guess,sub}: update from prep.
94738
94739 2003-06-18  Jim Meyering  <jim@meyering.net>
94740
94741         Merge changes from coreutils.
94742         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
94743         Remove explicit declarations of xmalloc and realloc.
94744         Include xalloc.h.
94745         (read_utmp): Remove anachronistic cast of xmalloc.
94746
94747 2003-06-17  Paul Eggert  <eggert@twinsun.com>
94748
94749         Assume C89, so PARAMS isn't needed.
94750         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
94751         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
94752         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
94753         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
94754         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
94755         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
94756         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
94757         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
94758         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
94759         lib/xstrtod.h, lib/xstrtol.h: Likewise.
94760         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
94761         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
94762         no longer needed. Anyway, config.h should always be included before any
94763         other file.
94764
94765 2003-06-11  Simon Josefsson  <jas@extundo.com>
94766
94767         * modules/sysexits: New file.
94768         * MODULES.html.sh (func_all_modules): Add sysexits.
94769
94770 2003-06-11  Simon Josefsson  <jas@extundo.com>
94771
94772         * lib/sysexit_.h: New file.
94773
94774 2003-06-11  Derek Price  <derek@ximbiot.com>
94775
94776         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
94777         necessary.
94778
94779 2003-06-11  Bruno Haible  <bruno@clisp.org>
94780
94781         * m4/sysexits.m4: New file.
94782
94783 2003-06-10  Simon Josefsson  <jas@extundo.com>
94784
94785         * lib/argp.h: New file, from glibc.
94786         * lib/argp-ba.c: New file, from glibc.
94787         * lib/argp-eexst.c: New file, from glibc.
94788         * lib/argp-fmtstream.c: New file, from glibc.
94789         * lib/argp-fmtstream.h: New file, from glibc.
94790         * lib/argp-fs-xinl.c: New file, from glibc.
94791         * lib/argp-help.c: New file, from glibc.
94792         * lib/argp-namefrob.h: New file, from glibc.
94793         * lib/argp-parse.c: New file, from glibc.
94794         * lib/argp-pv.c: New file, from glibc.
94795         * lib/argp-pvh.c: New file, from glibc.
94796         * lib/argp-xinl.c: New file, from glibc.
94797
94798 2003-06-10  Simon Josefsson  <jas@extundo.com>
94799
94800         * modules/strchrnul: New file.
94801
94802 2003-06-10  Simon Josefsson  <jas@extundo.com>
94803
94804         * modules/argp: New file.
94805
94806 2003-06-10  Simon Josefsson  <jas@extundo.com>
94807
94808         * m4/strchrnul.m4: New file.
94809
94810 2003-06-10  Simon Josefsson  <jas@extundo.com>
94811
94812         * lib/strchrnul.h: New file.
94813         * lib/strchrnul.c: New file.
94814
94815 2003-06-10  Bruno Haible  <bruno@clisp.org>
94816
94817         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
94818
94819 2003-06-07  Karl Berry  <karl@gnu.org>
94820
94821         * config/config.{guess,sub}: update from prep.
94822
94823 2003-06-07  Jim Meyering  <jim@meyering.net>
94824
94825         * modules/strtod: Use $(...) notation, not @...@ for
94826         AC_REPLACE'd variables.
94827         * modules/localcharset: Likewise.
94828
94829 2003-06-07  Jim Meyering  <jim@meyering.net>
94830
94831         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
94832         in place of my name in the copyright comment.
94833         Remove definition and uses of __P.
94834
94835         From coreutils.
94836         * lib/stat.c: Don't declare xmalloc explicitly.
94837         Instead, include "xalloc.h".
94838         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
94839         xrealloc, and xcalloc return values.
94840         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
94841         Improve comment.
94842         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
94843
94844 2003-06-07  Bruno Haible  <bruno@clisp.org>
94845
94846         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
94847         avoid AC_CONFIG_LINKS.
94848         * modules/fnmatch (Makefile.am): Use explicit creation rule for
94849         fnmatch.h, to avoid AC_CONFIG_LINKS.
94850         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
94851
94852 2003-06-07  Bruno Haible  <bruno@clisp.org>
94853
94854         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
94855         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
94856         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94857         directory.
94858         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
94859         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
94860         directory.
94861
94862 2003-06-06  Jim Meyering  <jim@meyering.net>
94863
94864         Merge from coreutils.
94865         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
94866         Consolidate declarations and initializations of *_base* locals.
94867
94868         Merge from coreutils.
94869         This avoids a core dump on systems without GNU putenv,
94870         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
94871         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
94872         (unsetenv): New static function, from GNU libc.
94873         (rpl_putenv): Use it.
94874
94875         * lib/modechange.c: Remove trailing blanks.
94876
94877         Merge from coreutils.
94878         * lib/fsusage.c: Remove declaration of statfs.
94879         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
94880
94881         * lib/posixtm.c: Include <stdbool.h> unconditionally.
94882
94883 2003-06-06  Jim Meyering  <jim@meyering.net>
94884
94885         * lib/stdbool_.h: Renamed from stdbool.h.in.
94886
94887 2003-06-06  Jim Meyering  <jim@meyering.net>
94888             Bruno Haible  <bruno@clisp.org>
94889
94890         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
94891         Adjust Makefile.am snippet not to redirect directly to target.
94892         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
94893
94894 2003-06-05  Paul Eggert  <eggert@twinsun.com>
94895
94896         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
94897         mismatch, look in future quarters as well as past.  This fixes a
94898         bug when processing fall-backwards gaps immediately after a long
94899         period of daylight-saving time.
94900
94901         * lib/mktime.c: Assume freestanding C89 or better.
94902         (HAVE_LIMITS_H): Remove.  Assume it's 1.
94903         (__P): Remove; not used.
94904         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
94905         (mktime, not_equal_tm, print_tm, check_result,
94906         main): Use prototypes.  Use const * where appropriate.
94907         (main): Fix typo in testing code that uncovered by above changes.
94908         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
94909
94910 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94911
94912         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
94913         locale.h, localeconv.  This merges changes from coreutils.
94914
94915         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
94916         It can be removed after the next Autoconf is released.
94917         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
94918         needed.
94919
94920 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94921
94922         * lib/mktime.c: Fix Debian bug 177940
94923         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
94924         (localtime_offset): Now long int, not time_t, because we want it
94925         to be guaranteed to be signed.  All uses changed.
94926         (__mktime_internal): If overflow would occur when adding offset,
94927         don't add it.
94928
94929         Merge 'human' changes from coreutils.  Rewrite to support
94930         locale-specific notations like thousands separators.
94931         * lib/human.c: Simplify authorship notice.
94932         Include human.h immediately after config.h.
94933         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
94934         <limits.h>: Do not include, since human.h does.
94935         (SIZE_MAX, UINTMAX_MAX): New macros.
94936         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
94937         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
94938         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
94939         (power_letter): Renamed from suffixes.
94940         (generate_suffix_backwards): Remove.
94941         (adjust_value): Now takes int style (because of human.h changes)
94942         and long double value (for greater precision on some platforms).
94943         (group_number): New function.
94944         (human_readable): Use it.  Use integer options, not enum.
94945         Put the options before the sizes in the arg list.
94946         Support all the new options.
94947         The old human_readable function has been removed;
94948         use inttostr.h instead.
94949         (human_readable, default_block_size, humblock):
94950         Use uintmax_t, not int, for block sizes.
94951         (human_readable_inexact, block_size_types): Remove.
94952         (block_size_opts): New constant.
94953         (human_options): Renamed from human_block_size, with new signature
94954         that allows block sizes up to UINTMAX_MAX.  All callers changed.
94955         * lib/human.h: Add copyright and authorship notice.
94956         Include <limits.h> and <stdbool.h> unconditionally.
94957         (PARAMS): Remove.  All uses removed.
94958         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
94959         (enum human_inexact_style): Remove tag; now a nameless enum.
94960         (human_floor, human_ceiling, human_round_to_even): Now have
94961         values 2, 0, 1 rather than -1, 1, 0.
94962         (human_group_digits, human_suppress_point_zero, human_autoscale,
94963         human_base_1024, human_SI, human_B): New constants.
94964         (human_readable_inexact, human_block_size): Remove.
94965         (human_readable): Size args are now uintmax_t, not int.
94966         (human_options): New decl.
94967
94968         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
94969         unnecessary now that we assume C89 or better.  This change
94970         imported from coreutils.
94971
94972         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
94973         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
94974         in the 2003-05-30 sync from glibc.
94975
94976         .h files should stand alone, but we shouldn't include <sys/types.h>
94977         if we can get away with just <stddef.h>.
94978
94979         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
94980         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
94981         rather than <sys/types.h>, as we merely need size_t.
94982         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
94983         to get size_t.
94984         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
94985         Include <stdio.h>, to get FILE.
94986         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
94987         memcasecmp.h has included <stddef.h> and all we need is size_t.
94988         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
94989         our interface, instead of including <sys/types.h>
94990
94991 2003-06-04  Paul Eggert  <eggert@twinsun.com>
94992
94993         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
94994         now, as glibc mktime is buggy on non-glibc systems.
94995
94996 2003-06-03  Karl Berry  <karl@gnu.org>
94997
94998         * config/config.sub: update from prep.
94999
95000 2003-06-02  Paul Eggert  <eggert@twinsun.com>
95001
95002         [from coreutils]
95003         Fix some minor time-related bugs with POSIX time arguments.
95004         Some valid time stamps were being rejected (notably -1, and
95005         time stamps before 1900 on 64-bit hosts).  And some invalid
95006         time stamps were being accepted, e.g. September 31.
95007
95008         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
95009         that we can return (time_t) -1 successfully.
95010         * lib/posixtm.c: Likewise.
95011         [HAVE_STDBOOL_H]: Include <stdbool.h>.
95012         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
95013         (t): Remove static var.
95014         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
95015         of static var.  All uses changed.
95016         (year): Do not reject years before 1900; they can occur with
95017         64-bit time_t.
95018         (posix_time_parse): Do not check for out-of-range components;
95019         that is now the caller's responsibility, since our checks were
95020         only approximations.
95021         (posixtime): Use mktime to check for out-of-range components,
95022         since it knows them exactly.
95023         If mktime returns (time_t) -1, check whether an error actually occurred
95024         by invoking localtime on -1.
95025         (main) [TEST_POSIXTIME]: Check for input data errors, and report
95026         posixtime failures better.
95027         Improve the test data (in comments only).
95028
95029 2003-06-02  Karl Berry  <karl@gnu.org>
95030
95031         * config/mkinstalldirs (version): new variable.
95032         (--version): new option.
95033         (usage): improve message.
95034
95035 2003-05-30  Karl Berry  <karl@gnu.org>
95036
95037         * lib/mktime.c: update from libc.
95038
95039 2003-05-30  Bruno Haible  <bruno@clisp.org>
95040
95041         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
95042         * config/config.rpath: Upgrade to gettext-0.12.1.
95043
95044 2003-05-30  Bruno Haible  <bruno@clisp.org>
95045
95046         * m4/gettext.m4: Upgrade to gettext-0.12.1.
95047         * m4/nls.m4: New file, from gettext-0.12.1.
95048         * m4/po.m4: New file, from gettext-0.12.1.
95049         * m4/progtest.m4: Upgrade to gettext-0.12.1.
95050
95051 2003-05-30  Bruno Haible  <bruno@clisp.org>
95052
95053         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
95054         * lib/localcharset.h: Likewise.
95055         * lib/localcharset.c: Likewise.
95056
95057 2003-05-29  Karl Berry  <karl@gnu.org>
95058
95059         * config/config.rpath: update from gettext.
95060
95061 2003-05-28  Paul Eggert  <eggert@twinsun.com>
95062
95063         Assume the headers required for C89 freestanding compilers.
95064         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
95065         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
95066         * m4/human.m4 (gl_HUMAN): Likewise.
95067         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
95068         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
95069         * m4/userspec.m4 (gl_USERSPEC): Likewise.
95070         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
95071         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
95072         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
95073
95074 2003-05-28  Paul Eggert  <eggert@twinsun.com>
95075
95076         Assume the headers required for C89 freestanding compilers.
95077         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
95078         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
95079         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
95080         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
95081         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
95082         define, since <limits.h> is guaranteed to do that.
95083         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
95084         * lib/exclude.c: Include <stdbool.h> unconditionally.
95085         * lib/tempname.c: Include <stddef.h> unconditionally.
95086         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
95087         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
95088         <stddef.h> does that.
95089         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
95090         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
95091         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
95092         needed.
95093         * lib/xstrtol.c: Likewise.
95094         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
95095         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
95096
95097         * lib/addext.c (addext): Use assignment rather than cast, to avoid
95098         warnings on some platforms.
95099
95100         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
95101         arbitrarily.
95102
95103 2003-05-26  Jim Meyering  <jim@meyering.net>
95104
95105         Merge in a change from coreutils:
95106         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
95107         that is guaranteed to be `no'.  Use `no_such_member' to indicate
95108         that condition, rather than `-1' which is slightly misleading.
95109         Change the name of the cache variable to have the gl_ prefix.
95110         Prompted by a patch from Richard Dawe for DJGPP.
95111
95112 2003-05-24  Karl Berry  <karl@gnu.org>
95113
95114         * config/config.guess: update from prep.
95115
95116 2003-05-22  Karl Berry  <karl@gnu.org>
95117
95118         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
95119
95120 2003-05-20  Karl Berry  <karl@gnu.org>
95121
95122         * config/config.guess: update from prep.
95123
95124 2003-05-18  Karl Berry  <karl@gnu.org>
95125
95126         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
95127         might actually be set by the user.
95128
95129         * config/depcomp, install-sh, mdate-sh: update from automake.
95130
95131 2003-05-17  Bruno Haible  <bruno@clisp.org>
95132
95133         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
95134         invalid expansion for AC_EGREP_CPP.
95135         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
95136         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
95137         Suggested by Akim Demaille <akim@epita.fr> in
95138         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
95139
95140 2003-05-12  Jim Meyering  <jim@meyering.net>
95141
95142         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
95143         the space-padded-by-default conversion specifiers, %e, %k, %l.
95144
95145 2003-05-12  Bruno Haible  <bruno@clisp.org>
95146
95147         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
95148         the string is longer than 4 KB.
95149
95150 2003-05-11  Karl Berry  <karl@gnu.org>
95151
95152         * config/config.{guess,sub}: update from prep.
95153
95154 2003-05-09  Bruno Haible  <bruno@clisp.org>
95155
95156         * modules/error: Add m4/strerror_r.m4 to file list.
95157
95158 2003-05-03  Bruno Haible  <bruno@clisp.org>
95159
95160         Upgrade to Unicode-4.0.
95161         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
95162         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
95163         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
95164         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
95165         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
95166         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
95167         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
95168         Change width of U+E0100..U+E01EF from 1 to 0.
95169
95170 2003-04-25  Jim Meyering  <jim@meyering.net>
95171
95172         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
95173         of type size_t, not int.
95174
95175 2003-04-25  Bruno Haible  <bruno@clisp.org>
95176
95177         * lib/copy-file.c: Include <stddef.h>, for size_t.
95178
95179 2003-04-21  Paul Eggert  <eggert@twinsun.com>
95180
95181         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
95182         code which expansion is under static control.  Patch imported from
95183         Akim Demaille's patch to Bison; see
95184         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
95185
95186 2003-04-14  Bruno Haible  <bruno@clisp.org>
95187
95188         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
95189
95190 2003-04-11  Jim Meyering  <jim@meyering.net>
95191
95192         Merge changes from Coreutils.
95193
95194         2003-03-22  Jim Meyering  <jim@meyering.net>
95195
95196         * lib/strftime.c (widen): Cast alloca return value to proper type.
95197
95198         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
95199
95200         From GNU libc.
95201         * lib/strftime.c (my_strftime): Handle very large width
95202         specifications for numeric values correctly.  Improve checks for
95203         overflow.
95204
95205         2003-01-19  Jim Meyering  <jim@meyering.net>
95206
95207         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
95208         definitions.
95209         (nl_get_alt_digit) [! defined my_strftime]: Define.
95210         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
95211         _nl_get_alt_digit and _nl_get_walt_digit.
95212
95213         * lib/strftime.c (my_strftime): Merge in locale-related changes from
95214         libc. These changes have no effect outside of _LIBC.
95215
95216 2003-04-10  Bruno Haible  <bruno@clisp.org>
95217
95218         * modules/findprog: New file.
95219         * MODULES.html.sh (func_all_modules): Add it.
95220
95221 2003-04-10  Bruno Haible  <bruno@clisp.org>
95222
95223         * m4/findprog.m4: New file.
95224         * m4/eaccess.m4: New file.
95225
95226 2003-04-10  Bruno Haible  <bruno@clisp.org>
95227
95228         * lib/findprog.h: New file, from GNU gettext.
95229         * lib/findprog.c: New file, from GNU gettext.
95230
95231 2003-04-05  Jim Meyering  <jim@meyering.net>
95232
95233         Merge changes from Coreutils.
95234
95235         * lib/exclude.h (PARAMS): Remove definition and uses.
95236         * lib/exclude.c: Remove uses of `PARAMS'.
95237
95238         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
95239         Add test-cases for DOS filenames. Declare program_name.
95240         (main): Set up program_name.  Patch by Rich Dawe.
95241
95242         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
95243         error from mntctl.
95244         Use mntctl's return value to drive the entry-processing loop, since
95245         we can't rely on the value of the vmt_length member in the last
95246         entry.  On some systems doing so could result in exhausting
95247         virtual memory.  Based in part on a patch from Mike Jetzer.
95248
95249 2003-04-04  Bruno Haible  <bruno@clisp.org>
95250
95251         * modules/linebreak: New file.
95252         * MODULES.html.sh (func_all_modules): Add it.
95253
95254 2003-04-04  Bruno Haible  <bruno@clisp.org>
95255
95256         * m4/linebreak.m4: New file.
95257
95258 2003-04-04  Bruno Haible  <bruno@clisp.org>
95259
95260         * lib/linebreak.h: New file, from GNU gettext.
95261         * lib/linebreak.c: New file, from GNU gettext with slight
95262         modifications.
95263         * lib/lbrkprop.h: New file, from GNU gettext.
95264
95265 2003-04-03  Bruno Haible  <bruno@clisp.org>
95266
95267         * modules/utf8-ucs4: New file.
95268         * modules/utf16-ucs4: New file.
95269         * modules/ucs4-utf8: New file.
95270         * modules/ucs4-utf16: New file.
95271         * MODULES.html.sh (func_all_modules): Add them.
95272
95273 2003-04-03  Bruno Haible  <bruno@clisp.org>
95274
95275         * m4/utf-ucs4.m4: New file.
95276         * m4/ucs4-utf.m4: New file.
95277
95278 2003-04-03  Bruno Haible  <bruno@clisp.org>
95279
95280         * lib/utf8-ucs4.h: New file, from GNU gettext.
95281         * lib/utf16-ucs4.h: New file, from GNU gettext.
95282         * lib/ucs4-utf8.h: New file, from GNU gettext.
95283         * lib/ucs4-utf16.h: New file, from GNU gettext.
95284
95285 2003-04-02  Bruno Haible  <bruno@clisp.org>
95286
95287         * modules/binary-io: New file.
95288         * MODULES.html.sh (func_all_modules): Add it.
95289
95290 2003-04-02  Bruno Haible  <bruno@clisp.org>
95291
95292         * lib/binary-io.h: New file, from GNU gettext.
95293
95294 2003-04-01  Bruno Haible  <bruno@clisp.org>
95295
95296         * modules/pathname: New file.
95297         * MODULES.html.sh (func_all_modules): Add it.
95298
95299 2003-04-01  Bruno Haible  <bruno@clisp.org>
95300
95301         * lib/pathname.h: New file, from GNU gettext.
95302         * lib/concatpath.c: New file, from GNU gettext.
95303
95304 2003-03-30  Bruno Haible  <bruno@clisp.org>
95305
95306         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
95307
95308 2003-03-30  Bruno Haible  <bruno@clisp.org>
95309
95310         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
95311         function chown() doesn't exist.
95312
95313 2003-03-28  Bruno Haible  <bruno@clisp.org>
95314
95315         * modules/copy-file: New file.
95316         * MODULES.html.sh (func_all_modules): Add it.
95317
95318 2003-03-28  Bruno Haible  <bruno@clisp.org>
95319
95320         * m4/copy-file.m4: New file.
95321
95322 2003-03-28  Bruno Haible  <bruno@clisp.org>
95323
95324         * lib/copy-file.h: New file, from GNU gettext.
95325         * lib/copy-file.c: New file, from GNU gettext.
95326
95327 2003-03-18  Jim Meyering  <jim@meyering.net>
95328
95329         * lib/quote.c (quote_n): Fix typo in comment.
95330
95331 2003-03-18  Bruno Haible  <bruno@clisp.org>
95332
95333         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
95334         checking.
95335         * m4/onceonly_2_57.m4: Likewise.
95336
95337 2003-03-17  Bruno Haible  <bruno@clisp.org>
95338
95339         * m4/onceonly.m4: Require autoconf 2.54 or newer.
95340         (m4_quote): Remove macro.
95341         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
95342
95343 2003-03-14  Jim Meyering  <jim@meyering.net>
95344
95345         Merge changes from Coreutils.
95346         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
95347         to be const, in order to avoid warnings.
95348         (obstack_room): Likewise.
95349         (obstack_empty_p): Likewise.
95350
95351 2003-03-14  Bruno Haible  <bruno@clisp.org>
95352
95353         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
95354         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
95355
95356 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95357
95358         Merge changes from Bison.
95359         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
95360         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
95361         when compiling Bison 1.875's `bitset bset = obstack_alloc
95362         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
95363         * lib/hash.c: Include <stdbool.h> unconditionally.
95364
95365 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95366
95367         * m4/onceonly.m4 (m4_quote): New macro.
95368         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
95369         Quote AC_FOREACH variable-expansions properly.
95370
95371 2003-03-13  Paul Eggert  <eggert@twinsun.com>
95372
95373         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
95374
95375 2003-03-09  Paul Eggert  <eggert@twinsun.com>
95376
95377         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
95378         Reported by Bruce Becker; see:
95379         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
95380
95381 2003-03-03  Paul Eggert  <eggert@twinsun.com>
95382             Bruno Haible  <bruno@clisp.org>
95383
95384         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
95385         Reported by John Hughes, see
95386         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
95387
95388 2003-02-20  Bruno Haible  <bruno@clisp.org>
95389
95390         * MODULES.html.sh (func_all_modules): Add poll.
95391
95392 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95393
95394         * modules/poll: New file.
95395
95396 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95397
95398         * lib/poll_.h: New file.
95399         * lib/poll.c: New file.
95400
95401 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
95402
95403         * m4/poll.m4: New file.
95404
95405 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95406
95407         * modules/mathl: New file.
95408
95409 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95410
95411         * lib/mathl.h: New file.
95412         * lib/acosl.c: New file.
95413         * lib/asinl.c: New file.
95414         * lib/atanl.c: New file.
95415         * lib/ceill.c: New file.
95416         * lib/cosl.c: New file.
95417         * lib/expl.c: New file.
95418         * lib/floorl.c: New file.
95419         * lib/frexpl.c: New file.
95420         * lib/ldexpl.c: New file.
95421         * lib/logl.c: New file.
95422         * lib/sincosl.c: New file.
95423         * lib/sinl.c: New file.
95424         * lib/sqrtl.c: New file.
95425         * lib/tanl.c: New file.
95426         * lib/trigl.c: New file.
95427         * lib/trigl.h: New file.
95428
95429 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
95430
95431         * m4/mathl.m4: New file.
95432
95433 2003-02-18  Bruno Haible  <bruno@clisp.org>
95434
95435         * MODULES.html.sh (func_all_modules): Add mathl.
95436
95437 2003-02-17  Bruno Haible  <bruno@clisp.org>
95438
95439         * modules/mkdtemp: New module.
95440         * MODULES.html.sh (func_all_modules): Add it.
95441
95442 2003-02-17  Bruno Haible  <bruno@clisp.org>
95443
95444         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
95445
95446 2003-02-17  Bruno Haible  <bruno@clisp.org>
95447
95448         * lib/mkdtemp.h: New file, from GNU gettext.
95449         * lib/mkdtemp.c: New file, from GNU gettext.
95450
95451 2003-02-02  Jim Meyering  <jim@meyering.net>
95452
95453         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
95454         e.g. glibc-2.2.93.
95455
95456 2003-01-31  Bruno Haible  <bruno@clisp.org>
95457
95458         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
95459         'rpl_rename'.
95460         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
95461         'rpl_strnlen'.
95462         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
95463         'rpl_strtod'.
95464         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
95465         'rpl_utime'.
95466
95467 2003-01-31  Bruno Haible  <bruno@clisp.org>
95468
95469         * lib/rename.c: #undef rename before defining rpl_rename.
95470         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
95471
95472 2003-01-30  Bruno Haible  <bruno@clisp.org>
95473
95474         * modules/vasnprintf, modules/vasprintf: New modules.
95475         * MODULES.html.sh (func_all_modules): Add them.
95476
95477 2003-01-30  Bruno Haible  <bruno@clisp.org>
95478
95479         * m4/signed.m4: New file, from GNU gettext.
95480         * m4/longdouble.m4: New file, from GNU gettext.
95481         * m4/wchar_t.m4: New file, from GNU gettext.
95482         * m4/wint_t.m4: New file, from GNU gettext.
95483         * m4/vasnprintf.m4: New file.
95484         * m4/vasprintf.m4: New file.
95485
95486 2003-01-30  Bruno Haible  <bruno@clisp.org>
95487
95488         * lib/printf-args.h: New file, from GNU gettext.
95489         * lib/printf-args.c: New file, from GNU gettext.
95490         * lib/printf-parse.h: New file, from GNU gettext.
95491         * lib/printf-parse.c: New file, from GNU gettext.
95492         * lib/vasnprintf.h: New file, from GNU gettext.
95493         * lib/vasnprintf.c: New file, from GNU gettext.
95494         * lib/asnprintf.c: New file, from GNU gettext.
95495         * lib/vasprintf.h: New file, from GNU gettext with modifications.
95496         * lib/vasprintf.c: New file, from GNU gettext.
95497         * lib/asprintf.c: New file, from GNU gettext.
95498
95499 2003-01-29  Bruno Haible  <bruno@clisp.org>
95500
95501         * modules/stpncpy: New module.
95502         * MODULES.html.sh (func_all_modules): Add it.
95503
95504 2003-01-29  Bruno Haible  <bruno@clisp.org>
95505
95506         * m4/stpncpy.m4: New file.
95507
95508 2003-01-29  Bruno Haible  <bruno@clisp.org>
95509
95510         * lib/stpncpy.h: New file, from GNU gettext with modifications.
95511         * lib/stpncpy.c: New file, from GNU gettext with modifications.
95512
95513 2003-01-28  Bruno Haible  <bruno@clisp.org>
95514
95515         * modules/c-ctype: New module.
95516         * MODULES.html.sh (func_all_modules): Add it.
95517
95518 2003-01-28  Bruno Haible  <bruno@clisp.org>
95519
95520         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
95521         Paul Eggert.
95522         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
95523         Paul Eggert.
95524
95525 2003-01-27  Bruno Haible  <bruno@clisp.org>
95526
95527         * modules/xsetenv: New module.
95528         * MODULES.html.sh (func_all_modules): Add it.
95529
95530 2003-01-27  Bruno Haible  <bruno@clisp.org>
95531
95532         * lib/xsetenv.h: New file, from GNU gettext.
95533         * lib/xsetenv.c: New file, from GNU gettext.
95534
95535 2003-01-23  Jim Meyering  <jim@meyering.net>
95536
95537         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
95538         from working on systems without dirfd (at least Irix and OSF1/Tru64).
95539
95540 2003-01-23  Bruno Haible  <bruno@clisp.org>
95541
95542         * modules/minmax: New module.
95543         * MODULES.html.sh (func_all_modules): Add it.
95544
95545 2003-01-23  Bruno Haible  <bruno@clisp.org>
95546
95547         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
95548         Eggert.
95549
95550 2003-01-22  Bruno Haible  <bruno@clisp.org>
95551
95552         * modules/exit: New module.
95553         * MODULES.html.sh (func_all_modules): Add it.
95554
95555 2003-01-22  Bruno Haible  <bruno@clisp.org>
95556
95557         * lib/exit.h: New file, from GNU gettext.
95558
95559 2003-01-19  Bruno Haible  <bruno@clisp.org>
95560
95561         * gnulib-tool: Recognize option --extract-maintainer.
95562         (func_get_maintainer): New function.
95563         * modules/*: Add Maintainer entry.
95564
95565 2003-01-16  Jim Meyering  <jim@meyering.net>
95566
95567         * m4/regex.m4: The `regex' struct is both input and output.
95568         Initialize it before each use.  Patch by Tim Waugh.
95569
95570 2003-01-16  Bruno Haible  <bruno@clisp.org>
95571
95572         * MODULES.html.sh: Add a table of contents. Add the module name as
95573         leftmost column. Add hyperlinks.
95574
95575 2003-01-15  Bruno Haible  <bruno@clisp.org>
95576
95577         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
95578
95579 2003-01-15  Bruno Haible  <bruno@clisp.org>
95580
95581         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
95582         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
95583         suffix.
95584
95585 2003-01-15  Bruno Haible  <bruno@clisp.org>
95586
95587         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
95588
95589 2003-01-15  Bruno Haible  <bruno@clisp.org>
95590
95591         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
95592         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
95593
95594 2003-01-14  Jim Meyering  <jim@meyering.net>
95595
95596         * lib/same.c (same_name): Tweak a comment.
95597
95598 2003-01-14  Bruno Haible  <bruno@clisp.org>
95599
95600         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
95601         when a string comparison is sufficient.
95602
95603 2003-01-14  Bruno Haible  <bruno@clisp.org>
95604
95605         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
95606         'unsigned int'.
95607
95608 2003-01-14  Bruno Haible  <bruno@clisp.org>
95609
95610         * lib/hash-pjw.c: Add comment about low quality of this function.
95611
95612 2003-01-13  Bruno Haible  <bruno@clisp.org>
95613
95614         * modules/stpcpy: Distribute lib/stpcpy.h.
95615         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
95616
95617 2003-01-13  Bruno Haible  <bruno@clisp.org>
95618
95619         * modules/*: Add a description.
95620         * modules/strpbrk: Fix Makefile.am snippet.
95621         * modules/strtoimax: Fix dependencies.
95622         * modules/strtoumax: Likewise.
95623
95624 2003-01-13  Bruno Haible  <bruno@clisp.org>
95625
95626         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
95627         * modules/alloca (Makefile.am): All object files depend on alloca.h.
95628         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
95629
95630 2003-01-13  Bruno Haible  <bruno@clisp.org>
95631
95632         * gnulib-tool (func_create_testdir): Store config/* files in the main
95633         directory.
95634         * config.rpath: Move to ...
95635         * config/config.rpath: ... here.
95636         * modules/gettext: Contains config/config.rpath, not config.rpath.
95637         * modules/iconv: Likewise.
95638
95639 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95640
95641         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95642         to avoid collisions with libcurses and libreadline.
95643
95644         * m4/getstr.m4: Remove.
95645         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
95646
95647 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95648
95649         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95650         to avoid collisions with libcurses and libreadline.
95651
95652         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
95653         * lib/getstr.h, getstr.c: Remove.
95654         * lib/getline.c: Include "getline.h", to check interface.
95655         Move body of old getstr.c here: this defines MIN_CHUNK and
95656         declares getdelim2, which is renamed from getstr.
95657         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
95658
95659         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
95660         All uses changed.
95661         * lib/linebuffer.h: Likewise.
95662         (readline): Remove backward-compatibility macro.
95663
95664 2003-01-12  Paul Eggert  <eggert@twinsun.com>
95665
95666         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
95667         to avoid collisions with libcurses and libreadline.
95668         * getstr: Remove.
95669         * MODULES.html.sh: Remove getstr.
95670         * modules/getline: Depend on unlocked-io, not getstr.
95671
95672 2003-01-12  Jim Meyering  <jim@meyering.net>
95673
95674         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
95675
95676 2003-01-10  Bruno Haible  <bruno@clisp.org>
95677
95678         * modules/alloca: Change Makefile.am requirements. Simplify Include
95679         requirements. Add lib/alloca_.h to file list.
95680
95681 2003-01-10  Bruno Haible  <bruno@clisp.org>
95682
95683         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
95684
95685 2003-01-10  Bruno Haible  <bruno@clisp.org>
95686
95687         * lib/alloca_.h: New file.
95688         * lib/getdate.y: Unconditionally include alloca.h.
95689         * lib/makepath.c: Likewise.
95690         * lib/setenv.c: Likewise.
95691         * lib/userspec.c: Likewise.
95692
95693 2003-01-09  Karl Berry  <karl@gnu.org>
95694
95695         * MODULES.html.sh: include `dirname $0` in PATH, to find
95696         gnulib-tool.
95697
95698 2003-01-09  Bruno Haible  <bruno@clisp.org>
95699
95700         * modules/stdbool: Change configure.ac, Makefile.am requirements.
95701         Simplify Include requirements. Add lib/stdbool.h.in to file list.
95702
95703 2003-01-09  Bruno Haible  <bruno@clisp.org>
95704
95705         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
95706
95707 2003-01-09  Bruno Haible  <bruno@clisp.org>
95708
95709         * lib/stdbool.h.in: New file.
95710
95711 2003-01-09  Bruno Haible  <bruno@clisp.org>
95712
95713         * gnulib-tool (func_all_modules): Ignore files ending in ~.
95714         * MODULES.html.sh: Likewise.
95715
95716 2003-01-08  Jim Meyering  <jim@meyering.net>
95717
95718         * lib/full-write.c: Undefine and define-away `const' after inclusion
95719         of errno.h, not before.  Suggestion from Bruno Haible.
95720
95721 2003-01-08  Bruno Haible  <bruno@clisp.org>
95722
95723         * modules/full-read: Depend on full-write.
95724
95725 2003-01-08  Bruno Haible  <bruno@clisp.org>
95726
95727         * lib/safe-read.c: Include specification header first, to ensure its
95728         selfcontainedness.
95729         * lib/full-write.c: Likewise.
95730
95731 2003-01-07  Jim Meyering  <jim@meyering.net>
95732
95733         * lib/full-write.c: Rework so that it may serve to define full_read,
95734         too.
95735         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
95736
95737 2003-01-07  Bruno Haible  <bruno@clisp.org>
95738
95739         * lib/strtoimax.c: Include <stdint.h> as an alternative to
95740         <inttypes.h>.
95741         * lib/xstrtol.h: Likewise.
95742         * lib/xstrtoimax.c: Likewise.
95743         * lib/xstrtoumax.c: Likewise.
95744         * lib/human.h: Likewise.
95745
95746         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
95747         on systems that have <inttypes.h> but not <stdint.h>.
95748
95749 2003-01-07  Bruno Haible  <bruno@clisp.org>
95750
95751         * MODULES.html.sh: Add copyright notice.
95752         (missed_files): Omit CVS directory entries.
95753         (func_module): Make it work with sed-3.02.
95754         * MODULES.txt: Remove file.
95755
95756 2003-01-06  Jim Meyering  <jim@meyering.net>
95757
95758         * lib/version-etc.c: Update year in translatable copyright string.
95759
95760 2003-01-03  Karl Berry  <karl@gnu.org>
95761
95762         * config/config.{guess,sub}: update from prep.
95763
95764 2003-01-02  Karl Berry  <karl@gnu.org>
95765
95766         * doc/COPYING.DOC: belatedly updated to 1.2.
95767
95768 2003-01-01  Karl Berry  <karl@gnu.org>
95769
95770         * gnulib-tool (func_verify_module): report module name $module in
95771         error message, not $1.
95772         * gnulib-tool (create-testdir): don't complain if destdir couldn't
95773         be created, only if it doesn't exist.
95774         * gnulib-tool (last_checkin_date): don't expand the $Date here.
95775
95776 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95777
95778         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
95779
95780 2002-12-31  Paul Eggert  <eggert@twinsun.com>
95781
95782         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
95783         memcmp if strcoll doesn't work.
95784
95785 2002-12-31  Bruno Haible  <bruno@clisp.org>
95786
95787         * lib/utime.c (utime_null): No need to call ftruncate if the file was
95788         nonempty.
95789
95790 2002-12-31  Bruno Haible  <bruno@clisp.org>
95791
95792         * lib/memcoll.c (STRCOLL): New macro.
95793         (memcoll): Use it.
95794
95795 2002-12-31  Bruno Haible  <bruno@clisp.org>
95796
95797         * lib/localcharset.h: New file.
95798         * lib/localcharset.c: Include it.
95799         * lib/unicodeio.c: Likewise.
95800
95801 2002-12-31  Bruno Haible  <bruno@clisp.org>
95802
95803         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
95804         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
95805
95806 2002-12-31  Bruno Haible  <bruno@clisp.org>
95807
95808         * lib/getline.h: Include <stddef.h>, for size_t.
95809
95810         * lib/unicodeio.h: Include <stddef.h>, for size_t.
95811         * lib/unicodeio.c: Don't include <stddef.h>.
95812
95813 2002-12-31  Bruno Haible  <bruno@clisp.org>
95814
95815         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
95816         HAVE_TM_ZONE.
95817
95818 2002-12-24  Karl Berry  <karl@gnu.org>
95819
95820         * config/config.guess: update from prep.
95821
95822 2002-12-24  Bruno Haible  <bruno@clisp.org>
95823
95824         General infrasructure.
95825         * m4/README: Rewritten.
95826         * m4/onceonly.m4: New file.
95827         * m4/onceonly_2_57.m4: New file.
95828
95829         Module atexit.
95830         * m4/atexit.m4: New file.
95831
95832         Module strtod.
95833         * m4/strtod.m4: New file.
95834
95835         Module strtol.
95836         * m4/strtol.m4: New file.
95837
95838         Module strtoul.
95839         * m4/strtoul.m4: New file.
95840
95841         Module memchr.
95842         * m4/memchr.m4: New file.
95843
95844         Module memcmp.
95845         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
95846         (jm_FUNC_MEMCMP): Invoke it.
95847
95848         Module memcpy.
95849         * m4/memcpy.m4: New file.
95850
95851         Module memmove.
95852         * m4/memmove.m4: New file.
95853
95854         Module memset.
95855         * m4/memset.m4: New file.
95856
95857         Module strcspn.
95858         * m4/strcspn.m4: New file.
95859
95860         Module strpbrk.
95861         * m4/strpbrk.m4: New file.
95862
95863         Module strstr.
95864         * m4/strstr.m4: New file.
95865
95866         Module strerror.
95867         * m4/strerror.m4: New file.
95868
95869         Module mktime.
95870         * m4/mktime.m4: Renamed from jm-mktime.m4.
95871         (gl_PREREQ_MKTIME): New macro.
95872         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
95873
95874         Module malloc.
95875         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
95876         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
95877         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
95878
95879         Module realloc.
95880         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
95881         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
95882         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
95883
95884         Module strftime.
95885         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
95886         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
95887         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
95888         gl_TM_GMTOFF.
95889         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
95890
95891         Module xalloc.
95892         * m4/xalloc.m4: New file.
95893
95894         Module alloca.
95895         * m4/alloca.m4: New file.
95896
95897         Module putenv.
95898         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
95899         (jm_FUNC_PUTENV): Invoke it.
95900
95901         Module setenv.
95902         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
95903         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
95904         when invoked twice.
95905         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
95906         gt_FUNC_SETENV.
95907
95908         Module memrchr.
95909         * m4/memrchr.m4: New file.
95910
95911         Module stpcpy.
95912         * m4/stpcpy.m4: New file.
95913
95914         Module strcase.
95915         * m4/strcase.m4: New file.
95916
95917         Module strdup.
95918         * m4/strdup.m4: New file.
95919
95920         Module strnlen.
95921         * m4/strnlen.m4: New file.
95922
95923         Module strndup.
95924         * m4/strndup.m4: New file.
95925
95926         Module xstrtod.
95927         * m4/xstrtod.m4: New file.
95928
95929         Module xstrtol.
95930         * m4/xstrtol.m4: New file.
95931
95932         Module getdate.
95933         * m4/getdate.m4: New file.
95934
95935         Module unlocked-io.
95936         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
95937         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
95938         * m4/jm-glibc-io.m4n: Remove file.
95939
95940         Module long-options.
95941         * m4/long-options.m4: New file.
95942
95943         Module md5.
95944         * m4/md5.m4: New file.
95945
95946         Module sha.
95947         * m4/sha.m4: New file.
95948
95949         Module getstr.
95950         * m4/getstr.m4: New file.
95951
95952         Module getline.
95953         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
95954         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
95955         <sys/types.h>, for size_t. Use the function name gnu_getline, not
95956         simply getline. Infoke gl_PREREQ_GETLINE.
95957
95958         Module obstack.
95959         * m4/obstack.m4: New file.
95960
95961         Module hash.
95962         * m4/hash.m4: New file.
95963
95964         Module readtokens.
95965         * m4/readtokens.m4: New file.
95966
95967         Module strverscmp.
95968         * m4/strverscmp.m4: New file.
95969
95970         Module stdbool.
95971         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
95972         OSF/1.
95973
95974         Module strtoll.
95975         * m4/strtoll.m4: New file.
95976
95977         Module strtoull.
95978         * m4/strtoull.m4: New file.
95979
95980         Module strtoimax.
95981         * m4/strtoimax.m4: New file.
95982
95983         Module strtoumax.
95984         * m4/strtoumax.m4: New file.
95985
95986         Module xstrtoimax.
95987         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
95988         jm_AC_PREREQ_XSTRTOIMAX.
95989         Moved the strtol prerequisites to strtol.m4.
95990         Moved the strtoll prerequisites to strtoll.m4.
95991         Moved the strtoimax prerequisites to strtoimax.m4.
95992
95993         Module xstrtoumax.
95994         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
95995         jm_AC_PREREQ_XSTRTOUMAX.
95996         Moved the strtoul prerequisites to strtoul.m4.
95997         Moved the strtoull prerequisites to strtoull.m4.
95998         Moved the strtoumax prerequisites to strtoumax.m4.
95999
96000         Module chown.
96001         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
96002         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
96003
96004         Module dup2.
96005         * m4/dup2.m4: New file.
96006
96007         Module ftruncate.
96008         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
96009         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
96010
96011         Module getgroups.
96012         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
96013         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
96014
96015         Module gettimeofday.
96016         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
96017         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
96018         gl_PREREQ_GETTIMEOFDAY.
96019
96020         Module mkdir.
96021         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
96022         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
96023
96024         Module mkstemp.
96025         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
96026         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
96027         jm_AC_TYPE_UINTMAX_T.
96028         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
96029
96030         Module stat.
96031         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
96032         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
96033
96034         Module lstat.
96035         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
96036         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
96037
96038         Module timespec.
96039         * m4/timespec.m4 (gl_TIMESPEC): New macro.
96040         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
96041         * m4/st_mtim.m4: Indentation.
96042
96043         Module nanosleep.
96044         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
96045         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
96046         gl_PREREQ_NANOSLEEP.
96047
96048         Module regex.
96049         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
96050         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
96051         (gl_REGEX): New macro.
96052
96053         Module rename.
96054         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
96055         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
96056
96057         Module rmdir.
96058         * m4/rmdir.m4: New file.
96059
96060         Module utime.
96061         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
96062         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
96063         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
96064
96065         Module dirname.
96066         * m4/dirname.m4: New file.
96067
96068         Module getopt.
96069         * m4/getopt.m4: New file.
96070
96071         Module unistd-safer.
96072         * m4/unistd-safer.m4: New file.
96073
96074         Module fnmatch.
96075         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
96076         declaration.
96077         (gl_PREREQ_FNMATCH_EXTRA): New macro.
96078         (gl_FUNC_FNMATCH_POSIX): New macro.
96079         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
96080         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
96081         simply fnmatch.
96082
96083         Module exclude.
96084         * m4/exclude.m4: New file.
96085
96086         Module human.
96087         * m4/human.m4: New file.
96088
96089         Module acl.
96090         * m4/acl.m4: Nop.
96091
96092         Module backupfile.
96093         * m4/backupfile.m4: New file.
96094         * m4/d-ino.m4: Indentation.
96095
96096         Module fsusage.
96097         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
96098         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
96099         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
96100
96101         Module dirfd.
96102         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
96103         requirements.
96104
96105         Module euidaccess.
96106         * m4/euidaccess.m4: New file.
96107
96108         Module file-type.
96109         * m4/file-type.m4: New file.
96110
96111         Module fileblocks.
96112         * m4/fileblocks.m4: New file.
96113
96114         Module filemode.
96115         * m4/filemode.m4: New file.
96116
96117         Module isdir.
96118         * m4/isdir.m4: New file.
96119
96120         Module lchown.
96121         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
96122         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
96123
96124         Module makepath.
96125         * m4/makepath.m4: New file.
96126
96127         Module modechange.
96128         * m4/modechange.m4: New file.
96129
96130         Module mountlist.
96131         * m4/mountlist.m4: New file.
96132         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
96133         Indentation.
96134
96135         Module path-concat.
96136         * m4/path-concat.m4: New file.
96137
96138         Module pathmax.
96139         * m4/pathmax.m4: New file.
96140
96141         Module same.
96142         * m4/same.m4: New file.
96143
96144         Module save-cwd.
96145         * m4/save-cwd.m4: New file.
96146
96147         Module savedir.
96148         * m4/savedir.m4: New file.
96149
96150         Module xgetcwd.
96151         * m4/xgetcwd.m4: New file.
96152         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
96153
96154         Module xreadlink.
96155         * m4/xreadlink.m4: New file.
96156
96157         Module safe-read.
96158         * m4/safe-read.m4: New file.
96159
96160         Module safe-write.
96161         * m4/safe-write.m4: New file.
96162
96163         Module closeout.
96164         * m4/closeout.m4: New file.
96165
96166         Module stdio-safer.
96167         * m4/stdio-safer.m4: New file.
96168
96169         Module getpass.
96170         * m4/getpass.m4: New file.
96171
96172         Module getugroups.
96173         * m4/getugroups.m4: New file.
96174
96175         Module group-member.
96176         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
96177         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
96178
96179         Module idcache.
96180         * m4/idcache.m4: New file.
96181
96182         Module userspec.
96183         * m4/userspec.m4: New file.
96184
96185         Module gettime.
96186         * m4/clock_time.m4: New file.
96187         * m4/gettime.m4: New file.
96188
96189         Module settime.
96190         * m4/settime.m4: New file.
96191
96192         Module posixtm.
96193         * m4/posixtm.m4: New file.
96194
96195         Module gethostname.
96196         * m4/gethostname.m4: New file.
96197
96198         Module canon-host.
96199         * m4/canon-host.m4: New file.
96200
96201         Module gettext.
96202         * m4/codeset.m4: New file, from gettext-0.11.5.
96203         * m4/gettext.m4: New file, from gettext-0.11.5.
96204         * m4/glibc21.m4: New file, from gettext-0.11.5.
96205         * m4/iconv.m4: New file, from gettext-0.11.5.
96206         * m4/intdiv0.m4: New file, from gettext-0.11.5.
96207         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
96208         * m4/inttypes.m4: New file, from gettext-0.11.5.
96209         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
96210         * m4/isc-posix.m4: New file, from gettext-0.11.5.
96211         * m4/lcmessage.m4: New file, from gettext-0.11.5.
96212         * m4/lib-ld.m4: New file, from gettext-0.11.5.
96213         * m4/lib-link.m4: New file, from gettext-0.11.5.
96214         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
96215         * m4/progtest.m4: New file, from gettext-0.11.5.
96216         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
96217         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
96218         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
96219
96220         Module localcharset.
96221         * m4/localcharset.m4: New file.
96222
96223         Module hard-locale.
96224         * m4/hard-locale.m4: New file.
96225
96226         Module mbswidth.
96227         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
96228         onceonly macros.
96229         * m4/mbrtowc.m4: Add comment.
96230
96231         Module memcasecmp.
96232         * m4/memcasecmp.m4: New file.
96233
96234         Module memcoll.
96235         * m4/memcoll.m4: New file.
96236
96237         Module unicodeio.
96238         * m4/unicodeio.m4: New file.
96239
96240         Module rpmatch.
96241         * m4/rpmatch.m4: New file.
96242
96243         Module yesno.
96244         * m4/yesno.m4: New file.
96245
96246         Module exitfail.
96247         * m4/exitfail.m4: New file.
96248
96249         Module c-stack.
96250         * m4/c-stack.m4 (gl_C_STACK): New macro.
96251         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
96252
96253         Module error.
96254         * m4/error.m4 (gl_ERROR): New macro.
96255         (jm_PREREQ_ERROR): Use onceonly macros.
96256
96257         Module fatal.
96258         * m4/fatal.m4: New file.
96259
96260         Module getloadavg.
96261         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
96262         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
96263
96264         Module getpagesize.
96265         * m4/getpagesize.m4: New file.
96266
96267         Module getusershell.
96268         * m4/getusershell.m4: New file.
96269
96270         Module physmem.
96271         * m4/physmem.m4: New file.
96272
96273         Module posixver.
96274         * m4/posixver.m4: New file.
96275
96276         Module quotearg.
96277         * m4/quotearg.m4: New file.
96278
96279         Module quote.
96280         * m4/quote.m4: New file.
96281
96282         Module readutmp.
96283         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
96284
96285         Module sig2str.
96286         * m4/sig2str.m4: New file.
96287
96288         Other.
96289         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
96290         ulonglong.m4.
96291         * m4/intmax_t.m4: New file.
96292         * m4/d-type.m4: Indentation.
96293         * m4/jm-macros.m4: Update.
96294         * m4/prereq.m4 (jm_PREREQ): Update.
96295         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
96296         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
96297         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
96298         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
96299         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
96300         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
96301         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
96302         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
96303         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
96304         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
96305         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
96306         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
96307         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
96308         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
96309         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
96310         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
96311         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
96312         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
96313         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
96314
96315 2002-12-24  Bruno Haible  <bruno@clisp.org>
96316
96317         * MODULES.txt: Update according to m4/ changes.
96318
96319         Module gettext.
96320         * config.rpath: New file, from gettext-0.11.5.
96321
96322         * modules/*: New module descriptions.
96323         * gnulib-tool: New file.
96324         * MODULES.html.sh: New file.
96325
96326 2002-12-21  Karl Berry  <karl@gnu.org>
96327
96328         * doc/fdl.texi: update to version 1.2.
96329
96330 2002-12-19  Karl Berry  <karl@gnu.org>
96331
96332         * config/config.guess: update from prep.
96333
96334 2002-12-18  Bruno Haible  <bruno@clisp.org>
96335
96336         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
96337         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
96338
96339 2002-12-17  Bruno Haible  <bruno@clisp.org>
96340
96341         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
96342         stdlib.h, string.h.
96343
96344 2002-12-17  Bruno Haible  <bruno@clisp.org>
96345
96346         * lib/canon-host.c (strdup): Remove unused declaration.
96347
96348         * lib/fsusage.c: Include full_read.h.
96349         (get_fs_usage): Use full_read instead of safe_read.
96350
96351         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
96352
96353 2002-12-12  Karl Berry  <karl@gnu.org>
96354
96355         * config/config.guess: update from prep.
96356
96357 2002-12-11  Bruno Haible  <bruno@clisp.org>
96358
96359         * m4/setenv.m4: New file, from gettext-0.11.5.
96360
96361 2002-12-11  Bruno Haible  <bruno@clisp.org>
96362
96363         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
96364         not unsetenv().
96365         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
96366         modifications:
96367
96368         2002-12-11  Bruno Haible  <bruno@clisp.org>
96369
96370                 * setenv.c (alloca): Fall back to malloc.
96371                 (freea): New macro.
96372                 (setenv): Use freea() to free memory allocated with alloca().
96373
96374         2002-11-13  Bruno Haible  <bruno@clisp.org>
96375
96376                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
96377                 function declarations.
96378                 * unsetenv.c (unsetenv): Likewise.
96379
96380         2002-03-04  Bruno Haible  <bruno@clisp.org>
96381
96382                 Portability to AIX 4.3.3.
96383                 * unsetenv.c: New file, extracted from setenv.c.
96384                 * setenv.c: Move the unsetenv() function to unsetenv.c.
96385
96386         2001-12-20  Bruno Haible  <bruno@clisp.org>
96387
96388                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
96389                 use malloc instead. For SunOS 4.
96390
96391         2001-12-11  Bruno Haible  <bruno@clisp.org>
96392
96393                 * setenv.c: Declare alloca.
96394                 (compar_fn_t): New typedef.
96395                 (KNOWN_VALUE, STORE_VALUE): Use it.
96396
96397         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
96398         setenv.h.
96399
96400 2002-12-10  Paul Eggert  <eggert@twinsun.com>
96401
96402         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
96403         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
96404         Choose values that are less likely to collide with system fnmatch
96405         options.
96406         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
96407         defined (e.g., a pure POSIX system).
96408         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
96409         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
96410
96411 2002-12-06  Paul Eggert  <eggert@twinsun.com>
96412
96413         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
96414         a pain in practice to deal with generated m4 files.  This change
96415         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
96416
96417         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
96418         and jm-glibc-io.m4, as they are no longer a special case.
96419         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
96420         kludge and the auto-generation stuff.  Check only whether the
96421         functions are declared, not whether they exist, since older hosts
96422         that don't declare the functions can't use the optimization anyway.
96423
96424 2002-12-06  Jim Meyering  <jim@meyering.net>
96425
96426         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
96427
96428         Merge in changes from libc's misc/error.c, in preparation
96429         for the merge of gnulib's changes back into libc.
96430
96431         * lib/error.c (_): Define only if not already defined.
96432         Move definition to follow all #include directives.
96433         Include unlocked-io.h only if !_LIBC.
96434         [_LIBC]: Include <libio/libioP.h>.
96435         [USE_IN_LIBIO]: Include <libio/iolibio.h>
96436         (fflush): Tweak definition to use INTUSE.
96437         (putc): Define.
96438
96439 2002-12-05  Paul Eggert  <eggert@twinsun.com>
96440
96441         * lib/alloca.c [defined emacs]: Include "lisp.h".
96442         (xalloc_die) [defined emacs]: New macro.
96443         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
96444         [! defined emacs]: Include <xalloc.h>.
96445         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
96446         (pointer): Typedef to POINTER_TYPE *.
96447         (malloc): Remove decl; we now always use xmalloc.
96448         (alloca): Use old-style definition, since Emacs needs this.
96449         Check for arithmetic overflow when computing combined size.
96450
96451 2002-12-04  Paul Eggert  <eggert@twinsun.com>
96452
96453         Do not generate unlocked-io.h automatically, since it's easier to
96454         maintain it by hand.
96455
96456         * lib/unlocked-io.h: New file, from GNU diffutils,
96457         but with proper copyright notice and attribution.
96458         * lib/gen-uio: Remove.
96459         * lib/Makefile.am: Add copyright notice.
96460         (libfetish_a_SOURCES): Add unlocked-io.h.
96461         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
96462         (DISTCLEANFILES, io_functions): Remove macros.
96463         (EXTRA_DIST): Remove gen_uio.
96464         (unlocked-io.h): Remove rule.
96465
96466 2002-12-04  Jim Meyering  <jim@meyering.net>
96467
96468         Reflect the fact that stat.c and lstat.c are no longer generated.
96469         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
96470         (DISTCLEANFILES): Likewise.
96471         (EXTRA_DIST): Likewise.
96472         (all_local): Don't depend on stat.c or lstat.c.
96473         (stat.c, lstat.c): Remove rules.
96474         (EXTRA_DIST): Remove xstat.in.
96475
96476         * lib/xstat.in: Remove file.  Contents moved into stat.c.
96477         * lib/stat.c: New file.  Contents mostly from xstat.in.
96478         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
96479         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
96480
96481         * lib/safe-read.c: Rework so that it may serve to define safe_write,
96482         too.
96483         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
96484
96485 2002-12-03  Jim Meyering  <jim@meyering.net>
96486
96487         * lib/safe-read.c, safe-write.c: Change variable names and comments,
96488         but not semantics, to minimize the differences between these two files.
96489         (safe_read): Change comment to mention SAFE_READ_ERROR.
96490
96491         * lib/safe-read.c (IS_EINTR): Define.
96492         (safe_read): Use IS_EINTR in place of in-function cpp directives.
96493
96494 2002-12-02  Jim Meyering  <jim@meyering.net>
96495
96496         * lib/safe-read.c (EINTR): Define.
96497         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96498         (INT_MAX): Provide fallback.
96499         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
96500
96501         * lib/safe-read.h (SAFE_READ_ERROR): Define.
96502
96503 2002-12-02  Bruno Haible  <bruno@clisp.org>
96504
96505         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
96506         Define, taken from safe-read.c.
96507         (INT_MAX): Provide fallback.
96508         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
96509         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
96510
96511         * lib/safe-read.c (EINTR): Remove definition.
96512         (safe_read): Don't use EINTR if it is absent.
96513
96514 2002-12-01  Jim Meyering  <jim@meyering.net>
96515
96516         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
96517         zero.
96518         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
96519
96520 2002-11-27  Paul Eggert  <eggert@twinsun.com>
96521
96522         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
96523         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
96524         with `if (! (value < limit)) abort ();', for readability.
96525
96526 2002-11-26  Karl Berry  <karl@gnu.org>
96527
96528         * lib/strdup.c: copy from libc again, with jim's ok.
96529         * lib/.cppi-disable: re-add strdup.c
96530
96531 2002-11-25  Karl Berry  <karl@gnu.org>
96532
96533         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
96534         instead of "strtol.c".
96535
96536 2002-11-25  Karl Berry  <karl@gnu.org>
96537
96538         * config/install-sh: update from automake for variable quoting, $0 in
96539         error msgs, etc.
96540
96541         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
96542         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
96543         entry.
96544
96545 2002-11-25  Jim Meyering  <jim@meyering.net>
96546
96547         * lib/mktime.c: Sync from libc, now that it has the latest fix.
96548
96549 2002-11-24  Karl Berry  <karl@gnu.org>
96550
96551         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
96552         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
96553
96554 2002-11-24  Jim Meyering  <jim@meyering.net>
96555
96556         Update from coreutils:
96557
96558         * lib/mktime.c: Merge in changes from libc.
96559
96560         Avoid a link-time failure on some Linux systems.
96561         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
96562         (otherwise).
96563         (__mon_yday): Declare with the STATIC attribute.
96564         (__mktime_internal): Likewise.
96565         Based on a report from Greg Schafer.
96566
96567 2002-11-23  Jim Meyering  <jim@meyering.net>
96568
96569         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
96570         Use `unsigned', not `int', as type of index.
96571
96572         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
96573
96574         * lib/fsusage.c: Remove unneeded parentheses around operands of
96575         `defined'.
96576
96577 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96578
96579         * lib/quotearg.h: Allow multiple inclusion by surrounding with
96580         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
96581         so that we can be included first.
96582         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
96583         * lib/quotearg.c: Include quotearg.h immediately after config.h.
96584         No need to include stddef.h or sys/types.h any more.
96585         Surround local include files with "", not "<>".
96586         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
96587         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
96588         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
96589         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
96590         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
96591         (ISPRINT): Remove; no longer needed now that we assume C89.
96592
96593         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
96594         Preserve errno.
96595
96596         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
96597         quotearg_char): Use SIZE_MAX rather than
96598         (size_t) -1 when we are talking about "infinity".
96599
96600         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
96601
96602 2002-11-22  Paul Eggert  <eggert@twinsun.com>
96603
96604         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
96605         hint that one should use `if (! x) abort ();' rather than `assert
96606         (x);', and anyway it's one less thing to worry about configuring.
96607         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
96608         hash_rehash, hash_insert): Use abort rather than assert.
96609
96610 2002-11-22  Bruno Haible  <bruno@clisp.org>
96611
96612         * lib/safe-read.h: Assume C89. Add comments.
96613         (safe_read): Change return type to size_t.
96614         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
96615         byte counts > SSIZE_MAX correctly.
96616         * lib/safe-write.h: New file.
96617         * lib/safe-write.c: New file.
96618         * lib/full-read.h: New file.
96619         * lib/full-read.c: New file.
96620         * lib/full-write.h: Assume C89. Add comments.
96621         * lib/full-write.c: Include safe-write.h.
96622         (full_write): Rewritten to use safe_write.
96623         Suggested by Jim Meyering and Paul Eggert.
96624
96625 2002-11-21  Jim Meyering  <jim@meyering.net>
96626
96627         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
96628
96629         Merge in changes from the coreutils.
96630
96631         2002-09-25  Paul Eggert  <eggert@twinsun.com>
96632         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
96633         <stdint.h>.
96634         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
96635         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
96636         int.  Work more efficiently if X is the same width as uintmax_t.
96637         Do not compare X to -1, to avoid bogus compiler warning.
96638         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
96639         Don't assume that f_frsize and f_bsize are the same type.
96640
96641         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
96642         warning on FreeBSD.
96643
96644         * lib/makepath.c (make_path): Restore umask *before* creating the final
96645         component.
96646         (make_path): Minor reformatting.
96647
96648         * lib/xmalloc.c: Adjust to work with new autoconf macros,
96649         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
96650         HAVE_MALLOC/HAVE_REALLOC.
96651
96652         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
96653         dummy ones.  At least on GNU/Linux systems, `auto' means something
96654         else.
96655         From Michael Stone.
96656
96657 2002-11-21  Bruno Haible  <bruno@clisp.org>
96658
96659         Remove case insensitive option matching.
96660         * lib/argmatch.h (argcasematch): Remove declaration.
96661         (ARGCASEMATCH): Remove macro.
96662         (__xargmatch_internal): Remove case_sensitive argument.
96663         (XARGMATCH): Update.
96664         (XARGCASEMATCH): Remove macro.
96665         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
96666         case_sensitive argument.
96667         (argcasematch): Remove function.
96668         (__xargmatch_internal): Remove case_sensitive argument.
96669         (main): Use XARGMATCH instead of XARGCASEMATCH.
96670
96671         * lib/xmalloc.c: Change compile-time error message. Add comment about
96672         required autoconf version.
96673
96674 2002-11-20  Paul Eggert  <eggert@twinsun.com>
96675
96676         Merge argmatch cleanups from Bison.  Assume C89.
96677
96678         * lib/argmatch.c: Include config.h here, not in argmatch.h.
96679         Include stdlib.h, for EXIT_FAILURE.
96680         Always include <string.h>, since we assume C89.
96681         (EXIT_FAILURE): Remove pre-C89 bug workaround.
96682         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
96683         Include <stddef.h> instead, since it's all we need for size_t.
96684         (PARAMS): Remove.  All uses removed.
96685         (ARRAY_CARDINALITY): Do not bother to #undef.
96686         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
96687         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96688         Remove unnecessary parentheses.
96689         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
96690         Insert necessary parentheses.
96691         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
96692         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
96693
96694 2002-11-19  Bruno Haible  <bruno@clisp.org>
96695
96696         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
96697         * lib/mbswidth.h: Include <stddef.h>, for size_t.
96698
96699         * lib/mbswidth.h (PARAMS): Remove macro.
96700         (mbswidth, mbsnwidth): Use ANSI C function declarations.
96701         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
96702
96703         * lib/gcd.h (PARAMS): Remove macro.
96704         (gcd): Use ANSI C function declarations.
96705         * lib/gcd.c (gcd): Likewise.
96706
96707 2002-11-15  Bruno Haible  <bruno@clisp.org>
96708
96709         * lib/strcspn.c: Include <stddef.h>.
96710         (strcspn): Use ANSI C function declaration. Change return type to
96711         size_t. Use NULL.
96712         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
96713         (strpbrk): Use NULL.
96714         * lib/strpbrk.h (PARAMS): Remove macro.
96715         (strpbrk): Use ANSI C function declaration.
96716         * lib/strstr.c: Don't include <sys/types.h>.
96717         * lib/strstr.h (PARAMS): Remove macro.
96718         (strstr): Use ANSI C function declarations.
96719
96720 2002-11-14  Karl Berry  <karl@gnu.org>
96721
96722         * config/mkinstalldirs: `do' on separate line, instead of
96723         `for var; do'.
96724
96725 2002-11-06  Bruno Haible  <bruno@clisp.org>
96726
96727         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
96728         * lib/gcd.c (gcd): Likewise.
96729
96730 2002-11-05  Bruno Haible  <bruno@clisp.org>
96731
96732         * lib/gcd.h: New file, from gettext-0.11.5.
96733         * lib/gcd.c: New file, from gettext-0.11.5.
96734
96735 2002-11-05  Bruno Haible  <bruno@clisp.org>
96736
96737         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96738         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96739         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96740         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
96741
96742         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
96743         <libintl.h>.
96744         * lib/makepath.c: Include gettext.h instead of <locale.h> and
96745         <libintl.h>.
96746
96747         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
96748         * lib/human.c: Include gettext.h instead of <libintl.h>.
96749         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
96750         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
96751         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
96752         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
96753         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
96754         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
96755         (textdomain): Remove definition.
96756         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
96757
96758         * lib/long-options.c: Remove include of <libintl.h> and definition of
96759         _.
96760         * lib/same.c: Remove include of <libintl.h> and definition of _.
96761
96762 2002-11-04  Owen Taylor  <otaylor@redhat.com>
96763
96764         * lib/config.charset: A few additions for Solaris.
96765
96766 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96767
96768         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
96769         * lib/localcharset.c (locale_charset): Declare as extern "C".
96770
96771 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
96772
96773         * lib/config.charset: msdos in uk_UA uses CP1125.
96774
96775 2002-11-04  Bruno Haible  <bruno@clisp.org>
96776
96777         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
96778         * lib/strcase.h: New file, from GNU gettext-0.11.5.
96779         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
96780         * lib/strstr.h: New file, from GNU gettext-0.11.5.
96781         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
96782
96783 2002-11-04  Bruno Haible  <bruno@clisp.org>
96784
96785         * lib/localcharset.c (locale_charset): Don't return an empty string.
96786
96787 2002-11-04  Bruno Haible  <bruno@clisp.org>
96788
96789         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
96790         aliases.
96791
96792 2002-11-04  Bruno Haible  <bruno@clisp.org>
96793
96794         * lib/config.charset: Update for newest glibc. Add canonical names
96795         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
96796
96797 2002-11-04  Bruno Haible  <bruno@clisp.org>
96798
96799         * lib/config.charset: Add support for NetBSD.
96800
96801 2002-11-04  Bruno Haible  <bruno@clisp.org>
96802
96803         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
96804
96805 2002-11-01  Bruno Haible  <bruno@clisp.org>
96806
96807         * configure.in: Add AC_CONFIG_AUX_DIR call.
96808         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
96809         test/Makefile.
96810         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
96811
96812 2002-09-28  Karl Berry  <karl@gnu.org>
96813
96814         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
96815         installed automake until the next release, since changes have been
96816         made.
96817
96818 2002-09-25  Karl Berry  <karl@gnu.org>
96819
96820         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
96821         * lib/getopt*: copy from libc/posix.
96822         * lib/gettext.h: copy from gettext.
96823         * lib/.cppi-disable: add strdup.c, gettext.h.
96824
96825 2002-09-25  Karl Berry  <karl@gnu.org>
96826
96827         * config/srclist.txt: enable gettext.h check.
96828         * config/config.{guess,sub}: update from prep.
96829         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
96830                 from automake 1.6.3.
96831         See srclist*.
96832
96833 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
96834
96835         * regex.c (PATFETCH): Remove the translating fetch.
96836         (PATFETCH_RAW): Rename to PATFETCH.
96837         (set_image_of_range): New fun.
96838         (SET_RANGE_TABLE_WORK_AREA): Use it.
96839         (regex_compile): Don't translate the pattern chars so eagerly.
96840         Only do it when inserting an `exactn' bytecode or when handling
96841         a char-range.
96842         (mutually_exclusive_p): Avoid empty statement.
96843
96844 2002-07-06  Jim Meyering  <meyering@lucent.com>
96845
96846         * m4/README: Don't mention Makefile.am.in.
96847         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
96848
96849 2002-07-01  Jim Meyering  <meyering@lucent.com>
96850
96851         * lib/c-stack.c: Include sys/time.h.
96852         From Volker Borchert.
96853
96854 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96855
96856         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
96857
96858 2002-06-26  Paul Eggert  <eggert@twinsun.com>
96859
96860         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
96861         New macro.  Use it uniformly instead of
96862         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
96863         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
96864         reported by Vin Shelton.
96865
96866 2002-06-22  Paul Eggert  <eggert@twinsun.com>
96867
96868         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
96869         Do not assume SA_SIGINFO behavior.
96870         Bug reported by Jim Meyering on NetBSD 1.5.2.
96871
96872 2002-06-22  Jim Meyering  <meyering@lucent.com>
96873
96874         * m4/c-stack.m4: New file, from diffutils-2.8.2.
96875         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
96876
96877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
96878         now that configure.ac uses AC_GNU_SOURCE.
96879         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
96880         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
96881
96882         Update to latest tools.  Suggestions from Paul Eggert.
96883         * m4/stdbool.m4: New file, from diffutils-2.8.2.
96884         * m4/gnu-source.m4: Update from diffutils-2.8.2.
96885         * m4/fnmatch.m4: Likewise.
96886         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
96887         to AC_HEADER_STDBOOL
96888
96889 2002-06-22  Jim Meyering  <meyering@lucent.com>
96890
96891         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
96892         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
96893
96894 2002-06-22  Jim Meyering  <meyering@lucent.com>
96895
96896         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
96897
96898         * lib/exitfail.c, exitfail.h: Likewise.
96899         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
96900
96901         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
96902         of fnmatch.h.
96903         (EXTRA_DIST): Add fnmatch_loop.c.
96904         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
96905
96906         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
96907         * lib/fnmatch.c: Update from diffutils-2.8.2.
96908         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
96909         * lib/fnmatch.h: Remove file.
96910
96911 2002-06-21  Jim Meyering  <meyering@lucent.com>
96912
96913         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
96914         * m4/mbrtowc.m4: Likewise.
96915
96916         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
96917         * m4/mbswidth.m4: Reflect name change:
96918         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
96919         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96920
96921         * m4/lib-link.m4: Update from gettext-0.11.2.
96922         * m4/gettext.m4: Likewise.
96923
96924         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
96925         From Alfred M. Szmidt.
96926
96927 2002-06-18  Paul Eggert  <eggert@twinsun.com>
96928
96929         * lib/file-type.h: Report an error if neither S_ISREG nor
96930         S_IFREG is defined, instead of using a test specific to glibc
96931         2.2.  This should be safe, since POSIX requires S_ISREG and
96932         Unix Version 7 had S_IFREG.  We don't need to check for
96933         <sys/types.h> since we don't use any symbols that it defines.
96934
96935 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
96936
96937         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
96938         $@-t, so that each temporary file name is unique and valid in the first
96939         8 characters, for operation under DOS.
96940
96941 2002-06-15  Paul Eggert  <eggert@twinsun.com>
96942
96943         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
96944
96945 2002-06-15  Jim Meyering  <meyering@lucent.com>
96946
96947         Work even with DJGPP 2.03, which lacks support for symlinks.
96948         From Richard Dawe.
96949         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
96950         is defined.
96951         * lib/lchown.c (S_ISLNK): Likewise.
96952
96953 2002-06-15  Jim Meyering  <meyering@lucent.com>
96954
96955         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
96956         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
96957         have been included before this file.
96958
96959 2002-06-14  Jim Meyering  <meyering@lucent.com>
96960
96961         * lib/file-type.h: Use the version from diffutils-2.8.2.
96962         * lib/file-type.c: Likewise.
96963
96964 2002-06-07  Jim Meyering  <meyering@lucent.com>
96965
96966         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
96967         They're needed at least for NetBSD 1.5.2.
96968         ($statxfs_includes): Include those same headers.
96969         ($statxfs_includes): Include sys/vfs.h if available.
96970         ($statxfs_includes): Likewise for sys/statvfs.h.
96971         Check for the following members in both structs statfs and statvfs:
96972         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
96973
96974 2002-06-01  Jim Meyering  <meyering@lucent.com>
96975
96976         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
96977         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
96978
96979 2002-05-28  Jim Meyering  <meyering@lucent.com>
96980
96981         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
96982         Reported by Volker Borchert.
96983
96984 2002-05-27  Jim Meyering  <meyering@lucent.com>
96985
96986         Fix a problem seen only on nonconforming systems whereby ls.c's
96987         use of localtime, and then of gettimeofday would cause trouble:
96988         the localtime call used to initialize rpl_gettimeofday's save
96989         mechanism would clobber ls's current local time information so
96990         that in any long listing the first file would always be listed
96991         with date 1970-01-01.  Analysis by Volker Borchert.
96992
96993         * lib/gettimeofday.c (localtime): Undefine.
96994         (rpl_localtime): New function.
96995
96996 2002-05-27  Jim Meyering  <meyering@lucent.com>
96997
96998         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
96999         localtime.
97000
97001         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
97002         use the replacement function; it wouldn't resolve at link time.
97003         Reported by Volker Borchert.
97004
97005 2002-05-22  Jim Meyering  <meyering@lucent.com>
97006
97007         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
97008         file-type.h.
97009         * lib/file-type.h: New file.
97010         * lib/file-type.c (file_type): New file/function.  Extracted from
97011         diffutils.
97012
97013 2002-04-30  Jim Meyering  <meyering@lucent.com>
97014
97015         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
97016
97017 2002-04-29  Paul Eggert  <eggert@twinsun.com>
97018
97019         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
97020
97021 2002-04-29  Paul Eggert  <eggert@twinsun.com>
97022
97023         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
97024         Do not check for alloca.h (no longer used) or stdbool.h (was never
97025         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
97026
97027 2002-04-29  Paul Eggert  <eggert@twinsun.com>
97028
97029         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
97030
97031 2002-04-29  Jim Meyering  <meyering@lucent.com>
97032
97033         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
97034         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
97035         Use AC_FUNC_STRNLEN here instead.
97036
97037         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
97038         With autoconf-2.53a, it's part of AC_PROG_CC.
97039
97040 2002-04-28  Paul Eggert  <eggert@twinsun.com>
97041
97042         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
97043         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
97044
97045 2002-04-28  Paul Eggert  <eggert@twinsun.com>
97046
97047         * lib/sig2str.h, lib/sig2str.c: New files.
97048         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
97049
97050 2002-04-28  Paul Eggert  <eggert@twinsun.com>
97051
97052         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
97053         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
97054         of 127, since 64 is the largest conceivable number for ancient
97055         nonstandard hosts.
97056         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
97057
97058 2002-04-28  Jim Meyering  <meyering@lucent.com>
97059
97060         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
97061
97062 2002-04-24  Jim Meyering  <meyering@lucent.com>
97063
97064         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
97065         (jm_PREREQ): Use it.
97066
97067         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
97068         mach/mach.h fcntl.h.
97069         Check for this function: setlocale.
97070
97071 2002-04-24  Jim Meyering  <meyering@lucent.com>
97072
97073         * lib/gettext.h: New file, from Gettext.
97074         * lib/Makefile.am (INCLUDES): Remove -I../intl.
97075         (libfetish_a_SOURCES): Add gettext.h.
97076
97077 2002-04-16  Jim Meyering  <meyering@lucent.com>
97078
97079         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
97080         ut_pid, ut_id, ut_exit.
97081
97082 2002-04-16  Jim Meyering  <meyering@lucent.com>
97083
97084         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
97085         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
97086         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
97087
97088 2002-04-12  Jim Meyering  <meyering@lucent.com>
97089
97090         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
97091         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
97092         existence of the getmntinfo function.  Needed for Darwin 5.3.
97093
97094         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
97095         This is necessary at least on Darwin 5.3.
97096
97097         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
97098         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
97099         strnlen.o in the library, and that makes some versions of ranlib
97100         object.
97101
97102 2002-04-12  Jim Meyering  <meyering@lucent.com>
97103
97104         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
97105
97106 2002-04-09  Jim Meyering  <meyering@lucent.com>
97107
97108         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
97109         to be more precise.  Rather than saying we're checking whether the
97110         function `works', say what we're testing.
97111         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
97112         Reported by Bruno Haible.
97113
97114 2002-03-10  Jim Meyering  <meyering@lucent.com>
97115
97116         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
97117         Suggestion from Santiago Vila.
97118
97119 2002-03-08  Jim Meyering  <meyering@lucent.com>
97120
97121         * lib/rename.c: Mention that this wrapper is needed also on
97122         mips-dec-ultrix4.4 systems.
97123
97124 2002-03-02  Jim Meyering  <meyering@lucent.com>
97125
97126         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
97127         not HAVE_CLOCK_SETTIME.
97128
97129 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97130
97131         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
97132         Check for clock_settime.
97133
97134 2002-02-27  Paul Eggert  <eggert@twinsun.com>
97135
97136         * lib/nanosleep.h: Rename to....
97137         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
97138
97139         * lib/gettime.c: New file.
97140         * lib/settime.c: New file.
97141         * lib/stime.c: Remove.
97142
97143         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
97144         timespec.h.  Remove nanosleep.h.
97145
97146 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97147
97148         * m4/acl.m4: New file.
97149         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
97150         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
97151
97152 2002-02-25  Paul Eggert  <eggert@twinsun.com>
97153
97154         * lib/acl.c, lib/acl.h: New files.
97155         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
97156
97157 2002-02-24  Jim Meyering  <meyering@lucent.com>
97158
97159         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
97160         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
97161         cause trouble.  Reported by Nelson Beebe.
97162
97163 2002-02-23  Paul Eggert  <eggert@twinsun.com>
97164
97165         * lib/path-concat.c (xpath_concat): Reorder code to pacify
97166         compilers that don't know that xalloc_die never returns.
97167
97168 2002-02-20  Jim Meyering  <meyering@lucent.com>
97169
97170         * lib/getdate.c: Regenerate using bison-1.33.
97171
97172 2002-02-17  Jim Meyering  <meyering@lucent.com>
97173
97174         * config/config.guess (main): Don't use `head -1'; it's no longer
97175         portable. Use `sed 1q' instead.
97176
97177 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
97178
97179         * m4/codeset.m4: Upgrade to gettext-0.11.
97180         * m4/gettext.m4: Upgrade to gettext-0.11.
97181         * m4/glibc21.m4: Upgrade to gettext-0.11.
97182         * m4/iconv.m4: Upgrade to gettext-0.11.
97183         * m4/isc-posix.m4: Upgrade to gettext-0.11.
97184         * m4/lcmessage.m4: Upgrade to gettext-0.11.
97185         * m4/lib-ld.m4: New file, from gettext-0.11.
97186         * m4/lib-link.m4: New file, from gettext-0.11.
97187         * m4/lib-prefix.m4: New file, from gettext-0.11.
97188         * m4/progtest.m4: Upgrade to gettext-0.11.
97189
97190 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97191
97192         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
97193         (jm_PREREQ): Use it.
97194
97195 2002-02-15  Paul Eggert  <eggert@twinsun.com>
97196
97197         * lib/posixver.c, lib/posixver.h: New files.
97198         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97199
97200 2002-02-02  Paul Eggert  <eggert@twinsun.com>
97201             Bruno Haible  <bruno@clisp.org>
97202
97203         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
97204         (fwrite_success_callback): New declaration.
97205         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
97206         print_unicode_char. Call failure callback instead of error.
97207         (fwrite_success_callback): New function.
97208         (exit_failure_callback): New function.
97209         (fallback_failure_callback): New function.
97210         (print_unicode_char): Call unicode_to_mb.
97211
97212 2002-01-26  Jim Meyering  <meyering@lucent.com>
97213
97214         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
97215         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
97216
97217 2002-01-26  Jim Meyering  <meyering@lucent.com>
97218
97219         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
97220
97221 2002-01-22  Paul Eggert  <eggert@twinsun.com>
97222
97223         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
97224
97225 2002-01-22  Jim Meyering  <meyering@lucent.com>
97226
97227         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
97228         Otherwise, some versions of automake would omit the rule that makes
97229         Makefile from Makefile.in.
97230
97231 2002-01-21  Paul Eggert  <eggert@twinsun.com>
97232
97233         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
97234         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
97235         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
97236         (memcoll): Set errno to zero if there is no error.
97237
97238         * lib/quotearg.c (quotearg_buffer_restyled):
97239         Fix bug with quoting buffers containing NUL when backslashing escapes.
97240         This bug was exposed by the other changes in this patch.
97241         (quotearg_n_options): New arg ARGSIZE.
97242         All callers changed.
97243         (quoting_options_from_style): New function.
97244         (quotearg_n_style): Use it.
97245         (quotearg_n_style_mem): New function.
97246
97247         * lib/quotearg.h (quotearg_n_style_mem): New function.
97248
97249 2002-01-19  Jim Meyering  <meyering@lucent.com>
97250
97251         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
97252         Remove useless quotes: DF_PROG="df".
97253         * m4/strnlen.m4: New file.
97254
97255 2002-01-16  Paul Eggert  <eggert@twinsun.com>
97256
97257         * lib/backupfile.c (ISDIGIT): Comment fix.
97258         * lib/getdate.y (ISDIGIT): Likewise.
97259         * lib/posixtm.c (ISDIGIT, year): Likewise.
97260         * lib/strverscmp.c (ISDIGIT): Likewise.
97261         * lib/userspec.c (ISDIGIT): Likewise.
97262
97263 2002-01-16  Jim Meyering  <meyering@lucent.com>
97264
97265         * lib/getdate.y: Add three semicolons, each just before a closing
97266         brace. Bison (as of version 1.31) no longer papers over that mistake.
97267
97268 2002-01-05  Jim Meyering  <meyering@lucent.com>
97269
97270         * lib/version-etc.c (version_etc_copyright): Update copyright year.
97271
97272 2001-12-19  Paul Eggert  <eggert@twinsun.com>
97273
97274         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
97275         not silently exit merely because the output buffer happens to
97276         have nothing pending.
97277
97278 2001-12-18  Paul Eggert  <eggert@twinsun.com>
97279
97280         See the big note in ../ChangeLog.
97281         * lib/human.c (suffixes): Prefer K to k for 1024.
97282         (generate_suffix_backwards): New function.
97283         (human_readable_inexact): Use it.
97284         * lib/xstrtol.c (__xstrtol): If there is no number but there
97285         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
97286         Accept 'K' as well as 'k'.
97287
97288 2001-12-15  Jim Meyering  <meyering@lucent.com>
97289
97290         * lib/regex.h (__restrict_arr): Update from libc.
97291
97292         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
97293         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
97294         (STREQ): Define.
97295
97296 2001-12-14  Jim Meyering  <meyering@lucent.com>
97297
97298         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
97299         Suggestion from Bruno Haible.
97300
97301 2001-12-10  Jim Meyering  <meyering@lucent.com>
97302
97303         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
97304         xrealloc, Instead, include "xalloc.h".
97305         (initbuffer): Don't cast xmalloc return value to char*.
97306         (readline): Reword comment.
97307         Don't cast xrealloc return value to char*
97308         Return NULL, not 0.
97309
97310 2001-12-09  Jim Meyering  <meyering@lucent.com>
97311
97312         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
97313         about `signed and unsigned type in conditional expression'.
97314         * lib/posixtm.c (posix_time_parse): Likewise.
97315
97316         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
97317
97318         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
97319         to avoid a pedantic warning.
97320
97321         * lib/getstr.c: Don't include assert.h.
97322         (getstr): Remove warning-evoking assertions.
97323         Return -1 if offset parameter is out of bounds.
97324         Change the type of a local from int to size_t.
97325
97326         * lib/strftime.c (my_strftime_localtime_r): Include this function
97327         definition in the `#if ! HAVE_TM_GMTOFF' block.
97328
97329         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
97330         Include xalloc.h instead.
97331
97332 2001-12-02  Jim Meyering  <meyering@lucent.com>
97333
97334         * lib/tempname.c: Don't declare getenv, thus reverting the change of
97335         2001-11-18.  It's no longer necessary, now that stdlib.h is always
97336         included.
97337
97338         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
97339         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
97340
97341 2001-11-30  Akim Demaille  <akim@epita.fr>
97342
97343         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
97344         before being defined.
97345
97346 2001-11-27  Paul Eggert  <eggert@twinsun.com>
97347
97348         * lib/quotearg.h (quotearg_n, quotearg_n_style):
97349         First arg is int, not unsigned.
97350         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
97351         (SIZE_MAX, UINT_MAX): New macros.
97352         (quotearg_n_options): Abort if N is negative.
97353         Avoid overflow check on hosts where size_t is 64 bits and int
97354         is 32 bits, as overflow is impossible there.
97355         Fix off-by-one typo that caused unnecessary reallocation.
97356
97357 2001-11-27  Jim Meyering  <meyering@lucent.com>
97358
97359         * lib/tempname.c: Merge with version from libc.
97360         * lib/regex.c: Likewise.
97361
97362         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
97363         systems for which STDC_HEADERS is 0, it was not included, resulting in
97364         a warning about an integer-to-pointer conversion problem with getenv.
97365         Reported by Volker Borchert.
97366
97367 2001-11-26  Jim Meyering  <meyering@lucent.com>
97368
97369         * lib/gtod.h: Remove file.
97370         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
97371         * lib/gettimeofday.c: Don't include gtod.h.
97372         (GTOD_init): Remove function.
97373         (rpl_gettimeofday): Do its job here instead, rather than aborting.
97374         Suggestion from Volker Borchert.
97375
97376 2001-11-23  Jim Meyering  <meyering@lucent.com>
97377
97378         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
97379         it.
97380         * lib/hash.c (struct hash_table): Define it here instead.
97381
97382 2001-11-22  Jim Meyering  <meyering@lucent.com>
97383
97384         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
97385
97386 2001-11-20  Jim Meyering  <meyering@lucent.com>
97387
97388         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
97389         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
97390
97391 2001-11-19  Jim Meyering  <meyering@lucent.com>
97392
97393         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
97394         directory.  Use "conftestXXXXXX" as the template.
97395         Suggestion from Paul Eggert.
97396
97397         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
97398         immediately, so the test doesn't mistakenly hit the max-open-files
97399         limit.
97400
97401 2001-11-18  Paul Eggert  <eggert@twinsun.com>
97402
97403         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
97404         (TEMPORARIES): New macro.
97405         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
97406         removes an artificial limitation (e.g. HP-UX 10.20, where
97407         TMP_MAX is 17576).
97408
97409 2001-11-18  Jim Meyering  <meyering@lucent.com>
97410
97411         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
97412
97413 2001-11-18  Jim Meyering  <meyering@lucent.com>
97414
97415         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
97416         on SunOS 4.
97417
97418         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
97419         files will be created before anything else.
97420
97421 2001-11-17  Paul Eggert  <eggert@twinsun.com>
97422
97423         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
97424         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
97425
97426 2001-11-17  Jim Meyering  <meyering@lucent.com>
97427
97428         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
97429         Prompted by a report from Bob Proulx.
97430
97431         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
97432         Instead, require UTILS_FUNC_MKSTEMP.
97433
97434 2001-11-17  Jim Meyering  <meyering@lucent.com>
97435
97436         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
97437         Now, that's done as part of AC_FUNC_STRTOD.
97438
97439 2001-11-17  Jim Meyering  <meyering@lucent.com>
97440
97441         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
97442         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
97443         rather than group writable.  Patch by Juan F. Codagnone.
97444
97445         * lib/readtokens.c: Remove explicit declarations of xmalloc and
97446         xrealloc, Instead, include "xalloc.h".
97447
97448         * lib/mountlist.c: Include unlocked-io.h after all system headers.
97449         Remove explicit declarations of xmalloc, xrealloc,
97450         and xstrdup.  Instead, include "xalloc.h".
97451
97452         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
97453         unlocked-io.h.
97454         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
97455         Likewise.
97456         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
97457
97458         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
97459         Reported by Padraig Brady.
97460
97461         * lib/mkstemp.c: #undef mkstemp.
97462         Include config.h.
97463         (rpl_mkstemp): Rename from mkstemp.
97464         Protoize.
97465
97466 2001-11-16  Jim Meyering  <meyering@lucent.com>
97467
97468         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
97469         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
97470         determine the amount of total physical memory, use pstat_getstatic.
97471         HPUX-11 doesn't define _SC_PHYS_PAGES.
97472         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
97473         If sysconf couldn't be used to determine the amount of available
97474         physical memory, use both pstat_getstatic and pstat_getdynamic.
97475         Based on a patch from Bob Proulx.
97476
97477 2001-11-10  Jim Meyering  <meyering@lucent.com>
97478
97479         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
97480         (jm_PREREQ): Use it.
97481
97482 2001-11-09  Jim Meyering  <meyering@lucent.com>
97483
97484         * m4/jm-macros.m4: Require autoconf-2.52f.
97485         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
97486         Use these AC_-prefixed names, not the AM_-prefixed ones.
97487
97488         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
97489
97490 2001-11-05  Jim Meyering  <meyering@lucent.com>
97491
97492         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
97493
97494 2001-11-04  Jim Meyering  <meyering@lucent.com>
97495
97496         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
97497         $DEFS.
97498
97499 2001-11-03  Jim Meyering  <meyering@lucent.com>
97500
97501         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
97502         of AC_DEFUN.
97503
97504         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
97505         know the name of the variable in the macro definition.
97506
97507 2001-11-03  Jim Meyering  <meyering@lucent.com>
97508
97509         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
97510         in argmatch_to_argument call.
97511
97512         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
97513         argument.
97514
97515         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
97516         e.g., a fault due to an attempt to free a NULL pointer.
97517
97518 2001-11-01  Jim Meyering  <meyering@lucent.com>
97519
97520         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
97521         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
97522
97523 2001-11-01  Jim Meyering  <meyering@lucent.com>
97524
97525         * lib/dirfd.c, lib/dirfd.h: New files.
97526         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
97527
97528         * lib/hash.c (hash_print) [TESTING]: Clean up.
97529
97530 2001-10-22  Paul Eggert  <eggert@twinsun.com>
97531
97532         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
97533         to avoid a warning if -Wall.
97534
97535 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
97536
97537         * README: New file
97538         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
97539         (per RMS's instructions, this is now the canonical source)
97540         * lgpl/, gpl/: New directories.
97541
97542 2001-10-21  Paul Eggert  <eggert@twinsun.com>
97543
97544         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
97545
97546 2001-10-21  Jim Meyering  <meyering@lucent.com>
97547
97548         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
97549         this code would end up calling gettext even in packages built
97550         with --disable-nls.
97551         * lib/getopt.c (_): Likewise.
97552         * lib/regex.c (_): Likewise.
97553
97554 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97555
97556         * m4/error.m4 (jm_PREREQ_ERROR):
97557         Do not invoke AC_CHECK_FUNCS with strerror_r, as
97558         AC_FUNC_STRERROR_R does that.
97559         Check for strerror declaration.
97560
97561         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
97562         are supposed to have them these days.
97563         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
97564         Merge changes from latest Autoconf CVS.
97565         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
97566         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
97567         POSIX decided to standardize on the int flavor of strerror_r.
97568
97569 2001-10-20  Paul Eggert  <eggert@twinsun.com>
97570
97571         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
97572         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
97573         Use strerror_r that is only a macro, even if it is not a function.
97574         (strerror): Check for HAVE_DECL_STRERROR before declaring.
97575         (private_strerror): Use prototypes, not old-style function definition.
97576         (print_errno_message): New function.
97577         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
97578         char*-flavored one.
97579         (error_tail, error, error_at_line): Use it.
97580
97581 2001-10-11  Jim Meyering  <meyering@lucent.com>
97582
97583         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
97584         and quote_n (1, ... to avoid clobbering a buffer.
97585
97586 2001-10-05  Jim Meyering  <meyering@lucent.com>
97587
97588         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
97589         hash-pjw.h.
97590         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
97591         * lib/hash-pjw.h: New file.
97592
97593 2001-09-30  Jim Meyering  <meyering@lucent.com>
97594
97595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
97596         `struct fsstat' has the `f_fstypename' member.
97597         Use that to define FS_TYPE, which is now used to make
97598         the getfsstat link test tighter.
97599
97600 2001-09-30  Jim Meyering  <meyering@lucent.com>
97601
97602         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
97603         Include <sys/ucred.h>, for Apple Darwin.
97604         Include sys/mount.h and sys/fs_types.h only if available.
97605         (FS_TYPE): Define.
97606         (read_filesystem_list): Use FS_TYPE.
97607
97608 2001-09-29  Paul Eggert  <eggert@twinsun.com>
97609
97610         * lib/exclude.c (excluded_filename): 0 -> false, since it's
97611         a boolean context.
97612
97613 2001-09-29  Jim Meyering  <meyering@lucent.com>
97614
97615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97616         [one-argument getmntent function]): Include stdio.h before mntent.h.
97617         SunOS 4.1.x needs it for the declaration of `FILE'.
97618         Patch by Volker Borchert.
97619
97620         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
97621         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
97622         sys/fs_types.h, and make the link-test for getfsstat guard #include
97623         directives with appropriate #if HAVE_*_H tests so that we can
97624         detect getfsstat on Apple Darwin1.3.7 systems.
97625         Reported by Nelson Beebe.
97626         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
97627
97628 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97629
97630         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97631         #defines strtoimax.  Also treat the other strto* functions
97632         like strtoimax.
97633
97634         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97635         Check for strtoul and strtoumax,
97636         as those declarations are made even in the signed case.
97637         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
97638         Likewise, for strtol and strtoimax.
97639
97640 2001-09-28  Paul Eggert  <eggert@twinsun.com>
97641
97642         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
97643         #defines strtoimax.  Also treat the other strto* functions
97644         like strtoimax.
97645
97646         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
97647         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
97648         (strtoimax, strtoumax): Do not declare if already defined as a macro.
97649
97650 2001-09-26  Jim Meyering  <meyering@lucent.com>
97651
97652         Most macros in unlocked-io.h had the wrong number of arguments.
97653         * lib/gen-uio: New script.
97654         (USE_UNLOCKED_IO): Define to 1 if not already defined.
97655         * lib/unlocked-io.hin: Remove file.
97656         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
97657         rather than trying to embed it here.
97658         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
97659         Reported by Padraig Brady.
97660
97661 2001-09-25  Volker Borchert  <bt@teknon.de>
97662
97663         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
97664         `result'.
97665
97666 2001-09-24  Jim Meyering  <meyering@lucent.com>
97667
97668         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
97669
97670 2001-09-23  Jim Meyering  <meyering@lucent.com>
97671
97672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
97673         instead of the mere test for existence of mntent.h.  The latter
97674         would get a false-positive on AIX 3.4 systems.
97675         In the outer getmntent if-block, don't die if neither of the getmntent
97676         tests succeeds.  Instead, just fall through and continue with the
97677         remaining tests.
97678
97679 2001-09-23  Jim Meyering  <meyering@lucent.com>
97680
97681         * lib/mountlist.c: Remove useless parentheses in #if directives.
97682         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
97683         the deprecated MOUNTED symbol is no longer defined in mntent.h.
97684
97685 2001-09-22  Jim Meyering  <meyering@lucent.com>
97686
97687         * m4/gettext.m4: New file.  From gettext.
97688         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
97689         * m4/progtest.m4: Likewise
97690         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
97691         * m4/glibc21.m4: Likewise.
97692
97693         * m4/libintl.m4: Remove.  No longer used.
97694
97695 2001-09-22  Jim Meyering  <meyering@lucent.com>
97696
97697         * lib/localcharset.c: Update from latest gettext.
97698         * lib/config.charset: Likewise.
97699
97700 2001-09-20  Jim Meyering  <meyering@lucent.com>
97701
97702         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
97703         strtoimax.
97704         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
97705         strtoumax.
97706
97707 2001-09-20  Jim Meyering  <meyering@lucent.com>
97708
97709         * lib/xstrtol.c (strtoimax): Guard declaration with
97710         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
97711         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
97712         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
97713         (strtoumax): Likewise, for completeness (it wasn't necessary).
97714
97715 2001-09-17  Paul Eggert  <eggert@twinsun.com>
97716
97717         * lib/strtoimax.c (HAVE_LONG_LONG):
97718         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
97719         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
97720         to work around bug in IBM C compiler.
97721
97722 2001-09-17  Jim Meyering  <meyering@lucent.com>
97723
97724         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
97725         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
97726         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
97727         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
97728         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
97729         whenever the right hand side need not be expanded by the shell.
97730
97731 2001-09-16  Paul Eggert  <eggert@twinsun.com>
97732
97733         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
97734         library.  It's not correct, as some older glibcs are buggy.
97735         fnmatch wasn't fixed until glibc 2.2.
97736
97737         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
97738         special shell magic here.
97739
97740 2001-09-16  Jim Meyering  <meyering@lucent.com>
97741
97742         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
97743         * m4/jm-macros.m4: Require it.
97744
97745 2001-09-16  Jim Meyering  <meyering@lucent.com>
97746
97747         * lib/mkdir.c: New file.
97748
97749 2001-09-15  Jim Meyering  <meyering@lucent.com>
97750
97751         * m4/jm-macros.m4: Check for help2man.
97752
97753 2001-09-11  Jim Meyering  <meyering@lucent.com>
97754
97755         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
97756         The body, by Paul Eggert, was moved here from configure.in.
97757         * m4/jm-macros.m4: Require UTILS_HOST_OS.
97758
97759 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97760
97761         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
97762         (jm_PREREQ): Use it.
97763
97764 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97765
97766         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
97767         Use ssize_t, not int, to store result of readlink.
97768         Check for ssize_t overflow as well as size_t overflow,
97769         as POSIX says the result of readlink is implementation-defined
97770         when ssize_t overflows.
97771         Remove unnecessary cast to char*.
97772         Use free+malloc instead of realloc, as the storage doesn't need
97773         to be preserved and it's clearer and can be more efficient that way.
97774         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
97775         * lib/xreadlink.h (xreadlink): Update prototype.
97776
97777 2001-09-04  Paul Eggert  <eggert@twinsun.com>
97778
97779         * lib/xgetcwd.c: Revert some of the previous change; intead,
97780         fix the HAVE_GETCWD_NULL code to behave more like the
97781         !HAVE_GETCWD_NULL code used to.
97782
97783         Include "xalloc.h".
97784         (xgetcwd): Do not return NULL when memory is exhausted; instead,
97785         invoke xalloc_die.
97786
97787 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97788
97789         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
97790         sys/param.h, as pathmax.h includes them.
97791
97792 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97793
97794         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
97795         (jm_PREREQ_XGETCWD): New macro.
97796
97797         * m4/getcwd.m4: New file.
97798
97799 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97800
97801         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
97802         like the HAVE_GETCWD_NULL code.
97803         Include pathmax.h if not HAVE_GETCWD.
97804         Do not include xalloc.h.
97805         (INITIAL_BUFFER_SIZE): New symbol.
97806         Do not use xmalloc / xrealloc, since the caller is responsible for
97807         handling errors.  Preserve errno around `free' during failure.
97808         Do not overrun buffer when using getwd.
97809
97810 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97811
97812         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
97813         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
97814         getcwd (NULL, 0).
97815
97816 2001-09-03  Paul Eggert  <eggert@twinsun.com>
97817
97818         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
97819         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
97820         spotted by Jim Meyering.
97821
97822 2001-09-03  Jim Meyering  <meyering@lucent.com>
97823
97824         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
97825         failure.
97826
97827 2001-09-02  Jim Meyering  <meyering@lucent.com>
97828
97829         * lib/error.c: Update from GNU libc.
97830
97831 2001-09-01  Jim Meyering  <meyering@lucent.com>
97832
97833         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
97834         Used by df.
97835
97836 2001-09-01  Jim Meyering  <meyering@lucent.com>
97837
97838         * lib/xreadlink.c: New file.
97839         * lib/xreadlink.h: New file.
97840         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
97841         xreadlink.h.
97842
97843         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
97844         doesn't conflict with sparc Solaris 7's definition in
97845         /usr/include/sys/int_types.h.
97846
97847         * lib/exclude.c: Use `""', not `<>' to #include non-system header
97848         files.
97849         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
97850         and strncasecmp as r-values.  Unixware didn't have declarations.
97851
97852 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97853
97854         * lib/xstrtol.h: Add copyright notice.
97855         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
97856         LONGINT_INVALID_SUFFIX_CHAR.
97857
97858 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97859
97860         * lib/xstrtol.c (strtoimax): New decl.
97861
97862 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97863
97864         * lib/xgetcwd.c: Don't include pathmax.h.
97865         Include stdlib.h and unistd.h if available.
97866         Include xalloc.h.
97867         (xmalloc, xstrdup, free): Remove decls.
97868         (xgetcwd): Don't assume sizes fit in unsigned.
97869         Check for overflow when computing sizes.
97870         Simplify reallocation code.
97871
97872 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97873
97874         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
97875         a directory's st_size can have an arbitrary value, so the old
97876         usage could waste an arbitrary amount of memory.  All uses
97877         changed.
97878         * lib/savedir.h: Update prototype.
97879
97880 2001-08-31  Paul Eggert  <eggert@twinsun.com>
97881
97882         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
97883
97884         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
97885         old strtoimax.c.
97886
97887         Also, make the following further changes to make this file's
97888         configuration more similar to that of strtol.c:
97889         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
97890         (strtoumax, uintmax_t, strtoull, strtol): Remove.
97891         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
97892         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
97893         changed to signed values.
97894
97895         And make the following changes as well:
97896         Fix copyright notice, as 1999 was missing.
97897         (verify): New macro.
97898         (strtoimax): Check sizes at compile-time, not run-time.
97899         Prefer strtol to strtoll if both work.
97900         (main): Remove; it was not that useful and was a pain to maintain.
97901
97902         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
97903
97904 2001-08-31  Jim Meyering  <meyering@lucent.com>
97905
97906         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
97907         Use an initial, malloc'd, buffer of length 128 rather than
97908         a statically allocated one of length 1024.
97909
97910 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97911
97912         Simplify code, partly by assuming autoconf 2.52 semantics.
97913
97914         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
97915
97916         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
97917         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
97918         All uses removed.
97919         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
97920         Move AC_REQUIRE to next-to-top level, to avoid confusion.
97921         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
97922         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
97923         jm_AC_HEADER_INTTYPES_H.
97924         * m4/jm-macros.m4 (jm_MACROS): Likewise.
97925
97926         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
97927
97928         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
97929         Quote first arg of AC_DEFUN.
97930         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
97931         since they are needed to parse the include file even if we need
97932         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
97933         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
97934         but with opposite signedness.
97935
97936 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97937
97938         Merge 'exclude' changes from tar 1.13.22.
97939         This fixes one or two unlikely storage allocation overflow bugs,
97940         but doesn't change user-visible behavior otherwise.
97941
97942 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97943
97944         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
97945         (jm_PREREQ_EXCLUDE): New macro.
97946
97947 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97948
97949         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
97950         tm to be declared.
97951
97952 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97953
97954         * lib/hash.c: Remove '2001' from copyright notice.
97955
97956 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97957
97958         * lib/full-write.h: New file.
97959         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
97960         * lib/full-write.c: Correct credits, as cccp.c no longer
97961         exists and anyway it was so heavily changed from the old cccp
97962         code as to be unrecognizable.  Include full-write.h.
97963         (full_write): Return size_t, with short writes meaning failure.
97964         All callers changed.  This fixes a bug with large buffers
97965         on 64-bit hosts.
97966         * lib/utime.c: Include full-write.h.
97967
97968 2001-08-30  Paul Eggert  <eggert@twinsun.com>
97969
97970         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
97971         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
97972         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
97973         Include if available.
97974         (<xalloc.h>): Include
97975         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
97976         (verify): New macro.  Use it to verify that EXCLUDE macros do not
97977         collide with FNM macros.
97978         (struct patopts): New struct.
97979         (struct exclude): Use it, as exclude patterns now come with options.
97980         (new_exclude): Support above changes.
97981         (new_exclude, add_exclude_file):
97982         Initial size must now be a power of two to simplify overflow checking.
97983         (free_exclude, fnmatch_no_wildcards): New function.
97984         (excluded_filename): No longer requires options arg, as the options
97985         are determined by add_exclude.  Now returns bool, not int.
97986         (excluded_filename, add_exclude):
97987         Add support for the fancy new exclusion options.
97988         (add_exclude, add_exclude_file): Now takes int options arg.
97989         Check for arithmetic overflow when computing sizes.
97990         (add_exclude_file): xrealloc might modify errno, so don't
97991         realloc until after errno might be used.
97992
97993         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
97994         New macros.
97995         (free_exclude): New decl.
97996         (add_exclude, add_exclude_file): Now takes int options arg.
97997         (excluded_filename): No longer requires options arg, as the options
97998         are determined by add_exclude.  Now returns bool, not int.
97999
98000 2001-08-30  Paul Eggert  <eggert@twinsun.com>
98001
98002         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
98003
98004 2001-08-27  Jim Meyering  <meyering@lucent.com>
98005
98006         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
98007
98008         * lib/version-etc.c (N_): Remove definition.
98009         Revert most of last change.
98010         Instead, simply don't mark the `Copyright...' string for translation.
98011         Based on advice from Paul Eggert.
98012
98013         * lib/strtoxmax.c: Tweak comment.
98014
98015 2001-08-26  Jim Meyering  <meyering@lucent.com>
98016
98017         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
98018
98019         * m4/xstrtoimax.m4: New file.
98020         * m4/xstrtoumax.m4: Add comments explaining why we
98021         AC_REPLACE_FUNCS(strtol).
98022
98023 2001-08-26  Jim Meyering  <meyering@lucent.com>
98024
98025         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
98026         of copyright with `%s' so translators don't get an untranslated
98027         message in 2002.
98028         (COPYRIGHT_YEAR): Define.
98029         (version_etc): Use fprintf rather than fputs.
98030         Suggestion from Ulrich Drepper.
98031
98032         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
98033
98034         * lib/strtoll.c: New file, from GNU libc.
98035         * lib/xstrtoimax.c: New file.
98036
98037         * lib/xstrtol.h: Add xstrtoimax.
98038         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
98039         * lib/strtoimax.c: New file.  Likewise, but first define
98040         STRTOUXMAX_SIGNED.
98041
98042         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
98043         ...
98044         * lib/strtoxmax.c: ... then renamed to this.
98045
98046 2001-08-18  Paul Eggert  <eggert@twinsun.com>
98047
98048         * m4/inttypes.m4: Add AC_PREREQ(2.13).
98049         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
98050         (jm_AC_TYPE_INTMAX_T): New macro.
98051         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
98052
98053         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
98054
98055         * m4/longlong.m4: Renamed from ulonglong.m4.
98056         * m4/inttypes.m4: Renamed from inttypes_h.m4.
98057         * m4/uintmax_t.m4: Removed.
98058
98059 2001-08-13  Paul Eggert  <eggert@twinsun.com>
98060
98061         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
98062         Port to Solaris 8, where 'sed' requires a space after the 'r'
98063         command, and where sh dislikes "$/".  Clean up the spacing a bit.
98064         Redirect output to $tmp just once.
98065
98066 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
98067
98068         * lib/addext.c (<errno.h>): Include.
98069         (errno): Declare if not defined.
98070         (addext): Work correctly when pathconf returns -1 and leaves
98071         errno alone because there is no limit.  Also, work even if
98072         pathconf returns a value greater than SIZE_MAX.
98073
98074 2001-08-12  Jim Meyering  <meyering@lucent.com>
98075
98076         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
98077         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
98078         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
98079         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
98080         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
98081         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
98082         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
98083         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
98084         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
98085         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
98086         utime.m4, utimes.m4, xstrtoumax.m4:
98087         Quote the first argument in each use of AC_DEFUN.
98088
98089 2001-08-12  Jim Meyering  <meyering@lucent.com>
98090
98091         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
98092         Simply `return getcwd (NULL, 0);'.
98093         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
98094         Use 1300 as initial value for length, not PATH_MAX.
98095
98096         * lib/pathmax.h: Clean up cpp syntax.
98097
98098 2001-08-12  Jim Meyering  <meyering@lucent.com>
98099
98100         * lib/gettimeofday.c: New file.
98101         * lib/gtod.h: New file.
98102         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
98103
98104 2001-08-05  Jim Meyering  <meyering@lucent.com>
98105
98106         * m4/jm-macros.m4: Require autoconf-2.52.
98107
98108 2001-08-04  Jim Meyering  <meyering@lucent.com>
98109
98110         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
98111         stmt, to get in sync with glibc.
98112
98113 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98114
98115         The following changes are from gettext 0.10.39 as maintained by
98116         Bruno Haible.
98117
98118         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
98119         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
98120         with inverted sense.  All uses changed.
98121
98122         * lib/mbswidth.c: Don't include <limits.h>.
98123         Include <stdlib.h> and <string.h> unconditionally.
98124         (iswcntrl, mbsinit, ISCNTRL): New macros.
98125         (mbsnwidth): Use K&R style function declarations.
98126         Don't bother checking for MB_LEN_MAX == 1, since the compiler
98127         can optimize it when MB_CUR_MAX == 1.
98128         The width of control characters is zero, not 1.
98129
98130 2001-08-03  Paul Eggert  <eggert@twinsun.com>
98131
98132         The following changes are from gettext 0.10.39 as maintained by
98133         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
98134
98135         * m4/codeset.m4: Upgrade to serial AM1.
98136         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
98137         all uses changed.  Quote first arg of AC_DEFUN.
98138         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
98139
98140         * m4/iconv.m4: Upgrade to serial AM2.
98141         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
98142         Add --with-libconv-prefix.
98143         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
98144         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
98145         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
98146         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
98147         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
98148
98149         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
98150         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
98151         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
98152         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
98153         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
98154         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
98155         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
98156         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
98157         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
98158
98159         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
98160         string.h any more.
98161
98162         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
98163         not the default value.
98164
98165         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
98166         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
98167         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
98168         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
98169         Also check for iswcntrl, used for wcwidth fallback.
98170         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
98171         to Autoconf 2.13.
98172
98173 2001-08-03  Jim Meyering  <meyering@lucent.com>
98174
98175         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
98176         as it was in the original.  Reported by Paul Eggert.
98177
98178 2001-07-16  Jim Meyering  <meyering@lucent.com>
98179
98180         * m4/gettimeofday.m4: New file.
98181         Prompted by a report from Bernhard Baehr.
98182
98183 2001-07-15  Jim Meyering  <meyering@lucent.com>
98184
98185         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
98186         stuff. Now it's in ../Makefile.cfg.
98187
98188 2001-07-15  Jim Meyering  <meyering@lucent.com>
98189
98190         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
98191         (BUILT_SOURCES): Add unlocked-io.h.
98192         (io_functions): Define.
98193         (unlocked-io.h): New rule.
98194         (DISTCLEANFILES): Add unlocked-io.h.
98195         (all-local): Depend on unlocked-io.h, to ensure it is created.
98196
98197         * lib/unlocked-io.hin: New file
98198
98199         * lib/regex.c: Update from glibc.
98200
98201 2001-07-05  Jim Meyering  <meyering@lucent.com>
98202
98203         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
98204         recommendation.
98205         (libfetish_a_SOURCES): Put all .h files here instead.
98206         Remove a thus-exposed (better checks in automake) duplicate and
98207         two unnecessary .h files.
98208
98209 2001-07-04  Jim Meyering  <meyering@lucent.com>
98210
98211         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
98212         that generates jm-glibc-io.m4 so that it doesn't trigger any make
98213         distcheck failure.
98214
98215 2001-07-02  Jim Meyering  <meyering@lucent.com>
98216
98217         The following changes were prompted by suggestions from Bruno Haible.
98218
98219         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
98220         is now generated.
98221         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
98222         definition of EXTRA_DIST.
98223         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
98224         ensure that the generated file is created/updated whenever the list
98225         of $(unlocked_functions) is changed.
98226         (jm-glibc-io.m4): New rule.
98227         (unlocked-io.h): New rule -- currently unused.
98228
98229 2001-06-24  Jim Meyering  <meyering@lucent.com>
98230
98231         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
98232         unmatched right bracket, rather than kludging it with an extra,
98233         falsely-matching quote in a comment.  Patch by Akim Demaille.
98234
98235 2001-06-11  Jim Meyering  <meyering@lucent.com>
98236
98237         * lib/regex.c: Update from GNU libc.
98238
98239 2001-05-27  Jim Meyering  <meyering@lucent.com>
98240
98241         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
98242         Check for ut_type in struct utmp.
98243
98244 2001-05-27  Jim Meyering  <meyering@lucent.com>
98245
98246         * lib/readutmp.h (UT_TYPE): Define.
98247
98248 2001-05-24  Jim Meyering  <meyering@lucent.com>
98249
98250         * lib/argmatch.c: Include "quote.h".
98251         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
98252         quote function.  Reported by Göran Uddeborg.
98253
98254 2001-05-22  Jim Meyering  <meyering@lucent.com>
98255
98256         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
98257         now that we use the package-supplied version unconditionally.
98258         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
98259
98260 2001-05-21  Jim Meyering  <meyering@lucent.com>
98261
98262         * m4/regex.m4: Change a couple backticks to single quotes to avoid
98263         shell syntax errors.
98264
98265 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98266
98267         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
98268
98269 2001-05-20  Paul Eggert  <eggert@twinsun.com>
98270
98271         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
98272         Don't bother to check library strftime, since
98273         we'll be using our own my_strftime function anyway.
98274         Define my_strftime instead of strftime.
98275
98276 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
98277
98278         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
98279         which is not yet declared.
98280
98281 2001-05-15  Jim Meyering  <meyering@lucent.com>
98282
98283         * m4/regex.m4: Use proper quoting so brackets appear in the test
98284         program.
98285         Reported by, and with help from, Bruno Haible.
98286
98287 2001-05-13  Jim Meyering  <meyering@lucent.com>
98288
98289         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
98290         undefined.
98291
98292 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98293
98294         dirname code cleanup.  base_name now behaves more compatibly
98295         with POSIX basename when given file names that have trailing
98296         slashes, and similarly for dir_name.  Add new primitives
98297         base_len and dir_len.  Put the directory-name-related decls
98298         into dirname.h.
98299
98300         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
98301         * lib/backupfile.c (base_name): Likewise.
98302         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
98303         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
98304         * lib/makepath.c (strip_trailing_slashes): Likewise.
98305         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
98306         ISSLASH): Likewise.
98307         * lib/rename.c (strip_trailing_slashes): Likewise.
98308         * lib/same.c (base_name): Likewise.
98309         * lib/stripslash.c (ISSLASH): Likewise.
98310
98311         * lib/addext.c: Include <dirname.h> after size_t is defined.
98312         * lib/backupfile.c: Likewise.
98313
98314         * lib/addext.c (addext): Use base_len to trim redundant
98315         trailing slashes instead of doing it ourselves.
98316         But do not trim the last slash if it is not redundant.
98317
98318         * lib/backupfile.c (find_backup_file_name,
98319         max_backup_version): Use base_len instead of rolling it ourselves.
98320         Handle the case of "" and (on DOS) "C:" correctly.
98321
98322         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
98323         needed. Include <string.h>, <dirname.h>.
98324         (base_name): Allow file names ending in slashes, other than names
98325         that are all slashes.  In this case, return the basename followed
98326         by the slashes.  This is more general, and can be used in places
98327         where the original base_name purposely had an assertion failure.
98328         (base_len): New function.
98329
98330         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
98331         Do not include <assert.h>; no longer needed.
98332         Include xalloc.h.
98333         (memrchr): Remove decl.
98334         (dir_name_r): Remove.
98335         (dir_len): Renamed from dirlen.  All callers changed.
98336         Rewrite in terms of base_name, for simplicity and consistency.
98337         (dir_name): Never return NULL.  All callers changed.
98338         Do not include <stdlib.h> in test program; no longer needed.
98339         return 0; is fine for test program.
98340
98341         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
98342         New macros.
98343         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
98344
98345         * lib/path-concat.c (path_concat): Use base_len to compute
98346         base length, not strlen; this means we cannot rely on memcpy
98347         to null-terminate.
98348
98349         * lib/same.c (STREQ): Remove.
98350         (same_name): Handle the case where the basename ends in trailing '/'.
98351
98352         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
98353         a slash was stripped.  Do not strip the last slash after a
98354         file system prefix.
98355
98356 2001-05-11  Paul Eggert  <eggert@twinsun.com>
98357
98358         * lib/Makefile.am (libfetish_a_SOURCES):
98359         Add strftime.c, since we now compile it on all hosts.
98360
98361         * lib/strftime.c (my_strftime):
98362         Define to nstrftime if emacs, but only if my_strftime is not defined.
98363         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
98364         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
98365         Add one more extra argument: a nanoseconds value.
98366         All uses changed.
98367         (ns): New macro.
98368         (my_strftime function): Add %N format.
98369         (emacs_strftimeu): Renamed from emacs_strftime,
98370         with extra ut argument.
98371
98372 2001-05-09  Paul Eggert  <eggert@twinsun.com>
98373
98374         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
98375
98376 2001-04-21  Jim Meyering  <meyering@lucent.com>
98377
98378         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
98379         doesn't interfere.
98380
98381 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
98382
98383         * m4/ftruncate.m4: Check for chsize.
98384         Link with ftruncate.o unconditionally if ftruncate is missing.
98385         This was required when cross-compiling to i586-mingw32msvc.
98386
98387 2001-04-08  Jim Meyering  <meyering@lucent.com>
98388
98389         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
98390         recomputed; that's necessary when the offset spans a DST transition.
98391         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
98392
98393 2001-04-02  Jim Meyering  <meyering@lucent.com>
98394
98395         * lib/regex.h, regex.c: Update from GNU libc.
98396
98397 2001-03-24  Jim Meyering  <meyering@lucent.com>
98398
98399         * m4/jm-macros.m4: Require autoconf-2.49d.
98400
98401 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
98402
98403         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
98404
98405 2001-03-19  Paul Eggert  <eggert@twinsun.com>
98406
98407         * lib/version-etc.c (version_etc_copyright): Update to 2001.
98408
98409 2001-03-17  Jim Meyering  <meyering@lucent.com>
98410
98411         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
98412         now that the version in autoconf is equivalent.
98413         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
98414
98415         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
98416         Suggestion from Akim Demaille.
98417
98418         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
98419         (jm_PREREQ_TEMPNAME): New function.
98420
98421 2001-03-16  Paul Eggert  <eggert@twinsun.com>
98422
98423         * lib/tempname.c (uint64_t): Define to uintmax_t if
98424         not defined, and if UINT64_MAX is not defined.
98425         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
98426         Reported by John David Anglin.
98427
98428 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
98429
98430         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
98431         resolve alias if codeset is empty.
98432         * lib/config.charset (BeOS): Use wildcard syntax.
98433
98434 2001-03-13  Jim Meyering  <meyering@lucent.com>
98435
98436         * lib/path-concat.c (path_concat)
98437         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
98438         concatenating e.g., `C:' and `foo'.
98439         From Bruno Haible.
98440
98441 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98442
98443         * lib/localcharset.c (locale_charset): Don't use
98444         setlocale(LC_CTYPE,NULL). Don't return NULL.
98445         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
98446
98447 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
98448
98449         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
98450         support for DOS/DJGPP.
98451
98452 2001-03-01  Paul Eggert  <eggert@twinsun.com>
98453
98454         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
98455         lacks mkstemp.  Compile our own tempname.c if we compile our own
98456         mkstemp.c, as mkstemp relies on tempname.
98457
98458 2001-03-01  Jim Meyering  <meyering@lucent.com>
98459
98460         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
98461         AH_VERBATIM really does output its argument verbatim.
98462
98463 2001-02-28  Paul Eggert  <eggert@twinsun.com>
98464
98465         * lib/Makefile.am (libfetish_a_SOURCES):
98466         Add dup-safer.c, fopen-safer.c.
98467         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
98468
98469         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
98470         * lib/unistd-safer.h: New files.
98471
98472 2001-02-25  Paul Eggert  <eggert@twinsun.com>
98473
98474         The mkstemp replacement is taken from glibc 2.2.2, with some
98475         portability fixes for use outside glibc, as follows:
98476
98477         * lib/tempname.c (struct_stat64): New macro.
98478         (direxists, __gen_tempname): Use it.
98479         This avoids a portability problem with Solaris 8.
98480
98481         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
98482         (<stddef.h>, <stdint.h>, <string.h>):
98483         Include only if STDC_HEADERS || _LIBC.
98484         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
98485         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
98486         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
98487         (__set_errno): Define this macro if <errno.h> doesn't.
98488         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
98489         Define these macros if <stdio.h> doesn't.
98490         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
98491         Define these macros if <sys/stat.h>
98492         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
98493         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
98494         __xstat64): Define if not _LIBC.
98495         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
98496         (__gen_tempname): Invoke gettimeofday only if
98497         HAVE_GETTIMEOFDAY || _LIBC;
98498         otherwise, fall back on plain "time".
98499         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
98500
98501         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
98502
98503         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
98504
98505 2001-02-18  Paul Eggert  <eggert@twinsun.com>
98506
98507         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
98508
98509 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98510
98511         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
98512         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
98513         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
98514         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
98515
98516 2001-02-17  Paul Eggert  <eggert@twinsun.com>
98517
98518         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
98519         Remove workaround macros for hosts that have mbrtowc but not
98520         mbstate_t, as we now insist on proper declarations for both
98521         before using mbrtowc.
98522
98523 2001-02-17  Jim Meyering  <meyering@lucent.com>
98524
98525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
98526         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
98527         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
98528         UnixWare 7.1.1.
98529
98530         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
98531         rather than AC_CACHE_VAL.
98532
98533 2001-02-17  Jim Meyering  <meyering@lucent.com>
98534
98535         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
98536         around included file name.
98537
98538         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
98539
98540         * lib/strftime.c: Update from GNU libc (the only changes were to
98541         comments).
98542
98543 2001-02-17  Jim Meyering  <meyering@lucent.com>
98544
98545         * lib/regex.c: Update from libc.
98546
98547 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
98548
98549         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
98550         clash.
98551
98552 2001-02-16  Paul Eggert  <eggert@twinsun.com>
98553
98554         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
98555         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
98556         Reported by Mark Hounschell via Paul Eggert.
98557
98558 2001-02-07  Jim Meyering  <meyering@lucent.com>
98559
98560         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
98561
98562 2001-02-05  Jim Meyering  <meyering@lucent.com>
98563
98564         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
98565         it includes the patch required for `large file' support with at least
98566         HP-UX's 10.20 /bin/cc.
98567
98568 2001-02-03  Jim Meyering  <meyering@lucent.com>
98569
98570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
98571         AS_IF, now that it works once again (mysteriously).
98572         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98573
98574 2001-01-30  Jim Meyering  <meyering@lucent.com>
98575
98576         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
98577         * m4/chown.m4: Rename conftestchown to conftest.chown.
98578         * m4/rename.m4: s/conftestdir/conftest.d1/ and
98579         s/conftestdir2/conftest.d2/.
98580         * m4/utimes.m4: s/conftestdata/conftest.data/
98581         Inspired by Pavel Roskin's change in autoconf.
98582
98583 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
98584
98585         * lib/config.charset: Update for FreeBSD 4.2.
98586
98587 2001-01-27  Jim Meyering  <meyering@lucent.com>
98588
98589         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
98590         a use of AS_IF.
98591         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
98592
98593 2001-01-26  Jim Meyering  <meyering@lucent.com>
98594
98595         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
98596         quotearg.c includes it.
98597
98598 2001-01-26  Jim Meyering  <meyering@lucent.com>
98599
98600         * lib/quotearg.c: Include stddef.h.
98601         * lib/quote.c: Include stddef.h.
98602         Reported by Axel Kittenberger.
98603
98604         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
98605         line in double quotes so that it evokes a better diagnostic.
98606         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
98607         Reported by Axel Kittenberger.
98608
98609 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
98610
98611         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
98612         as if it was a `charset'.
98613
98614 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98615
98616         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
98617         has const.
98618
98619 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
98620
98621         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
98622         to avoid a warning.  Add back 'const' to inptr.
98623
98624 2001-01-20  Jim Meyering  <meyering@lucent.com>
98625
98626         Be sure that headers are checked before used in code compiled
98627         for the type checks.
98628         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
98629         In place of that, invoke jm_CHECK_ALL_TYPES.
98630         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
98631         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
98632         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
98633         The check for ssize_t was mistakenly run before the test for unistd.h.
98634
98635         The configure-time check for stdbool.h was missing.
98636         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
98637         (jm_PREREQ_HASH): New function.
98638
98639 2001-01-17  Jim Meyering  <meyering@lucent.com>
98640
98641         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
98642         for autoconf-2.49c.
98643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
98644
98645 2001-01-16  Jim Meyering  <meyering@lucent.com>
98646
98647         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
98648         From Bruno Haible.
98649
98650 2001-01-14  Jim Meyering  <meyering@lucent.com>
98651
98652         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
98653         foo and bar.  Create conftestdir/ in the script, not in the C code.
98654         Remove directories in the script, not in the C code.
98655         Remove conftestdir{,2} before trying to create the directory.
98656         Make the entire configure script fail if the mkdir fails.
98657
98658 2001-01-14  Jim Meyering  <meyering@lucent.com>
98659
98660         * lib/rename.c: New file.  From Volker Borchert.
98661         Include stdlib.h, string.h or strings.h, and xalloc.h.
98662         Use strip_trailing_slashes rather than open-coding it.
98663
98664 2001-01-03  Paul Eggert  <eggert@twinsun.com>
98665
98666         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
98667
98668 2001-01-03  Jim Meyering  <meyering@lucent.com>
98669
98670         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
98671         of local `inptr' to avoid warning with some system declarations of
98672         iconv.
98673
98674 2001-01-02  Volker Borchert  <bt@teknon.de>
98675
98676         * m4/rename.m4: New file.
98677         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
98678
98679 2001-01-01  Jim Meyering  <meyering@lucent.com>
98680
98681         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
98682         even on systems with utmpx.h.  It's necessary for the declaration of
98683         utmp's ut_user member.  Reported by Andreas Jaeger.
98684
98685         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
98686         available. They are required for the declarations of getgrgid and
98687         getpwuid resp.
98688         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
98689         Reported by Andreas Jaeger.
98690
98691 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
98692
98693         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
98694         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
98695         so `make install' also works in VPATH builds.
98696
98697 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
98698
98699         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
98700         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
98701         can be used in subdirectories.
98702
98703 2000-12-29  Paul Eggert  <eggert@twinsun.com>
98704
98705         * lib/modechange.c: Do not assume that mode_t uses the
98706         traditional octal encoding.  E.g. "chmod 1 FOO" should set
98707         the other-execute bit of FOO even if S_IXOTH != 1.
98708
98709         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
98710         WOTH, XOTH, ALLM): New macros.
98711         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
98712          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
98713         Use them.
98714         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
98715         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
98716         (mode_compile):
98717         No need to use uintmax_t; unsigned long is long enough.
98718         Don't bother to get suffix since we don't use it.
98719
98720 2000-12-26  Jim Meyering  <meyering@lucent.com>
98721
98722         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
98723         better with autoheader.
98724
98725 2000-12-24  Jim Meyering  <meyering@lucent.com>
98726
98727         * lib/hash.c (is_prime): Return explicit boolean values.
98728         (hash_get_first): Return NULL to appease Irix5.6's 89.
98729         Reported by Nelson Beebe.
98730
98731 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
98732
98733         * lib/localcharset.c (locale_charset): Add support for Win32.
98734
98735 2000-12-18  Paul Eggert  <eggert@twinsun.com>
98736
98737         * lib/physmem.h, lib/physmem.c: New files.
98738
98739         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
98740         (noinst_HEADERS): Add physmem.h.
98741
98742         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
98743         't' for compatibility with Solaris 8 sort.
98744
98745 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
98746
98747         * lib/config.charset: Add support for BeOS.
98748
98749 2000-12-17  Jim Meyering  <meyering@lucent.com>
98750
98751         * m4/dos.m4 (jm_AC_DOS): New file and macro.
98752         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
98753
98754 2000-12-16  Jim Meyering  <meyering@lucent.com>
98755
98756         This bug had a serious impact on chown: `chown N:M FILE' (for integer
98757         N and M) would have treated it like `chown N:N FILE'.
98758
98759         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
98760
98761 2000-12-16  Jim Meyering  <meyering@lucent.com>
98762
98763         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
98764         SHELLS_FILE to a file name that's useful on djgpp systems.
98765         Include stdlib.h.
98766         (ADDITIONAL_DEFAULT_SHELLS): Define.
98767         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
98768         Based mostly on a patch from Prashant TR.
98769
98770 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
98771
98772         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
98773         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
98774         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
98775
98776 2000-12-08  Andreas Schwab  <schwab@suse.de>
98777
98778         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
98779         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
98780
98781 2000-12-07  Jim Meyering  <meyering@lucent.com>
98782
98783         * lib/stripslash.c (ISSLASH): Define.
98784         (strip_trailing_slashes): Use ISSLASH rather than comparing against
98785         `/'.
98786         From Prashant TR.
98787
98788         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
98789         (dir_name_r): Declare this function as static.
98790         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
98791         manifest itself on a name containing a mix of slashes and
98792         backslashes.
98793         Make this function work with names starting with a DOS-style
98794         drive letter and colon prefix.
98795         (dir_name): Append `.' if necessary.
98796         Based mostly on patches from Prashant TR and Eli Zaretskii.
98797
98798         * lib/dirname.h (dir_name_r): Remove prototype.
98799
98800 2000-12-06  Paul Eggert  <eggert@twinsun.com>
98801
98802         * m4/off_t-format.m4: Remove this file.
98803         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
98804
98805 2000-12-06  Jim Meyering  <meyering@lucent.com>
98806
98807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
98808         replacement strtoull, we may well need the replacement strtoul, too.
98809         Check for declarations of strtoul and strtoull.
98810         Check for strtol.  Mainly as a cue to cause automake to include
98811         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
98812         Check for limits.h -- strtol.c needs it.
98813
98814 2000-12-05  Jim Meyering  <meyering@lucent.com>
98815
98816         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
98817
98818 2000-12-04  Jim Meyering  <meyering@lucent.com>
98819
98820         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
98821         Also include memory.h, stdlib.h, unistd.h if appropriate.
98822         Reported by Andreas Jaeger (conflicting declaration of malloc).
98823
98824 2000-12-02  Jim Meyering  <meyering@lucent.com>
98825
98826         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
98827         * m4/jm-macros.m4 (jm_MACROS): require it.
98828
98829 2000-12-02  Jim Meyering  <meyering@lucent.com>
98830
98831         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
98832
98833 2000-12-01  Paul Eggert  <eggert@twinsun.com>
98834
98835         * lib/memrchr.c: Include <config.h> before any system include file.
98836
98837 2000-11-30  Jim Meyering  <meyering@lucent.com>
98838
98839         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
98840
98841 2000-11-30  Jim Meyering  <meyering@lucent.com>
98842
98843         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
98844
98845 2000-11-29  Paul Eggert  <eggert@twinsun.com>
98846
98847         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
98848
98849 2000-11-26  Jim Meyering  <meyering@lucent.com>
98850
98851         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
98852
98853 2000-11-22  Paul Eggert  <eggert@twinsun.com>
98854
98855         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
98856         size of (size_t) -1; it's not portable.
98857
98858 2000-11-17  Jim Meyering  <meyering@lucent.com>
98859
98860         * lib/strstr.c: Update from GNU libc.
98861
98862 2000-11-17  Akim Demaille  <akim@epita.fr>
98863
98864         * lib/obstack.h: Formatting changes.
98865         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
98866         prevent type checking.
98867         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
98868         cast the value to (void *): assigning a `foo *' to a `void *'
98869         variable is valid.
98870         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
98871
98872 2000-11-16  Jim Meyering  <meyering@lucent.com>
98873
98874         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
98875
98876 2000-11-11  Jim Meyering  <meyering@lucent.com>
98877
98878         * lib/error.c: Add a couple #includes, merging from GNU libc version.
98879
98880 2000-11-10  Jim Meyering  <meyering@lucent.com>
98881
98882         * lib/obstack.h: Update from GNU libc.
98883         * lib/obstack.c: Likewise.
98884
98885 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
98886
98887         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
98888
98889 2000-11-06  Paul Eggert  <eggert@twinsun.com>
98890
98891         * lib/getusershell.c (setusershell): Use rewind rather than
98892         fseek/fseeko, to avoid configuration hassles with fseeko.
98893         Don't bother opening SHELLS_FILE if shellstream is NULL;
98894         it's not necessary.
98895
98896 2000-11-05  Jim Meyering  <meyering@lucent.com>
98897
98898         * lib/makepath.h (make_dir): Declare.
98899         * lib/makepath.c (make_dir): Remove `static' attribute.
98900         Tweak a comment.
98901
98902 2000-11-04  Jim Meyering  <meyering@lucent.com>
98903
98904         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
98905
98906 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
98907
98908         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
98909         last one in a bucket, advance to the next bucket.
98910
98911 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
98912
98913         * lib/fnmatch.c: Do not comment out all the code if we are using
98914         the GNU C library, because in some cases we are replacing buggy
98915         code in the GNU C library itself.
98916
98917 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
98918
98919         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
98920         (regex_compile): Catch bogus \(\1\).
98921
98922 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98923
98924         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
98925         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
98926         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
98927
98928 2000-10-30  Paul Eggert  <eggert@twinsun.com>
98929
98930         * lib/error.h, getline.h, modechange.h:
98931         Remove "2000" from Copyright line, as the file hasn't been
98932         changed this year other than in the copyright notice.
98933
98934         * lib/xalloc.h: Add "2000" to Copyright line, as this file
98935         was changed this year.
98936
98937 2000-10-29  Jim Meyering  <meyering@lucent.com>
98938
98939         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
98940         renaming.
98941         * m4/ls-mntd-fs.m4: Likewise
98942
98943 2000-10-29  Jim Meyering  <meyering@lucent.com>
98944
98945         * lib/xstat.in: Fix grammar in comment.
98946
98947 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
98948
98949         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
98950         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
98951         doesn't define __restrict_arr.
98952
98953 2000-10-28  Jim Meyering  <meyering@lucent.com>
98954
98955         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
98956         (jm_PREREQ_MEMCHR): New function.
98957
98958 2000-10-28  Jim Meyering  <meyering@lucent.com>
98959
98960         * lib/memchr.c: Update from libc.
98961         Adjust for portability:
98962         [HAVE_STDLIB_H]: Include stdlib.h.
98963         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
98964         Undef __memchr, too.
98965         [!weak_alias]: Define __memchr to memchr.
98966
98967         * lib/regex.c: Update from libc.
98968         * lib/regex.h: Likewise.
98969         * lib/getopt1.c: Likewise.
98970         * lib/memcmp.c: Likewise.
98971
98972         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
98973         Avoid using fseek, when possible -- it's broken by design.
98974         Patch by Ulrich Drepper.
98975
98976 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
98977
98978         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
98979         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
98980         Giving in to popular pressure to shut up the compiler with casts.
98981
98982 2000-10-26  Jim Meyering  <meyering@lucent.com>
98983
98984         * lib/strftime.c: Update from libc.
98985
98986 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
98987
98988         * regex.c: More `unsigned char' -> `re_char' changes.
98989         Also change several `int' into `re_wchar_t'.
98990         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
98991         (PUSH_FAILURE_POINTER): Don't cast any more.
98992         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
98993         We want GCC to complain, since this piece of code makes
98994         re_match non-reentrant, which *should* be fixed.
98995         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
98996         (EXTEND_BUFFER): Use RETALLOC.
98997         (SET_LIST_BIT): Don't cast.
98998         (re_wchar_t): New type.
98999         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
99000         that those two functions will always properly return.
99001         (IMMEDIATE_QUIT_CHECK): Cast to void.
99002         (analyse_first): Use recursion rather than an explicit stack.
99003         (re_compile_fastmap): Can't fail anymore.
99004         (re_search_2): Don't check re_compile_fastmap for failure.
99005         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
99006         Now also sets the new value (passed in a new argument).
99007         (re_match_2_internal): Use it.
99008         Also, use a new var `reg' of type size_t when looping through regs
99009         rather than reuse the inappropriate `mcnt'.
99010
99011 2000-10-25  Jim Meyering  <meyering@lucent.com>
99012
99013         * lib/obstack.c: Update from libc.
99014
99015 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
99016
99017         * regex.c (regex_compile): Change the way of handling a range from
99018         a char less than 256 to a char not less than 256.
99019
99020 2000-10-24  Andrew Innes  <andrewi@gnu.org>
99021
99022         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
99023         NT-Emacs only.
99024         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
99025         so that re_search functions only quit when callers expect them to.
99026
99027 2000-10-23  Jim Meyering  <meyering@lucent.com>
99028
99029         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
99030         wrong.  That set_locale call must not have any side effects.
99031         From Paul Eggert.
99032
99033 2000-10-22  Jim Meyering  <meyering@lucent.com>
99034
99035         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
99036         [CYCLIC]: Remove now-unused definition.
99037
99038         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
99039         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
99040         Suggestion from Ulrich Drepper.
99041
99042 2000-10-21  Jim Meyering  <meyering@lucent.com>
99043
99044         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
99045         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
99046         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
99047
99048 2000-10-21  Jim Meyering  <meyering@lucent.com>
99049
99050         * lib/dirname.c (memrchr): Declare if necessary.
99051         (dir_name): Remove the restriction that there be no
99052         trailing slashes.  Now, this code skips past them, effectively
99053         ignoring them.
99054         [TEST_DIRNAME] (main): New unit tests.
99055
99056         * lib/memrchr.c: New file from GNU libc.
99057         Undef __memrchr, too.
99058         [!weak_alias]: Define __memrchr to memrchr.
99059         Guard weak_alias use with `#ifdef weak_alias'.
99060
99061 2000-10-21  Jim Meyering  <meyering@lucent.com>
99062
99063         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
99064         (dir_name): Use dir_name_r.
99065         * lib/dirname.h (dir_name_r): Declare it.
99066
99067 2000-10-17  Jim Meyering  <meyering@lucent.com>
99068
99069         * lib/quote.h (PARAMS): Define and use.
99070         Reported by Akim Demaille.
99071
99072         * lib/getopt.c: Update from libc.
99073
99074 2000-10-16  Jim Meyering  <meyering@lucent.com>
99075
99076         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
99077         setlocale.
99078         From Jan Fedak.
99079
99080 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
99081
99082         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
99083
99084 2000-09-25  Jim Meyering  <meyering@lucent.com>
99085
99086         * lib/md5.h (rol): Define (from GnuPG).
99087
99088         * lib/sha.c: Give credit (GnuPG) where due.
99089         (M): Use rol rather than open-coding it.
99090         Add a FIXME comment.
99091
99092 2000-09-21  Jim Meyering  <meyering@lucent.com>
99093
99094         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
99095         Reported by Michael Stone.
99096
99097 2000-09-20  Jim Meyering  <meyering@lucent.com>
99098
99099         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
99100         (noinst_HEADERS): Add sha.h.
99101         Based on code from Scott G. Miller and from GnuPG.
99102
99103 2000-09-18  Jim Meyering  <meyering@lucent.com>
99104
99105         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
99106         LIBS. Otherwise, everyone ends up linking with -lelf for some
99107         configurations.
99108         Reported by Mike Stone.
99109
99110 2000-09-15  Jim Meyering  <meyering@lucent.com>
99111
99112         * lib/regex.c: Update from libc.
99113
99114 2000-09-10  Jim Meyering  <meyering@lucent.com>
99115
99116         * lib/getopt.c (_getopt_internal): Update from glibc.
99117
99118 2000-09-09  Jim Meyering  <meyering@lucent.com>
99119
99120         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
99121         think it should be used as a general replacement for isascii.
99122         * lib/fnmatch.c: Likewise.
99123         * lib/mbswidth.c: Likewise
99124         * lib/regex.c: Likewise.
99125
99126         Don't use atoi.
99127         * lib/userspec.c: Include sys/param.h and limits.h.
99128         Include xstrtol.h.
99129         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
99130         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
99131         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
99132         UID, GID.  Check range.
99133
99134 2000-09-06  Jim Meyering  <meyering@lucent.com>
99135
99136         * lib/getopt.c (_getopt_internal): Update from glibc.
99137
99138 2000-08-30  Jim Meyering  <meyering@lucent.com>
99139
99140         * lib/strftime.c: Merge in changes from GNU libc.
99141
99142 2000-08-26  Jim Meyering  <meyering@lucent.com>
99143
99144         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
99145         * m4/fpending.m4: New file.
99146
99147 2000-08-26  Jim Meyering  <meyering@lucent.com>
99148
99149         * lib/closeout.c: Include "__fpending.h".
99150         (close_stdout_status): Return right away if there's nothing to flush.
99151
99152         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
99153         * lib/__fpending.c: New file.
99154         * lib/__fpending.h: New file.
99155
99156 2000-08-20  Jim Meyering  <meyering@lucent.com>
99157
99158         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
99159         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
99160         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
99161
99162 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
99163
99164         Improve fileutils installation on systems where running
99165         programs (like install) can't be unlinked.
99166         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
99167         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
99168
99169 2000-08-07  Paul Eggert  <eggert@twinsun.com>
99170
99171         Standardize on "memory exhausted" instead of "Memory exhausted"
99172         or "virtual memory exhausted".
99173         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
99174         "virtual memory exhausted".
99175         * lib/same.c (same_name): Invoke xalloc_die instead of printing
99176         our own message.
99177         * lib/userspec.c (parse_user_spec): Likewise.
99178         * lib/bumpalloc.h: comment fix
99179         * lib/same.c, userspec.c: Include xalloc.h.
99180
99181         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
99182         not char *const and pointing to a constant array.
99183         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
99184         (xrealloc): Comment fix.
99185
99186         * lib/userspec.c (parse_user_spec):
99187         Don't translate a message until just before returning,
99188         to avoid unnecessary translation.
99189
99190 2000-08-07  Jim Meyering  <meyering@lucent.com>
99191
99192         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
99193         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
99194         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
99195         getgroups.c, gethostname.c, getopt.h, group-member.c,
99196         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
99197         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
99198         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
99199         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
99200         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
99201         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
99202         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
99203         yesno.c: Back out Copyright date changes for each file with no change
99204         this year.  This eases coordination with other programs using the same
99205         source code modules.  From Paul Eggert.
99206
99207 2000-08-06  Paul Eggert  <eggert@twinsun.com>
99208
99209         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
99210         not char, for compatibility with glibc 2.1.3 strftime.c.
99211
99212 2000-08-03  Greg McGary  <greg@mcgary.org>
99213
99214         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
99215         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
99216         (EXTEND_BUFFER): Use them.
99217
99218 2000-08-01  Jim Meyering  <meyering@lucent.com>
99219
99220         * lib/dirname.c (ISSLASH): Define.
99221         (BACKSLASH_IS_PATH_SEPARATOR): Define.
99222         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
99223         both `\' and `/' may be use as path separators.
99224         Based on a patch from Prashant TR.
99225
99226 2000-07-31  Paul Eggert  <eggert@twinsun.com>
99227
99228         * lib/quotearg.c (quotearg_n_options): Don't make the initial
99229         slot vector a constant, since it might get modified.
99230
99231 2000-07-31  Jim Meyering  <meyering@lucent.com>
99232
99233         * lib/xmalloc.c: Use `virtual memory exhausted', not
99234         `Memory exhausted'.
99235         * lib/obstack.c (print_and_abort): Likewise.
99236
99237 2000-07-30  Paul Eggert  <eggert@twinsun.com>
99238
99239         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
99240         buffer, so that the caller can always quote one small
99241         component of a "memory exhausted" message in slot 0.
99242         From a suggestion by Jim Meyering.
99243
99244 2000-07-30  Jim Meyering  <meyering@lucent.com>
99245
99246         * lib/makepath.c (make_path): Quote the other instance, too.
99247
99248         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
99249         (STATIC_BUF_SIZE): Define.
99250         (quotearg_n_options): Use only statically allocated storage when
99251         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
99252         than STATIC_BUF_SIZE.
99253
99254 2000-07-29  Jim Meyering  <meyering@lucent.com>
99255
99256         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
99257         * lib/dirname.c (dir_name): Likewise.
99258
99259         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
99260         `/'.
99261
99262         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
99263         (dir_name): Assert that there are no trailing slashes.
99264
99265 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
99266
99267         * lib/mbswidth.h (mbswidth): Add a flags argument.
99268         (mbswidth): New declaration.
99269         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
99270         * lib/mbswidth.c (mbswidth): Add a flags argument.
99271         (mbsnwidth): New function.
99272
99273 2000-07-24  Jim Meyering  <meyering@lucent.com>
99274
99275         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
99276
99277 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99278
99279         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
99280
99281 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99282
99283         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
99284         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
99285         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
99286         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
99287         invoke multibyte primitives.
99288
99289 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99290
99291         * lib/quotearg.c:
99292         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
99293         so that mbstate_t is always defined.
99294
99295         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
99296         be 1 in at least one GCC installation, and this configuration
99297         error is likely to be common.  Ignoring MB_LEN_MAX hurts
99298         performance on hosts that have mbrtowc but have only unibyte
99299         locales, but I assume these hosts are rare.
99300
99301 2000-07-23  Paul Eggert  <eggert@twinsun.com>
99302
99303         * lib/mbswidth.c (_XOPEN_SOURCE):
99304         Don't define; this causes problems on Solaris 7.
99305         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
99306
99307 2000-07-23  Jim Meyering  <meyering@lucent.com>
99308
99309         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
99310         too: getgrgid, getpwuid, getuid.
99311
99312 2000-07-23  Jim Meyering  <meyering@lucent.com>
99313
99314         * lib/basename.c (base_name): Add an assertion.
99315
99316 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
99317
99318         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
99319         shadow its mbsinit function.
99320
99321 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99322
99323         * lib/mbswidth.h: New file.
99324         * lib/mbswidth.c: New file.
99325         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
99326         (noinst_HEADERS): Add mbswidth.h.
99327
99328 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
99329
99330         * lib/config.charset: Add support for FreeBSD. Improve support for
99331         HP-UX and IRIX 6.
99332
99333 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
99334
99335         * m4/mbswidth.m4: New file.
99336         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
99337
99338 2000-07-15  Jim Meyering  <meyering@lucent.com>
99339
99340         * lib/makepath.c: Include quote.h.
99341         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
99342         corresponding argument in a `quote (...)' call.
99343         Give better diagnostics.
99344
99345         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
99346         (noinst_HEADERS): Add quote.h.
99347
99348         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
99349         from tar's src/misc.c.
99350         * lib/quote.h: New file.  Prototypes for same.
99351
99352 2000-07-14  Paul Eggert  <eggert@twinsun.com>
99353
99354         From a suggestion by Bruno Haible.
99355         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
99356         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
99357         to decide whether to define the BeOS workaround macro;
99358         this adjusts to the change to AC_MBSTATE_T.
99359
99360 2000-07-14  Jim Meyering  <meyering@lucent.com>
99361
99362         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
99363         jm_AC_TYPE_UINTMAX_T.
99364
99365 2000-07-13  Paul Eggert  <eggert@twinsun.com>
99366
99367         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
99368
99369         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
99370         quotearg_buffer_restyled): Add support for
99371         clocale_quoting_style.  Undo previous change to
99372         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
99373         and "{RIGHT QUOTATION MARK}" msgids.
99374
99375 2000-07-10  Paul Eggert  <eggert@twinsun.com>
99376
99377         From a suggestion by Bruno Haible.
99378         * m4/mbstate_t.m4 (AC_MBSTATE_T):
99379         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
99380         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
99381         and mbstate_t, to a single-part test that simply defines mbstate_t.
99382         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
99383         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
99384
99385 2000-07-10  Jim Meyering  <meyering@lucent.com>
99386
99387         * m4/strerror_r.m4: Mirror the correction made in autoconf.
99388
99389         * m4/gnu-source.m4: Output to confdefs.h directly.
99390         Suggestion from Akim Demaille.
99391
99392 2000-07-09  Paul Eggert  <eggert@twinsun.com>
99393
99394         The old behavior of quoting `like this' doesn't look good with
99395         newer, ISO-style fonts.  See:
99396         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
99397
99398         Instead, quote "like this" by default.  Let the translator
99399         tailor the locale-specific quoting behavior by providing
99400         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
99401
99402         * lib/quotearg.c (N_): New macro.
99403         (gettext_default): New function.
99404         (quotearg_buffer_restyled): Use
99405         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
99406         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
99407
99408 2000-07-09  Jim Meyering  <meyering@lucent.com>
99409
99410         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
99411         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
99412
99413         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
99414         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
99415
99416 2000-07-09  Jim Meyering  <meyering@lucent.com>
99417
99418         * lib/Most files: Update copyright dates to include 2000.
99419
99420 2000-07-08  Jim Meyering  <meyering@lucent.com>
99421
99422         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
99423         if not defined.
99424         (xgethostname): Remove now-unnecessary #ifdef.
99425         Move declaration of `err' into loop where it's used.
99426
99427 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99428         and Bruno Haible  <haible@clisp.cons.org>
99429
99430         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
99431         only if the test for an object-type mbstate_t fails.  This
99432         prevents us from mistakenly reporting that mbstate_t is a
99433         system object type after we "#define mbstate_t int" to work
99434         around its lack.
99435
99436 2000-07-05  Paul Eggert  <eggert@twinsun.com>
99437         and Bruno Haible  <haible@clisp.cons.org>
99438
99439         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
99440
99441 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99442
99443         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
99444         to strerror_r.
99445         Include <ctype.h> for use of isalpha.
99446
99447 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99448
99449         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
99450         by allocating a larger buffer. Test the gethostname return value for
99451         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
99452         returns an error and ENAMETOOLONG isn't defined.
99453
99454 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
99455
99456         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
99457         dimension.
99458
99459 2000-07-04  Jim Meyering  <meyering@lucent.com>
99460
99461         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
99462         of the deprecated AC_CHECKING.
99463
99464 2000-07-04  Jim Meyering  <meyering@lucent.com>
99465
99466         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
99467         Reported by Bruno Haible.
99468
99469 2000-07-04  Jim Meyering  <meyering@lucent.com>
99470
99471         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
99472         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
99473         lacks mbrtowc.
99474
99475 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99476
99477         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
99478         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
99479
99480 2000-07-03  Paul Eggert  <eggert@twinsun.com>
99481         and Bruno Haible  <haible@clisp.cons.org>
99482
99483         * lib/quotearg.c (mbrtowc):
99484         Assign to *pwc, and return 1 only if result is nonzero.
99485         (iswprint): Use ISPRINT when substituting our own mbrtowc.
99486
99487 2000-07-03  Jim Meyering  <meyering@lucent.com>
99488
99489         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
99490
99491 2000-07-03  Jim Meyering  <meyering@lucent.com>
99492
99493         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
99494         This is necessary to get a definition of e.g., UTMP_FILE on
99495         HP-UX 10.20.
99496         From Bob Proulx.
99497
99498 2000-07-02  Jim Meyering  <meyering@lucent.com>
99499
99500         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
99501
99502         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
99503         AC_LIBOBJ(function_name).
99504         * m4/chown.m4: Likewise.
99505         * m4/fnmatch.m4: Likewise.
99506         * m4/ftruncate.m4: Likewise.
99507         * m4/getgroups.m4: Likewise.
99508         * m4/getline.m4: Likewise.
99509         * m4/group-member.m4: Likewise.
99510         * m4/jm-macros.m4: Likewise.
99511         * m4/lstat.m4: Likewise.
99512         * m4/malloc.m4: Likewise.
99513         * m4/memcmp.m4: Likewise.
99514         * m4/nanosleep.m4: Likewise.
99515         * m4/putenv.m4: Likewise.
99516         * m4/realloc.m4: Likewise.
99517         * m4/regex.m4: Likewise.
99518         * m4/stat.m4: Likewise.
99519         * m4/strftime.m4: Likewise.
99520
99521 2000-07-02  Jim Meyering  <meyering@lucent.com>
99522
99523         * lib/quotearg.c (mbstate_t): Don't define here.
99524
99525 2000-07-02  Jim Meyering  <meyering@lucent.com>
99526
99527         * lib/nanosleep.c (SIGCONT): Define if not already defined.
99528
99529 2000-07-01  Jim Meyering  <meyering@lucent.com>
99530
99531         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
99532
99533 2000-07-01  Jim Meyering  <meyering@lucent.com>
99534
99535         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
99536         problem.
99537
99538 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99539
99540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
99541         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
99542
99543 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
99544
99545         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
99546         per change in ../m4/ls-mntd-fs.m4.
99547         (read_filesystem_list): Ignore symbolic links.
99548
99549 2000-06-29  Jim Meyering  <meyering@lucent.com>
99550
99551         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
99552         for declaration of strcmp.
99553
99554         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
99555
99556         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
99557         Avoid warning by casting result to `char *' to remove `const'.
99558
99559 2000-06-28  Jim Meyering  <meyering@lucent.com>
99560
99561         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
99562         included by quotearg.c, for which we perform this test.  From
99563         Bruno Haible.
99564
99565 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99566
99567         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
99568         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
99569         <utmpx.h> exists, put readutmp.o into LIBOBJS.
99570
99571 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
99572
99573         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
99574
99575 2000-06-26  Paul Eggert  <eggert@twinsun.com>
99576
99577         savedir now sets errno on failure and invokes xmalloc to get memory.
99578         Fix a couple of other minor bugs while we're at it.
99579
99580         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
99581         (NAMLEN): Remove macro.
99582         (malloc, realloc): Remove decls.
99583         (stpcpy): Likewise.
99584         ("xalloc.h"): Include.
99585         (NAME_SIZE_DEFAULT): New macro.
99586         (savedir): Use xmalloc / xrealloc to allocate memory.
99587         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
99588         Skip "" directory entries.
99589         Use strlen to calculate directory entry length, since the old method
99590         is rarely used these days and isn't worth supporting.
99591         Don't use a pointer after freeing it.
99592         Check for integer overflow when calculating allocation size.
99593         Use memcpy to copy entries, instead of stpcpy.
99594         Set errno properly when returning NULL.
99595         Check for readdir error.
99596
99597 2000-06-26  Jim Meyering  <meyering@lucent.com>
99598
99599         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
99600
99601 2000-06-25  Jim Meyering  <meyering@lucent.com>
99602
99603         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
99604         Linux header bug when _XOPEN_SOURCE is defined to 500.
99605
99606 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99607
99608         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
99609         deficiency.
99610
99611 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
99612
99613         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
99614         Include xalloc.h.
99615         Don't include <stdlib.h>.  Don't declare malloc, realloc.
99616
99617 2000-06-24  Jim Meyering  <meyering@lucent.com>
99618
99619         * m4/strerror_r.m4: Revive this file -- to try out an experimental
99620         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
99621         for which strerror does return char*, but which lacks a conveniently
99622         accessible declaration of the function.  If the compile-test says
99623         strerror_r doesn't work, then resort to a `run'-test that works on
99624         BeOS and segfaults on DEC Unix.
99625
99626 2000-06-24  Jim Meyering  <meyering@lucent.com>
99627
99628         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
99629
99630 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99631
99632         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
99633         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
99634
99635 2000-06-23  Paul Eggert  <eggert@twinsun.com>
99636
99637         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
99638         (mbrtowc, mbstate_t): Define substitutes if
99639         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
99640         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
99641         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
99642
99643 2000-06-23  Jim Meyering  <meyering@lucent.com>
99644
99645         * m4/afs.m4: Add missing AC_MSG_RESULT.
99646         Reported by Bruno Haible.
99647
99648         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
99649         Suggestion from Bruno Haible.
99650
99651 2000-06-23  Jim Meyering  <meyering@lucent.com>
99652
99653         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
99654
99655 2000-06-21  Jim Meyering  <meyering@lucent.com>
99656
99657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
99658
99659 2000-06-21  Jim Meyering  <meyering@lucent.com>
99660
99661         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
99662         (noinst_HEADERS): Add getstr.h.
99663
99664         * lib/getline.c (getstr): Move into a separate file.
99665         * lib/getstr.c (getstr): New file, extracted from getline.c, with
99666         the following changes: new parameter, delim2; both delim[12]
99667         parameters have type `int', not `char'.  The latter would lose
99668         with 8-bit delimiters.
99669         * lib/getstr.h: New file.
99670
99671 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99672
99673         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
99674         than 1024, return a memory chunk of least possible size, instead
99675         of size PATH_MAX + 2. In the loop, increment the size proportionally.
99676         Use free/xmalloc instead of xrealloc to avoid copying for very long
99677         paths.
99678
99679 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99680
99681         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
99682         the empty string.
99683
99684 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
99685
99686         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
99687         address, not strdup.  Include <stdlib.h> and don't declare free().
99688
99689 2000-06-19  Jim Meyering  <meyering@lucent.com>
99690
99691         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
99692
99693 2000-06-18  Jim Meyering  <meyering@lucent.com>
99694
99695         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
99696
99697         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
99698         `checking whether...' message to be consistent with that of the
99699         lstat test.
99700
99701 2000-06-18  Jim Meyering  <meyering@lucent.com>
99702
99703         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
99704         Besides, these days every porting target provides a mkdir function.
99705
99706         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
99707         needed. (this snippet comes from src/system.h).
99708
99709 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
99710
99711         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
99712
99713 2000-06-15  Paul Eggert  <eggert@twinsun.com>
99714
99715         * lib/human.c (adjust_value): New function.
99716         (human_readable_inexact): Apply rounding style even when
99717         printing approximate values.
99718
99719 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99720
99721         * lib/human.c (human_readable_inexact): Allow an input block
99722         size that is not a multiple of the output block size, and vice versa.
99723         Reported by Piergiorgio Sartor.
99724
99725 2000-06-14  Paul Eggert  <eggert@twinsun.com>
99726
99727         * lib/getdate.y (get_date): Apply relative times after time
99728         zone indicator, not before.  Reported by Todd A. Jacobs.
99729
99730 2000-06-13  Jim Meyering  <meyering@lucent.com>
99731
99732         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
99733
99734         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
99735
99736 2000-06-12  Paul Eggert  <eggert@twinsun.com>
99737
99738         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
99739
99740 2000-06-12  Jim Meyering  <meyering@lucent.com>
99741
99742         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
99743         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
99744         optional argument.
99745         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
99746         the optional argument, `lib'.
99747
99748 2000-06-08  Jim Meyering  <meyering@lucent.com>
99749
99750         * m4/largefile.m4: Remove file (now that it's part of autoconf).
99751
99752 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99753
99754         Rewrite largefile configuration so that we don't need to run
99755         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
99756         AC_CANONICAL_HOST in configure.in -- jmm]
99757
99758         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
99759         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
99760         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
99761         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
99762         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
99763         All uses changed.
99764         Instead of inspecting the output of getconf, try to compile the
99765         test program without and with the macro definition.
99766         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
99767         for getconf.  Instead, check for the needed flags by compiling
99768         test programs.
99769
99770 2000-06-04  Paul Eggert  <eggert@twinsun.com>
99771
99772         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
99773
99774 2000-06-04  Jim Meyering  <meyering@lucent.com>
99775
99776         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
99777         SunOS 4.1.4 for which gid_t is an unsigned type.
99778
99779 2000-06-03  Jim Meyering  <meyering@lucent.com>
99780
99781         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
99782         now that autoconf requires that.
99783
99784         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
99785         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
99786         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
99787
99788 2000-06-03  Jim Meyering  <meyering@lucent.com>
99789
99790         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
99791
99792 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99793
99794         * m4/glibc21.m4: New file.
99795         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
99796
99797 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
99798
99799         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
99800         newer, don't install charset.alias.
99801         * lib/config.charset: Change the Linux/glibc rules so they become empty
99802         on glibc-2.1 or newer.
99803
99804 2000-06-02  Jim Meyering  <meyering@lucent.com>
99805
99806         * lib/mountlist.c: Back out last change.  Instead, do this...
99807         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
99808         me_dummy member using the same `ignore'-testing code.
99809         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
99810         fs_type strings.
99811         From Mark D. Roth.
99812
99813 2000-05-29  Jim Meyering  <meyering@lucent.com>
99814
99815         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
99816         mounts with the `ignore' attribute.  Based on a patch from
99817         Mark D. Roth.
99818
99819 2000-05-28  Jim Meyering  <meyering@lucent.com>
99820
99821         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
99822         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99823         * m4/stat.m4: Likewise.
99824         * m4/lstat.m4: Likewise.
99825         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
99826
99827         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
99828         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
99829
99830 2000-05-26  Jim Meyering  <meyering@lucent.com>
99831
99832         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
99833
99834 2000-05-24  Jim Meyering  <meyering@lucent.com>
99835
99836         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
99837         autoconf requires that.
99838         * m4/lib-check.m4: Likewise.
99839         * m4/jm-macros.m4: Likewise.
99840         * m4/strftime.m4: Likewise.
99841
99842         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
99843         AC_CHECK_DECLS, now that autoconf requires that.
99844
99845 2000-05-22  Jim Meyering  <meyering@lucent.com>
99846
99847         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99848         * m4/lstat.m4: Likewise.
99849
99850 2000-05-22  Jim Meyering  <meyering@lucent.com>
99851
99852         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
99853
99854 2000-05-20  Jim Meyering  <meyering@lucent.com>
99855
99856         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
99857         (jm_PREREQ): Use it.
99858
99859 2000-05-18  Jim Meyering  <meyering@lucent.com>
99860
99861         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
99862         back, too, since it may have been modified by allocate_entry.
99863         (hash_delete): Rewrite to use neither the assignment operator
99864         nor the comma operator in an if-expression.
99865
99866 2000-05-15  Paul Eggert  <eggert@twinsun.com>
99867
99868         * lib/closeout.c:
99869         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
99870         Remove; no longer needed.
99871         "quotearg.h": Add include.
99872         (file_name): Do not bother to explicitly initialize to NULL; it's less
99873         efficient on some hosts.
99874         (close_stdout_status): Remove test as to whether stdout was already
99875         closed; it breaks for the case "echo x | sort >&-".
99876         Quote file name colons.
99877         Do not assume that _("write error") lacks format strings.
99878
99879 2000-05-15  Jim Meyering  <meyering@lucent.com>
99880
99881         * lib/version-etc.c (version_etc_copyright): Update the copyright
99882         string used in all --version output.
99883
99884 2000-05-14  Jim Meyering  <meyering@lucent.com>
99885
99886         * lib/closeout.c (close_stdout_set_file_name): New function.
99887         (close_stdout_status): Use new file-scoped global.
99888         Return right away if fstat says the stdout file descriptor is invalid.
99889         * lib/closeout.h (close_stdout_set_file_name): Declare.
99890
99891 2000-05-10  Jim Meyering  <meyering@lucent.com>
99892
99893         * lib/closeout.c [default_exit_status]: New file-scoped variable.
99894         (close_stdout_set_status): New function.
99895         * lib/closeout.h (close_stdout_set_status): Declare.
99896
99897 2000-05-09  Jim Meyering  <meyering@lucent.com>
99898
99899         * m4/gettext.m4: Rename this...
99900         * m4/libintl.m4: ...to this.
99901
99902 2000-05-08  Jim Meyering  <meyering@lucent.com>
99903
99904         * lib/long-options.c: Don't include closeout.h.
99905         (parse_long_options): Don't call close_stdout for --version.
99906
99907 2000-05-06  Paul Eggert  <eggert@twinsun.com>
99908
99909         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
99910         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
99911         2.1.3 bug.  This avoids a clash when files like regex.c define
99912         _GNU_SOURCE.
99913
99914 2000-05-06  Jim Meyering  <meyering@lucent.com>
99915
99916         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
99917         (AC_REPLACE_FUNCS): Add strnlen.
99918
99919         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
99920         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
99921
99922         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
99923         AC_SEARCH_LIBS call for nanosleep.
99924         (LIB_NANOSLEEP): Set and AC_SUBST.
99925
99926 2000-05-06  Jim Meyering  <meyering@lucent.com>
99927
99928         * lib/strnlen.c: Undefine __strnlen and strnlen.
99929         [!weak_alias]: Define __strnlen to strnlen.
99930
99931         * lib/atexit.c: New file, from libiberty.
99932
99933 2000-05-06  Jim Meyering  <meyering@lucent.com>
99934
99935         * lib/closeout.c (close_stdout_status): Also check for errors on the
99936         stderr stream.
99937
99938 2000-05-05  Jim Meyering  <meyering@lucent.com>
99939
99940         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
99941         AC_SEARCH_LIBS call for clock_gettime.
99942         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
99943
99944         * m4/search-libs.m4: Update from autoconf.
99945
99946         su doesn't work on Solaris 2.6.
99947         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
99948         <shadow.h>.  Reported by Dragos Harabor.
99949
99950 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
99951
99952         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
99953         memcpy instead of xmalloc, xrealloc, path_concat.
99954         (locale_charset): Treat empty environment variables as absent.
99955         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
99956
99957 2000-05-04  Jim Meyering  <meyering@lucent.com>
99958
99959         * lib/getopt.c: Update from glibc.
99960         * lib/obstack.c: Likewise.
99961         * lib/obstack.h: Likewise.
99962         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
99963         file
99964
99965         * lib/regex.h: Likewise.
99966         * lib/strndup.c: Likewise.
99967         * lib/strnlen.c: New file, from glibc.
99968
99969 2000-05-03  Jim Meyering  <meyering@lucent.com>
99970
99971         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
99972
99973 2000-05-02  Paul Eggert  <eggert@twinsun.com>
99974
99975         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
99976         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
99977         compile-time test, rather than inspecting host and OS, to
99978         decide whether to define _LARGEFILE_SOURCE.
99979
99980 2000-05-01  Jim Meyering  <meyering@lucent.com>
99981
99982         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
99983
99984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
99985         Based on a patch from Bruno Haible.
99986
99987 2000-05-01  Jim Meyering  <meyering@lucent.com>
99988
99989         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
99990
99991 2000-04-29  Jim Meyering  <meyering@lucent.com>
99992
99993         * lib/path-concat.c: Declare strdup only if it's not defined.
99994         * lib/canon-host.c: Likewise.
99995
99996 2000-04-28  Jim Meyering  <meyering@lucent.com>
99997
99998         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
99999         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
100000         is included first, then limits.h is included by locale.h by libintl.h.
100001         From John David Anglin.
100002
100003 2000-04-25  Jim Meyering  <meyering@lucent.com>
100004
100005         * lib/makepath.c (S_IRWXUGO): Define.
100006         (make_path): Always perform explicit chmod if MODE specifies any
100007         of the `special' permission bits.  Prompted by a bug report against
100008         install from Mate Wierdl and Joost van Baal.
100009
100010 2000-04-18  Jim Meyering  <meyering@lucent.com>
100011
100012         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
100013         (jm_PREREQ): Use it.
100014
100015 2000-04-18  Jim Meyering  <meyering@lucent.com>
100016
100017         * lib/README: New file.
100018
100019         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
100020         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
100021
100022 2000-04-17  Jim Meyering  <meyering@lucent.com>
100023
100024         Get it right :-)
100025         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
100026         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
100027         Suggestion from Akim Demaille.
100028
100029 2000-04-17  Jim Meyering  <meyering@lucent.com>
100030
100031         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
100032         the definition of it to rpl_strftime also defined-away the system's
100033         declaration.
100034
100035 2000-04-15  Jim Meyering  <meyering@lucent.com>
100036
100037         Use `C' to denote so-called `contiguous' files, the same way
100038         that tar does.
100039         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
100040         (ftypelet): Use S_ISCTG.
100041         From Michael Deutschmann.
100042
100043 2000-04-14  Jim Meyering  <meyering@lucent.com>
100044
100045         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
100046         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
100047         clobbered.
100048
100049 2000-04-14  Jim Meyering  <meyering@lucent.com>
100050
100051         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
100052
100053 2000-04-13  Jim Meyering  <meyering@lucent.com>
100054
100055         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
100056         AH_VERBATIM to insert required #ifndef into config.h.in.
100057         Suggestion from Akim Demaille.
100058
100059 2000-04-12  Jim Meyering  <meyering@lucent.com>
100060
100061         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
100062         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
100063         Christian Krackowizer.
100064
100065         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
100066         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
100067         (AC_SYS_LARGEFILE): Require.
100068         (AM_C_PROTOTYPES): Require.
100069
100070 2000-04-08  Jim Meyering  <meyering@lucent.com>
100071
100072         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
100073         names don't conflict.  Reported by Eli Zaretskii.
100074
100075 2000-04-07  Jim Meyering  <meyering@lucent.com>
100076
100077         * lib/putenv.c: Move inclusion of errno.h so it follows that of
100078         sys/types.h, to work around system header problems on AIX 3.2.5.
100079         From Bruno Haible.
100080
100081 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
100082
100083         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
100084         bug.  Deal with the different error behavior of Irix iconv.
100085
100086 2000-04-05  Paul Eggert  <eggert@twinsun.com>
100087
100088         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
100089         IRIX if the installer said otherwise.
100090
100091 2000-04-05  Jim Meyering  <meyering@lucent.com>
100092
100093         Portability tweaks required for ultrix4.3.
100094         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
100095         (jm_CHECK_DECLS): Add getutent to the list of functions.
100096         (_jm_DECL_HEADERS): Add utmpx.h.
100097         From John David Anglin.
100098
100099         * m4/strftime.m4: Back out the 2000-04-02 change.
100100         Instead of that change, simply undefine putenv in the test program.
100101
100102 2000-04-05  Jim Meyering  <meyering@lucent.com>
100103
100104         Portability tweaks required for ultrix4.3.
100105         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
100106         getutent.
100107         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
100108         * lib/canon-host.c: Declare strdup.
100109         * lib/path-concat.c: Likewise.
100110         From John David Anglin.
100111
100112 2000-04-04  Jim Meyering  <meyering@lucent.com>
100113
100114         Be more DOS 8.3-friendly.
100115         * lib/ref-add.sin: Renamed from ref-add.sed.in.
100116         * lib/ref-del.sin: Renamed from ref-del.sed.in.
100117         * lib/Makefile.am: Reflect renaming.
100118         Reported by Eli Zaretskii.
100119
100120         Use a temporary file name that won't clash with `charset.alias'
100121         in the DOS 8.3 name space.
100122         * lib/Makefile.am (charset_tmp): Define.
100123         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
100124         (uninstall-local): Likewise.
100125         Reported by Eli Zaretskii.
100126
100127 2000-04-03  Jim Meyering  <meyering@lucent.com>
100128
100129         * m4/gettext.m4: Fix typo in comment.
100130
100131         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
100132         textutils/configure.in).  Suggestion from Paul Eggert.
100133         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
100134
100135 2000-04-02  Paul Eggert  <eggert@twinsun.com>
100136
100137         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
100138         variable in the shell rather than using putenv, which isn't
100139         portable.  This avoids the configure-time inter-test dependency
100140         on the potentially-renamed putenv function.
100141
100142 2000-03-30  Paul Eggert  <eggert@twinsun.com>
100143
100144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
100145         before checking struct stat.st_blksize, so that
100146         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
100147
100148 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100149
100150         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
100151         since strftime.c uses HAVE_STRFTIME to decide whether to use
100152         the underlying strftime.
100153
100154 2000-03-29  Paul Eggert  <eggert@twinsun.com>
100155
100156         * lib/time/strftime.c (my_strftime): Make sure we call the system
100157         strftime, not ourselves, when invoking the underlying strftime.
100158
100159 2000-03-24  Jim Meyering  <meyering@lucent.com>
100160
100161         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
100162         (charset_alias): Define.
100163         (install-exec-local): Factor out common code.
100164         (uninstall-local): Split lines longer than 80.
100165         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
100166         (SUFFIXES): Define.
100167         (.sed.in.sed): New rule.  Don't redirect directly to $@.
100168         (CLEANFILES): Add ref-add.sed and ref-del.sed.
100169
100170 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
100171
100172         * lib/config.charset: Output a line containing "Packages using this
100173         file".
100174         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
100175         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
100176         ref-del.sed): New rules.
100177
100178 2000-03-17  Jim Meyering  <meyering@lucent.com>
100179
100180         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
100181         Otherwise, include <strings.h>
100182
100183 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
100184
100185         * lib/unicodeio.c (utf8_wctomb): New function.
100186         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
100187         format instead of in UCS-4 with platform dependent endianness.
100188
100189 2000-03-10  Jim Meyering  <meyering@lucent.com>
100190
100191         * m4/lib-check.m4: Look for getspnam in -lgen, too.
100192         From Marco Franzen.
100193
100194 2000-03-07  Paul Eggert  <eggert@twinsun.com>
100195
100196         * lib/savedir.c (savedir): Work even if directory size is
100197         negative; this can happen with some screwy NFS configurations.
100198
100199 2000-03-06  Jim Meyering  <meyering@lucent.com>
100200
100201         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
100202         if it's NULL (because we ran out of memory).  From Bruno Haible.
100203
100204 2000-03-05  Jim Meyering  <meyering@lucent.com>
100205
100206         * lib/localcharset.c ("path-concat.h"): Include.
100207         (get_charset_aliases): Use path_concat instead of ANSI string
100208         concatenation.
100209
100210         * lib/unicodeio.h (PARAMS): Define.
100211         Use it to guard prototype.
100212
100213 2000-03-04  Jim Meyering  <meyering@lucent.com>
100214
100215         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
100216         for lib/localcharset.c.
100217
100218 2000-03-04  Jim Meyering  <meyering@lucent.com>
100219
100220         * lib/Makefile.am (install-exec-local): Create $(libdir) before
100221         installing into it.
100222         (uninstall-local): Uncomment this rule so `make distcheck' works
100223         once again.
100224
100225         * lib/unicodeio.c (<errno.h>): Include it.
100226         (errno): Declare if not defined.
100227
100228         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
100229
100230         * lib/config.charset: New version, incorporating remarks from a linux
100231         i18n mailing list.  From Bruno Haible.
100232
100233 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
100234
100235         * m4/codeset.m4: New file.
100236         * m4/iconv.m4: New file.
100237         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
100238
100239 2000-03-03  Jim Meyering  <meyering@lucent.com>
100240
100241         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
100242
100243 2000-03-02  Jim Meyering  <meyering@lucent.com>
100244
100245         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
100246         the messages come out on separate lines.
100247
100248         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
100249         rather than jm_CHECK_DECLARATIONS.
100250         * m4/decl.m4: Remove now-unused file.
100251
100252         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
100253         geteuid.
100254
100255 2000-03-02  Jim Meyering  <meyering@lucent.com>
100256
100257         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
100258
100259 2000-03-01  Jim Meyering  <meyering@lucent.com>
100260
100261         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
100262         * lib/unicodeio.c: Likewise.
100263
100264 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
100265
100266         * lib/config.charset: New file.
100267         * lib/localcharset.c: New file.
100268         * lib/unicodeio.h, lib/unicodeio.c: New files.
100269         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
100270         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
100271         (noinst_HEADERS): Add unicodeio.h.
100272         (all-local, install-exec-local, charset.alias): New targets.
100273
100274 2000-02-28  Paul Eggert  <eggert@twinsun.com>
100275
100276         * lib/quotearg.c (ALERT_CHAR): New macro.
100277         (quotearg_buffer_restyled): Use it.
100278
100279 2000-02-27  Jim Meyering  <meyering@lucent.com>
100280
100281         * m4/check-decl.m4: Add getenv to the list.
100282
100283 2000-02-27  Jim Meyering  <meyering@lucent.com>
100284
100285         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
100286         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
100287
100288         * lib/backupfile.c: Guard inclusion of stdlib.h with
100289         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
100290         Declare malloc if needed.
100291
100292         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
100293         `#ifndef HAVE_DECL..'
100294         now that autoconf always defines the HAVE_DECL_ symbols.
100295         * lib/human.c: Likewise.
100296         * lib/same.c: Likewise.
100297         * lib/strtoumax.c: Likewise.
100298
100299         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
100300         declaration check was not run.
100301         * lib/hash.c: Likewise.
100302         * lib/human.c: Likewise.
100303         * lib/same.c: Likewise.
100304         * lib/strtoumax.c: Likewise.
100305
100306         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
100307         `.', then first look up the entire `.'-containing string as a login
100308         name.
100309
100310 2000-02-23  Jim Meyering  <meyering@lucent.com>
100311
100312         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
100313         in place of my hack.
100314
100315 2000-02-18  Paul Eggert  <eggert@twinsun.com>
100316
100317         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
100318         (textint): New typedef.
100319         (parser_control): Member year changed from int to textint.
100320         All uses changed.
100321         (YYSTYPE): Removed; replaced by %union with int and textint members.
100322         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
100323         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
100324         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
100325         (tSNUMBER, tUNUMBER): Now of type <textintval>.
100326         (date, number, to_year): Use width of number in digits, not its value,
100327         to determine whether it's a 2-digit year, or a 2-digit time.
100328         (yylex): Store number of digits of numeric tokens.
100329         Reported by John Kendall.
100330
100331         (parser_control): Changed from struct parser_control to typedef (for
100332         consistency).  All uses changed.
100333
100334         (tID): Removed; not used.
100335         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
100336
100337 2000-02-14  Paul Eggert  <eggert@twinsun.com>
100338
100339         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
100340         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
100341
100342 2000-02-12  Jim Meyering  <meyering@lucent.com>
100343
100344         * lib/userspec.c (ISDIGIT): Define it.
100345         (isdigit): Remove definition.
100346         (is_number): Use ISDIGIT, not isdigit.
100347         <libintl.h>: Include.
100348         (_ and N_): Define.
100349         (parse_user_spec): Mark translatable strings.
100350
100351 2000-02-10  Jim Meyering  <meyering@lucent.com>
100352
100353         With these changes, nanosleep.[ch] are finally enough like the other
100354         lib/* replacement files to compile on a few more losing systems.
100355
100356         * lib/nanosleep.h: Don't include config.h.
100357         Remove prototype from declaration of nanosleep.
100358         (PARAMS): Remove now-unneeded definition.
100359         * lib/nanosleep.c: #undef nanosleep.
100360         (rpl_nanosleep): Rename from nanosleep.
100361
100362 2000-02-10  Jim Meyering  <meyering@lucent.com>
100363
100364         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
100365         gnu_nanosleep to rpl_nanosleep.
100366
100367 2000-02-09  Jim Meyering  <meyering@lucent.com>
100368
100369         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
100370         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
100371
100372 2000-02-08  Akim Demaille  <akim@epita.fr>
100373
100374         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
100375         `[' and `]' and remove uses of `changequote'.
100376         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
100377         (AC_SYS_LARGEFILE): Likewise.
100378         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
100379         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
100380         of changequote.
100381         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
100382         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
100383         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
100384         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
100385
100386 2000-02-05  Jim Meyering  <meyering@lucent.com>
100387
100388         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
100389         Remove explicit use of AC_HEADER_TIME.  It is required by
100390         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
100391         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
100392         in autoconf whereby the expansion of the latter ended up preceding
100393         the expansion of its prerequisite, AC_HEADER_TIME.
100394         Reported by Volker Borchert.
100395
100396 2000-02-03  Jim Meyering  <meyering@lucent.com>
100397
100398         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
100399
100400 2000-02-03  Jim Meyering  <meyering@lucent.com>
100401
100402         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
100403         rather than with `#if HAVE_UTMPNAME'.
100404
100405 2000-02-02  Jim Meyering  <meyering@lucent.com>
100406
100407         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
100408         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
100409         Reported by Eli Zaretskii.
100410
100411 2000-02-01  Jim Meyering  <meyering@lucent.com>
100412
100413         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
100414
100415 2000-01-31  Jim Meyering  <meyering@lucent.com>
100416
100417         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
100418         functions.  Add the time.h and sys/time.h headers along with the
100419         AC_REQUIRE'ment of AC_HEADER_TIME.
100420
100421 2000-01-31  Jim Meyering  <meyering@lucent.com>
100422
100423         * lib/nanosleep.h (nanosleep): Guard declaration with
100424         `#if ! HAVE_DECL_NANOSLEEP'.
100425         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
100426         the declaration in that vendor's sys/timers.h.
100427         Reported by Christian Krackowizer.
100428
100429         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
100430         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
100431         (ISPRINT): Likewise.
100432         Reported by Tom Tromey.
100433
100434 2000-01-30  Jim Meyering  <meyering@lucent.com>
100435
100436         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
100437
100438         * m4/prereq.m4 (utmp_includes): Define.
100439         Check for ut_user and ut_name members in both struct utmpx
100440         and struct utmp.
100441
100442 2000-01-30  Jim Meyering  <meyering@lucent.com>
100443
100444         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
100445         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
100446         header files where only utmpx.ut_user is declared.
100447
100448         * lib/readutmp.h (UT_USER): Define.
100449
100450 2000-01-29  Jim Meyering  <meyering@lucent.com>
100451
100452         * m4/lib-check.m4: New file containing library-related checks from
100453         fileutils and sh-utils (textutils had none).
100454
100455 2000-01-28  Jim Meyering  <meyering@lucent.com>
100456
100457         * m4/perl.m4: Change format of warning message to look more like that
100458         from the missing script.  Suggestion from François Pinard.
100459
100460 2000-01-25  Jim Meyering  <meyering@lucent.com>
100461
100462         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
100463         well as time.h in the compile check.
100464         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
100465         Fix typo in cross-compiling case: s/yes/no/.
100466
100467 2000-01-23  Jim Meyering  <meyering@lucent.com>
100468
100469         * m4/jm-macros.m4: Move df-related tests here from
100470         fileutils/configure.in
100471
100472         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
100473         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
100474
100475         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
100476         s/space/ac_fsusage_space/.
100477         (jm_FILE_SYSTEM_USAGE): Take two parameters.
100478
100479         * m4/ftruncate.m4: New file (derived from part of
100480         fileutils/configure.in).
100481         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
100482         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
100483
100484         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
100485         AC_SUBST these here, rather than just in sh-util/configure.in, so
100486         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
100487         all the same.
100488         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
100489         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
100490         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
100491         (AC_SUBST(POW_LIBM)): Likewise.
100492         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
100493
100494 2000-01-23  Jim Meyering  <meyering@lucent.com>
100495
100496         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
100497         obstack.c.
100498
100499 2000-01-22  Jim Meyering  <meyering@lucent.com>
100500
100501         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
100502
100503         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
100504
100505         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
100506         configure.in
100507         (AC_CHECK_HEADERS): Likewise for sh-utils.
100508         (AC_CHECK_HEADERS): Likewise for textutils.
100509         Merge the three lists of headers.
100510
100511         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
100512         from fileutils' configure.in.
100513
100514         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
100515         code. Moved tests into their own function (_jm_DECL_HEADERS) in
100516         check-decl.m4.
100517
100518         * m4/check-decl.m4: Use #if rather than #ifdef.
100519         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
100520         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
100521         (_jm_DECL_HEADERS): Define new function.
100522         (jm_CHECK_DECLARATIONS): Require it.
100523
100524 2000-01-22  Jim Meyering  <meyering@lucent.com>
100525
100526         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
100527         [! HAVE_DECL_STRTOULL]: Declare strtoull.
100528         Required for some AIX systems.  Reported by Christian Krackowizer.
100529         [TESTING] (main): New function.
100530
100531         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
100532         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
100533         letters.
100534
100535         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
100536         iswprint.
100537
100538         * lib/strverscmp.c (ISDIGIT): Define.
100539         (strverscmp): Use ISDIGIT, not isdigit.
100540
100541 2000-01-19  Jim Meyering  <meyering@lucent.com>
100542
100543         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
100544         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
100545         defines `struct timespec' in <sys/time.h>
100546
100547         * m4/c-bs-a.m4: Remove uses of changequote altogether.
100548         Thanks to Akim for explaining.
100549
100550 2000-01-17  Paul Eggert  <eggert@twinsun.com>
100551
100552         * lib/nanosleep.c (nanosleep):
100553         Don't use SA_INTERRUPT to decide whether to call sigaction, as
100554         POSIX.1 doesn't require SA_INTERRUPT and some systems
100555         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
100556         it's been part of POSIX.1 since day 1 (in 1988).
100557
100558 2000-01-17  Jim Meyering  <meyering@lucent.com>
100559
100560         * lib/interlock: Remove unused file.  Reported by François Pinard.
100561
100562 2000-01-16  Paul Eggert  <eggert@twinsun.com>
100563
100564         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
100565         alert, backslash, formfeed, and vertical tab unnecessarily in
100566         shell quoting style.
100567
100568 2000-01-16  Jim Meyering  <meyering@lucent.com>
100569
100570         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
100571         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
100572         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
100573         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
100574
100575 2000-01-16  Jim Meyering  <meyering@lucent.com>
100576
100577         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
100578         because the latter didn't work.
100579
100580 2000-01-15  Jim Meyering  <meyering@lucent.com>
100581
100582         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
100583         (AC_REPLACE_FUNCS): Add memcpy and memset.
100584         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
100585         Add strpbrk.
100586         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
100587
100588 2000-01-12  Jim Meyering  <meyering@lucent.com>
100589
100590         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
100591         (jm_PREREQ): Use it.
100592         (jm_PREREQ_READUTMP): New macro.
100593         (jm_PREREQ): Use it.
100594
100595 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100596
100597         Quote multibyte characters correctly.
100598         * m4/c-bs-a.m4: New file.
100599         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
100600         (jm_PREREQ): Use it.
100601
100602 2000-01-11  Paul Eggert  <eggert@twinsun.com>
100603
100604         * m4/uintmax_t.m4: Port to autoconf 2.13.
100605
100606 2000-01-08  Jim Meyering  <meyering@ascend.com>
100607
100608         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
100609         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
100610
100611 2000-01-04  Jim Meyering  <meyering@ascend.com>
100612
100613         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
100614         jm_STRUCT_DIRENT_D_TYPE.
100615         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
100616         jm_STRUCT_DIRENT_D_INO.
100617         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
100618         jm_STRUCT_UTIMBUF.
100619         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
100620         renamings.
100621         * m4/utime.m4: Likewise.
100622
100623         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
100624         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
100625
100626 2000-01-03  Paul Eggert  <eggert@twinsun.com>
100627
100628         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
100629         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
100630
100631 2000-01-02  Jim Meyering  <meyering@ascend.com>
100632
100633         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
100634         remember if this is necessary.
100635
100636 1999-12-26  Jim Meyering  <meyering@ascend.com>
100637
100638         * m4/jm-macros.m4: Use it here.
100639         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
100640
100641 1999-12-23  Jim Meyering  <meyering@ascend.com>
100642
100643         * m4/jm-macros.m4: Check for clock_gettime (moved from
100644         fileutils/configure.in)
100645         Check for gettimeofday.
100646
100647 1999-12-20  Jim Meyering  <meyering@ascend.com>
100648
100649         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
100650         autoconf-2.14a-1999-12-20.
100651
100652 1999-12-19  Jim Meyering  <meyering@ascend.com>
100653
100654         * m4/lstat-slash.m4: New file.
100655         * m4/jm-macros.m4: Use the new macro:
100656         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
100657
100658 1999-12-07  Jim Meyering  <meyering@ascend.com>
100659
100660         * m4/perl.m4: Require that File::Compare be available, too.
100661         Too many systems seem to lack it.
100662
100663         * m4/strftime.m4: Add checks for most of the cpp macros tested in
100664         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
100665
100666 1999-11-18  Paul Eggert  <eggert@twinsun.com>
100667
100668         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
100669         problem with the QNX 4.25 shell, which doesn't propagate exit
100670         status of failed commands inside shell assignments.
100671
100672 1999-11-17  Jim Meyering  <meyering@ascend.com>
100673
100674         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
100675
100676 1999-11-07  Jim Meyering  <meyering@ascend.com>
100677
100678         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
100679
100680 1999-11-06  Jim Meyering  <meyering@ascend.com>
100681
100682         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
100683         * m4/jm-macros.m4 (jm_MACROS): Use it here.
100684
100685 1999-11-05  Jim Meyering  <meyering@ascend.com>
100686
100687         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
100688         configure.in of textutils, fileutils, and sh-utils into this one
100689         (shared between those packages) file.
100690         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
100691         AC_STRUCT_ST_BLKSIZE.
100692
100693 1999-11-03  Jim Meyering  <meyering@ascend.com>
100694
100695         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
100696         of AC_CHECK_TYPE checks includes unistd.h.
100697         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
100698         Suggestion from Akim Demaille.
100699
100700 1999-10-30  Jim Meyering  <meyering@ascend.com>
100701
100702         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
100703         m4-quoted string.
100704         * m4/ls-mntd-fs.m4: Likewise.
100705         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
100706         * m4/jm-winsz1.m4: Likewise.
100707
100708         * m4/const.m4: Remove file, since the fix made it into the experimental
100709         version of autoconf.
100710         * m4/mktime.m4: Likewise.
100711
100712         * m4/check-type.m4: Remove file, now that the latest version of
100713         AC_CHECK_TYPE takes a third arg to specify additional #includes.
100714
100715         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
100716         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
100717         AC_CHECK_TYPE.
100718
100719 1999-10-04  Jim Meyering  <meyering@ascend.com>
100720
100721         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
100722
100723 1999-09-22  Paul Eggert  <eggert@twinsun.com>
100724
100725         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
100726         2.95.1 bug with HP-UX 10.20.
100727
100728 1999-09-17  Jim Meyering  <meyering@ascend.com>
100729
100730         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
100731         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
100732         due to missing strdup (against sh-utils-2.0).
100733
100734 1999-08-29  Jim Meyering  <meyering@ascend.com>
100735
100736         * m4/jm-macros.m4: Require jm_BISON.
100737         * m4/bison.m4: New file.
100738
100739 1999-08-17  Paul Eggert  <eggert@twinsun.com>
100740
100741         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
100742         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
100743
100744 1999-08-05  Jim Meyering  <meyering@ascend.com>
100745
100746         * m4/getline.m4: Rename test file from conftestdata to conftest.data
100747         to avoid conflicts with `conftest' on 8+3 filesystems.
100748         Suggestion from Eli Zaretskii.
100749
100750 1999-08-04  Jim Meyering  <meyering@ascend.com>
100751
100752         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
100753         fileutils and sh-utils (textutils's getline test was inadequate).
100754         (AM_FUNC_GETLINE): Run this test.
100755         (AC_CHECK_FUNCS): Check for getdelim.
100756         Reported by Bob Proulx.
100757
100758 1999-08-02  Jim Meyering  <meyering@ascend.com>
100759
100760         * m4/jm-macros.m4: Add a comment.
100761
100762 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100763
100764         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
100765         <inttypes.h> defines strtoumax as a macro (and not as a
100766         function).
100767
100768 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100769
100770         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
100771         that we can shift, multiply and divide unsigned long long
100772         values; Ultrix cc can't do it.
100773
100774 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100775
100776         * m4/mktime.m4: New file, which is a preview of what should appear
100777         in the next public autoconf release.
100778
100779 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100780
100781         * m4/lfs.m4: Remove this file.
100782         * m4/largefile.m4: New file.  It contains the old contents of
100783         lfs.m4, except that all names with prefix AC_LFS have been
100784         changed to use the prefix AC_SYS_LARGEFILE instead, to be
100785         compatible with future autoconf versions.  Also, some minor m4
100786         quoting problems have been fixed.
100787
100788 1999-08-01  Paul Eggert  <eggert@twinsun.com>
100789
100790         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
100791         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
100792         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
100793         and simplify the shell code.
100794
100795 1999-08-01  Jim Meyering  <meyering@ascend.com>
100796
100797         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
100798         m4.
100799
100800 1999-07-20  Jim Meyering  <meyering@ascend.com>
100801
100802         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
100803
100804 1999-07-15  Jim Meyering  <meyering@ascend.com>
100805
100806         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
100807
100808 1999-05-22  Jim Meyering  <meyering@ascend.com>
100809
100810         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
100811
100812 1999-05-20  Jim Meyering  <meyering@ascend.com>
100813
100814         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
100815         Add a colon after each `then' in case $4 is empty.
100816
100817 1999-05-16  Jim Meyering  <meyering@ascend.com>
100818
100819         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
100820
100821 1999-05-10  Jim Meyering  <meyering@ascend.com>
100822
100823         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
100824
100825         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
100826         AC_FUNC_MKTIME.
100827
100828 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
100829
100830         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
100831
100832 1999-05-04  Paul Eggert  <eggert@twinsun.com>
100833
100834         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
100835         not CPPFLAGS, so that linking works correctly in IRIX.
100836
100837 1999-04-30  Paul Eggert  <eggert@twinsun.com>
100838
100839         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
100840
100841 1999-04-20  Paul Eggert  <eggert@twinsun.com>
100842
100843         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
100844         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
100845         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
100846         jm_AC_TYPE_UNSIGNED_LONG_LONG.
100847         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
100848
100849         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
100850
100851 1999-04-20  Jim Meyering  <meyering@ascend.com>
100852
100853         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
100854         AC_REPLACE xstroull if necessary.  From Paul Eggert.
100855         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
100856
100857 1999-04-18  Jim Meyering  <meyering@ascend.com>
100858
100859         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
100860         * m4/jm-macros.m4: Use it.
100861
100862 1999-04-06  Jim Meyering  <meyering@ascend.com>
100863
100864         * m4/strftime.m4: Remove test for %f.
100865
100866 1999-03-29  Jim Meyering  <meyering@ascend.com>
100867
100868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
100869         superset of the AC_TYPE_* checks in the textutils, fileutils,
100870         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
100871         AC_TYPE_PID_T.
100872
100873 1999-03-28  Jim Meyering  <meyering@ascend.com>
100874
100875         * m4/jm-macros.m4: Define GNU_PACKAGE here.
100876         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
100877         replaced e.g., in the *.sh files of the sh-utils.
100878
100879 1999-03-20  Jim Meyering  <meyering@ascend.com>
100880
100881         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
100882         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
100883         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
100884
100885 1999-03-19  Jim Meyering  <meyering@ascend.com>
100886
100887         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
100888
100889 1999-03-12  Jim Meyering  <meyering@ascend.com>
100890
100891         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
100892
100893 1999-03-07  Jim Meyering  <meyering@ascend.com>
100894
100895         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
100896         declared.
100897
100898 1999-02-17  Jim Meyering  <meyering@ascend.com>
100899
100900         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
100901         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
100902
100903 1999-02-07  Jim Meyering  <meyering@ascend.com>
100904
100905         * m4/group-member.m4: New file -- extracted from sh-utils'
100906         configure.in.
100907
100908         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
100909         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
100910
100911 1999-02-06  Jim Meyering  <meyering@ascend.com>
100912
100913         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
100914         * m4/fnmatch.m4: Likewise.
100915         * m4/getgroups.m4: Likewise.
100916         * m4/lstat.m4: Likewise.
100917         * m4/malloc.m4: Likewise.
100918         * m4/putenv.m4: Likewise.
100919         * m4/realloc.m4: Likewise.
100920         * m4/regex.m4: Likewise.
100921         * m4/stat.m4: Likewise.
100922         * m4/strftime.m4: Likewise.
100923         Suggestion from Alain Magloire.
100924
100925         * m4/chown.m4: Use `.$ac_objext', not `.o'.
100926         * m4/fnmatch.m4: Likewise.
100927         * m4/getgroups.m4: Likewise.
100928         * m4/getline.m4: Likewise.
100929         * m4/lstat.m4: Likewise.
100930         * m4/malloc.m4: Likewise.
100931         * m4/memcmp.m4: Likewise.
100932         * m4/putenv.m4: Likewise.
100933         * m4/realloc.m4: Likewise.
100934         * m4/regex.m4: Likewise.
100935         * m4/stat.m4: Likewise.
100936         * m4/strftime.m4: Likewise.
100937         Suggestion from Alain Magloire.
100938
100939         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
100940         an argument.
100941
100942         * m4/regex.m4: Add a run-time Test for proper operation of
100943         re_compile_pattern.
100944
100945 1999-01-31  Jim Meyering  <meyering@ascend.com>
100946
100947         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
100948
100949 1999-01-30  Jim Meyering  <meyering@ascend.com>
100950
100951         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
100952
100953         * m4/jm-mktime.m4: Make this a wrapper around the official
100954         AM_FUNC_MKTIME rather than my private copy, now that the official one
100955         is up to date.
100956         * m4/mktime.m4: Remove file.
100957
100958         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
100959         * m4/uptime.m4: Likewise.
100960         * m4/uintmax_t.m4: Likewise.
100961
100962 1999-01-28  Jim Meyering  <meyering@ascend.com>
100963
100964         * m4/jm-macros.m4: Use jm_AFS.
100965         * m4/afs.m4: New file (from fileutils' configure.in).
100966
100967         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
100968         * m4/chown.m4: Likewise.
100969         * m4/d-ino.m4: Likewise.
100970         * m4/d-type.m4: Likewise.
100971         * m4/fnmatch.m4: Likewise.
100972         * m4/getgroups.m4: Likewise.
100973         * m4/gettext.m4: Likewise.
100974         * m4/jm-mktime.m4: Likewise.
100975         * m4/jm-winsz2.m4: Likewise.
100976         * m4/lcmessage.m4: Likewise.
100977         * m4/ls-mntd-fs.m4: Likewise.
100978         * m4/malloc.m4: Likewise.
100979         * m4/memcmp.m4: Likewise.
100980         * m4/putenv.m4: Likewise.
100981         * m4/realloc.m4: Likewise.
100982         * m4/st_mtim.m4: Likewise.
100983         * m4/strftime.m4: Likewise.
100984
100985 1999-01-16  Jim Meyering  <meyering@ascend.com>
100986
100987         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
100988         (ARGMATCH_DIE_DECL): Define.
100989
100990 1999-01-12  Jim Meyering  <meyering@ascend.com>
100991
100992         * m4/Makefile.am.in: Rewrite to avoid using fmt.
100993         Reported by Lars Hecking.
100994
100995 1999-01-10  Jim Meyering  <meyering@ascend.com>
100996
100997         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
100998         gross kludge.
100999         * m4/inttypes_h.m4: Likewise.
101000         * m4/lstat.m4: Likewise.
101001         * m4/malloc.m4: Likewise.
101002         * m4/readdir.m4: Likewise.
101003         * m4/realloc.m4: Likewise.
101004         * m4/st_dm_mode.m4: Likewise.
101005         * m4/stat.m4: Likewise.
101006         * m4/utimbuf.m4: Likewise.
101007         * m4/utimes.m4: Likewise.
101008
101009         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
101010         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
101011         comments in config.h.in are meaningful.
101012
101013         * m4/jm-macros.m4: Require autoconf-2.13 here.
101014
101015         * m4/regex.m4: By default, don't use the included regex.c on systems
101016         with glibc 2.  Suggestion from Uli Drepper.
101017
101018 1999-01-02  Jim Meyering  <meyering@ascend.com>
101019
101020         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
101021
101022 1998-12-18  Jim Meyering  <meyering@ascend.com>
101023
101024         * m4/Makefile.am.in (Makefile.am): Simplify rule.
101025         Based on a suggestion from Lars Hecking.
101026
101027 1998-11-16  Paul Eggert  <eggert@twinsun.com>
101028
101029         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
101030
101031 1998-11-16  Jim Meyering  <meyering@ascend.com>
101032
101033         * m4/lfs.m4: Double-quote the `uname...` expression.
101034
101035 1998-11-14  Jim Meyering  <meyering@ascend.com>
101036
101037         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
101038         * m4/stat.m4: Likewise.
101039
101040 1998-11-03  Jim Meyering  <meyering@ascend.com>
101041
101042         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
101043         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
101044
101045 1998-10-18  Jim Meyering  <meyering@ascend.com>
101046
101047         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
101048
101049 1998-10-17  Jim Meyering  <meyering@ascend.com>
101050
101051         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
101052         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
101053         calls for those previously hard-coded headers.  Instead, take a new
101054         parameter.
101055         (jm_CHECK_DECLARATIONS): Reflect interface change.
101056         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
101057         (jm_CHECK_DECL_LOCALTIME_R): New macro.
101058
101059         * m4/mktime.m4: Test for spring-forward gap before long-running test.
101060
101061 1998-10-14  Jim Meyering  <meyering@ascend.com>
101062
101063         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
101064         instead of "TZ=America/Vancouver".  From Paul Eggert.
101065
101066 1998-10-11  Jim Meyering  <meyering@ascend.com>
101067
101068         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
101069         This adds a test for a recently added compatibility fix for mktime.c.
101070         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
101071
101072 1998-09-27  Jim Meyering  <meyering@ascend.com>
101073
101074         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
101075
101076         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
101077         ../configure.in, including a change from Gordon Matzigkeit to allow
101078         cross-compiling for the Hurd.
101079
101080         * m4/glibc.m4: New file/macro to test for the GNU C Library
101081         versions 1 and 2.  From Gordon Matzigkeit.
101082         Indent.
101083
101084 1998-09-21  Jim Meyering  <meyering@ascend.com>
101085
101086         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
101087
101088 1998-08-18  Paul Eggert  <eggert@twinsun.com>
101089
101090         Port nanosecond-resolution times to UnixWare 2.1.2 and
101091         pedantic Solaris 2.6.
101092
101093         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
101094         AC_STRUCT_ST_MTIM.
101095         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
101096         Generate name of ns member, instead of just 1 or undef.
101097         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
101098
101099 1998-08-15  Jim Meyering  <meyering@ascend.com>
101100
101101         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
101102         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
101103         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
101104         instead of jm_TYPE_SSIZE_T.
101105
101106 1998-08-12  Jim Meyering  <meyering@ascend.com>
101107
101108         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
101109
101110 1998-08-02  Jim Meyering  <meyering@ascend.com>
101111
101112         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
101113         in acconfig.h manually.
101114
101115 1998-07-31  Paul Eggert  <eggert@twinsun.com>
101116
101117         * m4/st_mtim.m4: New file.
101118
101119 1998-07-28  Jim Meyering  <meyering@ascend.com>
101120
101121         * m4/utimes.m4: Undef stat.
101122
101123 1998-07-25  Jim Meyering  <meyering@ascend.com>
101124
101125         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
101126         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
101127
101128 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
101129
101130         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
101131         uid and gid actually remain unchanged.
101132
101133 1998-07-07  Jim Meyering  <meyering@ascend.com>
101134
101135         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
101136
101137 1998-07-04  Jim Meyering  <meyering@ascend.com>
101138
101139         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
101140         to prove that this macro can be used in packages without regex.c.
101141
101142 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
101143
101144         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
101145         is to be used.
101146
101147 1998-07-03  Jim Meyering  <meyering@ascend.com>
101148
101149         * m4/gettext.m4: Add -lintl if it's found to be necessary.
101150
101151         * m4/gettext.m4: New file -- from gettext-0.10.35.
101152         * m4/lcmessage.m4: Likewise.
101153         * m4/progtest.m4: Likewise.
101154
101155         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
101156         * m4/jm-macros.m4: Require the new macro.
101157
101158 1998-06-29  Jim Meyering  <meyering@ascend.com>
101159
101160         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
101161         for the definition of NGROUPS (used in a system header included
101162         by sys/mount.h).
101163
101164 1998-06-28  Jim Meyering  <meyering@ascend.com>
101165
101166         * m4/ls-mntd-fs.m4: New file.
101167         * m4/fstypename.m4: New file.
101168
101169         * m4/jm-macros.m4: Require the new macro.
101170         * m4/jm-glibc-io.m4: New file.
101171
101172 1998-05-19  Jim Meyering  <meyering@ascend.com>
101173
101174         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
101175         * m4/lchown.m4: New file.
101176
101177         * m4/Makefile.am.in: New file.
101178         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
101179
101180 1998-05-14  Jim Meyering  <meyering@ascend.com>
101181
101182         * m4/Makefile.am (EXTRA_DIST): Add them.
101183         * m4/jm-macros.m4: New file.
101184         * m4/utimbuf.m4: New file.
101185
101186 1998-05-12  Jim Meyering  <meyering@ascend.com>
101187
101188         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
101189
101190 1998-05-11  Jim Meyering  <meyering@ascend.com>
101191
101192         * m4/isc-posix.m4: New file.
101193
101194 1998-05-10  Jim Meyering  <meyering@ascend.com>
101195
101196         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
101197
101198 1998-05-09  Jim Meyering  <meyering@ascend.com>
101199
101200         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
101201         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
101202         with automake.
101203
101204         * m4/ssize_t.m4: New file.
101205         * m4/mktime.m4: Remove file -- the new automake has this now.
101206
101207 1998-04-26  Jim Meyering  <meyering@ascend.com>
101208
101209         * m4/assert.m4: New file.
101210         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
101211
101212 1998-04-05  Jim Meyering  <meyering@ascend.com>
101213
101214         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
101215         (jm_PREREQ): Use it here.
101216
101217 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
101218
101219         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
101220         in acconfig.h.
101221
101222 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
101223
101224         * m4/prereq.m4: New file.
101225         * m4/error.m4: New file.
101226         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
101227
101228 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
101229
101230         * m4/getline.m4: Don't set am_cv_func_working_getline before the
101231         cache-check for the same variable -- that defeated the purpose of
101232         the test; the test program was never run.  This was a problem only
101233         on systems with losing getline functions -- HP-UX 10.20 is one.
101234         Reported by Bjorn Helgaas.
101235
101236 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
101237
101238         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
101239
101240 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
101241
101242         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
101243
101244         * m4/const.m4: New file.  Use an initializer in this declaration
101245         typedef int charset[2]; const charset x;
101246         Reported by Bob Glickstein.
101247
101248 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
101249
101250         * m4/chown.m4: Fix reversed types on -1 args to chown.
101251         From Kaveh Ghazi.
101252
101253 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
101254
101255         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
101256         Add lseek and memchr.
101257
101258         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
101259         T.E.Dickey <dickey@clark.net> said that some older preprocessors
101260         have a 20-character limit on names.
101261
101262 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
101263
101264         * m4/inttypes_h.m4: New file.
101265         * m4/uintmax_t.m4: New file.
101266         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
101267
101268
101269         -----
101270
101271         Local Variables:
101272         coding: utf-8
101273         End:
101274
101275         Copyright (C) 1997-2014 Free Software Foundation, Inc.
101276
101277         Copying and distribution of this file, with or without
101278         modification, are permitted provided the copyright notice
101279         and this notice are preserved.